/*
    Theme Name: Color Splash
    Description: A vibrant, playful, and modern theme for the Story Sprinkles website.
    Version: 1.0
    Author: Cascade AI
*/

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

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

html {
    scroll-behavior: smooth;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.85)), url('../images/herobackground.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

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

header {
    margin-bottom: 0 !important;
}

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

/* TK:START css-variables */
:root {
    /* Color Splash Theme */
    --primary-color: #3498db;      /* Vibrant Blue */
    --secondary-color: #f1c40f;    /* Sunny Yellow */
    --accent-color: #e91e63;       /* Bright Pink/Magenta */
    
    /* Background Colors */
    --background-color: #f4f6f9;   /* Light Grey/Off-white */
    --card-bg: #ffffff;            /* White */
    --header-bg: #ffffff;          /* White Header */
    --footer-bg: #2c3e50;          /* Dark Blue/Slate Footer */
    
    /* Text Colors */
    --text-color: #34495e;         /* Dark Grey/Blue */
    --text-muted: #95a5a6;         /* Medium Grey */
    --text-light: #ffffff;         /* White for buttons etc. */
    
    /* Effects */
    --gradient: linear-gradient(135deg, #3498db 0%, #ff69b4 100%); /* Blue to Pink */
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/*
==============================================
==  3. HEADER & NAVIGATION
==============================================
*/

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

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

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

.hero h1 {
    color: #ffffff !important; /* White */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.hero .btn-primary:hover {
    background-color: var(--accent-color);
    border: none;
}

.hero .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.hero .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-color: var(--secondary-color);
}

/* ============================================
   HEADER
   ============================================ */
header.header {
    background: var(--header-bg) !important;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}
html {
    scroll-behavior: smooth;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/*
==============================================
==  TYPOGRAPHY
==============================================
*/
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
}

/*
==============================================
==  BACK TO TOP BUTTON
==============================================
*/
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
    border: none;
    font-size: 1.2rem;
}

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

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

/*
==============================================
==  POPULAR CATEGORIES SECTION
==============================================
*/
.popular-categories {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0;

    position: relative;
    overflow: hidden;
}

.popular-categories .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.popular-categories h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

.popular-categories .category-list li {
    flex: 0 0 auto;
    margin: 0.3rem;
    text-align: center;
}

.popular-categories .category-list a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

/* Desktop - 4 tombol per baris */
@media (min-width: 1024px) {
    .popular-categories .category-list {
        max-width: 1000px;
    }
    
    .popular-categories .category-list a {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
}

/* Tablet - 3 tombol per baris */
@media (max-width: 1023px) and (min-width: 768px) {
    .popular-categories .category-list {
        max-width: 800px;
    }
    
    .popular-categories .category-list a {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Mobile - 2 tombol per baris */
@media (max-width: 767px) {
    .popular-categories .category-list {
        max-width: 500px;
        gap: 0.6rem;
    }
    
    .popular-categories .category-list a {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

.popular-categories .category-list a:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style untuk tombol View All Categories */
.popular-categories .view-all-categories {
    display: block;
    text-align: center;
    margin-top: 2rem;
}

.popular-categories .view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    background: var(--gradient);
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.popular-categories .view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.popular-categories .view-all-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.popular-categories .view-all-btn:hover i {
    transform: translateX(3px);
}

/*
==============================================
==  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);
}

/* TK:START css-ads-styles */
/*
==============================================
==  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: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 990;
}

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

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

/*
==============================================
==  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 */
}

.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-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 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;
    justify-content: center;
    align-items: 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
   ============================================ */

.video-showcase {

    position: relative; /* Needed for the pseudo-element */
    padding: 6rem 0 4rem; /* Increased top padding for the wave */
    background: none;
    text-align: center;
}

.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(--footer-bg);
    color: var(--text-color);
    padding: 4rem 0 1rem;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(76, 175, 80, 0.2);
}

.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;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.5rem 1rem; /* Reduced vertical padding to match button height */
    border: 2px solid var(--secondary-color); /* A lighter green for contrast */
    background: var(--background-color); /* Use a distinct dark color for visibility */
    border-radius: 50px; /* Creates the oval/pill shape */
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
    position: relative; /* Bring to front */
    z-index: 2; /* Ensure it's on top */
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(1, 255, 9, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(76, 175, 80, 0.2);
    color: var(--text-muted);
    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(76, 175, 80, 0.2);
    color: var(--text-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient);
    color: white;
    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);
    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 1s 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 1.5rem;
    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;
}

@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: 
        radial-gradient(circle at 20% 30%, rgba(255, 182, 193, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255, 192, 203, 0.15) 0%, transparent 25%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1.5rem;
    width: 100%;
}

.hero h1 {
    font-size: 4.5rem;
    color: #ffffff !important; /* Paksa warna putih */
    background: none !important; /* Hapus background gradien */
    -webkit-background-clip: initial !important; /* Reset clipping */
    -webkit-text-fill-color: initial !important; /* Reset fill color */
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero .subheadline {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin: 0 auto 3rem;
    max-width: 700px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero .subheadline {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 0, 26, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 0, 26, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem; /* Optional: Adjust size if needed */
}

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

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

.logo h1 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    /* Standard property first */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 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 */
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(10, 0, 26, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0 1rem;
    }

        .main-nav li {
        border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    }

    .main-nav a {
        display: block;
        padding: 1rem 0;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--header-bg);
    padding: 6rem 0 4rem;
    margin: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1.5rem;
    width: 100%;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    animation: float 6s ease-in-out infinite;
}

.hero .subheadline {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin: 0 auto 3rem;
    max-width: 700px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    margin: 0.5rem 0;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    border: 2px solid transparent;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-position: left center;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(123, 44, 191, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Story Cards */
/* Main Content */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding-top: 80px; /* Space for fixed header */
}

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

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem; /* Reduced gap for tighter layout */
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Story Cards */
/* Story Cards */
.story-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(52, 152, 219, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(52, 152, 219, 0.2);
}

.story-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.story-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-info h3 {
    font-size: 1.4rem;
    margin: 0 0 1rem;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.3;
    position: relative;
}

.story-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.story-card:hover .story-info h3::after {
    width: 80px;
}

.story-info p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.story-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.story-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}



.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-muted);
}

.section-header .view-all {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.section-header .view-all::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
    transform: scaleX(0.5);
}

.section-header .view-all:hover {
    color: var(--primary-color);
}

.section-header .view-all:hover::after {
    transform: scaleX(1);
    background-color: var(--primary-color);
}

/* OVERRIDE: Force hero subheadline to be white for contrast */
.hero .hero-content .subheadline {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
    opacity: 1 !important;
}

.section-header .view-all i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.section-header .view-all:hover i {
    transform: translateX(5px);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

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

/* Responsive Design */
/* Fix for story cards on mobile */
.story-card {
    margin-bottom: 2rem;
}

.story-card:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subheadline {
        font-size: 1.2rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    animation: float 15s ease-in-out infinite;
    z-index: 0;
}

.hero {
    padding: 0 0 60px 0; /* Remove top padding, add 60px bottom padding */
    background: var(--header-bg);
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--text-light);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Needed for the background image */
}

/* Hero Background Image and Overlay */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/herobackground.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 182, 193, 0.7), rgba(255, 105, 180, 0.9));
    z-index: 2;
}

/* Ensure content is on top of the overlay */
.hero .container {
    position: relative;
    z-index: 3;
}

.floating-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(255, 192, 203, 0.15) 0%, transparent 70%);
    animation-duration: 20s;
}

.floating-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 10%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.2) 0%, transparent 70%);
    animation-duration: 25s;
    animation-delay: 2s;
}

/* ============================================ 
   FOOTER
   ============================================ */
.footer {
    --footer-bg: #2c3e50; /* Dark Blue/Slate from theme */
    --footer-text-color: #ecf0f1; /* Lighter grey for better readability */
    --footer-heading-color: #ffffff;
    
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    padding: 4rem 0 2rem;
    border-top: 5px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.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.25rem;
    border: none;
    background: var(--gradient);
    color: white;
    font-weight: 600;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.newsletter-form button:hover {
    filter: brightness(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}
