:root {
    /* Colors */
    --primary-color: #1a1a2e;
    --accent-color: #C0392B;
    --accent-rgb: 192, 57, 43;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e9ecef;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-light: #95a5a6;
    --bg-light: #f8f9fa;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Card Tokens */
    --card-radius: 16px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    --card-bg: #ffffff;
    --transition-curve: cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-theme="dark"] {
    --primary-color: #ffffff;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-color: #0f0f1a;
    --bg-secondary: #161625;
    --border-color: #2a2a3a;
    --glass-bg: rgba(15, 15, 26, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
    --card-bg: #161625;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --text-light: #7f8c8d;
    --bg-light: #161625;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Header & Nav */
/* Header / Navbar */
.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s var(--transition-curve);
}

.reading-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-color);
    width: 0%;
    z-index: 1002;
    transition: width 0.1s;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

/* Reset flex on desktop */
@media (min-width: 901px) {
    .logo-area {
        flex: 0 0 auto;
    }
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.brand:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.footer-brand .logo-img {
    height: 50px;
    margin-bottom: 1rem;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--transition-curve);
    letter-spacing: 0.02em;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s var(--transition-curve);
}

.nav-item:hover {
    color: var(--accent-color);
    opacity: 1;
}

.nav-item.active {
    color: var(--accent-color);
    opacity: 1;
}

.nav-item:hover::after,
.nav-item.active::after,
.dropdown-btn:hover::after {
    width: 100%;
}

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

.dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0.5rem 0;
    position: relative;
}

.arrow-down {
    display: inline-block;
    margin-left: 0.3rem;
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.dropdown:hover .arrow-down {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 220px;
    box-shadow: var(--card-shadow);
    z-index: 1001;
    top: 100%;
    left: -20px;
    padding: 1rem 0;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-top: 1rem;
    animation: slideDown 0.4s var(--transition-curve);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    color: var(--text-color);
    opacity: 0.9;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: all 0.2s;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.2s;
}

.dropdown-item:hover {
    background: rgba(var(--accent-rgb), 0.05);
    color: var(--accent-color);
    padding-left: 25px;
    opacity: 1;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.btn-subscribe {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 50px;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.4);
    background: var(--primary-color);
}

/* Search Button */
.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
    color: #fff;
}

.search-trigger {
    position: relative;
}


/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
}

/* Sections */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Carousel */
.carousel-container {
    position: relative;
    height: 600px;
    /* Slightly taller for grandeur */
    overflow: hidden;
    border-radius: 16px;
    /* Smoother corners */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth bezier slide */
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Hero Content overrides for Carousel */
/* Hero Content overrides for Carousel */
.carousel-slide .hero-large {
    height: 100%;
    display: block;
    /* Removing grid for absolute positioning layout in carousel */
    padding: 0;
    position: relative;
}

.detail-image {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 3rem;
    border-radius: 8px;
    /* Smooth corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 10s ease-out;
    /* Slow Ken Burns effect */
}

.carousel-slide.active .hero-bg {
    transform: scale(1.1);
}

.hero-text {
    position: absolute;
    bottom: 3rem;
    left: 2rem;
    right: 2rem;
    width: auto;
    max-width: 700px;
    padding: 2.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (min-width: 901px) {
    .hero-text {
        bottom: 4rem;
        left: 4rem;
        padding: 3rem;
    }
}

/* Text Animations */
.hero-text .category-tag,
.hero-text .hero-title,
.hero-text .hero-subtitle,
.hero-text .card-meta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Added shadow for all text */
}

.carousel-slide.active .hero-text .category-tag {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.carousel-slide.active .hero-text .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    /* Stronger shadow for title */
}

.carousel-slide.active .hero-text .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
    color: rgba(255, 255, 255, 0.95);
    /* Brighter subtitle */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.carousel-slide.active .hero-text .card-meta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
    color: rgba(255, 255, 255, 0.7);
}

.carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    gap: 0.75rem;
    z-index: 3;
}

