/* -------------------------------- */
/* 1. Global Base Styles */
/* -------------------------------- */
* {
    box-sizing: border-box;
    font-family: "Manrope", sans-serif;
    margin: 0;
    padding: 0;
    /* user-select: none; */
}

/* Global Scrollbar Styling */
* {
    scrollbar-width: thin;
    scrollbar-color: #bbb transparent;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 3px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

/* -------------------------------- */
/* 2. CSS Variables & Themes */
/* -------------------------------- */
:root {
    --bg-color-body: #E2E8F0;
    --bg-color-sidebar: #E2E8F0;
    --bg-color-navbar: #E2E8F0;
    --bg-color-primary: #52a9f4;
    --bg-color-secondary: #45556c;
    --text-color-body: #212529;
    --text-color-sidebar: #212529;
    --text-color-navbar: #212529;
    --text-color-primary: #E2E8F0;
    --text-color-secondary: #E2E8F0;

    --input-color: #f1f5f9;
    --border-color: #cccccc;
    --scrollbar-color: #0b89a8;
    --active-color: #288be7;
    --hover-color: #f1f5f9;
    --box-shadow: rgba(0, 0, 0, 0.1);

    /* --color-primary: #7688a5; */
    --color-primary: var(--amc-midnight);
    --color-secondary: #45556c;
    --color-accent: #288be7;
    --color-warning: #ffc107;
    --color-info: #0d6efd;
    --color-success: #198754;
    --color-danger: #dc3545;
    --color-muted: #888;
    --color-light: #fafafa;
    --color-dark: #000000;
}

[data-theme='dark'] {
    --bg-color-body: #1D293D;
    --bg-color-sidebar: #1D293D;
    --bg-color-navbar: #1D293D;
    --bg-color-primary: #52a9f4;
    --bg-color-secondary: #45556c;
    --text-color-body: #E2E8F0;
    --text-color-sidebar: #E2E8F0;
    --text-color-navbar: #E2E8F0;
    --text-color-primary: #E2E8F0;
    --text-color-secondary: #E2E8F0;

    --input-color: #45556c;
    --border-color: #666666;
    --scrollbar-color: #555555;
    --active-color: #288be7;
    --hover-color: #45556c;
    --box-shadow: rgba(255, 255, 255, 0.1);
}

/* -------------------------------- */
/* 3. HTML Element Defaults */
/* -------------------------------- */
body {
    /* background: var(--bg-color-body);
color: var(--text-color-body); */
    scroll-behavior: smooth;
    /* overflow: hidden; */
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span {
    margin: 0 !important;
    padding: 0 !important;
}

a,
a:hover {
    text-decoration: none;
    color: var(--text-color-body);
}

ul {
    list-style: none;
}

input,
select,
button {
    background: transparent;
    border: transparent;
    outline: transparent;
}

button {
    background: transparent;
}

input[type='checkbox'] {
    cursor: pointer;
}

/* -------------------------------- */
/* 4. Input & Form Controls */
/* -------------------------------- */
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
input[type="color"] {
    background: var(--input-color);
    color: var(--text-color-body);
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background: var(--color-primary);
    border: none;
    outline: none;
}

input::placeholder,
textarea::placeholder,
select option[disabled] {
    color: var(--text-color-body) !important;
    opacity: 0.5 !important;
}

/* */
.bg-primary {
    background-color: var(--color-primary) !important;
    color: var(--color-light) !important;
}

.badge {
    background-color: var(--color-primary) !important;
    color: var(--color-light) !important;
}


/* */

.no-focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.no-focus:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.badge {
    padding: 0.5rem !important;
}

/* Pagination container */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 20px 0;
    list-style: none;
}

/* Page links */
.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    color: var(--color-primary);
    border: 1px solid var(--border-color);
}

/* Hover effect */
.pagination .page-link:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
}

/* Active page */
.pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
    font-weight: 600;
    padding: 6px 14px !important;
}

/* Disabled link */
.pagination .page-item.disabled .page-link {
    color: var(--color-muted);
    pointer-events: none;
    cursor: not-allowed;
    background-color: var(--color-light);
    padding: 6px 14px !important;
    cursor: not-allowed;
}

/* Previous/Next arrows */
.pagination .page-link[rel="prev"],
.pagination .page-link[rel="next"] {
    font-weight: bold;
}

/* */

.z-index-1 {
    z-index: 1;
}

.z-index-10 {
    z-index: 10;
}

.z-index-100 {
    z-index: 100;
}

.z-index-1000 {
    z-index: 1000;
}

.z-index-10000 {
    z-index: 10000;
}

.-z-index-10000 {
    z-index: -10000;
}

.-z-index-1000 {
    z-index: -1000;
}

.-z-index-100 {
    z-index: -100;
}

