/* ============================================
   DREAM PAGES - MODERN DARK THEME
   =========================================== */

/* 1. RESET & VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Warna Utama */
    --primary-color: #7b2cbf;
    --secondary-color: #c77dff;
    --accent-color: #9d4edd;
    
    /* Warna Background */
    --background-color: #0a001a;
    --card-bg: rgba(40, 20, 70, 0.5);
    --header-bg: rgba(10, 0, 26, 0.95);
    --footer-bg: #0a001a;
    
    /* Warna Teks */
    --text-color: #e0aaff;
    --text-muted: #b388eb;
    --text-light: #f0e6ff;
    
    /* Efek */
    --gradient: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
    /* Layout */
    --header-height: 88px; /* used to offset fixed header */
}

/* 2. BASE STYLES
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Offset fixed header to avoid overlap */
    padding-top: var(--header-height);
}

/* 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(123, 44, 191, 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(123, 44, 191, 0.4);
}

/* Popular Categories Section */
.popular-categories {
    padding: 4rem 0;
    background-color: var(--background-color);
    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-light);
    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(123, 44, 191, 0.1);
    border: 1px solid rgba(123, 44, 191, 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(123, 44, 191, 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: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    border: none;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 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(123, 44, 191, 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 {
    padding: 4rem 0;
    background-color: var(--background-color);
    position: relative;
}

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

.recently-added .section-title {
    text-align: center;
    color: var(--text-light);
    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(123, 44, 191, 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; /* Lebih tinggi dari sebelumnya */
    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(123, 44, 191, 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;
}

/* Sidebar Ads */
.sidebar-ad {
    background: rgba(10, 0, 26, 0.7);
    border: 1px solid rgba(123, 44, 191, 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(123, 44, 191, 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 */
@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(123, 44, 191, 0.2);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(123, 44, 191, 0.3);
    font-size: 0.95rem;
}

.category-list a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(123, 44, 191, 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 {
    /* Reset Browser 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);
}





.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(123, 44, 191, 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 */
}

/* Footer-specific overrides to ensure visible border, oval shape, and equal height */
.footer .newsletter-form input[type="email"] {
    height: 48px !important; /* match button height */
    padding: 12px 16px !important; /* balanced padding */
    border: 2px solid rgba(255, 255, 255, 0.35) !important; /* softer, subtler border */
    background: rgba(255, 255, 255, 0.06) !important; /* subtle bg for dark footer */
    color: #ffffff !important;
    border-radius: 9999px !important; /* force pill/oval shape */
    box-sizing: border-box !important;
}

.footer .newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.footer .newsletter-form input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.5) !important; /* slightly brighter on focus */
    outline: none !important;
}

.footer .newsletter-form .btn {
    height: 48px !important; /* ensure same height as input */
    border-radius: 9999px !important; /* match input shape */
}

.footer .newsletter-form {
    align-items: center !important; /* vertically align input and button */
    gap: 10px !important; /* balanced spacing */
}

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

/* --- Story Page Media Players --- */

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    margin: 1.5rem 0;
}

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

/* 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(123, 44, 191, 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 {
    margin-bottom: 1.5rem;
}

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

/* Footer logo alignment (Dream Pages) */
.footer .footer-logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px; /* add a bit more space between logo and name */
    flex-wrap: nowrap; /* keep on one line */
    margin-bottom: 14px; /* more vertical space before description */
}

/* Remove bottom margin in footer to keep label inline */
.footer .footer-logo img {
    margin-bottom: 0; /* override theme default above */
    display: inline-block;
    height: 40px; /* reduced to avoid crowding */
    width: auto;
}

.footer .logo-label {
    display: inline-flex;
    align-items: center;
    line-height: 1; /* reduce extra vertical space */
    margin-left: 16px; /* add a bit more space between logo and name */
}

/* Add slight top spacing to the description under the logo row */
.footer .footer-logo p {
    margin-top: 8px;   /* extra space above description */
    margin-bottom: 12px; /* space below description (before social links) */
}

.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 {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(123, 44, 191, 0.3);
    background: rgba(123, 44, 191, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(123, 44, 191, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(123, 44, 191, 0.2);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Form notification styling (used by newsletter/contact) */
.form-notification {
    display: none;
    margin-top: 10px;
    font-size: 0.95rem;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(123, 44, 191, 0.08);
    border: 1px solid rgba(123, 44, 191, 0.25);
}

.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(123, 44, 191, 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: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    border: none;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 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(123, 44, 191, 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(123, 44, 191, 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 .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #c77dff, #e0aaff);
    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(199, 125, 255, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(157, 78, 221, 0.1) 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;
    background: linear-gradient(90deg, #c77dff, #e0aaff);
    /* Standard property first for better compatibility */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(199, 125, 255, 0.3);
}

.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(123, 44, 191, 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 {
    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(90deg, #c77dff, #e0aaff);
    /* 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: var(--gradient);
    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(123, 44, 191, 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: linear-gradient(135deg, #0a001a 0%, #1a0033 50%, #2d0066 100%);
    padding: 6rem 0 4rem;
    margin: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 79, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 157, 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;
    background: linear-gradient(90deg, #c77dff, #e0aaff);
    /* Standard property first for better compatibility */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    animation: float 6s ease-in-out infinite;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(199, 125, 255, 0.3);
}

.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: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
    border: 2px solid transparent;
    background-size: 200% auto;
    background-position: right center;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(123, 44, 191, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: rgba(138, 79, 255, 0.1);
    transform: translateY(-3px);
}

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

.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(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

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

/* Story Cards */
.story-card {
    background: rgba(40, 20, 70, 0.5);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(123, 44, 191, 0.3);
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

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

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    border-color: var(--accent-color);
}

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

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

.story-info h3 {
    font-size: 1.3rem;
    margin: 0 0 0.75rem;
    color: #fff;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.story-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

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

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

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

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(138, 79, 255, 0.1), rgba(255, 107, 157, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.story-card:hover::before {
    opacity: 1;
}

.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;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-info h3 {
    font-size: 1.4rem;
    margin: 0 0 1rem;
    color: #fff;
    position: relative;
    display: inline-block;
    font-weight: 600;
    line-height: 1.3;
}

.story-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    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(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-muted);
    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;
}

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

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