.indicator {
    width: 30px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.indicator.active {
    background: #fff;
    width: 60px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Carousel Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
    opacity: 0;
    /* Hidden by default, show on hover */
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }

    .hero-text {
        padding: 1.5rem;
        bottom: 2rem;
        left: 1rem;
        right: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .carousel-container {
        height: 450px;
    }
}

/* Generic Hero (for single article view) & Home Hero */
.hero-section {
    margin-bottom: 4rem;
}

.hero-large {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--bg-light);
    padding: 2rem;
    /* Optional: adds framing */
}

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 500px;
    /* Fixed height for consistency */
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-bg {
    transform: scale(1.03);
}

.hero-text {
    padding: 2rem;
}

.category-tag {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0 0 1rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0 0 2rem;
    max-width: 600px;
}

.link-reset {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Detail Page specific */
.category-tag-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.category-tag-link:hover {
    border-color: var(--primary-color);
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.detail-subtitle {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 1.5rem;
}

.detail-meta {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.detail-figure {
    margin: 0 0 3rem 0;
}

.detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

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

.separator {
    margin: 0 0.5rem;
}

/* Make the first item span 2 columns if desired, or keep uniform */
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.news-card:hover {
    border-bottom-color: var(--primary-color);
}

.card-img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

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

.card-body {
    padding: 0.5rem 0;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.card-excerpt {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Article Detail */
.article-container {
    max-width: 800px;
    margin: 4rem auto;
}

.detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.detail-meta {
    font-family: var(--font-body);
    color: var(--text-light);
    font-size: 1rem;
}

.detail-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
    font-family: 'Georgia', serif;
    /* Or keep Inter if preferred, but Georgia is readable */
}

/* Main Layout (Sidebar + Content) */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 2rem 0;
}

.content-column {
    min-width: 0;
    /* Prevent grid blowout */
}

/* Category Sections */
.category-block {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

/* Page Header (for Category/Detail pages) */
.category-page-header {
    text-align: center;
    padding: 6rem 0;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    margin-left: -2rem;
    /* Break out of container padding */
    margin-right: -2rem;
    width: calc(100% + 4rem);
}

.category-page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin: 0;
    color: var(--primary-color);
}

.see-all {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.see-all:hover {
    color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.mini-card {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 420px;
    overflow: hidden;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.4s var(--transition-curve);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mini-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-color);
}

.mini-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    margin: 0;
    border-radius: 0;
}

.mini-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    color: #fff;
    transition: all 0.5s var(--transition-curve);
    transform: translateY(10px);
    opacity: 0.95;
}

.mini-card:hover .mini-card-body {
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.mini-card:hover .bg-img {
    transform: scale(1.1);
}

.mini-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mini-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.read-more {
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.3s var(--transition-curve);
}

.mini-card:hover .read-more {
    transform: translateX(4px);
}

.bg-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mini-card:hover .bg-img {
    transform: scale(1.08);
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 4rem 0;
}

/* Layout B: List View */
.category-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1200px) {
    .category-list {
        grid-template-columns: 1fr 1fr;
    }
}

.list-card {
    background: var(--bg-color);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--transition-curve);
    overflow: hidden;
}

.list-card:hover {
    transform: translateX(8px);
    border-color: var(--accent-color);
    box-shadow: var(--card-shadow);
}

.list-card-link {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem;
}

.list-card-img {
    width: 160px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.list-card-body {
    flex: 1;
}

.list-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    transition: color 0.2s;
    color: var(--text-color);
}

.list-card:hover .list-card-title {
    color: var(--accent-color);
}

.list-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0 0.75rem 0.5rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card-date {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

/* Layout C: Hero Mix */
.category-hero-mix {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.hero-card {
    display: flex;
    flex-direction: column;
}

.hero-card-img {
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: var(--card-radius);
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.hero-card:hover .hero-card-img {
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-color);
}

.hero-card:hover .bg-img {
    transform: scale(1.05);
}

.hero-card-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    transition: color 0.2s;
}

.hero-card:hover .hero-card-title {
    color: var(--accent-color);
}

.hero-card-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.side-card {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.side-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.side-card-link {
    display: flex;
    flex-direction: column;
}

.side-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    transition: color 0.2s;
}

.side-card:hover .side-card-title {
    color: var(--accent-color);
}

.side-card-date {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
}

/* --- Article Detail Page --- */
.article-container {
    max-width: 900px;
    margin: 0 auto;
}

.detail-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.category-tag-link {
    display: inline-block;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.category-tag-link:hover {
    color: var(--primary-color);
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.1;
    color: var(--primary-color);
    margin: 0 0 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.detail-subtitle {
    font-size: 1.35rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.detail-meta .author {
    color: var(--text-color);
}

.detail-figure {
    margin: 0 0 4rem;
    width: 100%;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.detail-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--transition-curve);
}

.detail-figure:hover .detail-image {
    transform: scale(1.02);
}

.detail-content {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.detail-content p {
    margin-bottom: 2rem;
}

.detail-content h2,
.detail-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin: 3.5rem 0 1.5rem;
    line-height: 1.3;
}

.detail-content blockquote {
    padding: 2.5rem;
    margin: 3.5rem 0;
    background: var(--bg-light);
    border-left: 5px solid var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    position: relative;
}

/* Glassmorphic Sidebar Widgets */
.sidebar-widget {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    width: auto;
}

.newsletter-widget {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.05), rgba(26, 26, 46, 0.1));
    text-align: left;
}

.newsletter-form input {
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

.newsletter-form input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-item {
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 1rem;
    transition: all 0.3s var(--transition-curve);
}

/* Redesigned Sidebar Trending Styles */
.trending-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--primary-color);
    line-height: 1;
    font-weight: 800;
    position: absolute;
    left: -0.5rem;
    top: -1.5rem;
    z-index: 0;
    opacity: 0.08;
    user-select: none;
    pointer-events: none;
}

.trending-link {
    display: flex;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
    align-items: center;
    padding: 0.5rem;
    margin-left: -0.5rem;
    border-radius: 12px;
    transition: all 0.3s var(--transition-curve);
}

.trending-link:hover {
    background: rgba(var(--accent-rgb), 0.05);
    transform: translateX(5px);
}

.trending-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background-color: var(--bg-secondary);
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.trending-thumb .bg-img {
    transition: transform 0.3s ease;
}

.trending-link:hover .trending-thumb .bg-img {
    transform: scale(1.1);
}

.trending-info {
    flex: 1;
}

.trend-category {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.trending-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-link:hover .trending-title {
    color: var(--accent-color);
}

.newsletter-widget {
    background: var(--bg-light);
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.newsletter-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 0.95rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.page-link.prev,
.page-link.next {
    padding: 0 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Updated Sidebar Widget */
.sticky-widget {
    position: sticky;
    top: 2rem;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--card-shadow);
    border-radius: 20px;
}

.full-width {
    width: 100%;
}

/* New Footer */
/* Footer */
.main-footer {
    background: #0f0f1b;
    /* Deep Charcoal/Navy */
    color: #fff;
    margin-top: 8rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-top {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-col-brand {
    padding-right: 2rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 0 0 1rem;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a8dadc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.4s var(--transition-curve);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(8px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-col-newsletter .footer-desc {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.footer-input-group {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.footer-input-group:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.footer-form input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border: none;
    background: transparent;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.footer-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-form input:focus {
    outline: none;
}

.footer-form button {
    padding: 0.85rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 50px 50px 0;
}

.footer-form button:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.footer-form button svg {
    transition: transform 0.3s;
}

.footer-form button:hover svg {
    transform: translateX(3px);
}

.footer-bottom {
    padding: 2rem 0;
}

.footer-bottom-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--accent-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
}

.btn-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.btn-icon-link:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: translateY(-2px);
}

.nav-auth-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.search-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-trigger:hover {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
    opacity: 1;
    transform: translateY(-2px);
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.user-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.user-menu:hover .user-menu-avatar {
    border-color: var(--accent-color);
}

.user-menu-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.user-menu.active .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.user-menu-dropdown a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
}

.user-menu-dropdown a:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.user-menu-dropdown a:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.3);
}


/* Responsive */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .carousel-container {
        height: 450px;
    }

    .hero-text {
        width: 100%;
        left: 0;
        transform: none;
        padding: 2rem;
        align-items: center;
        text-align: center;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
    }

    .hero-overlay {
        display: none;
        /* Let the text background handle it */
    }

    .carousel-indicators {
        bottom: 1.5rem;
        /* Kept centered by default styles now */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 0 1rem;
    }

    .main-nav {
        display: none;
        /* Simplification */
    }

    .category-grid,
    .category-list,
    .category-hero-mix {
        grid-template-columns: 1fr;
    }

    .hero-card-img {
        height: 250px;
    }

    .list-card-link {
        align-items: flex-start;
    }

    .list-card-img {
        width: 100px;
        height: 80px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-col-brand {
        padding-right: 0;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

/* Comments Styles */
.comments-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 2px solid var(--border-color);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3rem;
}

.comments-header .section-title {
    margin: 0;
    border: none;
    font-size: 2rem;
}

.comment {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.comment-content {
    flex: 1;
}

.comment:last-child {
    border-bottom: 1px solid var(--border-color);
    /* Restore default border */
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    align-items: baseline;
}

.comment-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.comment-form-container {
    background: var(--card-bg);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-top: 4rem;
    box-shadow: var(--card-shadow);
}

.comment-form p {
    margin-bottom: 1.5rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-light);
    transition: all 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-color);
}

.comment-form textarea {
    resize: vertical;
}

.form-title {
    margin-bottom: 2.5rem;
    border: none;
    font-size: 1.6rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.empty-comments {
    color: var(--text-light);
    text-align: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 16px;
    font-style: italic;
    border: 1px solid var(--border-color);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #c3e6cb;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.arrow-down {
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

.btn-outline-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: 1.5px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-pill:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.02);
    transform: translateY(-2px);
}

.btn-outline-pill.saved {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #fff;
}

.btn-outline-pill.accent {
    border-color: rgba(var(--accent-rgb), 0.3);
    color: var(--accent-color);
}

/* AI Summary Card */
.ai-summary-card {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.ai-summary-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.ai-summary-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.ai-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-summary-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
    animation: fadeInSlide 0.5s ease-out forwards;
}

.ai-summary-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
}

/* Shimmer Loading State */
.ai-loading-state {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shimmer-line {
    height: 1rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(var(--accent-rgb), 0.3);
}

/* Documentary Light Theme Experience */
.doc-page-layout {
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    padding-bottom: 5rem;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.doc-cinema-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.cinematic-header {
    text-align: center;
    border-bottom: none;
    padding-top: 5rem;
    margin-bottom: 4rem;
}

.cinematic-header .page-title {
    color: var(--primary-color);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.cinematic-header .page-subtitle {
    color: var(--text-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

.doc-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s var(--transition-curve);
    position: relative;
    box-shadow: var(--card-shadow);
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.doc-thumb {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 */
    overflow: hidden;
}

.doc-thumb .bg-img {
    transition: transform 0.6s var(--transition-curve);
}

.doc-card:hover .bg-img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s var(--transition-curve);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.doc-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.play-overlay svg {
    margin-left: 4px;
    /* Optical centering */
    fill: var(--accent-color);
}

.doc-card-body {
    padding: 1.75rem;
}

.doc-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    line-height: 1.35;
    color: var(--primary-color);
    transition: color 0.3s;
}

.doc-card:hover .doc-card-title {
    color: var(--accent-color);
}

.doc-card .doc-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.doc-detail-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.doc-detail-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 500;
}

.doc-detail-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 800px;
    margin-bottom: 4rem;
}

.doc-info-container {
    margin-bottom: 4rem;
}

.meta-sep {
    opacity: 0.3;
    font-weight: 300;
}

.doc-author {
    color: var(--accent-color);
    font-weight: 700;
}

.doc-actions-row {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1rem;
}

/* Dark Mode Comments */
.doc-comments-section {
    border-top: 1px solid #333;
    padding-top: 3rem;
}

.doc-comment {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #eee;
}

.doc-comment .comment-author {
    color: var(--accent-color);
    /* Pop of color in dark mode */
}

.doc-comment .comment-body {
    color: #ccc;
}

.doc-comment .comment-avatar {
    background: #2a2a2a;
    border-color: #444;
    color: var(--accent-color);
}

.doc-form-container {
    background: #1a1a1a;
    border: 1px solid #333;
}

.doc-form-container .comment-form input,
.doc-form-container .comment-form textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

.doc-form-container .comment-form input:focus,
.doc-form-container .comment-form textarea:focus {
    background: #333;
    border-color: var(--accent-color);
}

.text-white {
    color: #fff;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

/* Doc Nav Styles */
.doc-nav {
    margin-bottom: 1.5rem;
}

.doc-back-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.doc-back-link:hover {
    color: var(--accent-color);
}

/* Restored Card Overlay Style */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4) 50%, transparent);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Ad Blocks */
.ad-block {
    background: #f4f4f4;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.ad-sidebar {
    height: 250px;
    width: 100%;
}

.ad-banner {
    height: 120px;
    width: 100%;
    margin: 3rem 0;
}

.ad-label {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.6rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    color: #666;
}

.doc-page .ad-block {
    background: #1a1a1a;
    border-color: #333;
    color: #444;
}

.doc-page .ad-label {
    background: rgba(255, 255, 255, 0.05);
    color: #555;
}

/* Premium Form Styles */
.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
    background: var(--bg-secondary);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Button Hover Enhancement */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

/* Documentary List Page Styles */
.doc-page {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

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

.doc-card:hover .bg-img {
    transform: scale(1.05);
}

.doc-card:hover .play-overlay {
    background: #cc0000;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Updated Doc Card Hover */
.doc-card:hover .play-overlay {
    background: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}


/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 40px;
    height: 40px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.mobile-toggle span:nth-child(1) {
    top: 12px;
}

.mobile-toggle span:nth-child(2) {
    top: 19px;
}

.mobile-toggle span:nth-child(3) {
    top: 26px;
}

/* Active state (X) */
.mobile-toggle.active span:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-color);
        display: flex;
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s var(--transition-curve);
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.active {
        transform: translateX(0);
        opacity: 1;
    }

    .main-nav .nav-item {
        width: 100%;
        padding: 1.25rem 2rem;
        border-bottom: 1px solid var(--border-color-light);
        text-align: left;
    }

    .header-actions {
        display: flex;
        /* Ensure actions are visible to show hamburger */
    }

    /* Dropdown inside Mobile Menu */
    .dropdown {
        width: 100%;
        display: block;
    }

    .dropdown-btn {
        width: 100%;
        text-align: left;
        padding: 1.25rem 2rem;
        border-bottom: 1px solid var(--border-color-light);
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
        background: var(--bg-secondary);
        display: none;
        padding-left: 1rem;
        /* Indent for hierarchy */
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .mobile-auth-section {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border-color);
    }

    .mobile-join-btn {
        background: var(--accent-color) !important;
        color: #fff !important;
        justify-content: center;
        border-radius: 8px;
    }

    .auth-links,
    .user-menu {
        display: none !important;
    }
}

/* Desktop styles for mobile sections */
@media (min-width: 901px) {
    .mobile-auth-section {
        display: none;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-modal.active {
    display: flex;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.search-modal-content {
    position: relative;
    z-index: 10000;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.3s ease-out;
}

.search-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.search-modal-close:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

.search-modal-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.search-modal-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
    background: var(--bg-secondary);
}

.search-modal-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
}

.search-modal-submit {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-modal-submit:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .search-modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .search-modal-form {
        flex-direction: column;
    }

    .search-modal-submit {
        width: 100%;
    }
}

/* Contact Page Styles */
.contact-page {
    margin-top: 0;
}

.contact-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 5rem 0 4rem;
    text-align: center;
    color: #fff;
}

.contact-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a8dadc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.contact-container {
    margin-top: -3rem;
    margin-bottom: 5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.contact-info-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.contact-detail-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-detail-content p,
.contact-detail-content a {
    color: var(--text-muted);
    line-height: 1.6;
    text-decoration: none;
}

.contact-detail-content a:hover {
    color: var(--accent-color);
}

.contact-social h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-social-links {
    display: flex;
    gap: 1rem;
}

.contact-social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
    text-decoration: none;
}

.contact-social-link:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

.contact-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.contact-form-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-messages {
    margin-bottom: 2rem;
}

.contact-alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.contact-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-hero {
    text-align: center;
    padding: 6rem 1rem 4rem;
    background: radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(var(--primary-rgb), 0.03), transparent);
}

.contact-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 1.5rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
}

.contact-form-group {
    margin-bottom: 2rem;
}

.contact-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.contact-input,
.contact-textarea {
    width: 100%;
    background: rgba(248, 249, 250, 0.5);
    border: 1.5px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.contact-textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

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

.contact-info-widget {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    padding: 2.5rem;
}

.widget-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.contact-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--accent-color);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.social-item {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
    text-decoration: none;
}

.social-item:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary-color);
}

/* ========================================
   RESPONSIVE STYLES - CATEGORY PAGES
   ======================================== */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    .category-page-header {
        padding: 4rem 1.5rem !important;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }

    .page-title {
        font-size: 3rem !important;
    }

    .page-subtitle {
        font-size: 1.1rem !important;
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar-column {
        position: static;
        order: 2;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .mini-card {
        height: 300px;
    }

    .mini-card-title {
        font-size: 1.3rem !important;
    }
}

/* Mobile (600px) */
@media (max-width: 600px) {
    .category-page-header {
        padding: 3rem 1rem !important;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }

    .page-title {
        font-size: 2.5rem !important;
        letter-spacing: -1px !important;
    }

    .page-subtitle {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .mini-card {
        height: 350px;
    }

    .mini-card-title {
        font-size: 1.4rem !important;
    }

    .card-overlay {
        padding: 1.25rem !important;
    }

    .pagination-container {
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 0.85rem;
        padding: 0 0.4rem;
    }

    .page-link.prev,
    .page-link.next {
        padding: 0 0.75rem;
        font-size: 0.8rem;
    }

    .sidebar-widget {
        margin-bottom: 2.5rem;
    }

    .widget-title {
        font-size: 1.2rem;
    }

    .trending-item {
        padding-left: 0;
        margin-bottom: 1.5rem;
    }

    .trending-thumb {
        width: 50px;
        height: 50px;
    }

    .trending-title {
        font-size: 0.95rem;
    }
}

/* Extra small mobile (400px) */
@media (max-width: 400px) {
    .category-page-header {
        padding: 2.5rem 0.75rem !important;
    }

    .page-title {
        font-size: 2rem !important;
    }

    .page-subtitle {
        font-size: 0.9rem !important;
    }

    .mini-card {
        height: 300px;
    }

    .mini-card-title {
        font-size: 1.2rem !important;
    }

    .pagination-container {
        margin-top: 2.5rem;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Responsiveness - Contact */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info-column {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-info-widget {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .contact-card {
        padding: 2rem;
    }

    .contact-info-column {
        flex-direction: column;
    }

    .contact-hero {
        padding-top: 4rem;
    }

    .contact-form>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Social Sharing Buttons */
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-5px) scale(1.1);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.share-btn.facebook:hover {
    background: #4267B2;
    border-color: #4267B2;
}

.share-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}