        :root {
            --orange: #F4991A;
            --gray: #D1D3D4;
            --teal: #86B0BD;
            --cream: #F7F4EA;
            --dark: #415E72;
            --black: #1a1a1a;
            --white: #ffffff;
            --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* --- Global Styles --- */
        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            background-color: var(--cream);
            font-family: 'Dancing Script', cursive;
            color: var(--black);
            line-height: 1.6;
            overflow-x: hidden;
        }

        .dancing-script-regular { font-family: "Dancing Script", cursive; font-weight: 400; }
        .dancing-script-medium { font-family: "Dancing Script", cursive; font-weight: 500; }
        .dancing-script-bold { font-family: "Dancing Script", cursive; font-weight: 700; }

        h1, h2, h3 { font-weight: 700; color: var(--black); }
        p { font-weight: 400; font-size: 1.25rem; }
        a { text-decoration: none; color: inherit; transition: var(--transition); cursor: pointer; }

        /* --- Layout Components --- */
        header {
            position: fixed;
            top: 0; width: 100%;
            height: 90px;
            background: var(--cream);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 5%;
            z-index: 1000;
            transition: var(--transition);
        }

        header.sticky {
            height: 70px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            background: rgba(247, 244, 234, 0.95);
            backdrop-filter: blur(10px);
        }

        .logo { font-size: 2.2rem; color: var(--orange); font-weight: 700; }

        nav { display: flex; gap: 2rem; }
        .nav-link { font-size: 1.3rem; font-weight: 500; position: relative; }
        .nav-link:hover, .nav-link.active { color: var(--orange); }
        .nav-link::after {
            content: ''; position: absolute; bottom: -5px; left: 0;
            width: 0; height: 2px; background: var(--orange); transition: 0.3s;
        }
        .nav-link:hover::after { width: 100%; }

        .header-actions { display: flex; gap: 1.5rem; align-items: center; }
        .btn-icon { background: none; border: none; cursor: pointer; color: var(--black); }
        .btn-icon:hover { color: var(--orange); transform: scale(1.1); }

        /* --- Page Transitions --- */
        #page-content { margin-top: 0; min-height: 80vh; }
        .view-container { animation: fadeIn 0.8s ease forwards; }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* --- Section Styles --- */
        .section-padding { padding: 120px 8%; }
        .container { max-width: 1400px; margin: 0 auto; }

        /* HERO */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            text-align: center;
        }
        .hero-bg {
            position: absolute; inset: 0;
            background: url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
            filter: brightness(0.7);
            transform: scale(1.1);
            transition: 10s ease-out;
            z-index: -1;
        }
        .hero.loaded .hero-bg { transform: scale(1); }
        .hero-overlay {
            position: absolute; inset: 0;
            background: linear-gradient(to bottom, transparent, var(--gray));
            opacity: 0.5;
        }
        .hero-card {
            background: rgba(255, 255, 255, 0.9);
            padding: 80px;
            max-width: 900px;
            border-radius: 4px;
            box-shadow: 0 30px 60px rgba(0,0,0,0.1);
            position: relative;
            z-index: 10;
        }
        .hero-card h1 { font-size: 5rem; color: var(--orange); margin-bottom: 20px; line-height: 1; }
        .hero-card p { color: var(--teal); font-size: 1.8rem; margin-bottom: 40px; }

        .btn {
            padding: 16px 45px;
            border-radius: 50px;
            font-size: 1.3rem;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            display: inline-block;
            border: none;
        }
        .btn-orange { background: var(--orange); color: var(--white); }
        .btn-orange:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(244, 153, 26, 0.3); }
        .btn-outline { border: 2px solid var(--orange); color: var(--orange); background: transparent; }
        .btn-outline:hover { background: var(--orange); color: var(--white); }

        /* FEATURED GRID */
        .editorial-grid {
            display: grid;
            grid-template-columns: 1.6fr 1fr;
            gap: 50px;
            margin-top: 60px;
        }
        .article-card {
            background: var(--white);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0,0,0,0.03);
            transition: var(--transition);
        }
        .article-card:hover { transform: translateY(-10px); }
        .article-img-wrap { width: 100%; height: 500px; overflow: hidden; }
        .article-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
        .article-card:hover img { transform: scale(1.05); }
        .article-body { padding: 40px; }
        .article-body h2 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; }
        .article-card:hover h2 { text-decoration: underline; color: var(--orange); }

        .side-articles { display: flex; flex-direction: column; gap: 30px; }
        .side-card {
            display: grid; grid-template-columns: 150px 1fr; gap: 20px;
            padding: 20px; background: var(--white); border-radius: 8px;
        }
        .side-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; }

        /* CATEGORY SPOTLIGHT */
        .spotlight-sect { background: var(--gray); }
        .scroller {
            display: flex; gap: 30px; overflow-x: auto; padding: 40px 0;
            scrollbar-width: none;
        }
        .cat-card {
            min-width: 320px; background: var(--cream);
            padding: 50px 40px; border-radius: 20px; text-align: center;
            transition: var(--transition);
        }
        .cat-card:hover { transform: scale(1.05); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
        .cat-card i { font-size: 3.5rem; color: var(--orange); margin-bottom: 25px; }
        .cat-card h3 { font-size: 2.2rem; margin-bottom: 15px; }

        /* STORY ROWS */
        .story-row {
            display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center;
            margin-bottom: 100px;
        }
        .story-row.alt { direction: rtl; }
        .story-row.alt * { direction: ltr; }
        .story-image { width: 100%; height: 600px; object-fit: cover; border-radius: 2px; }
        .story-content h2 { font-size: 4rem; margin-bottom: 30px; }
        .story-content .divider { width: 80px; height: 5px; background: var(--orange); margin-bottom: 30px; }

        /* AUTH PAGES */
        .auth-container {
            min-height: 90vh; display: flex; align-items: center; justify-content: center;
            background: linear-gradient(45deg, var(--cream), var(--gray));
            padding-top: 100px;
        }
        .auth-card {
            background: var(--white); padding: 80px; width: 100%; max-width: 600px;
            border-radius: 8px; box-shadow: 0 40px 80px rgba(0,0,0,0.1);
        }
        .auth-card h1 { font-size: 4rem; color: var(--orange); text-align: center; margin-bottom: 40px; }
        .form-group { margin-bottom: 25px; }
        input, textarea {
            width: 100%; padding: 18px; border: 2px solid var(--gray); border-radius: 6px;
            font-family: inherit; font-size: 1.2rem; outline: none; transition: 0.3s;
        }
        input:focus { border-color: var(--orange); }

        .popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

        /* FILTER SYSTEM */
        .filter-bar {
            display: flex; gap: 15px; margin-bottom: 50px; justify-content: center; flex-wrap: wrap;
        }
        .filter-btn {
            padding: 10px 25px; border-radius: 30px; border: 2px solid var(--teal);
            color: var(--teal); background: transparent; font-weight: 700; cursor: pointer;
        }
        .filter-btn.active { background: var(--teal); color: var(--white); }

        /* TESTIMONIALS */
        .testimonial-slider { display: flex; gap: 40px; overflow-x: auto; padding-bottom: 40px; scrollbar-width: none; }
        .test-card {
            min-width: 450px; background: var(--white); padding: 50px; border-radius: 12px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.05);
        }
        .test-profile { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
        .test-profile img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
        .test-quote { font-style: italic; color: var(--dark); margin-bottom: 20px; }

        /* FOOTER */
        footer { background: var(--dark); color: var(--cream); padding: 100px 8% 50px; }
        .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 80px; }
        .footer-col h4 { font-size: 2rem; color: var(--orange); margin-bottom: 30px; }
        .footer-col ul { list-style: none; }
        .footer-col li { margin-bottom: 15px; }
        .footer-col a:hover { color: var(--orange); padding-left: 8px; }

        @media (max-width: 1024px) {
            .editorial-grid, .story-row, .footer-grid { grid-template-columns: 1fr; }
            .hero-card h1 { font-size: 3.5rem; }
            header nav { display: none; }
        }
        .footer-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 30px;
}

