@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@200;300;400;600;700;900&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Titillium Web', Arial, sans-serif;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── Header / Nav ── */
.af-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 48, 96, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}
.af-header-inner {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.af-header-logo img { height: 42px; width: auto; }
.af-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.af-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.af-nav-list > li { position: relative; }
.af-nav-list a {
    text-decoration: none;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 0;
    transition: color 0.2s ease;
}
.af-nav-list a:hover,
.af-nav-list a.active { color: #0ea5e9; }
.af-nav-caret { width: 12px; height: 12px; transition: transform 0.2s ease; }
.af-has-dropdown:hover .af-nav-caret { transform: rotate(180deg); }
.af-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 20px 45px rgba(0, 48, 96, 0.14);
    border: 1px solid rgba(0, 48, 96, 0.06);
    padding: 10px;
    list-style: none;
    margin: 6px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}
.af-has-dropdown:hover .af-dropdown,
.af-has-dropdown:focus-within .af-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.af-dropdown a { padding: 10px 14px; border-radius: 8px; font-weight: 500; }
.af-dropdown a:hover { background: #f0f7ff; color: #003060; }
.af-nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}
.af-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #003060;
    margin: 5px 0;
    transition: all 0.2s ease;
}

/* Language switcher */
.af-lang-switcher {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.af-lang-switcher a {
    display: inline-flex !important;
    align-items: center;
    line-height: 0;
    padding: 3px;
    border-radius: 4px;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: opacity 0.2s, transform 0.15s;
}
.af-lang-switcher a:hover { opacity: 1; transform: scale(1.1); }
.af-lang-switcher a.af-lang-active { opacity: 1; border-color: #003060; }
.af-lang-switcher img { display: block; width: 24px; height: 18px; border-radius: 2px; }

@media (max-width: 991px) {
    .af-nav-toggle { display: block; }
    .af-nav {
        position: fixed;
        inset: 73px 0 0 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 20px 30px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }
    .af-nav.is-open { transform: translateX(0); }
    .af-nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .af-nav-list a { padding: 14px 4px; border-bottom: 1px solid #f1f5f9; }
    .af-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        background: #f8fafc;
        display: none;
        margin: 4px 0 8px;
    }
    .af-has-dropdown.is-open .af-dropdown { display: block; }
    .af-lang-switcher { margin-left: auto; margin-right: 12px; }
}

/* ── Footer ── */
.af-footer {
    background: #64748b;
    color: #e2e8f0;
    padding: 60px 0 0;
}
.af-footer-inner {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 0 30px 50px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 40px;
}
.af-footer-logo img { height: 36px; margin-bottom: 14px; }
.af-footer-brand { font-style: italic; font-size: 14px; color: #f1f5f9; margin-top: 10px; }
.af-footer h4 { color: #ffffff; font-size: 15px; font-weight: 700; margin: 0 0 16px; }
.af-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.af-footer-links a { text-decoration: none; color: #e2e8f0; font-size: 14px; }
.af-footer-links a:hover { color: #ffffff; }
.af-footer-contact { text-align: right; font-size: 14px; line-height: 1.7; }
.af-footer-contact strong { color: #ffffff; }
.af-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 18px 30px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}
@media (max-width: 767px) {
    .af-footer-inner { grid-template-columns: 1fr; text-align: left; }
    .af-footer-contact,
    .af-footer-contact h4 { text-align: left !important; }
}

/* ── Generic content hero banner (reused across simple pages) ── */
.af-page-hero {
    background: linear-gradient(135deg, #002244 0%, #003060 50%, #083d5d 100%);
    padding: 55px 0;
}
.af-page-hero-inner { width: min(100%, 1140px); margin: 0 auto; padding: 0 30px; }
.af-page-hero h1 { color: #ffffff; font-size: clamp(26px, 2.5vw, 38px); font-weight: 700; margin: 0; letter-spacing: -1px; }
.af-page-body { padding: 70px 0 100px; }
.af-page-container { width: min(100%, 1140px); margin: 0 auto; padding: 0 30px; }
