:root {
    --primary-color: #8B4513; /* SaddleBrown - Cokelat Hangat */
    --secondary-color: #F5F5DC; /* Beige - Krem Lembut */
    --accent-color: #A0522D; /* Sienna - Cokelat Aksen */
    --text-color: #3D2B1F; /* Umber - Teks Cokelat Tua */
    --background-color: #FFF8E7; /* Cosmic Latte - Latar Belakang Krem */
    --text-light: #FFFFFF;
    --border-radius-md: 8px;
    --transition: all 0.3s ease;
}

/*
    Theme Name: Modern Minimal Theme
    Description: A clean, minimal, and sophisticated theme for the Tiny Kingdom Stories website.
    Version: 2.0
    Author: Cascade AI
*/

/*
==============================================
==  1. GLOBAL & RESET STYLES
==============================================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--background-color);
    padding-top: 80px; /* Menyesuaikan padding top karena tinggi header bertambah */
}

.page-container {
    flex: 1 0 auto;
}

.main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}



/*
==============================================
==  2. ROOT VARIABLES (THEME COLORS & FONTS)
==============================================
*/

:root {
    /* Bright Cream Light Gray Theme - Warm & Elegant */
    --primary-color: #8B7355;      /* Warm Brown/Cream - Elegant & Natural */
    --secondary-color: #A0956B;    /* Light Olive Gold - Sophisticated */
    --accent-color: #D4C5A9;       /* Cream Beige - Soft & Inviting */
    --neutral-color: #9B8B7A;      /* Warm Gray - Balanced */
    
    /* Background Colors */
    --background-color: #F8F6F0;   /* Warm Light Gray - Cozy & Clean */
    --card-bg: #FFFFFF;            /* Pure White - Clean */
    --header-bg: #FEFDFB;          /* Cream White - Warm Header */
    --footer-bg: #F8F6F0;   /* Warm Light Gray - Same as page background */
    
    /* Text Colors */
    --text-color: #2D2520;         /* Dark Brown - High Contrast & Warm */
    --text-muted: #6B5D52;         /* Medium Brown - Subtle & Warm */
    --text-light: #FFFFFF;         /* White for dark backgrounds */
    
    /* Warm Gradients */
    --gradient-primary: linear-gradient(135deg, #8B7355 0%, #A0956B 100%);
    --gradient-secondary: linear-gradient(135deg, #D4C5A9 0%, #8B7355 100%);
    --gradient-subtle: linear-gradient(135deg, #F8F6F0 0%, #E8E2D5 100%);
    
    /* Minimal Shadows */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.2s ease-in-out;
    
    /* Border Radius - Minimal */
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

/*
==============================================
==  STORY CARD & FEATURED STYLES
==============================================
*/

.featured-stories .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.featured-stories .section-header-content .section-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.featured-stories .section-header-content .section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

.featured-stories .view-all {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.featured-stories .view-all:hover {
    color: var(--secondary-color);
}



/* Override for popular grid to be a standard wrapping grid, not a carousel */
.popular-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    overflow-x: hidden;
}

.stories-grid::-webkit-scrollbar, .stories-carousel::-webkit-scrollbar {
    height: 8px;
}

.stories-grid::-webkit-scrollbar-track, .stories-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.stories-grid::-webkit-scrollbar-thumb, .stories-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.stories-grid::-webkit-scrollbar-thumb:hover, .stories-carousel::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

story-card {
    display: block; /* Ensures the custom element behaves like a block */
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover, 0 8px 20px rgba(0, 0, 0, 0.12));
}

.story-card {
    background-color: #FFFFFF;
    border-radius: var(--border-radius-lg, 12px);
    box-shadow: var(--card-shadow, 0 4px 12px rgba(0, 0, 0, 0.08));
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.story-card .story-title {
    color: var(--text-color, #2D2520);
}

.story-card .story-excerpt {
    color: var(--text-secondary, #5a6578);
}

.story-card .category-tag {
    background-color: var(--primary-color, #8B7355);
    color: var(--text-light, #FFFFFF);
}

/* Mengganti warna hijau pada progress bar */
.story-card .progress-bar .progress {
    background-color: var(--primary-color, #8B7355);
}

/* Mengganti warna biru pada link Read More */
.story-card .read-more {
    color: var(--text-secondary, #5a6578);
    font-weight: 600;
    text-decoration: none;
}

.story-card .read-more:hover {
    color: var(--primary-color, #8B7355);
}

/*
==============================================
==  FOOTER STYLES
==============================================
*/
.footer {
    background: var(--footer-bg, #F8F6F0);
    color: var(--primary-color, #8B7355);
    padding: 3rem 0 0 0;
    margin-top: auto; /* Push footer to the bottom */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-about, .footer-links, .footer-social {
    flex: 1;
    min-width: 250px;
}

.footer h3, .footer h4 {
    color: #2D2520; 
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer p {
    color: var(--text-color, #2D2520);
    line-height: 1.7;
}

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

.footer-links ul li a {
    color: var(--text-color, #2D2520);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.4rem 0;
}

.footer-links ul li a:hover {
    color: var(--primary-color); /* Use primary color for hover */
    transform: translateX(5px);
}

.social-icons a {
    color: var(--text-light, #FFFFFF);
    font-size: 1.2rem;
    margin-right: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #E8E2D5; /* Subtle separator */
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Aturan Super Spesifik untuk Tombol Subscribe */
.footer .footer-content .footer-newsletter form.newsletter-form button.btn-primary {
    background-color: var(--primary-color, #8B7355) !important;
    color: var(--text-light, #FFFFFF) !important; /* Memaksa warna teks menjadi putih */
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-md, 8px);
    cursor: pointer;
    transition: var(--transition);
}

.footer .footer-content .footer-newsletter form.newsletter-form button.btn-primary:hover {
    background-color: var(--secondary-color, #A0956B) !important;
}

/*
==============================================
==  1. HERO SECTION
==============================================
*/
.full-width-hero {
    width: 100%;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    margin-top: -80px; /* Menyesuaikan margin karena tinggi header bertambah */
}

.home-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: calc(100vh - 70px); /* Mengurangi tinggi header */
    width: 100%;
    overflow: hidden;
    background-color: #f0f4f8;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.85) 0%, rgba(243, 244, 246, 0.75) 100%); /* Consistent light overlay */
    z-index: 2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.categories-preview,
.recently-added,
.video-showcase,
.featured-stories,
.footer-content {
    padding: 0 30px;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; /* REMOVED horizontal padding that caused imbalance */
    box-sizing: border-box;
}

.hero-content {
    display: flex;
    justify-content: center; /* Memusatkan item secara horizontal */
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 4;
    width: 100%; /* Memastikan kontainer mengisi ruang */
    text-align: center; /* Force center alignment */
}

.hero-text {
    flex: 1;
    max-width: 600px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    text-align: center; /* Force center alignment */
}

.hero-subtitle {
    display: block !important;
    font-size: 1.3rem !important;
    color: #fff !important;
    margin: 0 0 10px 0 !important;
    font-weight: 500 !important;
    text-align: center !important; /* Force center alignment */
    padding: 0 !important;
    background: none !important;
    backdrop-filter: none !important;
    position: static !important;
}

.hero-subtitle::before,
.hero-subtitle::after {
    display: none !important;
    content: none !important;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #1f2937; /* Dark Gray */
    text-align: center; /* Force center alignment */
    text-transform: none;
    letter-spacing: -0.5px;
    text-shadow: none;
    display: block;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #4b5563; /* Medium Gray */
    max-width: 100%;
    font-weight: 400;
    text-align: center; /* Force center alignment */
}

.hero-buttons {
    display: flex !important;
    justify-content: center !important; /* This centers the buttons inside */
    width: 100% !important; /* Ensure the button container spans its parent */
    gap: 20px !important;
    margin-top: 30px !important;
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

.hero-buttons .btn-primary {
    background: var(--primary-color) !important; /* Cokelat Hangat */
    color: var(--text-light) !important;
    border: none !important;
}

.hero-buttons .btn-primary:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.hero-buttons .btn-secondary {
    background: var(--secondary-color) !important; /* Krem Lembut */
    color: var(--text-color) !important; /* Teks Cokelat Tua untuk Kontras */
    border: 2px solid var(--primary-color) !important; /* Border Cokelat Hangat */
}

.hero-buttons .btn-secondary:hover {
    background: var(--primary-color) !important;
    color: var(--text-light) !important;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-image {
    flex: 1;
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-image .mascot {
    max-width: 90%;
    height: auto;
    max-height: 450px;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: right center;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 100px 0;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}
/*
==============================================
==  3. HEADER & NAVIGATION
==============================================
*/

/* Header & Navigation */
.header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.3s ease;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease-in-out;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        color: white;
        cursor: pointer;
        z-index: 1001;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.9);
        padding: 80px 20px 20px;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 300px;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 20px;
        color: white;
        font-size: 1.2rem;
        text-align: center;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .main-nav a:hover,
    .main-nav a.active {
        background: var(--primary-color);
        color: white;
    }
    
    .header .container {
        padding: 0 15px;
        justify-content: space-between;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/*
==============================================
==  4. FEATURED STORIES SECTION
==============================================
*/

.featured-stories {
    padding-top: 5rem; /* Adds space above the section */
    padding-bottom: 5rem; /* Adds space below the section */
}

/* Universal Hero Overlay Fix for Sub-Pages */
.library-hero,
.story-hero,
.contact-hero {
    background-color: transparent !important; /* Remove old blue background */
}

.library-hero .hero-overlay,
.story-hero .hero-overlay,
.contact-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.85) 0%, rgba(243, 244, 246, 0.75) 100%) !important; /* Apply new cream overlay */
}

/* Featured grid styles */
.featured-stories .featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.featured-stories .featured-grid story-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.featured-stories .featured-grid story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
    .featured-stories .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-stories .featured-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .featured-stories .featured-grid story-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/*
==============================================
==  5. HERO SECTION
==============================================
*/

.hero {
    background: var(--background-color);
    padding: 5rem 0;
    position: relative;
}





.hero .subheadline {
    color: #FFFFFF !important;
    text-shadow: none;
}

.hero .breadcrumb,
.hero .breadcrumb a,
.hero .breadcrumb a:link,
.hero .breadcrumb a:visited {
    text-decoration: none !important; /* Hilangkan underline */
}

.hero .breadcrumb a:hover {
    color: var(--primary-color) !important; /* Gunakan warna primer tema saat hover */
    text-decoration: none !important; /* Tetap tanpa underline saat hover */
    transition: color 0.3s ease !important; /* Smooth transition */
}



/* Story Hero Specific Styles */
.story-hero .hero-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.story-hero .breadcrumb {
    order: -1; /* Move breadcrumbs to the top */
    margin-bottom: 1.5rem;
    width: 100%;
}

.story-hero .breadcrumb,
.story-hero .breadcrumb a {
    color: var(--text-muted) !important;
    text-shadow: none;
}

.story-hero .breadcrumb a:hover {
    color: var(--primary-color) !important;
}

/* Library & Contact Hero Specific Styles */
.library-hero,
.contact-hero {
    min-height: 40vh; /* Ensure enough vertical space */
    display: flex;
    align-items: center;
}

.library-hero .hero-content,
.contact-hero .hero-content {
    width: 100%; /* Ensure content takes full width to center items */
    padding-top: 2rem;
    padding-bottom: 2rem;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Horizontally center content */
    text-align: center;
}

.library-hero .breadcrumb,
.contact-hero .breadcrumb {
    order: -1;
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Ensure heroes with dark backgrounds have white text for readability */
.library-hero,
.contact-hero,
.library-hero .breadcrumb,
.library-hero .breadcrumb a,
.contact-hero .breadcrumb,
.contact-hero .breadcrumb a {
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.library-hero .breadcrumb a:hover,
.contact-hero .breadcrumb a:hover {
    color: var(--secondary-color) !important;
}

.library-hero .hero-buttons,
.contact-hero .hero-buttons {
    text-align: center;
    width: 100%;
}

.library-hero .hero-buttons .btn,
.contact-hero .hero-buttons .btn {
    display: inline-block;
    margin: 0 auto;
}



/*
==============================================
==  CATEGORIES PREVIEW SECTION
==============================================
*/

.categories-preview {
    background: var(--background-color);
    padding: 5rem 0;
    position: relative;
}

.categories-preview .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.categories-preview .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.categories-preview .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.categories-preview .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #E5E7EB;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    background: var(--gradient-secondary);
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.story-count {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design */

/* Full-width Footer Fix */
.footer {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .categories-preview .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/*
==============================================
==  RECENTLY ADDED SECTION
==============================================
*/
.recently-added {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0;

    position: relative;
}

.recently-added .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.recently-added .section-title {
    text-align: center;
    color: var(--text-color);
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 1rem;
}

.recently-added .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/*
==============================================
==  FLOATING ADS
==============================================
*/
.floating-ads {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 0, 26, 0.95);
    border: 1px solid rgba(52, 152, 219, 0.4);
    border-radius: 10px;
    padding: 12px 25px;
    z-index: 1000;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    max-width: 90%;
    text-align: center;
    transition: all 0.3s ease;
}

.floating-ads:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.floating-ads .ad-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.floating-ads .ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px; 
    min-width: 320px;
    background: rgba(123, 44, 191, 0.15);
    border-radius: 6px;
    color: #fff;
    padding: 15px;
    font-size: 1.1rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Floating Corner Ad */
.floating-corner-ad {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 0, 26, 0.95);
    border: 1px solid rgba(52, 152, 219, 0.4);
    border-radius: 10px;
    padding: 12px 25px;
    z-index: 1000;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    min-width: 300px;
    text-align: center;
    transition: all 0.3s ease;
    animation: floatUpDown 3s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-corner-ad .ad-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-bottom: 8px;
    display: block;
}

.floating-corner-ad .ad-content {
    min-height: 100px;
    min-width: 200px;
    background: rgba(123, 44, 191, 0.15);
    border-radius: 6px;
    color: #fff;
    padding: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Close button for corner ad */
.close-ad {
    position: absolute;
    top: 5px;
    right: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.close-ad:hover {
    color: #fff;
}

/* Horizontal Ad 1 */
section[style*="background: #f8f9fa"] {
    background: rgba(248, 249, 250, 0.9) !important;
}

/* Horizontal Ad 2 */
section[style*="background: #f8f9fa"] {
    background: rgba(248, 249, 250, 0.9) !important;
}

/*
==============================================
==  SIDEBARS & SIDEBAR ADS
==============================================
*/
.sidebar-ad {
    background: rgba(10, 0, 26, 0.7);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sidebar-ad .ad-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
}

.sidebar-ad .ad-content {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
    color: #fff;
}

/* Left Sidebar */
.left-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: 160px;
    padding: 20px 10px;
    margin-left: 10px;
}

/* Right Sidebar */
.right-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: 160px;
    padding: 20px 10px;
    margin-right: 10px;
}

/* Hide sidebars on mobile */
@media (max-width: 1024px) {
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
}

.page-container {
    flex: 1 0 auto;
    padding: 0 180px; /* Memberi ruang untuk sidebar */
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/*
==============================================
==  RESPONSIVE STYLES
==============================================
*/
@media (max-width: 768px) {
    .popular-categories .category-list li {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .recently-added {
        padding: 3rem 0;
    }
    
    .recently-added .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .floating-ads {
        width: 95%;
        padding: 8px 15px;
    }
    
    .floating-ads .ad-content {
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .popular-categories .category-list li {
        flex: 0 0 100%;
    }
    
    .recently-added {
        padding: 2.5rem 0;
    }
    
    .recently-added .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
}

.popular-categories h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    left: 50%;
    transform: translateX(-50%);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.category-list li {
    margin: 0.5rem;
}

.category-list a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(76, 175, 80, 0.2);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.3);
    font-size: 0.95rem;
}

.category-list a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

@media (max-width: 768px) {
    .popular-categories {
        padding: 2rem 0;
    }
    
    .category-list {
        padding: 0 1rem;
    }
    
    .category-list a {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/*--------------------------------------------------------------
# Contact Form & FAQ
--------------------------------------------------------------*/

/* Contact Info Section */
.sidebar-widget {
    background-color: var(--dark-grey);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.sidebar-widget > h3 {
    color: var(--light-grey);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.contact-item > div h4 {
    margin: 0 0 0.2rem 0;
    color: var(--light-grey);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item > div p,
.contact-item > div a {
    margin: 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-item > div a:hover {
    color: var(--primary);
}

.sidebar-widget .contact-socials {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-widget .contact-socials a {
    color: var(--text-muted);
    margin-right: 1rem;
    font-size: 1.3rem;
}

.sidebar-widget .contact-socials a:hover {
    color: var(--primary);
}

.sidebar-widget p {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.sidebar-widget p strong {
    color: var(--light-grey);
    font-weight: 500;
}

/* Contact Form */
.contact-form-container {
    background-color: var(--dark-grey);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    max-width: 800px;
    margin: 2rem auto;
    border: 1px solid var(--border-color);
}

.contact-form-container h2 {
    text-align: center;
    margin-bottom: 0.5rem; /* Reduced margin */
    color: var(--light-grey);
}

.contact-form-container > p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-grey);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--dark);
    border: 1px solid; /* Define border style first */
    border-color: #2E2E2E; /* A much darker, more subtle border color */
    border-radius: 12px; /* Reduced rounding for a less oval shape */
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a0a0a0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.8em;
    padding-right: 2.5rem;
    background-color: var(--dark);
}

.form-group select option {
    /* We cannot reliably style the option background, so we'll ensure the text is readable */
    background: white;
    color: #000; /* Black text for readability on the default white background */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 230, 109, 0.15);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

/* --- Story Page Slideshow --- */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slide {
    display: none;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
    animation: fadeIn 0.5s;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.story-content .slideshow-container .slideshow-prev,
.story-content .slideshow-container .slideshow-next {
    /* Base Styles */
    appearance: none;
    -webkit-appearance: none;
    
    /* Positioning */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    /* Box Model */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;

    /* Appearance */
    background-color: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    
    /* Interaction */
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease-in-out;
}

.story-content .slideshow-container .slideshow-prev {
    left: 15px;
}

.story-content .slideshow-container .slideshow-next {
    right: 15px;
}

.story-content .slideshow-container .slideshow-prev:hover,
.story-content .slideshow-container .slideshow-next:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.pagination-container .page-number.active {
    background-image: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.pagination-container .page-number:not(.active):hover {
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.slideshow-dots {
    text-align: center;
    padding: 1rem 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--primary);
}

/* --- Story Navigation --- */
.story-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50px; /* Pill-shaped buttons */
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.nav-btn .fas {
    font-size: 0.9em;
}



/* --- Footer Newsletter Form --- */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch; /* Makes items same height */
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    background-color: var(--background-alt);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 1rem;
    min-width: 0; /* Fix for flexbox input shrinking */
    height: auto; /* Ensure padding defines height */
    box-sizing: border-box;
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.newsletter-form .btn {
    padding: 0.75rem 1.5rem;
    height: auto; /* Allow padding to define height */
    flex-shrink: 0; /* Prevent button from shrinking */
    font-size: 1rem;
    line-height: inherit; /* Match input line-height */
}

/* --- Responsive Design & Mobile View --- */
@media (max-width: 768px) {
    /* --- Header & Navigation --- */
    .header .container {
        justify-content: space-between;
    }

    .main-nav {
        display: none; /* Hide nav by default */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        right: 0;
        background-color: var(--background-alt);
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
    }

    .main-nav.active {
        display: flex; /* Show nav when active */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        text-align: center;
        margin: 0;
    }

    .main-nav ul li a {
        padding: 1rem;
        display: block;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block; /* Show hamburger icon */
    }

    /* --- Ad Hiding --- */
    .left-sidebar-ad,
    .right-sidebar-ad {
        display: none !important; /* Force hide vertical ads */
    }

    /* --- Layout Adjustments --- */
    .story-container,
    .library-container {
        grid-template-columns: 1fr; /* Make main content full width */
    }

    .story-content {
        margin: 0 !important;
    }
}

/* --- Custom Audio Player --- */
.audio-player {
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.audio-player h3 {
    margin-top: 0;
}

.audio-player p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-controls .play-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.audio-controls .play-btn:hover {
    background-color: var(--primary-dark);
}

.progress-container {
    flex-grow: 1;
    background-color: var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    height: 10px;
}

.progress-bar {
    background-color: var(--primary);
    width: 0%;
    height: 100%;
    border-radius: 5px;
    transition: width 0.1s linear;
}

.time-display {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 80px; /* Prevent layout shift */
    text-align: center;
}

/* ============================================
   VIDEO SHOWCASE SECTION
   ============================================ */

/* Enhanced Video Showcase Section */
.video-showcase-enhanced {
    padding: 80px 0;
    background: var(--card-bg);
    position: relative;
}

.video-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.video-content {
    padding: 0 20px;
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius-lg);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.video-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.video-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.video-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.video-player {
    padding: 0 20px;
}

.video-showcase-enhanced .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow-hover);
}

.video-showcase-enhanced .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius-md);
}

/* Responsive Video Section */
@media (max-width: 968px) {
    .video-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .video-title {
        font-size: 2rem;
    }
    
    .video-stats {
        justify-content: center;
    }
}

/* ============================================
   RECENTLY ADDED CAROUSEL SECTION
   ============================================ */

.recently-added-carousel {
    padding: 80px 0;
    background: var(--card-bg);
    position: relative;
}

.recently-added-carousel .section-header {
    position: relative;
    margin-bottom: 48px;
}

.carousel-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 12px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--primary-color);
    background: transparent;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stories-carousel {
    overflow: hidden !important; /* Force hide scrollbars, overriding conflicting styles */
    position: relative;
    margin-bottom: 32px;
    -webkit-overflow-scrolling: touch;
}

.carousel-track {
    display: flex;
    gap: 24px;
    /* Transition will be controlled by JavaScript for seamless effect */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
    /* Ensure smooth rendering */
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.carousel-track story-card {
    flex: 0 0 300px;
    max-width: 300px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel-controls {
        position: static;
        justify-content: center;
        margin-top: 16px;
    }
    
    .carousel-track {
        gap: 16px;
        padding: 0 8px;
    }
    
    .carousel-track story-card {
        flex: 0 0 280px;
        max-width: 280px;
    }
}

.video-showcase::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
}

.video-showcase .section-header {
    margin-bottom: 2.5rem;
}

.video-showcase .video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background-color: #000;
}

.video-showcase .video-wrapper {
    position: relative;
    padding-bottom: 50%; /* Adjusted for a wider aspect ratio */
    height: 0;
    overflow: hidden;
}

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

/* Make video container responsive */
@media (max-width: 992px) {
    .video-container {
        max-width: 100%;
        margin: 1.5rem 0;
    }
}

/* Audio Player */
.audio-player {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--card-shadow);
}

.audio-player h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.audio-player p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-controls .play-btn {
    background: var(--primary);
    border: none;
    color: var(--dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.audio-controls .play-btn:hover {
    transform: scale(1.1);
}

.audio-controls .progress-container {
    flex-grow: 1;
    background: var(--dark);
    border-radius: 5px;
    cursor: pointer;
    height: 8px;
}

.audio-controls .progress-bar {
    background: var(--gradient);
    width: 0;
    height: 100%;
    border-radius: 5px;
}

.audio-controls .time-display {
    color: var(--text-muted);
    font-size: 0.9rem;
    min-width: 80px; /* Prevents layout shift */
}


/* --- Ad Placeholders --- */
.ad-placeholder {
    background: var(--card-bg); /* Slightly brighter background */
    border: 1px solid var(--border-color); /* Changed to solid for more definition */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-row .form-group {
    flex: 1;
}

.submit-btn {
    width: 100%;
    padding: 0.9rem;
    background-color: var(--primary);
    color: var(--dark-grey);
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

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

.submit-btn:disabled {
    background-color: var(--grey);
    cursor: not-allowed;
    transform: none;
}

.submit-btn i {
    margin-right: 0.5rem;
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    display: none; /* Hidden by default */
}

.form-status.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.form-status.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/*--------------------------------------------------------------
# Contact Details Section
--------------------------------------------------------------*/
.contact-details-section {
    padding: 0 1rem 4rem 1rem;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-details-grid .sidebar-widget {
    margin-bottom: 0;
}

.contact-details-grid .sidebar-widget p {
    display: flex;
    justify-content: space-between;
}

/* Responsive stacking for smaller screens */
@media (max-width: 768px) {
    .contact-details-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Styles - Centered and Cleaned */
.faq-section {
    padding: 4rem 0;
    max-width: 800px;
    margin: 2rem auto;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--light-grey);
}

.faq-item {
    background-color: var(--dark-grey);
    margin-bottom: 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background-color: transparent;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-grey);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

/* Remove the pseudo-element arrow to prevent duplication */
.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px; /* Adjust as needed */
}

/* END: FAQ Styles */

/* 4. FOOTER
   ============================================ */
.footer {
    background: var(--gradient-primary); /* Beautiful blue to purple gradient */
    color: #ffffff;
    padding: 4rem 0 1rem;
    margin-top: auto; /* Push footer to the bottom */
    position: relative;
    z-index: 10;
    border-top: none; /* Remove border for cleaner gradient look */
    overflow: hidden;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.hero-text {
    flex: 0 0 50%;
    position: relative;
    z-index: 10;
    color: white;
    animation: fadeInUp 1s ease-out;
    text-align: left !important;
    padding: 20px 0 20px 40px;
    order: 2; /* Pastikan teks di sebelah kanan */
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

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

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

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Adjust the space between logo and text */
    margin-bottom: 1rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
    /* margin-bottom: 1rem; */ /* Removed to help with alignment */
}

.footer-logo-container .logo-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1; /* Ensures text height matches font-size */
}

.footer-about p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-links h3,
.footer-newsletter h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    align-items: center; /* Align items vertically */
    max-width: 400px; /* Prevent form from being too wide */
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1.25rem !important; /* Balanced padding for proper height */
    border: 2px solid rgba(255, 255, 255, 0.4) !important; /* More visible white border */
    background: rgba(255, 255, 255, 0.95) !important; /* More opaque white background */
    border-radius: 25px !important; /* Perfect oval shape */
    color: #333333 !important; /* Dark text for white background */
    outline: none;
    transition: var(--transition);
    font-size: 0.9rem;
    height: auto; /* Ensure padding defines height */
    box-sizing: border-box;
}

.newsletter-form input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.6) !important; /* Brighter white border on focus */
    background: rgba(255, 255, 255, 1) !important; /* Fully opaque white on focus */
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3) !important; /* White glow */
}

/* Placeholder text styling */
.newsletter-form input[type="email"]::placeholder {
    color: #666666 !important; /* Gray placeholder text */
    opacity: 0.7;
}

.newsletter-form input[type="email"]::-webkit-input-placeholder {
    color: #666666 !important;
    opacity: 0.7;
}

.newsletter-form input[type="email"]::-moz-placeholder {
    color: #666666 !important;
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* White border for gradient */
    color: #ffffff !important; /* White text for gradient background */
    font-size: 0.9rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2); /* White transparent background */
    color: #ffffff !important; /* White icons for gradient background */
    text-decoration: none !important; /* Remove underline */
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.4); /* Brighter white on hover */
    color: var(--accent-color) !important; /* Accent brown on hover */
    text-decoration: none !important;
    transform: translateY(-3px);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

/* 3. HERO SECTION - DIATUR DI INLINE STYLE */
/* Gaya hero diatur di inline style untuk mengatasi konflik */

/* View All Stories Button */
.load-more {
    text-align: center;
    margin: 2rem 0;
}

.load-more .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    background: var(--gradient-primary); /* FIX: Changed from --gradient to --gradient-primary */
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    border: none;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.load-more .btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.load-more .btn-outline:active {
    transform: translateY(0);
}

.loading-stories {
    text-align: center;
    padding: 2rem 0;
    display: none; /* Sembunyikan loading indicator */
}

.loading-stories p {
    margin-top: 1rem;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 3s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero .video-wrapper {
    position: relative;
    padding-bottom: 50%; /* Adjusted for a wider aspect ratio, e.g., 2:1 */
    height: 0;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero h1 {
    margin-top: 0 !important; /* Force remove top margin */
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

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

.hero-buttons .btn {
    min-width: 150px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

/*
==============================================
   Library Page Carousel Styles
==============================================
*/
.carousel-container {
    position: relative;
    max-width: calc(4 * 280px + 3 * 1.5rem + 100px); /* Viewport + space for buttons */
    margin: 2rem auto;
    padding: 0 50px; /* Creates space for the absolute positioned buttons */
    box-sizing: border-box;
}

.carousel-viewport {
    width: calc(4 * 280px + 3 * 1.5rem); /* Fixed width for exactly 4 cards */
    max-width: 100%;
    overflow: hidden !important; /* This is the key: it creates the 'window' */
    margin: 0 auto;
}

.stories-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease-in-out; /* Animates the slide */
}

.stories-carousel .story-card {
    flex: 0 0 280px; /* Prevents cards from shrinking or growing */
    width: 280px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(37, 99, 235, 0.8); /* Semi-transparent blue */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.carousel-nav:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: translateY(-50%);
    box-shadow: none;
    opacity: 0.5;
}

.prev-nav {
    left: 0;
}

.next-nav {
    right: 0;
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 5rem 0 2rem;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary); /* Same gradient as footer: blue to purple */
    z-index: 1;
}

.hero-content {
    width: 100%;
    max-width: 900px; /* Constrain the width of the content */
    margin: 0 auto; /* Center the content block itself */
    padding: 2rem 0;
    text-align: center; /* Center all text and inline-block elements within */
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #8b7335 !important;
    background: none;
    -webkit-text-fill-color: unset;
}

/* Smaller hero title variant */
.hero h1.hero-title-small {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero .subheadline {
    font-size: 1.35rem;
    color: #b87335 !important;
    margin: 0 auto 3rem;
    max-width: 700px;
    line-height: 1.6;
    opacity: 1;
}

.hero-buttons {
    display: flex;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: none !important;
}

.hero-subtitle::before,
.hero-subtitle::after {
    display: none !important;
    content: none !important;
}

/* Ensure buttons are side by side */
.hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    margin: 20px 0 !important;
    flex-wrap: nowrap !important; /* Changed from wrap to nowrap */
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Make sure buttons don't wrap */
.hero-buttons .btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Force horizontal layout on all screens */
@media (max-width: 9999px) {
    .hero-buttons {
        flex-direction: row !important;
    }
}

/* Mascot image styling */
.hero-image {
    flex: 0 0 50%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px 0;
    position: relative;
    z-index: 5;
    order: 1;
    margin-right: 0; /* Reset margin kanan */
    margin-left: -120px; /* Geser lebih banyak ke kiri */
    padding-left: 0; /* Hilangkan padding kiri */
}

.hero-image .mascot {
    max-width: 140%; /* Lebih lebar */
    height: auto;
    max-height: 550px; /* Lebih tinggi */
    object-fit: contain;
    margin-left: -120px; /* Geser lebih banyak ke kiri */
    object-position: left bottom;
    transform-origin: left bottom;
    transition: transform 0.3s ease;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}

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

/* Adjust layout for larger screens */
@media (min-width: 1200px) {
    .hero-content {
        align-items: center;
    }
    
    .hero-text {
        padding-left: 5%; /* More padding on larger screens */
    }
    
    .hero-image .mascot {
        max-height: 600px !important;
        margin-right: -100px;
    }
}

/* Remove any conflicting styles */
.hero-subtitle::before {
    display: none !important;
    content: none !important;
}

.hero-subtitle::after {
    right: 0;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    color: #fff;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: #8b7335 !important;
    max-width: 600px;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.hero .btn i {
    margin-right: 10px;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}



.hero .btn-secondary:hover i {
    transform: translateX(2px);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero {
        height: 75vh;
        min-height: 550px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        max-width: 550px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
        text-align: center;
    }
    
    .hero-container {
        padding: 0 1rem;
        justify-content: center;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-overlay {
        background: linear-gradient(135deg, rgba(249, 250, 251, 0.85) 0%, rgba(243, 244, 246, 0.75) 100%); /* Consistent light overlay */
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap; /* Allow buttons to wrap on very small screens */
        gap: 15px;
    }

    .hero .btn {
        width: auto; /* Allow button to size to its content */
        flex-grow: 0; /* Prevent buttons from growing to fill space */
        margin-bottom: 10px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 65vh;
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle::before {
        width: 8px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Remove duplicate styles - they are handled above */

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-5px);
}

/* Library & Contact Hero Section */


.library-hero,
.contact-hero,
.story-hero {
    height: 40vh; /* Reduced height for internal pages */
    min-height: 350px; /* Set a minimum height */
}

.library-hero .hero-overlay,
.contact-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(139, 92, 246, 0.8) 100%); /* Blue to purple gradient overlay */
}

.story-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.9) 0%, rgba(243, 244, 246, 0.8) 100%); /* Light theme overlay */
}

/* Homepage Audio Player */
.audio-player-home {
    background: var(--gradient-subtle);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-top: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.audio-player-home .audio-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.audio-player-home .audio-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ==============================================
   VIDEO SHOWCASE STYLES
   ============================================== */
.video-showcase {
    padding: 60px 0;
    background-color: #f9f9ff;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 900px;
    margin: 0 auto;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    cursor: pointer;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover img {
    opacity: 0.9;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.play-button i {
    color: #6e8efb;
    font-size: 2rem;
    margin-left: 5px;
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-info {
    padding: 25px 30px;
}

.video-title {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: #333;
}

.video-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.video-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.9rem;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==============================================
   STORY CARDS STYLES
   ============================================== */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.story-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.story-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.story-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(110, 142, 251, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.1);
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
    border-radius: 0 2px 2px 0;
    transition: width 0.5s ease;
}

.story-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.story-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    flex: 1;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.favorites {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 0.9rem;
}

.favorites i {
    color: #ff6b6b;
}

.read-more {
    color: #6e8efb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #a777e3;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 40px;
        max-width: 600px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .video-info {
        padding: 20px;
    }
    
    .video-title {
        font-size: 1.3rem;
    }
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
}

.logo-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--footer-heading-color);
}

.footer-logo p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--footer-text-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.footer-links h3, .footer-newsletter h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--footer-heading-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h3::after, .footer-newsletter h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--gradient);
}

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

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

.footer-links a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color); /* Sunny Yellow on hover */
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    background-color: var(--input-bg);
    color: var(--text-color);
    outline: none;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem !important;
    border: none;
    background: #ffffff !important; /* White background for contrast */
    color: var(--primary-color) !important; /* Primary brown text */
    font-weight: 600;
    border-radius: 25px !important; /* Match input oval shape */
    cursor: pointer;
    transition: all 0.3s ease;
    height: 45px; /* Match input height */
    font-size: 0.9rem;
    box-sizing: border-box;
    white-space: nowrap; /* Prevent text wrapping */
}

.newsletter-form button:hover {
    background: rgba(255, 255, 255, 0.9) !important; /* Slightly transparent on hover */
    color: #8B5CF6 !important; /* Purple text on hover */
    transform: translateY(-1px); /* Subtle lift effect */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* White border for gradient */
    color: #ffffff !important; /* White text for gradient background */
    font-size: 0.9rem;
}