.-z-index-10 {
    z-index: -10;
}

.-z-index-1 {
    z-index: -1;
}

.z-index-0 {
    z-index: 0;
}

/* */
/* =========================================================
   AMC — Page Header  (redesigned)
   Inspired by: PA Global split-layout with diagonal clip
   ========================================================= */
/* ── Wrapper ────────────────────────────────────────────── */
.amc-page-header {
    display: flex;
    min-height: 340px;
    background: var(--amc-midnight);
    color: var(--amc-ice-blue);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

/* ── Left panel ─────────────────────────────────────────── */
.amc-ph-left {
    position: relative;
    width: 52%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 5rem 4rem 4rem 5%;
    z-index: 3;
    /* Diagonal right edge */
    clip-path: polygon(0 0, calc(100% + 1px) 0, calc(100% - 60px) 100%, 0 100%);
    background: var(--amc-midnight);
}

/* Subtle vertical grid lines */
.amc-ph-grid {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
}
.amc-ph-gridline {
    flex: 1;
    border-right: 1px solid rgba(255,255,255,0.12);
    opacity: 0.5;
}

/* ── Content ────────────────────────────────────────────── */
.amc-ph-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

/* Breadcrumb */
.amc-ph-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--amc-border-strong);
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}
.amc-ph-breadcrumb a {
    color: var(--amc-mist-blue) !important;
    text-decoration: none;
    transition: color 0.2s;
}
.amc-ph-breadcrumb .amc-ph-sep {
    color: var(--amc-mist-blue) !important;
}

.amc-ph-breadcrumb a:hover { color: var(--amc-ice-blue); }
.amc-ph-breadcrumb .amc-ph-sep { opacity: 0.4; }
.amc-ph-breadcrumb .amc-ph-current { color: var(--amc-ice-blue); }

/* Badges */
.amc-ph-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}
.amc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem !important;
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.amc-badge--type    { background: rgba(200,169,110,0.18); color: var(--amc-ice-blue); border: 1px solid rgba(200,169,110,0.35); }
.amc-badge--featured{ background: rgba(76,175,138,0.18);  color: var(--amc-ice-blue2); border: 1px solid rgba(76,175,138,0.35); }
.amc-badge--done    { background: rgba(255,255,255,0.1);  color: var(--amc-border-strong); border: 1px solid rgba(255,255,255,0.12); }
.amc-badge--cat     { background: rgba(255,255,255,0.08); color: var(--amc-border-strong); border: 1px solid rgba(255,255,255,0.12); }

/* Title */
.amc-ph-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--amc-ice-blue);
    margin: 0 0 1.4rem;
    letter-spacing: -0.02em;
}

/* Accent underline on title */
.amc-ph-title::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    background: var(--amc-ice-blue);
    margin-top: 0.7rem;
    border-radius: 2px;
}

/* Meta row */
.amc-ph-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 1.2rem;
}
.amc-meta-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--amc-border-strong);
}
.amc-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.75;
}

/* Topics chips */
.amc-ph-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}
.amc-topic-chip {
    padding: 0.25rem 0.7rem !important;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--amc-ice-blue) !important;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
}
.amc-topic-chip:hover {
    background: rgba(200,169,110,0.15);
    color: var(--amc-ice-blue);
}

/* Bottom-left corner accent */
.amc-ph-corner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--amc-ice-blue), transparent);
}

/* ── Right image panel ──────────────────────────────────── */
.amc-ph-right {
    position: absolute;
    inset: 0 0 0 calc(52% - 65px);
    z-index: 1;
    overflow: hidden;
}

.amc-ph-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.amc-ph-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.amc-ph-img-overlay {
    position: absolute;
    inset: 0;
    /* gradient fade from left so image blends into dark left panel */
    background: linear-gradient(
        to right,
        var(--amc-midnight) 0%,
        rgba(1,31,28,0.55) 30%,
        rgba(1,31,28,0.15) 100%
    );
}

/* Pattern fallback (no image) */
.amc-ph-right--pattern {
    /* background: linear-gradient(135deg,
        rgba(255,255,255,0.04) 0%,
        rgba(200,169,110,0.06) 100%
    ); */
}
.amc-ph-pattern {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px){
    .amc-ph-right--pattern {
        display: none;
    }
}

