/* ============================================================
   ADEPT TRAINING CENTER
   MASTER HEADER
============================================================ */

:root {
    --adt-primary: #0084D1;
    --adt-primary-dark: #006FB3;
    --adt-navy: #0F172A;
    --adt-navy-light: #1E293B;
    --adt-slate: #64748B;
    --adt-text: #334155;
    --adt-border: #E2E8F0;
    --adt-white: #FFFFFF;
    --adt-light: #F8FAFC;
}


/* ============================================================
   HEADER
============================================================ */

.adt-site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 9999;

    background: var(--adt-white);

    border-bottom: 1px solid var(--adt-border);

    box-shadow:
        0 2px 12px rgba(15, 23, 42, 0.06);

    transition:
        box-shadow 0.25s ease,
        background 0.25s ease;
}


/* ============================================================
   HEADER CONTAINER
============================================================ */

.adt-header-container {

    width: 100%;
    max-width: 1280px;

    min-height: 76px;

    margin: 0 auto;

    padding:
        0 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* ============================================================
   BRAND
============================================================ */

.adt-brand {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    flex-shrink: 0;
}


.adt-brand-logo {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 48px;
}


.adt-brand-logo img {

    display: block;

    width: auto;

    height: 48px;

    max-width: 180px;

    object-fit: contain;
}


.adt-brand-icon-fallback {

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--adt-primary),
            #38BDF8
        );

    color: #FFFFFF;

    border-radius: 10px;

    font-size: 20px;
}


.adt-brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1.1;
}


.adt-brand-title {

    font-family:
        'Poppins',
        'Plus Jakarta Sans',
        Arial,
        sans-serif;

    font-size: 1.18rem;

    font-weight: 800;

    letter-spacing: -0.03em;

    color: var(--adt-navy);

    white-space: nowrap;
}


.adt-brand-title strong {

    color: var(--adt-primary);

}


.adt-brand-subtitle {

    margin-top: 3px;

    font-size: 0.62rem;

    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: var(--adt-slate);

}


/* ============================================================
   MOBILE-ONLY BRAND TITLE
   (Shows only on screens where the hamburger menu is active)
============================================================ */

.adt-mobile-title {
    display: none; /* Hidden on desktop */
    
    font-family: 'Poppins', 'Plus Jakarta Sans', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--adt-navy);
    
    text-align: center;
    white-space: nowrap;
    flex-grow: 1; /* Fills the empty space between logo and toggle */
    flex-shrink: 0;
    margin: 0 10px;
}


/* ============================================================
   DESKTOP NAVIGATION
============================================================ */

.adt-main-nav {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    margin-left: auto;

    margin-right: auto;
}


.adt-nav-link {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding:
        8px 14px;

    border-radius: 8px;

    color: var(--adt-text);

    text-decoration: none;

    font-family:
        'Plus Jakarta Sans',
        'Poppins',
        Arial,
        sans-serif;

    font-size: 0.88rem;

    font-weight: 600;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.adt-nav-link:hover {

    color: var(--adt-primary);

    background:
        rgba(0, 132, 209, 0.06);
}


.adt-nav-link--active {

    color: var(--adt-primary) !important;

    background:
        rgba(0, 132, 209, 0.08);
}


.adt-nav-link--active::after {

    content: "";

    position: absolute;

    left: 14px;
    right: 14px;

    bottom: 3px;

    height: 2px;

    border-radius: 999px;

    background:
        var(--adt-primary);
}


/* ============================================================
   HEADER ACTIONS
============================================================ */

.adt-header-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}


.adt-enroll-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding:
        9px 19px;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            var(--adt-primary),
            #0284C7
        );

    color: #FFFFFF;

    text-decoration: none;

    font-family:
        'Poppins',
        Arial,
        sans-serif;

    font-size: 0.83rem;

    font-weight: 700;

    box-shadow:
        0 4px 12px
        rgba(0, 132, 209, 0.24);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.adt-enroll-button:hover {

    color: #FFFFFF;

    transform:
        translateY(-1px);

    box-shadow:
        0 7px 18px
        rgba(0, 132, 209, 0.32);
}


.adt-enroll-button i {

    font-size: 0.72rem;

    transition:
        transform 0.2s ease;
}


.adt-enroll-button:hover i {

    transform:
        translateX(3px);
}


/* ============================================================
   MOBILE TOGGLE
============================================================ */

.adt-mobile-toggle {

    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid var(--adt-border);

    border-radius: 9px;

    background: var(--adt-light);

    cursor: pointer;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;
}


