/* Math Category Page Styles - Enhanced Version */
:root {
    --math-primary: #3498db;
    --math-secondary: #9b59b6;
    --math-accent: #2ecc71;
    --math-dark: #2c3e50;
    --math-light: #ecf0f1;
    --math-gradient: linear-gradient(135deg, #3498db, #9b59b6);
    --math-glow: 0 0 15px rgba(52, 152, 219, 0.6);
    --math-shadow: 0 10px 30px rgba(44, 62, 80, 0.2);
    --math-card-bg: rgba(255, 255, 255, 0.95);
    --math-card-border: 1px solid rgba(52, 152, 219, 0.2);
    --math-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.math-category-page {
    background-color: #f9f9f9;
    color: #333;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Math Header Styles - Enhanced */
.math-header {
    position: relative;
    min-height: 600px;
    background: var(--math-dark);
    overflow: hidden;
    padding: 80px 0 60px;
}

.math-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    z-index: 1;
}

.math-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 30%, rgba(52, 152, 219, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 60%, rgba(155, 89, 182, 0.15) 0%, transparent 50%);
    z-index: 2;
}

.math-formulas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.math-formulas span {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 3rem;
    font-family: 'Cambria Math', serif;
    animation: floatFormula 20s infinite ease-in-out;
    opacity: 0.6;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    transform-origin: center;
}

.math-formulas span:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; font-size: 4rem; }
.math-formulas span:nth-child(2) { top: 60%; left: 20%; animation-delay: -2s; font-size: 3.5rem; }
.math-formulas span:nth-child(3) { top: 30%; left: 40%; animation-delay: -4s; font-size: 2.8rem; }
.math-formulas span:nth-child(4) { top: 70%; left: 60%; animation-delay: -6s; font-size: 3.2rem; }
.math-formulas span:nth-child(5) { top: 20%; left: 80%; animation-delay: -8s; font-size: 4.2rem; }
.math-formulas span:nth-child(6) { top: 50%; left: 90%; animation-delay: -10s; font-size: 3rem; }
.math-formulas span:nth-child(7) { top: 80%; left: 30%; animation-delay: -12s; font-size: 2.5rem; }
.math-formulas span:nth-child(8) { top: 40%; left: 70%; animation-delay: -14s; font-size: 3.8rem; }

.math-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 0;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: var(--math-transition);
}

.back-to-blog:hover {
    color: #fff;
    background: rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--math-glow);
}

.back-to-blog i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.math-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.math-category-icon {
    width: 60px;
    height: 60px;
    background: var(--math-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: var(--math-glow);
    animation: pulse 3s infinite ease-in-out;
}

.math-category-icon i {
    color: white;
    font-size: 1.8rem;
}

.math-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    background: var(--math-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
    letter-spacing: 1px;
}

.math-description {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.math-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.math-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--math-transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.math-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    background: var(--math-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Featured Article Section - Enhanced */
.math-featured-section {
    padding: 80px 0;
    background: #fff;
    position: relative;
}

.math-featured-article {
    display: flex;
    background: var(--math-card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--math-shadow);
    transition: var(--math-transition);
    border: var(--math-card-border);
    position: relative;
}

.math-featured-article:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.3);
}

.featured-article-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

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

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

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--math-gradient);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.featured-badge i {
    margin-right: 6px;
    font-size: 0.8rem;
    animation: spin 4s infinite linear;
}

.featured-article-content {
    flex: 0 0 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.featured-article-category {
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    color: var(--math-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--math-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-article-excerpt {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.featured-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    color: #777;
    font-size: 0.9rem;
}

.featured-article-meta span {
    display: flex;
    align-items: center;
}

.featured-article-meta i {
    margin-right: 6px;
    color: var(--math-primary);
}

.featured-article-btn {
    display: inline-flex;
    align-items: center;
    background: var(--math-gradient);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--math-transition);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    align-self: flex-start;
}

.featured-article-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.featured-article-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.featured-article-btn:hover i {
    transform: translateX(5px);
}

/* Math Content Section - Enhanced */
.math-content-section {
    padding: 80px 0;
    background: #f5f7fa;
    position: relative;
}

.math-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.math-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subcategory-btn {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: var(--math-transition);
}

.subcategory-btn:hover, .subcategory-btn.active {
    background: var(--math-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.2);
}

.math-sort {
    display: flex;
    align-items: center;
}

.math-sort label {
    margin-right: 10px;
    color: #555;
    font-size: 0.9rem;
}

.math-sort select {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: var(--math-transition);
}

.math-sort select:focus {
    border-color: var(--math-primary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.math-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.math-article {
    background: var(--math-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--math-shadow);
    transition: var(--math-transition);
    border: var(--math-card-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.math-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.2);
}

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

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

.math-article:hover .article-image img {
    transform: scale(1.08);
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
}

.subcategory-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--math-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--math-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.math-article:hover .article-title {
    color: var(--math-primary);
}

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
    color: var(--math-primary);
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--math-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--math-transition);
    margin-top: auto;
}

.article-read-more:hover {
    color: var(--math-secondary);
}

.article-read-more i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.article-read-more:hover i {
    transform: translateX(5px);
}

.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    background: white;
    border: 2px solid var(--math-primary);
    color: var(--math-primary);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--math-transition);
    display: inline-flex;
    align-items: center;
}

.load-more-btn:hover {
    background: var(--math-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.load-more-btn i {
    margin-left: 8px;
    display: none;
}

.load-more-btn.loading span {
    opacity: 0;
}

.load-more-btn.loading i {
    display: inline-block;
    animation: spin 1s infinite linear;
    opacity: 1;
}

/* Newsletter Section - Enhanced */
.math-newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa, #e8eef2);
    position: relative;
}

.math-newsletter-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--math-shadow);
    overflow: hidden;
    display: flex;
    position: relative;
}

.newsletter-decoration {
    flex: 0 0 40%;
    background: var(--math-gradient);
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-equation {
    position: absolute;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Cambria Math', serif;
    font-weight: 700;
    animation: floatEquation 15s infinite ease-in-out;
}

.eq-1 {
    top: 15%;
    left: 10%;
    font-size: 2rem;
    animation-delay: -2s;
}

.eq-2 {
    top: 60%;
    left: 20%;
    font-size: 1.8rem;
    animation-delay: -5s;
}

.eq-3 {
    top: 30%;
    right: 15%;
    font-size: 2.2rem;
    animation-delay: -8s;
}

.eq-4 {
    bottom: 20%;
    right: 25%;
    font-size: 1.9rem;
    animation-delay: -11s;
}

.eq-5 {
    bottom: 40%;
    left: 30%;
    font-size: 1.7rem;
    animation-delay: -14s;
}

.newsletter-content {
    flex: 0 0 60%;
    padding: 50px;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--math-dark);
    margin-bottom: 15px;
}

.newsletter-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 15px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
    transition: var(--math-transition);
}

.newsletter-form input:focus {
    border-color: var(--math-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.subscribe-btn {
    background: var(--math-gradient);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 30px 30px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--math-transition);
    display: flex;
    align-items: center;
}

.subscribe-btn:hover {
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.subscribe-btn i {
    margin-left: 8px;
}

.form-info {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
}

.form-info i {
    margin-right: 6px;
    color: var(--math-primary);
}

/* Resources Section - Enhanced */
.math-resources-section {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--math-dark);
    text-align: center;
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.resource-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--math-shadow);
    transition: var(--math-transition);
    border: var(--math-card-border);
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.2);
}

.resource-icon {
    width: 70px;
    height: 70px;
    background: var(--math-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--math-transition);
}

.resource-card:hover .resource-icon {
    transform: scale(1.1);
}

.resource-icon i {
    color: white;
    font-size: 1.8rem;
}

.resource-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--math-dark);
    margin-bottom: 15px;
}

.resource-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    color: var(--math-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--math-transition);
}

.resource-link:hover {
    color: var(--math-secondary);
}

.resource-link i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.resource-link:hover i {
    transform: translateX(5px);
}

/* Footer - Enhanced */
.math-footer {
    background: var(--math-dark);
    padding: 40px 0;
    color: white;
}

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

.footer-back-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--math-transition);
}

.footer-back-link:hover {
    color: white;
}

.footer-back-link i {
    margin-right: 8px;
}

.footer-info p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations - Enhanced */
@keyframes particleMove {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(20px);
    }
    75% {
        transform: translateY(20px) translateX(10px);
    }
}

