* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.news-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    padding-top: 120px; /* Add this to push content below fixed header */
}

.news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.news-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card.featured {
    grid-column: span 2;
}

.news-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-card.featured img {
    height: 300px;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.news-card h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-card h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-card p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid #3498db;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: #3498db;
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.page-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #3498db;
    color: white;
}

.page-btn.active {
    background: #3498db;
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.news-controls {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.search-box {
    display: flex;
    max-width: 400px;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    outline: none;
}

.search-box input:focus {
    border-color: #3498db;
}

.search-btn {
    padding: 0.75rem 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1rem;
}

.search-btn:hover {
    background: #2980b9;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.news-category {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-category.project { background: #e74c3c; }
.news-category.technology { background: #9b59b6; }
.news-category.certificate { background: #f39c12; }
.news-category.services { background: #27ae60; }
.news-category.forum { background: #0c0d57; }
/* News Article Styles */
.news-article-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    padding-top: 120px;
}

.news-article {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

/* Article Header */
.article-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.article-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.25rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.article-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.reading-time {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}

/* Hero Image */
.article-hero {
    position: relative;
}

.article-hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-caption {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* Article Content */
.article-content {
    padding: 2rem;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.75rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.content-section h3 {
    font-size: 1.25rem;
    color: #34495e;
    margin-bottom: 0.75rem;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Specifications Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.spec-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.spec-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.spec-item p {
    color: #3498db;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    margin-left: 0;
}

.benefits-list li {
    background: #e8f6f3;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

/* Highlight Grid */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.highlight-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.highlight-item p {
    color: #666;
    margin: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #3498db;
    border-radius: 50%;
}

.timeline-date {
    font-weight: 600;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    margin: 0;
}

/* Article Footer */
.article-footer {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.article-tags {
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-share h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.linkedin { background: #0077b5; color: white; }
.share-btn.twitter { background: #1da1f2; color: white; }
.share-btn.facebook { background: #1877f2; color: white; }
.share-btn.email { background: #666; color: white; }

/* Related Articles */
.related-articles {
    margin-bottom: 3rem;
}

.related-articles h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    margin: 0.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.related-content p {
    color: #666;
    margin-bottom: 1rem;
}

/* Back to News */
.back-to-news {
    text-align: center;
    margin-bottom: 3rem;
}

.back-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

/* ...existing code... */

/* Icon Styling */
.highlight-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    height: 60px;
}

.highlight-svg-icon {
    width: 88px;
    height: 88px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.highlight-emoji {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.highlight-item:hover .highlight-svg-icon,
.highlight-item:hover .highlight-emoji {
    transform: scale(1.1);
}

/* Responsive icon sizing */
@media (max-width: 768px) {
    .highlight-svg-icon {
        width: 40px;
        height: 40px;
    }
    
    .highlight-emoji {
        font-size: 2.5rem;
    }
    
    .highlight-icon {
        height: 50px;
    }
}

/* ...existing code... */
.back-btn:hover {
    background: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-container {
        padding: 1rem;
        padding-top: 100px; /* Adjust for smaller header on mobile */
    }
    
    .news-header h1 {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card.featured {
        grid-column: span 1;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .page-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .news-article-container {
        padding: 1rem;
        padding-top: 100px;
    }
    
    .article-header,
    .article-content {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .specs-grid,
    .highlight-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-container {
        padding-top: 80px; /* Smaller padding for mobile */
    }
    
    .news-header h1 {
        font-size: 1.75rem;
    }
    
    .news-header p {
        font-size: 1rem;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-card h2 {
        font-size: 1.25rem;
    }
    
    .news-card h3 {
        font-size: 1.1rem;
    }
}