.adt-mobile-toggle span {

    display: block;

    width: 20px;
    height: 2px;

    border-radius: 2px;

    background:
        var(--adt-navy);

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.adt-mobile-toggle[aria-expanded="true"]
span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);
}


.adt-mobile-toggle[aria-expanded="true"]
span:nth-child(2) {

    opacity: 0;
}


.adt-mobile-toggle[aria-expanded="true"]
span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* ============================================================
   MOBILE NAVIGATION
============================================================ */

.adt-mobile-nav {

    display: none;

    width: 100%;

    background:
        var(--adt-white);

    border-top:
        1px solid var(--adt-border);

    box-shadow:
        0 15px 30px
        rgba(15, 23, 42, 0.10);

    overflow: hidden;

    max-height: 0;

    opacity: 0;

    transition:
        max-height 0.3s ease,
        opacity 0.25s ease;
}


.adt-mobile-nav--open {

    max-height: 600px;

    opacity: 1;
}


.adt-mobile-nav-inner {

    max-width: 1280px;

    margin: 0 auto;

    padding:
        12px 24px 20px;

    display: flex;

    flex-direction: column;

    gap: 4px;
}


.adt-mobile-nav-inner a {

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 48px;

    padding:
        12px 14px;

    border-radius: 8px;

    color: var(--adt-text);

    text-decoration: none;

    font-size: 0.94rem;

    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.adt-mobile-nav-inner a:hover {

    background:
        var(--adt-light);

    color:
        var(--adt-primary);
}


.adt-mobile-nav-inner
a.adt-nav-link--active {

    color:
        var(--adt-primary);

    background:
        rgba(0, 132, 209, 0.07);
}


.adt-mobile-nav-inner
a i {

    font-size: 0.68rem;

    color:
        #94A3B8;
}


/* Mobile enroll button */

.adt-mobile-nav-inner
a.adt-mobile-enroll {

    justify-content: center;

    margin-top: 8px;

    background:
        var(--adt-primary);

    color:
        #FFFFFF;
}


.adt-mobile-nav-inner
a.adt-mobile-enroll:hover {

    background:
        var(--adt-primary-dark);

    color:
        #FFFFFF;
}

.course-card img,
.course-card .card-image,
.course-card .course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
    background: #eef2f9;
}


/* ============================================================
   BODY LOCK WHEN MOBILE MENU IS OPEN
============================================================ */

body.adt-mobile-menu-open {

    overflow: hidden;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1050px) {

    .adt-header-container {

        gap: 16px;

    }

    .adt-nav-link {

        padding:
            8px 10px;

        font-size:
            0.83rem;

    }

    .adt-brand-subtitle {

        display: none;

    }

}


@media (max-width: 900px) {

    .adt-main-nav {

        display: none;

    }

    .adt-enroll-button {

        display: none;

    }

    .adt-mobile-toggle {

        display: flex;

    }

    .adt-mobile-nav {

        display: block;

    }
    
    /* Show the mobile title when hamburger menu appears */
    .adt-mobile-title {
        display: block;
    }

}


@media (max-width: 600px) {

    .adt-header-container {

        min-height: 68px;

        padding:
            0 16px;

    }

    .adt-brand-logo img {

        height: 42px;

        max-width: 150px;

    }

    .adt-brand-title {

        font-size:
            1.05rem;

    }

    .adt-mobile-nav-inner {

        padding:
            10px 16px 18px;

    }
    
    /* Adjust mobile title size for smaller phones */
    .adt-mobile-title {
        font-size: 0.95rem;
    }

}


@media (max-width: 400px) {

    .adt-brand-text {

        display: none;

    }

    .adt-brand-logo {

        width: auto;

    }
    
    /* Further adjust mobile title to prevent wrapping */
    .adt-mobile-title {
        font-size: 0.85rem;
        margin: 0 4px;
    }

}


/* ============================================================
   ACCESSIBILITY
============================================================ */

.adt-nav-link:focus-visible,
.adt-enroll-button:focus-visible,
.adt-mobile-toggle:focus-visible,
.adt-mobile-nav-inner a:focus-visible {

    outline:
        3px solid
        rgba(0, 132, 209, 0.35);

    outline-offset: 2px;

}


@media (prefers-reduced-motion: reduce) {

    .adt-site-header,
    .adt-nav-link,
    .adt-enroll-button,
    .adt-mobile-nav,
    .adt-mobile-toggle span {

        transition: none !important;

    }

}