/* =========================================================
   NIOSHE TECH — HEADER
   File: assets/css/header.css
   Matches nth4-* header.php
========================================================= */

:root {
    --nth4-navy: #0b1f36;
    --nth4-navy-light: #153d67;
    --nth4-blue: #1769b0;
    --nth4-blue-dark: #10538e;
    --nth4-blue-soft: #edf6ff;
    --nth4-green: #138a5b;
    --nth4-green-soft: #eaf8f1;
    --nth4-gold: #d6a52e;
    --nth4-gold-soft: #fff7df;
    --nth4-text: #12263b;
    --nth4-body: #526375;
    --nth4-muted: #7a8999;
    --nth4-line: #dfe7ef;
    --nth4-white: #ffffff;
}

/* =========================================================
   RESET
========================================================= */

.nth4-header,
.nth4-header *,
.nth4-header *::before,
.nth4-header *::after {
    box-sizing: border-box;
}

.nth4-header {
    position: relative;
    z-index: 9999;

    width: 100%;

    margin: 0;
    padding: 0;

    background: #ffffff;

    border-bottom: 1px solid var(--nth4-line);

    box-shadow:
        0 5px 25px rgba(12, 31, 53, 0.06);
}

.nth4-header a {
    text-decoration: none;
}

.nth4-header button,
.nth4-header input,
.nth4-header summary {
    font: inherit;
}

.nth4-header [hidden] {
    display: none !important;
}

/* =========================================================
   SKIP LINK
========================================================= */

.nth4-skip-link {
    position: fixed;
    top: -100px;
    left: 20px;

    z-index: 999999;

    padding: 11px 16px;

    border-radius: 8px;

    background: var(--nth4-navy);
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}

.nth4-skip-link:focus {
    top: 15px;
}

/* =========================================================
   MAIN HEADER
========================================================= */

.nth4-header-inner {
    width: min(100% - 40px, 1600px);

    min-height: 90px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(255px, auto)
        auto
        minmax(270px, 360px)
        auto;

    align-items: center;

    gap: 22px;
}

/* =========================================================
   BRAND
========================================================= */

.nth4-brand {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 13px;

    color: var(--nth4-text);
}

.nth4-brand:hover {
    color: var(--nth4-text);
}

.nth4-logo-wrap {
    width: 62px;
    height: 62px;

    flex: 0 0 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 3px;

    overflow: hidden;

    border: 1px solid #dbe5ee;
    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 7px 22px rgba(10, 35, 60, 0.09);
}

.nth4-logo {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: center;

    border-radius: 50%;

    background: #ffffff;
}

.nth4-logo-fallback {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--nth4-navy),
            var(--nth4-blue)
        );

    color: #ffffff;

    font-size: 17px;
    font-weight: 900;
}

.nth4-brand-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.nth4-site-title {
    margin: 0;

    color: var(--nth4-text);

    font-size: 22px;
    line-height: 1.05;
    font-weight: 900;

    letter-spacing: -0.5px;

    white-space: nowrap;
}

.nth4-site-tagline {
    display: block;

    max-width: 265px;

    color: var(--nth4-muted);

    font-size: 10px;
    line-height: 1.35;
    font-weight: 600;
}

/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.nth4-desktop-nav {
    display: flex;
    align-items: center;

    gap: 3px;
}

.nth4-desktop-nav a {
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    border-radius: 10px;

    color: #34485b;

    font-size: 13px;
    line-height: 1;
    font-weight: 750;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.nth4-desktop-nav a:hover,
.nth4-desktop-nav a.nth4-active {
    background: var(--nth4-blue-soft);
    color: var(--nth4-blue-dark);
}

/* =========================================================
   DESKTOP SEARCH
========================================================= */

.nth4-search {
    width: 100%;

    min-height: 50px;

    display: grid;

    grid-template-columns:
        22px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 9px;

    padding: 5px 5px 5px 14px;

    margin: 0;

    border: 1px solid #d9e3ec;
    border-radius: 13px;

    background: #f8fafc;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.nth4-search:focus-within {
    border-color: #9abde0;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(23, 105, 176, 0.08);
}

.nth4-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #6e8295;
}

.nth4-search-icon svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nth4-search input {
    width: 100%;
    min-width: 0;

    height: 40px;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    color: var(--nth4-text);

    font-size: 13px;
    line-height: 1.4;
}

.nth4-search input::placeholder {
    color: #8d9baa;
}