/* Green accent bar (echoes PA Global's green slash) */
.amc-ph-accent-bar {
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: linear-gradient(to bottom, var(--amc-ice-blue2), transparent);
    border-radius: 0 2px 2px 0;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes ph-fadein {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.amc-ph-breadcrumb { animation: ph-fadein 0.5s ease both; animation-delay: 0.05s; }
.amc-ph-badges     { animation: ph-fadein 0.5s ease both; animation-delay: 0.12s; }
.amc-ph-title      { animation: ph-fadein 0.55s ease both; animation-delay: 0.2s; }
.amc-ph-meta       { animation: ph-fadein 0.5s ease both; animation-delay: 0.28s; }
.amc-ph-topics     { animation: ph-fadein 0.5s ease both; animation-delay: 0.34s; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .amc-page-header {
        flex-direction: column;
        min-height: auto;
    }
    .amc-ph-left {
        width: 100%;
        clip-path: none;
        padding: 6rem 5% 2.5rem;
    }
    .amc-ph-right {
        position: relative;
        inset: auto;
        height: 220px;
        width: 100%;
    }
    .amc-ph-img-overlay {
        /* background: linear-gradient(
            to bottom,
            var(--amc-midnight) 0%,
            rgba(1,31,28,0.3) 60%,
            rgba(1,31,28,0.6) 100%
        ); */
        background: transparent;
    }
}

@media (max-width: 576px) {
    .amc-ph-left {
        padding: 5.5rem 1.25rem 2rem;
    }
    .amc-ph-title {
        font-size: 1.65rem;
    }
    .amc-ph-right { height: 160px; }
}

/* Blog card: baseline 1rem font size */
.blog-card,
.blog-card * {
    font-size: 1rem !important;
}

/* Card styling */
.blog-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform .22s ease, box-shadow .22s ease;
    min-height: 320px;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

/* Thumbnail */
.blog-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Excerpt */
.blog-excerpt {
    color: #555;
    line-height: 1.5;
}

/* Share dropdown */
.share-dropdown {
    position: relative;
}

.share-box {
    display: none;
    right: 0;
    bottom: calc(100% + 8px);
    min-width: 180px;
    z-index: 50;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    padding: .4rem;
}

.share-dropdown.active .share-box {
    display: block;
}
.share-dropdown.active .share-box .dropdown-item {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card .btn-sm {
    padding: .25rem .4rem;
    font-size: .95rem;
}

/* */

/* Event card: baseline font-size 1rem for everything inside */
.event-card,
.event-card * {
    font-size: 1rem !important;
    /* enforce minimum font-size */
}

/* Card visuals */
.event-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform .22s ease, box-shadow .22s ease;
    min-height: 320px;
    /* optional consistent height */
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

/* Thumbnail */
.event-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Excerpt styling */
.event-excerpt {
    color: #555;
    line-height: 1.5;
    margin-bottom: .75rem;
}

/* Footer share box - opens upward */
.share-dropdown {
    position: relative;
}

.share-box {
    display: none;
    right: 0;
    bottom: calc(100% + 8px);
    /* show above the toggle button */
    min-width: 180px;
    z-index: 50;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    padding: .4rem;
}

.share-dropdown.active .share-box {
    display: block;
}

/* make buttons small and tight */
.event-card .btn-sm {
    padding: .25rem .4rem;
    font-size: .95rem;
}

/* responsive tweaks */
@media (max-width: 767.98px) {
    .event-card {
        min-height: auto;
    }

    .event-thumb {
        height: 160px;
    }
}


/* Modal CSS */
.modal {
    background: transparent;
}

.modal-content {
    background: var(--bg-color-body) !important;
    color: var(--text-color-body) !important;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.modal-header,
.modal-footer {
    border-color: var(--border-color);
}

.modal.zoom .modal-dialog {
    opacity: 0 !important;
    transform: scale(0.7) !important;
    transition: transform 0.3s ease;
}

.modal.zoom.show .modal-dialog {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.modal.fade.zoom .modal-dialog {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* */

/* =========================
Post Card Common Styles
========================= */
.post-card {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    /* overflow: hidden; */
    transition: all 0.2s ease-in-out;
}

.post-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.post-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.post-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-card .share-box {
    bottom: 100%;
    left: 0;
    display: none;
    z-index: 20;
    min-width: 160px;
}

.post-card .share-box.show {
    display: block;
}

.post-card .featured-tag {
    font-size: 0.8rem;
    display: block;
    padding: 0.25rem 1rem !important;
    position: absolute;
    background: var(--amc-navy-primary);
    color: var(--amc-ice-blue);
    top: 1rem;
    left: 1rem;
    border-radius: 0.5rem;
}

/* ── Insights section overflow fix ── */
.insights-section {
    overflow: hidden;
}

.insights-layout>* {
    min-width: 0;
}

.insights-grid {
    min-width: 0;
}

.insights-grid__item {
    min-width: 0;
    overflow: hidden;
}

.insights-section .post-card {
    overflow: hidden;
    min-width: 0;
    word-break: break-word;
}

.insights-section .post-card img {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.insights-section .post-card .card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

/* Select2 Component CSS*/

.select2-container {
    display: block;
    border-radius: 4px !important;
}

.select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 12px !important;
    border: 1px solid #ced4da;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 6px !important
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;
}

.select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    color: #6c757d;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.select2-container--default .select2-results__option {
    background: var(--input-color);
    color: var(--text-color-body);
}

.select2-selection.select2-selection--multiple {
    color: var(--text-color-body) !important;
    background: var(--input-color) !important;
    overflow: hidden;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding-right: 0.5rem;
    margin: 4px;
    color: var(--text-color-body) !important;
    background: var(--bg-color-body) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    font-size: 24px;
    top: -0.2rem;
    right: 0.4rem;
    margin: 0 !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    margin: 6px 12px;
}


/* */

#globalSearchResults {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.not-home nav.navbar {
    background: var(--amc-midnight) !important;
    color: #ffefb3;
    align-items: stretch;
    min-height: 76px;
}

body.not-home .nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Blur background after scroll */
body.is-home nav.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: background 0.35s ease,
        backdrop-filter 0.35s ease,
        box-shadow 0.35s ease;
    z-index: 10000;
}

body.is-home nav.navbar {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;

    /* smooth transition */
    transition: background 0.35s ease,
        backdrop-filter 0.35s ease,
        box-shadow 0.35s ease;
}

body.is-home nav.navbar.scrolled {
    background: var(--amc-midnight) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


/* body nav.navbar > a img {
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
} */
body nav.navbar > a {
    place-self: center;
}
body nav.navbar > a img {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    padding: 6px 10px;
    backdrop-filter: blur(4px);
}

/*  */

/* ── overlay ── */
.amcdrawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 99999998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.amcdrawer-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* ── drawer shell ── */
.amcdrawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 320px;
    max-width: 92vw;
    background: var(--amc-midnight);
    z-index: 99999999;
    transform: translateX(-100%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    font-family: "Manrope", sans-serif;
}

.amcdrawer.open {
    transform: translateX(0);
}

/* ── header ── */
.amcdrawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    flex-shrink: 0;
}

.amcdrawer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

/* .amcdrawer-brand-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
} */

.amcdrawer-brand-text {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amcdrawer-brand-text small {
    display: block;
    color: rgba(255, 255, 255, .45);
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amcdrawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}

.amcdrawer-close:hover {
    background: rgba(255, 255, 255, .18);
}

/* ── scrollable body  (layer stack container) ── */
.amcdrawer-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* layers slide inside this */
}

.amcdrawer-body::-webkit-scrollbar {
    width: 3px;
}

.amcdrawer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 2px;
}

/* ── individual layers ── */
.amcdrawer-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--amc-midnight);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.amcdrawer-layer.active {
    transform: translateX(0);
}

.amcdrawer-layer--root {
    transform: translateX(0);
}

/* root always at 0 initially */

/* ── back button ── */
.amcdrawer-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, .04);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: color .15s;
    flex-shrink: 0;
}