.footer-popup > div {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.footer-popup h5 {
    color: var(--orange);
    margin-bottom: 20px;
}

.footer-popup p {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.1rem;
}

.footer-popup .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--black);
    transition: var(--transition);
}

.footer-popup .close-btn:hover {
    color: var(--orange);
}
    nav#nav-menu {
        display: flex;
        gap: 20px;
    }

    nav#nav-menu a {
        color: white;
        text-decoration: none;
        font-weight: 500;
    }

    .header-actions button {
        margin-left: 10px;
        padding: 5px 12px;
        border: none;
        cursor: pointer;
        border-radius: 4px;
    }

    .header-actions button:first-child {
        background: transparent;
        color: white;
        border: 1px solid white;
    }

    .header-actions button:last-child {
        background: #ff7f50;
        color: white;
    }

    /* Mobile styles */
    #menu-toggle {
        display: none;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
    }

    @media (max-width: 768px) {
        nav#nav-menu {
            display: none;
            flex-direction: column;
            width: 100%;
            background: #333;
            position: absolute;
            top: 60px;
            left: 0;
            padding: 10px 0;
        }

        nav#nav-menu.show {
            display: flex;
        }

        #menu-toggle {
            display: block;
        }

        .header-actions {
            display: none;
        }

        .header-actions.show {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
            padding: 10px 0;
            background: #333;
            position: absolute;
            top: calc(60px + var(--nav-height, 0px));
            left: 0;
        }

        .header-actions button {
            width: 90%;
            margin: 0 auto;
        }
    }