@keyframes floatFormula {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
        opacity: 0.8;
    }
}

@keyframes floatEquation {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-10px) rotate(3deg);
        opacity: 0.3;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(52, 152, 219, 0.8);
    }
}

/* Responsive Styles - Enhanced */
@media (max-width: 1200px) {
    .math-featured-article {
        flex-direction: column;
    }
    
    .featured-article-image, .featured-article-content {
        flex: 0 0 100%;
    }
    
    .featured-article-image {
        height: 300px;
    }
    
    .math-newsletter-container {
        flex-direction: column;
    }
    
    .newsletter-decoration, .newsletter-content {
        flex: 0 0 100%;
    }
    
    .newsletter-decoration {
        padding: 30px;
        min-height: 200px;
    }
}

@media (max-width: 992px) {
    .math-title {
        font-size: 3rem;
    }
    
    .math-stats {
        gap: 20px;
    }
    
    .math-filter-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .math-subcategories {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .math-header {
        min-height: 500px;
        padding: 60px 0 40px;
    }
    
    .math-title-container {
        flex-direction: column;
    }
    
    .math-category-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .math-title {
        font-size: 2.5rem;
    }
    
    .math-description {
        font-size: 1.1rem;
    }
    
    .math-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .math-stat {
        flex: 0 0 calc(50% - 15px);
    }
    
    .featured-article-title {
        font-size: 1.8rem;
    }
    
    .featured-article-content {
        padding: 30px;
    }
    
    .math-articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .newsletter-content {
        padding: 30px;
    }
    
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .math-title-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .math-title {
        font-size: 2.2rem;
    }
    
    .math-stat {
        flex: 0 0 100%;
    }
    
    .featured-article-image {
        height: 220px;
    }
    
    .featured-article-content {
        padding: 25px;
    }
    
    .featured-article-title {
        font-size: 1.5rem;
    }
    
    .featured-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .math-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .subscribe-btn {
        border-radius: 30px;
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Styles - Enhanced */
.dark-mode {
    background-color: #121212;
}

.dark-mode .math-header {
    background: #0a0a0a;
}

.dark-mode .math-header-bg {
    background: linear-gradient(135deg, #121212, #0a0a0a);
}

.dark-mode .math-particles {
    background-image: 
        radial-gradient(circle at 25% 30%, rgba(52, 152, 219, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 60%, rgba(155, 89, 182, 0.08) 0%, transparent 50%);
}

.dark-mode .math-title {
    background: var(--math-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode .math-description {
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .stat-label {
    color: rgba(255, 255, 255, 0.6);
}

.dark-mode .math-featured-section,
.dark-mode .math-content-section,
.dark-mode .math-newsletter-section,
.dark-mode .math-resources-section {
    background: #121212;
}

.dark-mode .math-featured-article,
.dark-mode .math-article,
.dark-mode .resource-card {
    background: #1e1e1e;
    border-color: rgba(52, 152, 219, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-mode .featured-article-title,
.dark-mode .article-title,
.dark-mode .resource-title,
.dark-mode .section-title,
.dark-mode .newsletter-title {
    color: #e0e0e0;
}

.dark-mode .featured-article-excerpt,
.dark-mode .article-excerpt,
.dark-mode .resource-description,
.dark-mode .section-description,
.dark-mode .newsletter-description {
    color: #aaa;
}

.dark-mode .math-filter-bar {
    background: #1e1e1e;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode .subcategory-btn {
    border-color: #333;
    color: #aaa;
}

.dark-mode .math-sort select {
    background: #1e1e1e;
    border-color: #333;
    color: #aaa;
}

.dark-mode .math-newsletter-container {
    background: #1e1e1e;
}

.dark-mode .newsletter-form input {
    background: #2a2a2a;
    border-color: #333;
    color: #e0e0e0;
}

.dark-mode .form-info {
    color: #888;
}

.dark-mode .floating-equation {
    color: rgba(255, 255, 255, 0.1);
}

.dark-mode .back-to-blog {
    color: rgba(255, 255, 255, 0.6);
}

.dark-mode .load-more-btn {
    background: #1e1e1e;
    color: var(--math-primary);
}