.amcdrawer-back:hover {
    color: #fff;
}

/* ── "View all …" banner ── */
.amcdrawer-view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 14px 4px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    text-decoration: none;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

.amcdrawer-view-all:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ── section label ── */
.amcdrawer-section-label {
    padding: 12px 16px 6px;
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .35);
    letter-spacing: .08em;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ── menu item row ── */
.amcdrawer-item-wrap {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.amcdrawer-item-wrap:not(:has(+ .amcdrawer-item-wrap)) {
    border-bottom: none;
}

.amcdrawer-link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 13px 16px;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    text-decoration: none;
    transition: color .15s, background .15s;
    min-width: 0;
}

.amcdrawer-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.amcdrawer-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── expand chevron button ── */
.amcdrawer-expand {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .4);
    cursor: pointer;
    flex-shrink: 0;
    transition: color .15s, background .15s;
}

.amcdrawer-expand:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

/* ── divider ── */
.amcdrawer-divider {
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: 6px 0;
    flex-shrink: 0;
}

/* ── quick-action CTA ── */
.amcdrawer-actions {
    padding: 12px 14px;
    flex-shrink: 0;
}

.amcdrawer-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
    justify-content: center;
    font-weight: 500;
}

.amcdrawer-cta:hover {
    background: rgba(255, 255, 255, .18);
}

/* ── footer ── */
.amcdrawer-foot {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    flex-shrink: 0;
}

.amcdrawer-socials {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.amcdrawer-social {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: background .15s, color .15s;
}

.amcdrawer-social:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.amcdrawer-copy {
    color: rgba(255, 255, 255, .3);
    font-size: 11px;
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 !important;
}

.amcdrawer-copy a {
    color: rgba(255, 255, 255, .45);
    text-decoration: none;
}

.amcdrawer-copy a:hover {
    color: rgba(255, 255, 255, .7);
}
