/* =========================================================
   AIMT — LAYOUT (shared by EVERY page)
   Top bar, header / navigation, inner-page banner, footer.
   ========================================================= */

/* ---------- Top bar ---------- */
.topbar {
    background: #3a5173;
    color: var(--white);
    font-size: 13px;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 34px;
    padding-block: 4px;
}

.topbar-tagline {
    font-weight: 500;
}

.topbar-tagline span {
    color: var(--white);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 26px;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar-info a,
.topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar-info i {
    font-size: 12px;
}

.topbar-social {
    display: flex;
    gap: 8px;
}

.topbar-social a {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .12);
    font-size: 12px;
}

.topbar-social a:hover {
    background: var(--white);
    color: #3a5173;
}

.topbar .btn-login {
    background: var(--gold-500);
    color: var(--green-900);
    font-weight: 600;
    font-size: 11px;
    padding: 2px 12px;
    border-radius: 999px;
}

.topbar .btn-login:hover {
    background: var(--gold-400);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s var(--ease);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    display: block;
    height: 60px;
    width: auto;
}

.site-footer .logo {
    display: inline-flex;
    background: var(--white);
    padding: 10px 16px;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.site-footer .logo img {
    height: 56px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--gold-500);
    background: var(--white);
    display: grid;
    place-items: center;
}

.logo-mark svg {
    width: 24px;
    height: 28px;
}

.logo-text strong {
    display: block;
    font-family: var(--font-head);
    font-size: 23px;
    letter-spacing: .02em;
    color: var(--green-900);
    line-height: 1;
}

.logo-text small {
    display: block;
    font-size: 10.5px;
    color: var(--green-600);
    margin-top: 3px;
    font-weight: 500;
}

.logo--light .logo-text strong {
    color: var(--white);
}

.logo--light .logo-text small {
    color: var(--gold-400);
}

.main-nav>ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav>ul>li {
    position: relative;
}

.main-nav>ul>li>a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 18px 13px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-900);
    white-space: nowrap;
}

.main-nav>ul>li>a i {
    font-size: 9px;
    transition: transform .2s var(--ease);
}

.main-nav>ul>li>a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 8px;
    height: 3px;
    border-radius: 3px;
    background: var(--green-600);
    transform: scaleX(0);
    transition: transform .25s var(--ease);
}

.main-nav>ul>li>a:hover,
.main-nav>ul>li>a.active {
    color: var(--green-600);
}

.main-nav>ul>li>a.active::after,
.main-nav>ul>li>a:hover::after {
    transform: scaleX(1);
}

/* Dropdown (multi-level) */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 4px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    z-index: 10;
}

.dropdown li {
    position: relative;
}

.dropdown li+li>a {
    border-top: 1px solid var(--border);
}

.dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 16px 10px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-900);
    border-left: 3px solid var(--green-600);
    transition: background .2s var(--ease), color .2s var(--ease), padding .2s var(--ease);
}

.dropdown a i {
    font-size: 9px;
    color: var(--gold-600);
    transition: transform .2s var(--ease);
}

.dropdown a:hover,
.dropdown li:hover>a,
.dropdown a.active {
    background: var(--green-50);
    color: var(--green-600);
    border-left-color: var(--gold-500);
}

.dropdown a:hover {
    padding-left: 22px;
}

/* nested fly-out */
.dropdown--sub {
    top: -4px;
    left: 100%;
    margin-left: 2px;
    transform: translateX(10px);
}

.dropdown--sub.flip {
    left: auto;
    right: 100%;
    margin: 0 2px 0 0;
    transform: translateX(-10px);
}

.has-dropdown:hover>.dropdown,
.has-dropdown:focus-within>.dropdown,
.has-sub:hover>.dropdown,
.has-sub:focus-within>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.has-dropdown:hover>a i {
    transform: rotate(180deg);
}

.badge-since {
    background: #3a5173;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 999px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--green-50);
    position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 11px;
    width: 20px;
    height: 2px;
    background: var(--green-800);
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s;
}

.nav-toggle span {
    top: 20px;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    left: 0;
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.nav-open .nav-toggle span {
    background: transparent;
}

.nav-open .nav-toggle span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Inner page banner (use on About, Courses, etc.) ---------- */
.page-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--green-900), var(--green-700));
    color: var(--white);
    padding: 30px 0 26px;
}

