*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter';
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', system-ui, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Banner Close Button ── */
.banner-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
    z-index: 10;
}

.banner-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding: 16px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 100;
    flex-direction: column;
    align-items: flex-start;
}

header .logo {
    font-size: 1.5rem;
    font-weight: 900;
    transition: color 0.3s;
}

header .logo:hover {
    color: #facc15;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: #9ca3af;
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: #fff;
}

.content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.content>h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 24px;
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.branch-card {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 32px;
    transition: box-shadow 0.5s, transform 0.3s, border-color 0.3s;
}

.branch-card:hover {
    box-shadow: 0 10px 15px -3px rgba(250, 204, 21, 0.1);
    transform: translateY(-2px);
    border-color: rgba(250, 204, 21, 0.3);
}

.branch-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 8px;
}

.branch-card p {
    color: #d1d5db;
    line-height: 1.625;
}

.btn-primary {
    display: inline-block;
    background: #facc15;
    color: #000;
    font-weight: 700;
    padding: 12px 24px;
    margin-top: 16px;
    border-radius: 6px;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background: #eab308;
    transform: scale(1.02);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 50;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.5);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    color: #d1d5db;
    line-height: 1.7;
}

.modal-body h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.modal-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-section {
    margin-bottom: 48px;
}

.category-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    color: #fff;
}

.content.article-page {
    max-width: 1040px;
    padding-top: 64px;
}

.branch-article {
    color: #d1d5db;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 28px;
    color: #facc15;
    font-weight: 700;
    transition: color 0.2s;
}

.article-back-link:hover {
    color: #eab308;
}

.article-header {
    margin-bottom: 32px;
}

.article-kicker {
    color: #facc15;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.article-header h1,
.branch-article-empty h1 {
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 18px;
}

.article-description {
    color: #9ca3af;
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 820px;
}

.article-media,
.article-thumbnail {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
    margin: 0 0 36px;
}

.article-media {
    display: flex;
    flex-direction: column;
}

.article-thumbnail {
    display: block;
    max-height: 520px;
    object-fit: cover;
}

.article-body {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.8;
}

.article-body p + p {
    margin-top: 18px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: #fff;
    font-weight: 800;
    margin: 34px 0 14px;
}

.article-body h2 {
    font-size: 1.65rem;
}

.article-body h3 {
    font-size: 1.35rem;
}

.article-body ul,
.article-body ol {
    margin: 18px 0 18px 24px;
}

.article-body a {
    color: #facc15;
    text-decoration: underline;
}

.article-links-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-links-heading {
    margin-bottom: 18px;
}

.article-links-heading p {
    margin: 0 0 4px;
    color: #facc15;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.article-links-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.15;
}

.article-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.article-link-card {
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.52);
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.article-link-card:hover,
.article-link-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(250, 204, 21, 0.5);
    box-shadow: 0 18px 36px rgba(250, 204, 21, 0.08);
    outline: none;
}

.article-link-card img,
.article-link-card video,
.article-link-card iframe,
.article-link-card-bg,
.article-link-card-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.article-link-card img,
.article-link-card video {
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.45s ease, opacity 0.45s ease;
    z-index: -3;
}

.article-link-card iframe {
    border: 0;
    pointer-events: none;
    filter: blur(3px);
    transform: scale(1.08);
    z-index: -3;
}

.article-link-card:hover img,
.article-link-card:hover video {
    transform: scale(1.08);
}

.article-link-card-bg {
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.2), transparent 36%),
        linear-gradient(135deg, rgba(31, 41, 55, 0.86), rgba(0, 0, 0, 0.72));
    z-index: -4;
}

.article-link-card-shade {
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0.1)),
        linear-gradient(135deg, rgba(250, 204, 21, 0.18), transparent 46%);
    z-index: -2;
}

.article-link-card-content {
    width: 100%;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-link-card-eyebrow {
    width: fit-content;
    border: 1px solid rgba(250, 204, 21, 0.38);
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.34);
    color: #facc15;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.article-link-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.15;
}

.article-link-card p {
    margin: 0;
    color: #d1d5db;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.45;
}

.article-link-card-cta {
    width: fit-content;
    margin-top: 4px;
    color: #facc15;
    font-size: 0.78rem;
    font-weight: 900;
}

.article-link-card-cta::after {
    content: " ->";
    transition: margin-left 0.2s ease;
}

.article-link-card:hover .article-link-card-cta::after {
    margin-left: 4px;
}

.article-link-ad-card {
    appearance: none;
    border-color: rgba(250, 204, 21, 0.22);
    cursor: pointer;
    text-align: left;
}

.article-link-ad-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: #eab308;
    color: #000;
    padding: 3px 10px;
    font-family: "Raleway", sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.branch-article-empty {
    min-height: 320px;
}

footer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    border-top: 1px solid #1f2937;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-grid h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-grid p,
.footer-grid li {
    color: #9ca3af;
}

.footer-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-grid a {
    color: #9ca3af;
    transition: color 0.3s;
}

.footer-grid a:hover {
    color: #facc15;
}

.footer-bottom {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-bottom p+p {
    margin-top: 4px;
}

.bounce-arrow {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 1s infinite;
    pointer-events: none;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(-25%);
    }

    50% {
        transform: translateX(-50%) translateY(0);
    }
}

.hero-center {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 50%, #000 100%);
    pointer-events: none;
    z-index: 1;
}

/* ── Ad Modal Enhancements ── */
@keyframes adModalIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-overlay.active .modal-content.ad-modal {
    animation: adModalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ad-modal .ad-hero {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ad-modal .ad-hero img,
.ad-modal .ad-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-modal .ad-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    pointer-events: none;
}

.ad-modal .ad-hero-title {
    position: absolute;
    bottom: 24px;
    left: 32px;
    right: 32px;
    z-index: 2;
}

.ad-modal .ad-hero-title h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    padding: 0;
    border: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.ad-modal .modal-body {
    padding: 28px 32px 32px;
}

.ad-modal .ad-description {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.ad-modal .ad-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #000;
    font-weight: 800;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(250, 204, 21, 0.2);
}

.ad-modal .ad-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(250, 204, 21, 0.35);
}

.ad-modal .ad-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ad-modal .ad-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ad-modal .ad-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 64px 32px;
}

@keyframes adSpin {
    to { transform: rotate(360deg); }
}

.ad-modal .ad-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(250, 204, 21, 0.2);
    border-top-color: #facc15;
    border-radius: 50%;
    animation: adSpin 0.8s linear infinite;
}

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

    .article-links-grid {
        grid-template-columns: 1fr;
    }

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

    .ad-modal .ad-hero {
        height: 180px;
    }

    .ad-modal .ad-hero-title h2 {
        font-size: 1.5rem;
    }

    .ad-modal .modal-body {
        padding: 20px 20px 28px;
    }
}

@media (min-width: 769px) and (max-width: 1040px) {
    .article-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