.nth4-search button {
    height: 40px;

    margin: 0;

    padding: 0 16px;

    border: 0;
    border-radius: 9px;

    background: var(--nth4-blue);

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.nth4-search button:hover {
    background: var(--nth4-blue-dark);
}

/* =========================================================
   DESKTOP ACTIONS
========================================================= */

.nth4-desktop-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 9px;
}

/* =========================================================
   CALL + WHATSAPP
========================================================= */

.nth4-contact-button {
    min-height: 52px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 7px 12px 7px 7px;

    border: 1px solid var(--nth4-line);
    border-radius: 13px;

    background: #ffffff;

    color: var(--nth4-text);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.nth4-contact-button:hover {
    transform: translateY(-2px);

    color: var(--nth4-text);

    box-shadow:
        0 10px 25px rgba(10, 31, 53, 0.09);
}

.nth4-contact-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
}

.nth4-contact-icon svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nth4-call-button .nth4-contact-icon {
    background: #edf5fd;
    color: #24639f;
}

.nth4-call-button:hover {
    border-color: #bfd3e7;
}

.nth4-whatsapp-button .nth4-contact-icon {
    background: var(--nth4-green-soft);
    color: var(--nth4-green);
}

.nth4-whatsapp-button:hover {
    border-color: #bddfce;
}

.nth4-contact-copy {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.nth4-contact-copy small {
    color: var(--nth4-muted);

    font-size: 9px;
    line-height: 1;
    font-weight: 700;
}

.nth4-contact-copy strong {
    color: var(--nth4-text);

    font-size: 11px;
    line-height: 1.15;
    font-weight: 850;

    white-space: nowrap;
}

/* =========================================================
   CENTER LOGIN
========================================================= */

.nth4-center-login {
    position: relative;

    margin: 0;
    padding: 0;
}

.nth4-center-summary {
    min-height: 56px;

    display: grid;

    grid-template-columns:
        40px
        auto
        17px;

    align-items: center;

    gap: 10px;

    padding: 8px 13px 8px 8px;

    margin: 0;

    border: 0;
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #091c31 0%,
            #123b64 100%
        );

    color: #ffffff;

    box-shadow:
        0 11px 27px rgba(8, 29, 51, 0.2);

    cursor: pointer;

    list-style: none;

    user-select: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nth4-center-summary::-webkit-details-marker {
    display: none;
}

.nth4-center-summary::marker {
    content: "";
}

.nth4-center-summary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 34px rgba(8, 29, 51, 0.25);
}

.nth4-center-main-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.1);

    color: #f1c75d;
}

.nth4-center-main-icon svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nth4-center-title {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.nth4-center-title small {
    color: #b9c7d6;

    font-size: 8px;
    line-height: 1;
    font-weight: 700;
}

.nth4-center-title strong {
    color: #ffffff;

    font-size: 12px;
    line-height: 1.1;
    font-weight: 900;

    white-space: nowrap;
}

.nth4-center-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #f1c75d;

    transition: transform 0.2s ease;
}

.nth4-center-arrow svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nth4-center-login[open] .nth4-center-arrow {
    transform: rotate(180deg);
}

/* =========================================================
   CENTER LOGIN DROPDOWN
========================================================= */

.nth4-center-dropdown {
    position: absolute;

    top: calc(100% + 14px);
    right: 0;

    z-index: 10050;

    width: 355px;

    padding: 13px;

    border: 1px solid var(--nth4-line);
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 25px 65px rgba(8, 29, 51, 0.19);
}

.nth4-center-dropdown::before {
    content: "";

    position: absolute;

    top: -7px;
    right: 28px;

    width: 13px;
    height: 13px;

    transform: rotate(45deg);

    background: #ffffff;

    border-top: 1px solid var(--nth4-line);
    border-left: 1px solid var(--nth4-line);
}

.nth4-center-dropdown-head {
    padding: 5px 6px 12px;

    border-bottom: 1px solid #e8edf2;
}

.nth4-center-dropdown-head strong {
    color: var(--nth4-text);

    font-size: 14px;
    font-weight: 900;
}

/* =========================================================
   LOGIN CARDS
========================================================= */

.nth4-login-card {
    min-height: 78px;

    display: grid;

    grid-template-columns:
        48px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    margin-top: 9px;

    padding: 12px;

    border: 1px solid transparent;
    border-radius: 14px;

    color: var(--nth4-text);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.nth4-login-card:hover {
    transform: translateX(2px);

    background: #f7f9fc;

    border-color: #e5ebf1;

    color: var(--nth4-text);
}

.nth4-login-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: var(--nth4-gold-soft);
    color: #906a18;
}

.nth4-login-icon svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nth4-student-login .nth4-login-icon {
    background: var(--nth4-blue-soft);
    color: var(--nth4-blue-dark);
}

.nth4-login-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.nth4-login-copy strong {
    color: var(--nth4-text);

    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
}

.nth4-login-copy small {
    color: var(--nth4-muted);

    font-size: 10px;
    line-height: 1.35;
    font-weight: 500;
}

.nth4-login-arrow {
    color: var(--nth4-gold);

    font-size: 19px;
    line-height: 1;
    font-weight: 900;
}

/* =========================================================
   MOBILE HEADER ACTIONS
========================================================= */

.nth4-mobile-actions {
    display: none;

    align-items: center;

    gap: 8px;
}

.nth4-mobile-call,
.nth4-mobile-whatsapp {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
}

.nth4-mobile-call {
    background: #edf5fd;
    color: #24639f;
}

.nth4-mobile-whatsapp {
    background: var(--nth4-green-soft);
    color: var(--nth4-green);
}

.nth4-mobile-call svg,
.nth4-mobile-whatsapp svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   HAMBURGER
========================================================= */

.nth4-mobile-menu-button {
    width: 46px;
    height: 46px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 12px;

    background: var(--nth4-navy);

    box-shadow:
        0 8px 20px rgba(10, 28, 49, 0.15);

    cursor: pointer;
}

.nth4-mobile-menu-button span {
    width: 21px;
    height: 2px;

    display: block;

    border-radius: 20px;

    background: #ffffff;
}

/* =========================================================
   MOBILE DRAWER
========================================================= */

.nth4-mobile-drawer {
    position: fixed;

    inset: 0;

    z-index: 99999;
}

.nth4-mobile-overlay {
    position: absolute;

    inset: 0;

    background: rgba(4, 15, 28, 0.58);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.nth4-mobile-panel {
    position: absolute;

    top: 0;
    right: 0;

    width: min(94vw, 440px);
    height: 100%;

    overflow-x: hidden;
    overflow-y: auto;

    padding: 20px;

    background:
        radial-gradient(
            circle at top right,
            rgba(23, 105, 176, 0.09),
            transparent 30%
        ),
        #ffffff;

    box-shadow:
        -20px 0 65px rgba(6, 22, 39, 0.23);

    overscroll-behavior: contain;
}

/* =========================================================
   MOBILE DRAWER HEADER
========================================================= */

.nth4-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-bottom: 18px;

    border-bottom: 1px solid #e5ebf1;
}

.nth4-mobile-brand {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;

    color: var(--nth4-text);
}

.nth4-mobile-brand:hover {
    color: var(--nth4-text);
}

.nth4-mobile-logo {
    width: 55px;
    height: 55px;

    flex: 0 0 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 3px;

    overflow: hidden;

    border: 1px solid #dbe4ec;
    border-radius: 50%;

    background: #ffffff;
}

.nth4-mobile-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    border-radius: 50%;
}

.nth4-mobile-brand-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.nth4-mobile-brand-copy strong {
    color: var(--nth4-text);

    font-size: 19px;
    line-height: 1.1;
    font-weight: 900;
}

.nth4-mobile-brand-copy small {
    max-width: 225px;

    color: var(--nth4-muted);

    font-size: 10px;
    line-height: 1.35;
}

.nth4-mobile-close {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #dce4ec;
    border-radius: 12px;

    background: #ffffff;
    color: var(--nth4-text);

    cursor: pointer;
}

.nth4-mobile-close svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

/* =========================================================
   MOBILE SEARCH
========================================================= */

.nth4-mobile-search {
    width: 100%;

    min-height: 56px;

    display: grid;

    grid-template-columns:
        22px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 9px;

    margin: 18px 0 0;

    padding: 6px 6px 6px 14px;

    border: 1px solid #d8e2eb;
    border-radius: 14px;

    background: #f7fafc;
}

.nth4-mobile-search > span {
    display: flex;
    align-items: center;

    color: #708197;
}

.nth4-mobile-search svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nth4-mobile-search input {
    width: 100%;
    min-width: 0;

    height: 42px;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    color: var(--nth4-text);

    font-size: 14px;
}

.nth4-mobile-search button {
    height: 42px;

    padding: 0 15px;

    border: 0;
    border-radius: 10px;

    background: var(--nth4-blue);
    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */

.nth4-mobile-nav {
    display: grid;

    gap: 7px;

    margin-top: 18px;
}

.nth4-mobile-nav a {
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 15px;

    border: 1px solid transparent;
    border-radius: 12px;

    color: var(--nth4-text);

    font-size: 14px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.nth4-mobile-nav a:hover {
    border-color: #e1e9f0;

    background: #f5f8fb;

    color: var(--nth4-blue-dark);
}

.nth4-mobile-nav strong {
    color: var(--nth4-gold);

    font-size: 18px;
}

/* =========================================================
   MOBILE CENTER LOGIN
========================================================= */

.nth4-mobile-center {
    margin-top: 22px;

    padding: 19px;

    border-radius: 20px;

    background:
        radial-gradient(
            circle at top right,
            rgba(65, 132, 194, 0.35),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #081b30,
            #123d68
        );

    box-shadow:
        0 18px 40px rgba(8, 27, 47, 0.18);
}

.nth4-mobile-center-title {
    display: grid;

    grid-template-columns:
        52px
        minmax(0, 1fr);

    align-items: center;

    gap: 14px;

    padding-bottom: 17px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.nth4-mobile-center-title .nth4-center-main-icon {
    width: 52px;
    height: 52px;

    border-radius: 13px;
}

.nth4-mobile-center-title > span:last-child {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.nth4-mobile-center-title small {
    color: #b9c8d8;

    font-size: 10px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.nth4-mobile-center-title strong {
    color: #ffffff;

    font-size: 23px;
    line-height: 1.1;
    font-weight: 900;
}

/* =========================================================
   MOBILE LOGIN CARDS
========================================================= */

.nth4-mobile-login-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 16px;
}

.nth4-mobile-login {
    position: relative;

    min-height: 158px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 15px;

    border-radius: 16px;

    background: #ffffff;

    color: var(--nth4-text);

    box-shadow:
        0 9px 22px rgba(5, 20, 36, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nth4-mobile-login:hover {
    transform: translateY(-2px);

    color: var(--nth4-text);

    box-shadow:
        0 13px 28px rgba(5, 20, 36, 0.12);
}

.nth4-mobile-login .nth4-login-icon {
    position: absolute;

    top: 15px;
    left: 15px;

    width: 46px;
    height: 46px;
}

.nth4-mobile-student .nth4-login-icon {
    background: var(--nth4-blue-soft);
    color: var(--nth4-blue-dark);
}

.nth4-mobile-login strong {
    color: var(--nth4-text);

    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
}

.nth4-mobile-login small {
    margin-top: 5px;

    color: var(--nth4-muted);

    font-size: 10.5px;
    line-height: 1.4;
}

.nth4-mobile-login b {
    position: absolute;

    top: 17px;
    right: 15px;

    color: var(--nth4-gold);

    font-size: 20px;
    line-height: 1;
}

/* =========================================================
   MOBILE CONTACT
========================================================= */

.nth4-mobile-contact {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 22px;
}

.nth4-mobile-contact-card {
    min-width: 0;
    min-height: 88px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 14px;

    border-radius: 15px;

    transition: transform 0.2s ease;
}

.nth4-mobile-contact-card:hover {
    transform: translateY(-2px);

    color: inherit;
}

.nth4-mobile-contact-call {
    background: #edf5fd;
    color: #245f9d;
}

.nth4-mobile-contact-whatsapp {
    background: var(--nth4-green-soft);
    color: var(--nth4-green);
}

.nth4-mobile-contact-card .nth4-contact-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    background: rgba(255, 255, 255, 0.65);
}

.nth4-mobile-contact-card > span:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.nth4-mobile-contact-card small {
    font-size: 10px;
    line-height: 1;
    font-weight: 700;

    opacity: 0.75;
}

.nth4-mobile-contact-card strong {
    font-size: 11px;
    line-height: 1.3;
    font-weight: 900;

    overflow-wrap: anywhere;
}

/* =========================================================
   BODY DRAWER STATE
========================================================= */

body.nth4-drawer-open {
    overflow: hidden !important;
}

/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (max-width: 1500px) {

    .nth4-header-inner {
        gap: 12px;

        grid-template-columns:
            minmax(230px, auto)
            auto
            minmax(230px, 300px)
            auto;
    }

    .nth4-brand {
        min-width: 230px;
    }

    .nth4-site-title {
        font-size: 19px;
    }

    .nth4-site-tagline {
        max-width: 205px;

        font-size: 8.5px;
    }

    .nth4-desktop-nav a {
        padding-inline: 10px;

        font-size: 12px;
    }

    .nth4-contact-copy {
        display: none;
    }

    .nth4-contact-button {
        width: 48px;

        padding: 0;

        justify-content: center;
    }

    .nth4-contact-button .nth4-contact-icon {
        background: transparent;
    }
}

/* =========================================================
   TABLET / MOBILE HEADER
========================================================= */

@media (max-width: 1180px) {

    .nth4-header-inner {
        width: min(100% - 28px, 1100px);

        min-height: 78px;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 15px;
    }

    .nth4-desktop-nav,
    .nth4-search,
    .nth4-desktop-actions {
        display: none;
    }

    .nth4-mobile-actions {
        display: flex;
    }

    .nth4-brand {
        min-width: 0;
    }

    .nth4-logo-wrap {
        width: 56px;
        height: 56px;

        flex-basis: 56px;
    }

    .nth4-site-title {
        font-size: 19px;
    }

    .nth4-site-tagline {
        max-width: 250px;

        font-size: 9px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .nth4-header-inner {
        width: calc(100% - 20px);

        min-height: 76px;

        gap: 9px;
    }

    .nth4-brand {
        gap: 10px;
    }

    .nth4-logo-wrap {
        width: 52px;
        height: 52px;

        flex-basis: 52px;
    }

    .nth4-site-title {
        font-size: 18px;
    }

    .nth4-site-tagline {
        max-width: 150px;

        font-size: 8.5px;
    }

    .nth4-mobile-actions {
        gap: 6px;
    }

    .nth4-mobile-call,
    .nth4-mobile-whatsapp {
        width: 42px;
        height: 42px;
    }

    .nth4-mobile-menu-button {
        width: 44px;
        height: 44px;
    }

    .nth4-mobile-panel {
        width: min(96vw, 430px);

        padding: 17px;
    }

    .nth4-mobile-center {
        padding: 17px;
    }

    .nth4-mobile-center-title strong {
        font-size: 22px;
    }

    .nth4-mobile-login {
        min-height: 150px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 460px) {

    .nth4-header-inner {
        width: calc(100% - 16px);

        min-height: 72px;
    }

    .nth4-logo-wrap {
        width: 49px;
        height: 49px;

        flex-basis: 49px;
    }

    .nth4-site-title {
        font-size: 17px;
    }

    .nth4-site-tagline {
        display: none;
    }

    .nth4-mobile-actions {
        gap: 5px;
    }

    .nth4-mobile-call,
    .nth4-mobile-whatsapp {
        width: 39px;
        height: 39px;

        border-radius: 10px;
    }

    .nth4-mobile-menu-button {
        width: 41px;
        height: 41px;

        border-radius: 10px;
    }

    .nth4-mobile-panel {
        padding: 15px;
    }

    .nth4-mobile-brand-copy strong {
        font-size: 18px;
    }

    .nth4-mobile-search {
        margin-top: 15px;
    }

    .nth4-mobile-nav {
        margin-top: 15px;
    }

    .nth4-mobile-center {
        margin-top: 18px;

        padding: 16px;
    }

    .nth4-mobile-center-title {
        grid-template-columns:
            48px
            minmax(0, 1fr);

        gap: 12px;
    }

    .nth4-mobile-center-title .nth4-center-main-icon {
        width: 48px;
        height: 48px;
    }

    .nth4-mobile-center-title strong {
        font-size: 21px;
    }

    /*
     * Keep ATC + Student in two columns on normal phones.
     * Cards remain readable and are not compressed into tiny buttons.
     */

    .nth4-mobile-login-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }

    .nth4-mobile-login {
        min-height: 148px;

        padding: 13px;
    }

    .nth4-mobile-login .nth4-login-icon {
        top: 13px;
        left: 13px;

        width: 43px;
        height: 43px;
    }

    .nth4-mobile-login b {
        top: 15px;
        right: 12px;
    }

    .nth4-mobile-login strong {
        font-size: 14px;
    }

    .nth4-mobile-login small {
        font-size: 10px;
    }

    .nth4-mobile-contact {
        gap: 9px;
    }

    .nth4-mobile-contact-card {
        min-height: 82px;

        padding: 11px;

        gap: 8px;
    }

    .nth4-mobile-contact-card .nth4-contact-icon {
        width: 36px;
        height: 36px;

        flex-basis: 36px;
    }

    .nth4-mobile-contact-card strong {
        font-size: 10px;
    }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .nth4-mobile-call {
        display: none;
    }

    .nth4-mobile-login-grid,
    .nth4-mobile-contact {
        grid-template-columns: 1fr;
    }

    .nth4-mobile-login {
        min-height: 132px;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.nth4-header a:focus-visible,
.nth4-header button:focus-visible,
.nth4-header input:focus-visible,
.nth4-header summary:focus-visible {
    outline: 3px solid rgba(23, 105, 176, 0.3);
    outline-offset: 3px;
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .nth4-header *,
    .nth4-header *::before,
    .nth4-header *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}