/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
    --primary-blue: #293681;
    --charcoal: #1D2128;
    --white: #FFFFFF;
    --light-gray: #F7F8FB;
    --soft-silver: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text-dark: #1D2128;
    --text-muted: #626875;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Manrope', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- UTILITIES & COMMON STYLES --- */
section {
    padding: 100px 8%;
    position: relative;
}

.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

/* --- FLOATING EDITORIAL HEADER --- */
header {
    position: fixed;
    left: 25%;
    right: 25%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 15px 30px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-blue);
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.logo-text {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-item a {
    text-decoration: none;
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.nav-item a:hover, .nav-item.active a {
    color: var(--primary-blue);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-item a:hover::after, .nav-item.active a::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-blue);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 80px 40px;
    transition: var(--transition-smooth);
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer .nav-menu {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
}

.mobile-drawer .nav-item a {
    font-size: 1.2rem;
}

/* --- PAGE CONTAINERS --- */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* ==================== HOME PAGE SECTIONS ==================== */

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide:nth-child(1) { background-image: url('https://i.pinimg.com/1200x/c4/92/57/c492578963b063419373af96fc376914.jpg'); }
.slide:nth-child(2) { background-image: url('https://i.pinimg.com/736x/22/f4/78/22f478b1b9a445854c92ebce8b087920.jpg'); }
.slide:nth-child(3) { background-image: url('https://i.pinimg.com/736x/1d/e1/4b/1de14b958003ee352412c3a9d4a0d96c.jpg'); }

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-top: 80px;
}

.hero-label {
    color: var(--primary-blue);
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    color: var(--charcoal);
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(41, 54, 129, 0.25);
}

.slideshow-progress {
    position: absolute;
    bottom: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: rgba(41, 54, 129, 0.15);
    z-index: 3;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary-blue);
    transition: width 0.1s linear;
}

.why-section {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
}

.why-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 70px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 50px;
}

.why-card {
    text-align: left;
    border-top: 1px solid var(--soft-silver);
    padding-top: 30px;
}

.why-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.why-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 25px;
}

.why-icon {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.categories-section {
    background-color: var(--primary-blue);
    color: var(--white);
    padding-top: 50px;
}

.cat-header {
    margin-bottom: 60px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.cat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--soft-silver);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.cat-card:hover {
    transform: translateY(-10px);
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.cat-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.cat-info {
    padding: 30px;
}

.cat-info h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.cat-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.guidance-section {
    background-color: var(--primary-blue);
    color: var(--white);
    padding-top: 50px;
    padding-bottom: 120px;
}

.guide-divider {
    border: none;
    border-top: 1px solid var(--soft-silver);
    margin: 40px 0;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.guide-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.guide-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: var(--soft-silver);
}

.guide-col h5 {
    font-size: 1.3rem;
    font-weight: 600;
}

.guide-col p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.parallax-section {
    height: 60vh;
    background-image: linear-gradient(rgba(29, 33, 40, 0.75), rgba(29, 33, 40, 0.75)), url('https://i.pinimg.com/1200x/73/5f/25/735f256f351fd946fa8782ffc03549f3.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10%;
}

.quote-container {
    max-width: 900px;
}

.quote-text {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 25px;
}

.quote-author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== INNER PAGES STYLING ==================== */

.inner-hero {
    padding: 160px 8% 80px;
    background-color: var(--light-gray);
    text-align: center;
}

.inner-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.inner-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.editorial-content {
    padding: 80px 8%;
    max-width: 1000px;
    margin: 0 auto;
}

.story-block {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
}

.story-block h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.story-block p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.article-card {
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eef0f5;
}

.article-img {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.article-body {
    padding: 30px;
}

.article-body span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-body h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin: 15px 0 10px;
}

.article-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.legal-chapter {
    margin-bottom: 50px;
    border-bottom: 1px solid #eef0f5;
    padding-bottom: 30px;
}

.legal-chapter h2 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.legal-chapter p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-chapter ul {
    padding-left: 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==================== NEWSLETTER SECTION ==================== */

.footer-newsletter {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 80px 8%;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.news-info p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

.form-toggle-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.toggle-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.toggle-btn.active {
    color: var(--white);
    border-bottom-color: var(--white);
}

.form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.form-btn {
    padding: 15px 30px;
    background-color: var(--white);
    color: var(--charcoal);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.form-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.form-message {
    font-size: 0.85rem;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    display: block !important;
    color: #4BB543;
    background: rgba(75, 181, 67, 0.1);
    border: 1px solid rgba(75, 181, 67, 0.2);
}

.form-message.error {
    display: block !important;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.legal-links {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.legal-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.legal-links a:hover {
    color: var(--white);
}

/* ==================== FINAL FOOTER ==================== */

footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 8% 40px;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.8rem;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
}

.footer-quote {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 30px;
    font-style: italic;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--soft-silver);
    margin-bottom: 25px;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */

@media (max-width: 1024px) {
    .why-grid, .cat-grid, .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .guide-col:not(:last-child)::after {
        display: none;
    }
    .news-grid {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    header {
        left: 3%;
        right: 3%;
        padding: 12px 20px;
    }

    .header-bottom {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .why-grid, .cat-grid, .guide-grid, .news-grid, .article-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 70px 5%;
    }

    .parallax-section {
        height: 50vh;
    }

    .footer-newsletter {
        padding: 60px 5%;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .news-info h3 {
        font-size: 1.6rem;
    }

    .form-group {
        flex-direction: column;
    }

    .form-btn {
        width: 100%;
    }

    .form-input {
        width: 100%;
    }

    .legal-links {
        flex-wrap: wrap;
        gap: 20px;
    }

    .inner-hero {
        padding: 100px 5% 50px;
    }

    .editorial-content {
        padding: 40px 5%;
    }

    .story-block h2 {
        font-size: 1.4rem;
    }
}