.page-banner::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -110px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 2px solid var(--gold-500);
    opacity: .5;
}

.page-banner h1 {
    color: var(--white);
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.2;
    margin: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
}

.breadcrumb a:hover {
    color: var(--gold-400);
}

.breadcrumb li+li::before {
    content: "/";
    margin-right: 8px;
    opacity: .6;
}

.page-inner .page-section {
    padding: 60px 0;
}

.page-inner .page-section p {
    margin-top: 14px;
    max-width: 800px;
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background: var(--green-900);
    background-image: radial-gradient(ellipse at 80% 0%, rgba(74, 99, 132, .35), transparent 60%);
    color: rgba(255, 255, 255, .85);
    padding-top: 60px;
    margin-top: 30px;
}

.site-footer::before {
    /* wave top edge */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -29px;
    height: 30px;
    background: var(--green-900);
    -webkit-mask: radial-gradient(120% 60px at 50% 100%, #000 98%, transparent 100%);
    mask: radial-gradient(120% 60px at 50% 100%, #000 98%, transparent 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr .8fr 1fr 1.1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
}

.footer-about p {
    font-size: 13px;
    margin: 16px 0 0;
    line-height: 1.7;
    text-align: justify;
    hyphens: auto;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: var(--green-600);
    color: var(--white);
    font-size: 14px;
}

.footer-social a:hover {
    background: var(--gold-500);
    color: var(--green-900);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col li {
    margin-bottom: 7px;
}

.footer-col li a {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-col li a i {
    font-size: 9px;
}

.footer-col li a:hover {
    color: var(--gold-400);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-contact i {
    width: 18px;
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--white);
}

.footer-emblem {
    position: relative;
    width: 170px;
    aspect-ratio: 1;
    margin-left: auto;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--gold-400);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .05em;
    line-height: 1.45;
    text-transform: uppercase;
}

.footer-emblem svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 16px 0;
    font-size: 12.5px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom nav {
    display: flex;
    gap: 12px;
}

.footer-bottom nav a+a::before {
    content: "|";
    margin-right: 12px;
    opacity: .4;
}

.footer-bottom a:hover {
    color: var(--gold-400);
}

/* ---------- Responsive (shared) ---------- */
@media (max-width: 1200px) {
    .main-nav>ul>li>a {
        padding-inline: 9px;
        font-size: 13px;
    }

    .main-nav>ul>li>a::after {
        left: 9px;
        right: 9px;
    }

    .badge-since {
        padding: 7px 14px;
        font-size: 12px;
        white-space: nowrap;
    }
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-emblem {
        margin: 0;
    }
}

@media (max-width: 991px) {

    .topbar-info span.loc,
    .topbar-social {
        display: none;
    }

    .badge-since {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(320px, 85vw);
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 80px 20px 30px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .3s var(--ease);
        z-index: 99;
    }

    .nav-open .main-nav {
        transform: none;
    }

    .nav-toggle {
        z-index: 101;
    }

    .main-nav>ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav>ul>li>a {
        padding: 13px 6px;
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .main-nav>ul>li>a::after {
        display: none;
    }

    .dropdown,
    .dropdown--sub,
    .dropdown--sub.flip {
        position: static;
        min-width: 0;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0 0 4px 10px;
    }

    .dropdown a {
        padding: 10px 10px 10px 12px;
        font-size: 13px;
    }

    .dropdown a:hover {
        padding-left: 12px;
    }

    .dropdown a i {
        transform: rotate(90deg);
    }

    .has-dropdown.is-open>.dropdown,
    .has-sub.is-open>.dropdown {
        display: block;
    }

    .has-dropdown.is-open>a i {
        transform: rotate(180deg);
    }

    .has-sub.is-open>a i {
        transform: rotate(-90deg);
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(27, 42, 64, .4);
        z-index: 98;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
    }

    .nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 640px) {
    .site-header .logo img {
        height: 50px;
    }

    .topbar-tagline {
        display: none;
    }

    .topbar .container {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-bottom .container {
        justify-content: center;
        text-align: center;
    }
}
