:root {
    --primary-color: #0077B6;
    --secondary-color: #90E0EF;
    --accent-color: #ff9e00;
    --dark-blue: #03045e;
    --light-blue: #caf0f8;
    --white: #ffffff;
    --black: #111111;
    --gray-100: #f8fafc;
    --gray-200: #edf2f7;
    --gray-300: #d1d5db;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', sans-serif; 
    color: var(--black); 
    line-height: 1.6; 
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 800; 
    color: var(--dark-blue); 
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--white) !important;
    letter-spacing: -1px;
}

.logo span { color: var(--secondary-color) !important; transition: var(--transition); }
.logo i, .logo svg { stroke: var(--white); transition: var(--transition); }

.main-header.scrolled .logo { color: var(--primary-color) !important; }
.main-header.scrolled .logo span { color: var(--dark-blue) !important; }
.main-header.scrolled .logo i, .main-header.scrolled .logo svg { stroke: var(--primary-color); }

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--white) !important;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after { width: 100%; }

.main-header.scrolled .nav-links a { 
    color: var(--gray-700) !important; 
    text-shadow: none; 
}
.main-header.scrolled .nav-links a:hover { color: var(--primary-color) !important; }

.nav-cta {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.3);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.1;
    text-align: center;
    height: 50px;
    min-width: 180px;
}

.nav-cta:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 119, 182, 0.4);
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.main-header.scrolled .menu-toggle span {
    background: var(--gray-700);
}

.menu-toggle.open span {
    background: var(--white) !important;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(3, 4, 94, 0.3) 0%, rgba(3, 4, 94, 0.1) 50%, rgba(3, 4, 94, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    color: var(--white) !important;
    margin-bottom: 25px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.4);
    letter-spacing: -2px;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 40px;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: var(--shadow-xl);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Overlap Grid */
.grid-overlap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

/* Sections */
section { padding: 80px 0; }
.bg-gray { background-color: var(--gray-100); }

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 25px;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px; height: 5px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 3px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-10px); }

.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-body { padding: 30px; flex-grow: 1; }
.card-body h3 { font-size: 1.4rem; margin-bottom: 12px; }

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

/* FAQ Accordion */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 15px;
    border: 1px solid var(--gray-200);
}

.faq-header {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-blue);
    text-align: left;
}

.faq-header.active { color: var(--primary-color); }
.faq-header i { transition: transform 0.3s; }
.faq-header.active i { transform: rotate(180deg); }

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content p { padding: 0 25px 20px; color: var(--gray-600); }

/* Article Layout with Sidebar */
.article-hero { height: 50vh; min-height: 400px; }
.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.article-main {
    background: var(--white);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.rich-text h2 { margin: 40px 0 20px; font-size: 1.8rem; border-left: 5px solid var(--primary-color); padding-left: 20px; }
.rich-text p { margin-bottom: 25px; font-size: 1.1rem; }

/* Footer */
footer.main-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-nav h4 { margin-bottom: 30px; font-size: 1.2rem; }
.footer-nav ul li { margin-bottom: 12px; }
.footer-nav ul li a { color: #cbd5e0; }
.footer-nav ul li a:hover { color: var(--secondary-color); }

.footer-nav:last-child h4,
.footer-nav:last-child ul li a {
    color: var(--white) !important;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #a0aec0;
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .sidebar-sticky { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-header { padding: 15px 0; }
    .main-header.scrolled { padding: 10px 0; }
    
    .nav-container { padding: 0 20px; }

    .menu-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--dark-blue);
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        transition: var(--transition);
        padding: 40px;
    }
    
    .nav-links.active { right: 0; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
    
    .nav-links a { font-size: 1.4rem; color: var(--white) !important; text-shadow: none; }
    
    .nav-cta { display: none; }
    .nav-links .mobile-cta {
        display: inline-flex;
        background: var(--primary-color);
        color: var(--white) !important;
        padding: 15px 25px;
        border-radius: 50px;
        font-weight: 800;
        font-size: 1.1rem !important;
        margin-top: 20px;
        text-align: center;
    }

    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; }
    
    .grid-overlap { margin-top: -50px; }
    .article-main { padding: 40px 20px; }
    
    .footer-grid { grid-template-columns: 1fr; }
    
    .section-title { font-size: 1.8rem; }
    
    /* Interactive tool adjustments */
    #quiz-options { grid-template-columns: repeat(2, 1fr) !important; }
    .container { padding: 0 15px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .cta-button { padding: 15px 30px; width: 100%; }
    .grid-overlap { grid-template-columns: 1fr; }
    #quiz-options { grid-template-columns: 1fr !important; }
}