/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active {
    background: white;
    color: black;
    border-radius: 8px;
}

.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    font-weight: 700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 120px;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    order: 2;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(15px);
    min-width: 250px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Blog Hero Section */
.blog-hero {
    display: none; /* Hide hero section on all devices */
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Century Gothic', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #10b981, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 6rem 0 4rem 0; /* Increased top padding since hero is hidden */
}

/* Blog Controls */
.blog-controls {
    margin-bottom: 4rem;
}

.search-section {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-box input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.filter-section {
    display: flex;
    justify-content: center;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #10b981;
    background: #10b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Featured Article */
.featured-article {
    margin-bottom: 4rem;
}

.featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.category {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category.technology { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.category.policy { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.category.market { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.category.research { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.category.case-studies { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.date, .read-time {
    color: #6b7280;
    font-size: 0.9rem;
}

.featured-title {
    font-family: 'Century Gothic', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5e7eb;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.author-title {
    color: #6b7280;
    font-size: 0.85rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Articles Section */
.articles-section {
    margin-bottom: 4rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.article-title {
    font-family: 'Century Gothic', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #1f2937;
}

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.9rem;
}

.read-time {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Load More Section */
.load-more-section {
    text-align: center;
}

.load-more-btn {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.load-more-btn:hover {
    border-color: #10b981;
    background: #10b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(2px);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 4rem 0;
    margin-top: 4rem;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-family: 'Century Gothic', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.form-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: white;
    font-size: 1rem;
    outline: none;
}

.form-group button {
    padding: 1rem 2rem;
    border: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group button:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Footer - Matching Subsidy Page */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(74, 222, 128, 0.2);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4ade80, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Century Gothic', sans-serif;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: #4ade80;
}

.footer-desc {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: #4ade80;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #4ade80;
}

.footer-links a:hover::before {
    opacity: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-info p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.contact-info p:hover {
    color: #4ade80;
}

.contact-info i {
    color: #4ade80;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Improved Footer Logo and Brand Styling */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-company-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: 'Century Gothic', sans-serif;
    letter-spacing: 0.5px;
}

.footer-tagline {
    color: #4ade80;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}


/* Footer Responsive Design */
@media (max-width: 1024px) {
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        gap: 1rem;
    }
    
    .footer-brand {
        gap: 1rem;
    }
    
    .navbar {
        height: 60px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        font-size: 1rem;
        border: 2px solid rgba(0, 0, 0, 0.2);
        background: transparent;
        box-shadow: none;
        width: 80%;
        text-align: center;
        margin: 0.5rem 0;
        color: black;
    }
    
    .nav-link:hover {
        background: rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.4);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }
    
    .buy-solar-btn {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
        background: transparent !important;
        border: 2px solid rgba(0, 0, 0, 0.2) !important;
        box-shadow: none !important;
        color: black !important;
    }
    
    .buy-solar-btn:hover {
        background: rgba(0, 0, 0, 0.1) !important;
        border-color: rgba(0, 0, 0, 0.4) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    .dropdown {
        width: 80%;
    }
    
    .dropdown-toggle {
        min-width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        background: transparent !important;
        border: 2px solid rgba(0, 0, 0, 0.2) !important;
        box-shadow: none !important;
        color: black !important;
    }
    
    .dropdown-toggle:hover {
        background: rgba(0, 0, 0, 0.1) !important;
        border-color: rgba(0, 0, 0, 0.4) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    .dropdown-content {
        position: static;
        min-width: 100%;
        left: 0;
        margin-top: 0.5rem;
        opacity: 1;
        visibility: visible;
        background: rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-item {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        color: black;
    }
    
    
    /* Add top padding to first section after hero on mobile */
    .blog-content {
        padding-top: 2rem;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .featured-title {
        font-size: 1.8rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .newsletter-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .form-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .form-group input,
    .form-group button {
        border-radius: 0;
    }
    
    .form-group input {
        border-radius: 15px 15px 0 0;
    }
    
    .form-group button {
        border-radius: 0 0 15px 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem auto;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: calc(95vh - 100px);
    }
    
    .modal-article-title {
        font-size: 2rem;
    }
    
    .modal-article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .modal-article-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
}

/* Article Modal Styles */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-modal.show {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    margin: 2rem auto;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.article-modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    position: relative;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.modal-article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.modal-article-title {
    font-family: 'Century Gothic', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.modal-article-excerpt {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 2rem;
    font-style: italic;
    border-left: 4px solid #10b981;
    padding-left: 1.5rem;
}

.modal-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.modal-article-content h2 {
    font-family: 'Century Gothic', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem 0;
}

.modal-article-content h3 {
    font-family: 'Century Gothic', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 0 0.8rem 0;
}

.modal-article-content p {
    margin-bottom: 1.5rem;
}

.modal-article-content ul,
.modal-article-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.modal-article-content li {
    margin-bottom: 0.5rem;
}

.modal-article-content blockquote {
    border-left: 4px solid #10b981;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.modal-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.modal-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5e7eb;
}

.modal-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-author-details {
    display: flex;
    flex-direction: column;
}

.modal-author-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
}

.modal-author-title {
    color: #6b7280;
    font-size: 0.95rem;
}

.modal-article-stats {
    display: flex;
    gap: 2rem;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }
