html, body {
    margin: 0;
    padding: 0;
}
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scrollbar-color: #f97316 #f1f5f9;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 999px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

.site-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06);
    position: relative;
    z-index: 10;
}
.site-header .header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.55rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
}
.site-header .brand-mark {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    height:auto;
    padding:0;
    border-radius:0;
    background:transparent;
    color:inherit;
    font-size:0.9rem;
}
.site-header .brand-mark img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: contain;
    display: block;
}
.site-header .brand-mark.has-logo {
    min-height: 40px;
    height: 40px;
    max-height: 44px;
    width: 160px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}
.site-header .brand-text {
    font-size:1.05rem;
    letter-spacing:0.03em;
}
.site-header .nav-desktop {
    flex:1;
    display:flex;
    justify-content:center;
    gap:2.1rem;
    font-size:0.9rem;
}

 .site-header .nav-dropdown {
     position: relative;
     display: inline-flex;
     align-items: center;
 }

 .site-header .nav-dropdown-trigger {
     position: relative;
     display: inline-flex;
     align-items: center;
     gap: 0.35rem;
 }

 .site-header .nav-dropdown-trigger::after {
     content: "";
     width: 0;
     height: 0;
     border-left: 4px solid transparent;
     border-right: 4px solid transparent;
     border-top: 5px solid #6b7280;
     transform: translateY(1px);
     transition: transform 0.16s ease, border-top-color 0.16s ease;
 }

 .site-header .nav-dropdown:hover .nav-dropdown-trigger::after {
     transform: translateY(1px) rotate(180deg);
     border-top-color: #f97316;
 }

 .site-header .nav-dropdown-panel {
     position: absolute;
     top: calc(100% + 10px);
     left: 0;
     transform: translateY(6px);
     min-width: 240px;
     background: #ffffff;
     border-radius: 0.75rem;
     box-shadow: 0 18px 45px rgba(15,23,42,0.15);
     padding: 0.55rem;
     border: 1px solid rgba(226,232,240,0.95);
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s;
     z-index: 50;
 }

 .site-header .nav-dropdown-panel::before {
     content: "";
     position: absolute;
     left: 0;
     right: 0;
     top: -12px;
     height: 12px;
 }

 .site-header .nav-dropdown:hover .nav-dropdown-panel {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
 }

 .site-header .nav-dropdown-item {
     display: block;
     padding: 0.5rem 0.55rem;
     border-radius: 0.55rem;
     text-decoration: none;
     color: #111827;
     font-size: 0.86rem;
     font-weight: 500;
     white-space: nowrap;
 }

 .site-header .nav-dropdown-item:hover {
     background: #f1f5f9;
     color: #f97316;
 }
.header-user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.header-user-dropdown .user-trigger {
    display:flex;
    align-items:center;
    justify-content:center;
}
.header-user-dropdown .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background:#e5e7eb;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
.header-user-dropdown .user-avatar img {
    width:100%;
    height:100%;
    object-fit:cover;
}
.header-user-dropdown .user-avatar-initials {
    font-size:0.85rem;
    font-weight:600;
    color:#111827;
}
.header-user-dropdown .user-menu-panel {
    position:absolute;
    right:0;
    top:120%;
    min-width: 240px;
    background:#ffffff;
    border-radius:0.75rem;
    border: 2px solid rgba(249,115,22,0.22);
    box-shadow: 0 18px 45px rgba(15,23,42,0.12), 0 10px 28px rgba(249,115,22,0.22);
    padding:0.85rem 0.9rem 0.75rem;
    opacity:0;
    visibility:hidden;
    transform:translateY(4px);
    transition:opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s;
    z-index:50;
}
.header-user-dropdown:hover .user-menu-panel {
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}
.user-menu-header {
    display:flex;
    align-items:center;
    gap:0.65rem;
    margin-bottom:0.6rem;
}
.user-menu-avatar {
    width:40px;
    height:40px;
    border-radius:999px;
    background:#e5e7eb;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
.user-menu-avatar img {
    width:100%;
    height:100%;
    object-fit:cover;
}
.user-menu-meta {
    flex:1;
}
.user-menu-name-row {
    display:flex;
    align-items:center;
    gap:0.4rem;
    margin-bottom:0.15rem;
}
.user-menu-name {
    font-size:0.9rem;
    font-weight:600;
    color:#111827;
}
.user-menu-badge {
    font-size:0.7rem;
    font-weight:500;
    padding:0.1rem 0.4rem;
    border-radius:999px;
    background:#dcfce7;
    color:#166534;
}
.user-menu-email {
    font-size:0.78rem;
    color:#6b7280;
}
.user-menu-links {
    border-top:1px solid #e5e7eb;
    padding-top:0.5rem;
    margin-top:0.4rem;
}
.user-menu-link {
    display:flex;
    align-items:center;
    gap:0.45rem;
    padding:0.3rem 0.1rem;
    font-size:0.82rem;
    color:#111827;
    text-decoration:none;
}
.user-menu-link .icon {
    width:20px;
    text-align:center;
    color:#6b7280;
}
.user-menu-link:hover {
    color:#f97316;
}
.user-menu-logout {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:0.4rem;
    margin-top:0.65rem;
    padding:0.45rem 0.6rem;
    border-radius:999px;
    background:#fee2e2;
    color:#b91c1c;
    font-size:0.82rem;
    text-decoration:none;
}
.user-menu-logout .icon {
    color:#b91c1c;
}
.user-menu-logout:hover {
    background:#fecaca;
}

/* desktop-only dropdown (hide on small screens) */
@media (max-width: 900px) {
    .header-user-dropdown.header-desktop-only {
        display: none;
    }
}
.site-header .nav-link {
    text-decoration:none;
    color:#111827;
    font-weight:500;
}
.site-header .nav-link.is-active,
.site-header .nav-link[aria-current="page"] {
    color:#f97316;
    position: relative;
}
.site-header .nav-link.is-active::after,
.site-header .nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: #f97316;
    opacity: 0.95;
}
.site-header .nav-link:hover {
    color:#f97316;
}
.site-header .header-actions {
    display:flex;
    align-items:center;
    gap:0.6rem;
}

 .header-request-status-wrap {
     position: relative;
     display: inline-flex;
     align-items: center;
 }

 .header-request-status-btn {
     border: 0;
     cursor: pointer;
 }

 .header-request-status-panel {
     position: absolute;
     top: calc(100% + 10px);
     right: 0;
     width: 280px;
     background: #ffffff;
     border: 1px solid #e5e7eb;
     border-radius: 12px;
     box-shadow: 0 18px 40px rgba(15,23,42,0.12);
     padding: 10px 10px 10px;
     display: none;
     z-index: 60;
 }

 .header-request-status-wrap.is-open .header-request-status-panel {
     display: block;
 }

 .header-request-status-title {
     font-size: 0.82rem;
     font-weight: 700;
     color: #0f172a;
     margin-bottom: 6px;
 }

 .header-request-status-message {
     display: flex;
     align-items: center;
     gap: 8px;
     font-size: 0.82rem;
     color: #334155;
     line-height: 1.35;
     margin-bottom: 6px;
 }

 .header-request-status-state {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     padding: 3px 8px;
     border-radius: 999px;
     font-size: 0.74rem;
     font-weight: 800;
     letter-spacing: 0.02em;
     text-transform: capitalize;
     border: 1px solid rgba(15,23,42,0.08);
 }

 .header-request-status-state.req-status-approved {
     color: #166534;
     background: #dcfce7;
     border-color: rgba(22,101,52,0.18);
 }

 .header-request-status-state.req-status-rejected {
     color: #b91c1c;
     background: #fee2e2;
     border-color: rgba(185,28,28,0.18);
 }

 .header-request-status-state.req-status-pending {
     color: #92400e;
     background: #fef3c7;
     border-color: rgba(146,64,14,0.18);
 }

 .header-request-status-meta {
     font-size: 0.78rem;
     color: #64748b;
 }

 .header-admin-icon {
     position: relative;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 32px;
     height: 32px;
     border-radius: 999px;
     text-decoration: none;
     color: #111827;
     background: rgba(15,23,42,0.04);
     border: 1px solid rgba(15,23,42,0.08);
 }

 .header-admin-icon:hover {
     background: rgba(15,23,42,0.06);
 }

 .header-admin-icon-img {
     width: 18px;
     height: 18px;
     display: block;
     object-fit: contain;
     border-radius: 4px;
 }

 .header-admin-badge {
     position: absolute;
     top: -6px;
     right: -6px;
     min-width: 18px;
     height: 18px;
     padding: 0 6px;
     border-radius: 999px;
     background: #22c55e;
     color: #ffffff;
     font-size: 11px;
     font-weight: 700;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     line-height: 1;
     border: 2px solid #ffffff;
 }

 .header-admin-badge.header-admin-badge-danger {
     background: #ef4444;
 }

 .header-admin-badge.header-admin-badge-orders {
     background: #700aff;
 }

.header-notify {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    text-decoration: none;
    overflow: hidden;
    flex: 0 0 auto;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.header-notify img {
    width: 100%;
    height: 100%;
    display:block;
    object-fit: contain;
}

.header-notify:hover {
    filter: saturate(1.05);
}

.header-notify-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-notify-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15,23,42,0.12);
    padding: 8px;
    display: none;
    z-index: 60;
}

.header-notify-wrap.is-open .header-notify-panel {
    display: block;
}

.header-notify-all {
    display: block;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 6px;
}

.header-notify-list {
    max-height: 260px;
    overflow: auto;
}

.header-notify-item {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.84rem;
    color: #111827;
    line-height: 1.25;
}

.header-notify-item:hover {
    background: rgba(249,115,22,0.08);
    color: #f97316;
}

.header-mobile-profile {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #e5e7eb;
    border: 1px solid rgba(15,23,42,0.12);
    flex: 0 0 auto;
}

.header-mobile-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-mobile-profile-initials {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
}

@media (max-width: 900px) {
    .header-mobile-profile {
        display: inline-flex;
    }
}

.btn-header {
    display:inline-flex;
    align-items:center;
    gap:0.35rem;
    padding:0.32rem 1.2rem;
    border-radius:999px;
    font-size:0.86rem;
    font-weight:500;
    text-decoration:none;
    border:1px solid transparent;
}
.btn-header.btn-primary {
    background:#ffffff;
    color:#111827;
    box-shadow:0 0 0 1px rgba(249,115,22,0.45);
    background-image:linear-gradient(#ffffff,#ffffff),linear-gradient(135deg,#fed7aa,#f97316);
    background-origin:border-box;
    background-clip:padding-box,border-box;
}
.btn-header.btn-secondary {
    background:#fff7ed;
    color:#111827;
    border-color:#fed7aa;
}
.btn-header.btn-danger {
    background:#fee2e2;
    color:#b91c1c;
    border-color:#fecaca;
}
.btn-header .icon { font-size:0.85rem; }
.menu-toggle {
    margin-left:0.4rem;
    border:none;
    background:transparent;
    cursor:pointer;
    padding:0.2rem;
    display:none;
}
.menu-toggle span {
    display:block;
    width:18px;
    height:2px;
    background:#111827;
    border-radius:999px;
    margin:3px 0;
}

@media (max-width: 420px) {
    .site-header .header-inner {
        position: relative;
        padding-right: 2.6rem;
        gap: 0.6rem;
    }
    .site-header .header-actions {
        gap: 0.4rem;
        padding-right: 2.2rem;
    }
    .site-header .menu-toggle {
        position: absolute;
        right: 0.55rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 30;
        margin: 0;
        padding: 0.35rem;
    }
}
.mobile-menu {
    position:fixed;
    inset:0;
    background:rgba(15,23,42,0.5);
    display:none;
    z-index:40;
}
.mobile-menu.open { display:block; }
.mobile-menu-panel {
    position:absolute;
    right:0; top:0; bottom:0;
    width:260px;
    background:#ffffff;
    padding:1rem 1.2rem;
    box-shadow:-4px 0 16px rgba(15,23,42,0.18);
    display:flex;
    flex-direction:column;
    gap:0.6rem;
    overflow-y:auto;
}
.mobile-menu-header-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:0.4rem;
}
.mobile-close { border:none; background:transparent; cursor:pointer; font-size:1.1rem; }
.mobile-link {
    text-decoration:none;
    color:#111827;
    font-size:0.9rem;
    padding:0.4rem 0;
    display:block;
    width:100%;
    line-height: 1.25;
 }

button.mobile-link {
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.mobile-courses-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
 .mobile-link.is-active,
.mobile-link[aria-current="page"] {
    color:#f97316;
    font-weight:700;
}

.mobile-sub-link.is-active,
.mobile-sub-link[aria-current="page"] {
    color:#f97316;
    font-weight:700;
}

 .mobile-courses-caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6b7280;
    margin-left: 0.6rem;
    transition: transform 0.18s ease, border-top-color 0.18s ease;
 }

 .mobile-courses-toggle[aria-expanded="true"] .mobile-courses-caret {
    transform: rotate(180deg);
    border-top-color: #6b7280;
 }

 .mobile-packages {
    padding-left: 0.75rem;
    margin-top: -0.25rem;
    margin-bottom: 0.35rem;
    border-left: 2px solid #e5e7eb;
 }

 .mobile-packages {
    display: none;
 }

 .mobile-packages.is-open {
    display: block;
 }

 .mobile-sub-link {
    font-size: 0.86rem;
    color: #374151;
    padding: 0.28rem 0;
    white-space: normal;
    word-break: break-word;
 }

 .mobile-sub-link:hover {
    color: #111827;
 }
 .mobile-divider { height:1px; background:#e5e7eb; margin:0.4rem 0; }
 .mobile-cta { font-weight:600; }
 .mobile-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0.45rem 0.9rem;
    border-radius:999px;
    border:1px solid #e5e7eb;
    margin-top:0.25rem;
}
.mobile-btn-primary {
    background:#111827;
    color:#ffffff;
    border-color:#111827;
}
.mobile-btn-danger {
    background:#fee2e2;
    color:#b91c1c;
    border-color:#fecaca;
}
.mobile-btn i { margin-right:0.35rem; }
.mobile-contact { margin-top:0.5rem; font-size:0.85rem; color:#111827; }
.mobile-contact-row { display:flex; align-items:center; gap:0.55rem; margin-top:0.3rem; }
 .mobile-icon-circle {
    width: 26px;
    height: 26px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background:#111827;
    color:#fff;
    font-size:0.9rem;
    line-height: 1;
}
.mobile-socials { display:flex; gap:0.55rem; margin-top:0.5rem; }
.mobile-socials a {
    width:26px; height:26px; border-radius:999px;
    display:flex; align-items:center; justify-content:center;
    background:#f1f5f9; color:#111827; font-size:0.85rem; text-decoration:none;
}
@media (max-width: 768px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
    }
    .site-header .header-inner {
        padding: 0.55rem 0.35rem;
    }
    .site-header .brand-mark.has-logo {
        width: 130px;
        height: 36px;
        min-height: 36px;
        max-height: 40px;
    }
    .site-header .menu-toggle {
        margin-right: 0.25rem;
    }
    .header-notify-panel {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: min(260px, calc(100vw - 24px));
    }
    .site-header .nav-desktop { display:none; }
    .site-header .header-actions .btn-header { display:none; }
    .menu-toggle { display:inline-block; }
}

@media (min-width: 769px) {
    /* Sticky header on desktop for all pages (inside its container/column) */
    .site-header {
        position: sticky;
        top: 0;
    }
}
