:root {
    --primary-blue: #002266;
    --accent-blue: #0088ff;
    --light-blue: #e6f0ff;
    --dark-text: #1a202c;
    --light-text: #edf2f7;
    --gray-bg: #f7fafc;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Poppins', var(--font-sans);

    --radius: 12px;
    --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--dark-text);
    background-color: var(--gray-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background: rgba(0, 34, 102, 0.97);
    backdrop-filter: blur(12px);
    color: var(--white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
}

.logo-accent {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.85em;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 6px;
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Flags */
.lang-flags {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.3rem;
    border-radius: 8px;
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 30px;
    border-radius: 5px;
    transition: all var(--transition);
    opacity: 0.55;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
}

.lang-flag:hover {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
}

.lang-flag.active {
    opacity: 1;
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(0, 136, 255, 0.4);
}

.flag-img {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.header-cta {
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0066cc 100%);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 136, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 136, 255, 0.45);
}

/* ===========================
   HERO
   =========================== */
.hero {
    background: linear-gradient(135deg, #001a52 0%, var(--primary-blue) 50%, #003399 100%);
    padding: 10rem 5% 8rem;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 136, 255, 0.08);
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    background: rgba(0, 136, 255, 0.06);
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 60%;
    background: rgba(255, 255, 255, 0.03);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.highlight-star {
    color: var(--accent-blue);
    font-size: 0.8em;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-sub {
    font-weight: 500;
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.85);
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 50px;
    padding: 0.4rem 0.4rem 0.4rem 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    max-width: 550px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--dark-text);
    border-radius: 50px;
}

.search-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--accent-blue);
}

/* ===========================
   CAEN SECTION
   =========================== */
.caen-section {
    max-width: 1000px;
    margin: -4rem auto 4rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

/* Section Selector (letter tabs) */
.section-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.section-tab {
    width: 38px;
    height: 38px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-tab:hover,
.section-tab.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

/* Accordion Groups */
.caen-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.caen-group {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.caen-group:hover {
    box-shadow: var(--shadow-sm);
}

.caen-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: var(--gray-bg);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: left;
    color: var(--dark-text);
    transition: background var(--transition);
    font-family: var(--font-sans);
}

.caen-group-header:hover {
    background: var(--light-blue);
}

.group-letter {
    background: var(--primary-blue);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.group-label {
    flex: 1;
    font-weight: 600;
    line-height: 1.3;
}

.group-count {
    background: var(--light-blue);
    color: var(--accent-blue);
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.chevron {
    transition: transform var(--transition);
    flex-shrink: 0;
    color: #a0aec0;
}

.caen-group.open .chevron {
    transform: rotate(180deg);
}

.caen-group-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.caen-group.open .caen-group-body {
    max-height: 5000px;
}

.caen-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem 0.8rem 3.5rem;
    border-top: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.caen-item:hover {
    background: var(--light-blue);
    padding-left: 4rem;
}

.caen-item.hidden {
    display: none;
}

.caen-code {
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 1.05rem;
    min-width: 65px;
    font-family: 'JetBrains Mono', monospace;
}

.caen-name {
    flex: 1;
    font-size: 0.95rem;
    color: #4a5568;
}

.no-results {
    text-align: center;
    color: #a0aec0;
    padding: 2rem;
    font-size: 1.1rem;
}

/* ===========================
   BANNERS
   =========================== */
.banner-section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 5%;
}

.banner-box {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.banner-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.banner-box.type-1 {
    background: linear-gradient(135deg, #eef5ff 0%, #d0e3ff 100%);
    min-height: 280px;
}

.banner-box.type-2 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003399 100%);
    min-height: 300px;
    justify-content: center;
}

.banner-content {
    padding: 3.5rem;
    flex: 1;
    position: relative;
    z-index: 2;
}

.banner-box.type-1 .banner-content {
    max-width: 55%;
}

.banner-box.type-1 h2 {
    color: var(--primary-blue);
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.banner-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-box.type-2 .banner-content {
    color: var(--white);
    text-align: center;
    max-width: 700px;
    padding: 4rem 2rem;
}

.banner-box.type-2 h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.banner-box.type-2 p {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    opacity: 0.9;
}

/* ===========================
   BLOG SECTION
   =========================== */
.blog-section {
    max-width: 1100px;
    margin: 5rem auto;
    padding: 0 5%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card .blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-card a {
    overflow: hidden;
    display: block;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: var(--light-blue);
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.blog-card h3 a:hover {
    color: var(--accent-blue);
}

.blog-card p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.read-more {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more::after {
    content: '→';
    transition: transform var(--transition);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* ===========================
   FAQ
   =========================== */
.faq-section {
    max-width: 800px;
    margin: 5rem auto;
    padding: 0 5%;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.15rem 1.5rem;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color var(--transition);
    font-family: var(--font-sans);
}

.faq-question:hover {
    color: var(--accent-blue);
}

.faq-question svg {
    transition: transform var(--transition);
    flex-shrink: 0;
    color: #a0aec0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: #718096;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem;
    max-height: 300px;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 3rem 5%;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ===========================
   FAB (Floating Action Button)
   =========================== */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    padding: 0.7rem 1.3rem;
    border-radius: 40px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    z-index: 999;
    border: 2px solid var(--accent-blue);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fabBounce 3s infinite;
}

@keyframes fabBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.fab:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 30px rgba(0, 136, 255, 0.25);
}

.fab-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

.fab-tag {
    background: linear-gradient(135deg, var(--accent-blue), #0066cc);
    color: var(--white);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ===========================
   BLOG ARTICLE PAGE
   =========================== */
.article-page {
    max-width: 800px;
    margin: 7rem auto 4rem;
    padding: 0 5%;
}

.article-page .article-hero-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.article-page h1 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
}

.article-content h2 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin: 2rem 0 1rem;
}

.article-content h3 {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin: 1.5rem 0 0.8rem;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: var(--dark-text);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
    .navbar {
        padding: 0.6rem 3%;
    }

    .nav-links {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 8rem 5% 5rem;
    }

    .caen-section {
        margin: -2rem 0.8rem 3rem;
        padding: 1.5rem 1rem;
    }

    .section-tab {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .caen-item {
        padding-left: 1rem;
    }

    .caen-item:hover {
        padding-left: 1.3rem;
    }

    .banner-box.type-1 {
        flex-direction: column;
    }

    .banner-box.type-1 .banner-content {
        max-width: 100%;
        padding: 2rem;
    }

    .banner-image {
        position: relative;
        width: 100%;
        height: 200px;
        clip-path: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .fab {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .lang-flags {
        gap: 0.15rem;
    }

    .lang-flag {
        width: 30px;
        height: 26px;
    }
}