:root {
    --rg-primary: #ff3030;
    --rg-secondary: #0048a8;
    --rg-accent: #7890d8;
    --rg-dark: #0e1726;
    --rg-body: #273449;
    --rg-muted: #68758a;
    --rg-line: #e5eaf3;
    --rg-soft: #f6f8fc;
    --rg-paper: #ffffff;
    --rg-primary-dark: #d92525;
    --rg-secondary-dark: #00377f;
    --shadow-sm: 0 6px 18px rgba(14, 23, 38, 0.06);
    --shadow-md: 0 18px 45px rgba(14, 23, 38, 0.1);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    background: var(--rg-paper);
    color: var(--rg-body);
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--rg-dark); font-family: Poppins, "DM Sans", sans-serif; letter-spacing: 0; line-height: 1.08; }
h1 { font-size: clamp(40px, 6vw, 82px); margin-bottom: 22px; }
h2 { font-size: clamp(28px, 3.6vw, 48px); margin-bottom: 18px; }
h3 { font-size: 21px; margin-bottom: 10px; }
p { margin-bottom: 16px; }

.eyebrow {
    color: var(--rg-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 12px;
    text-transform: uppercase;
}
.muted { color: var(--rg-muted); }

.site-header {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--rg-line);
    display: grid;
    gap: 22px;
    grid-template-columns: auto 1fr;
    padding: 12px clamp(18px, 5vw, 72px);
    position: sticky;
    top: 0;
    z-index: 30;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.brand-mark {
    align-items: center;
    display: inline-flex;
    gap: 14px;
    min-width: 310px;
}
.brand-logo {
    flex: 0 0 auto;
    height: 74px;
    object-fit: contain;
    width: 74px;
}
.brand-symbol {
    align-items: center;
    background: var(--rg-secondary);
    border-radius: 8px;
    color: white;
    display: inline-flex;
    font-weight: 900;
    height: 56px;
    justify-content: center;
    width: 56px;
}
.brand-mark strong,
.brand-mark small { display: block; }
.brand-mark strong { color: var(--rg-dark); font-size: 18px; line-height: 1.1; }
.brand-mark small { color: var(--rg-muted); font-size: 12px; margin-top: 3px; }
.site-nav {
    align-items: center;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    min-width: 0;
}
.site-nav a {
    border-radius: 8px;
    color: var(--rg-muted);
    font-size: 13px;
    font-weight: 800;
    padding: 9px 10px;
    white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav .active {
    background: #edf4ff;
    color: var(--rg-secondary);
}
.site-nav .nav-cta {
    background: var(--rg-primary);
    color: white;
    margin-left: 6px;
    padding-inline: 14px;
}
.site-nav .nav-cta:hover { background: var(--rg-primary-dark); color: white; }

main { min-height: 70vh; }
.hero-section,
.page-hero,
.section-grid,
.content-band,
.contact-layout,
.admin-shell,
.team-section,
.carousel-section,
.testimonials,
.accordion-wrap,
.filter-bar,
.location-grid,
.masonry-grid,
.job-grid,
.blog-grid,
.post-detail,
.related-posts {
    padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.hero-section {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(0, 72, 168, 0.06), rgba(255, 48, 48, 0.04)),
        var(--rg-paper);
    display: grid;
    gap: 52px;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.76fr);
    min-height: 690px;
    overflow: hidden;
    position: relative;
}
.hero-section::after {
    background: linear-gradient(135deg, var(--rg-secondary), var(--rg-primary));
    content: "";
    height: 6px;
    inset: auto 0 0;
    position: absolute;
}
.hero-copy { max-width: 790px; }
.hero-copy p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
    color: var(--rg-muted);
    font-size: 20px;
    max-width: 680px;
}
.hero-actions,
.sort-actions,
.filter-bar,
.share-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.button,
button.button {
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 900;
    justify-content: center;
    padding: 12px 18px;
    transition: background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--rg-primary); color: white; }
.button.primary:hover { background: var(--rg-primary-dark); }
.button.ghost { background: white; border-color: var(--rg-line); color: var(--rg-secondary); }
.button.ghost:hover { border-color: var(--rg-secondary); }
.button.small { font-size: 14px; padding: 8px 12px; }
.button.danger { background: #b42318; color: white; }
.active-button { background: var(--rg-secondary); color: white; }

.hero-visual {
    background: var(--rg-dark);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 1px;
    overflow: hidden;
    padding: 1px;
}
.stage-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        var(--rg-secondary-dark);
    color: white;
    min-height: 150px;
    padding: 26px;
}
.stage-card:nth-child(2) { background: var(--rg-secondary); }
.stage-card:nth-child(3) { background: var(--rg-primary); }
.stage-card span,
.stage-card strong { display: block; }
.stage-card span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.stage-card strong { color: white; font-family: Poppins, sans-serif; font-size: 25px; line-height: 1.14; margin-top: 8px; }

.section-grid,
.content-band,
.contact-layout {
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1fr);
}
.card-grid,
.team-grid,
.location-grid,
.job-grid,
.blog-grid,
.events-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.service-card,
.event-card,
.contact-card,
.auth-card,
.admin-panel,
.empty-state,
.team-card,
.location-card,
.job-card,
.post-card,
.service-detail,
.testimonials article,
.cta-banner {
    background: var(--rg-paper);
    border: 1px solid var(--rg-line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
.service-card,
.team-card,
.location-card,
.job-card { padding: 26px; }
.service-card { min-height: 255px; }
.service-icon {
    align-items: center;
    background: #edf4ff;
    border-radius: 8px;
    color: var(--rg-secondary);
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    margin-bottom: 44px;
    width: 44px;
}
.service-card p,
.feature-list p,
.content-copy p,
.event-body p,
.contact-card p,
.empty-state p,
.join-band p,
.location-card p,
.job-card p,
.post-card p { color: var(--rg-muted); }

.stats-band,
.proof-band {
    background: var(--rg-secondary);
    color: white;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stats-band div,
.proof-band div {
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    padding: 38px clamp(18px, 5vw, 72px);
}
.stats-band strong,
.proof-band strong {
    color: white;
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 42px;
    line-height: 1;
}
.stats-band span,
.proof-band span { color: rgba(255, 255, 255, 0.78); }

.section-heading { margin-bottom: 28px; max-width: 760px; }
.logo-carousel { overflow: hidden; }
.logo-track { animation: scrollLogos 28s linear infinite; display: flex; gap: 16px; width: max-content; }
.logo-carousel:hover .logo-track { animation-play-state: paused; }
.mall-logo {
    align-items: center;
    background: white;
    border: 1px solid var(--rg-line);
    border-radius: 8px;
    display: grid;
    height: 112px;
    justify-items: center;
    min-width: 220px;
    padding: 18px;
    text-align: center;
}
.mall-logo span { color: var(--rg-muted); font-size: 13px; }
@keyframes scrollLogos { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.testimonials { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.testimonials article { padding: 26px; }
.cta-banner {
    align-items: center;
    background: linear-gradient(135deg, var(--rg-secondary), var(--rg-secondary-dark));
    color: white;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 0 clamp(18px, 5vw, 72px) 76px;
    padding: 32px;
}
.cta-banner h2 { color: white; margin: 0; }
.cta-banner .eyebrow { color: rgba(255, 255, 255, 0.78); }

.feature-list { display: grid; gap: 20px; }
.feature-list article { border-top: 1px solid var(--rg-line); padding-top: 20px; }
.page-hero.compact { background: var(--rg-soft); padding-bottom: 46px; }
.page-hero.compact h1 { font-size: clamp(38px, 5.5vw, 72px); max-width: 1060px; }
.metric-panel {
    background: var(--rg-secondary);
    border-radius: 8px;
    color: white;
    display: grid;
    gap: 1px;
    overflow: hidden;
}
.metric-panel div { background: rgba(255, 255, 255, 0.08); padding: 28px; }
.metric-panel strong { color: white; display: block; font-family: Poppins, sans-serif; font-size: 27px; }
.metric-panel span { color: rgba(255, 255, 255, 0.78); }
.avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--rg-secondary), var(--rg-primary));
    border-radius: 8px;
    color: white;
    display: flex;
    font-size: 32px;
    font-weight: 900;
    height: 82px;
    justify-content: center;
    margin-bottom: 18px;
    width: 82px;
}

.accordion-wrap { display: grid; gap: 14px; }
.service-detail { padding: 0; }
.service-detail summary {
    cursor: pointer;
    font-family: Poppins, sans-serif;
    font-size: 21px;
    font-weight: 800;
    list-style: none;
    padding: 22px;
}
.service-detail summary span { color: var(--rg-primary); margin-right: 14px; }
.service-detail p { color: var(--rg-muted); padding: 0 22px 24px; }
.filter-bar { align-items: end; padding-bottom: 22px; padding-top: 24px; }
.filter-bar label { max-width: 300px; }
.location-card dl { display: grid; gap: 8px; }
.location-card dt { color: var(--rg-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.location-card dd { margin: 0 0 10px; }
.process-flow {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 100%;
    min-width: 0;
    position: relative;
    width: 100%;
}
.process-step {
    background: white;
    border: 1px solid var(--rg-line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    min-height: 210px;
    min-width: 0;
    padding: 22px;
    position: relative;
}
.process-step:not(:last-child)::after {
    align-items: center;
    background: var(--rg-primary);
    border-radius: 999px;
    color: white;
    content: "→";
    display: flex;
    font-size: 18px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    z-index: 2;
}
.process-step span {
    align-items: center;
    background: #edf4ff;
    border-radius: 8px;
    color: var(--rg-secondary);
    display: inline-flex;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    margin-bottom: 18px;
    width: 42px;
}
.process-step h3 {
    font-size: 24px;
    margin-bottom: 8px;
}
.process-step p {
    color: var(--rg-muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 0;
}

.masonry-grid { columns: 3 260px; column-gap: 18px; }
.gallery-item {
    background: white;
    border: 1px solid var(--rg-line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    break-inside: avoid;
    cursor: pointer;
    margin: 0 0 18px;
    overflow: hidden;
    padding: 0;
    text-align: left;
    width: 100%;
}
.gallery-item span { display: grid; padding: 16px; }
.gallery-item img { width: 100%; }
.lightbox {
    align-items: center;
    background: rgba(14, 23, 38, 0.86);
    border: 0;
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 99;
}
.lightbox img { max-height: 86vh; max-width: 88vw; }

.job-card { display: grid; gap: 14px; }
.mini-form { display: grid; gap: 10px; margin-top: 10px; }
.blog-grid { align-items: start; }
.post-card { overflow: hidden; }
.post-card div { padding: 22px; }
.post-detail { max-width: 980px; margin: auto; }
.post-detail img { border-radius: 8px; margin: 24px 0; width: 100%; }
.rich-text {
    background: white;
    border: 1px solid var(--rg-line);
    border-radius: 8px;
    color: var(--rg-body);
    font-size: 18px;
    padding: 30px;
}
.related-posts { display: grid; gap: 10px; max-width: 980px; margin: auto; }
.related-posts a { color: var(--rg-secondary); font-weight: 800; }

.contact-card,
.contact-form,
.auth-card,
.admin-panel { padding: 30px; }
.contact-card a { color: var(--rg-secondary); display: block; font-weight: 800; margin-top: 10px; }
.contact-card iframe,
.footer-map { border: 0; border-radius: 8px; display: block; height: 280px; margin-top: 20px; min-height: 260px; width: 100%; }
.footer-map { margin-top: 30px; }
.contact-form,
.auth-card,
.admin-form { display: grid; gap: 16px; }
label { color: var(--rg-muted); display: grid; font-size: 14px; font-weight: 800; gap: 8px; }
input,
textarea,
select {
    background: white;
    border: 1px solid var(--rg-line);
    border-radius: 8px;
    color: var(--rg-dark);
    font: inherit;
    padding: 12px 14px;
    width: 100%;
}
input:focus,
textarea:focus,
select:focus { border-color: var(--rg-secondary); outline: 3px solid rgba(0, 72, 168, 0.12); }
textarea { resize: vertical; }
.flash { border-radius: 8px; font-weight: 800; margin: 20px clamp(18px, 5vw, 72px); padding: 14px 18px; }
.flash.success { background: #ecfdf3; color: #067647; }
.flash.error { background: #fef3f2; color: #b42318; }

.events-grid { padding-top: 0; }
.event-card { overflow: hidden; }
.event-image {
    align-items: center;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--rg-secondary), var(--rg-primary));
    color: white;
    display: flex;
    font-weight: 900;
    justify-content: center;
    text-align: center;
}
.event-image img { height: 100%; object-fit: cover; width: 100%; }
.event-body { padding: 22px; }
.event-date { color: var(--rg-primary); font-size: 14px; font-weight: 900; }
.empty-state { grid-column: 1 / -1; padding: 36px; }
.auth-page { display: grid; padding: 72px 18px; place-items: center; }
.auth-card { max-width: 420px; width: 100%; }
.auth-card h1 { font-size: 42px; }
.form-error { background: #fef3f2; border: 1px solid #fecaca; border-radius: 8px; color: #b42318; font-weight: 800; padding: 12px; }

.admin-shell { display: grid; gap: 22px; }
.admin-panel.wide { width: 100%; }
.admin-title { align-items: start; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 20px; }
.admin-title h1,
.admin-title h2 { font-size: 34px; margin-bottom: 0; }
.admin-stats { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; }
.admin-stats article { background: var(--rg-soft); border: 1px solid var(--rg-line); border-radius: 8px; padding: 18px; }
.admin-stats strong { color: var(--rg-secondary); display: block; font-size: 30px; }
.admin-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.admin-links a { background: var(--rg-secondary); border-radius: 8px; color: white; font-weight: 800; padding: 10px 12px; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; min-width: 760px; width: 100%; }
th,
td { border-bottom: 1px solid var(--rg-line); padding: 14px; text-align: left; vertical-align: top; }
th { color: var(--rg-muted); font-size: 13px; text-transform: uppercase; }
.thumb { border-radius: 8px; height: 64px; object-fit: cover; width: 96px; }

.site-footer {
    background: var(--rg-dark);
    color: white;
    padding: 42px clamp(18px, 5vw, 72px);
}
.footer-grid { display: grid; gap: 30px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.site-footer h3 { color: white; font-size: 18px; }
.site-footer a { color: #dbe8ff; display: block; margin: 6px 0; }
.site-footer p { color: #d6dae3; }
.footer-bottom { align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; gap: 18px; justify-content: space-between; margin-top: 24px; padding-top: 18px; }
.copyright { margin: 0; }
.admin-login-link { color: #dbe8ff; font-weight: 900; white-space: nowrap; }
.whatsapp-float,
.back-top {
    border: 0;
    border-radius: 8px;
    bottom: 22px;
    box-shadow: var(--shadow-md);
    font-weight: 900;
    position: fixed;
    z-index: 50;
}
.whatsapp-float { align-items: center; background: #16be45; color: white; display: inline-flex; height: 54px; justify-content: center; right: 22px; width: 54px; }
.wa-icon { display: block; height: 30px; width: 30px; }
.back-top { background: var(--rg-secondary); bottom: 76px; color: white; display: none; right: 22px; padding: 13px 16px; }
.back-top.show { display: block; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
    .process-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        padding-bottom: 0;
    }
    .process-step:not(:last-child)::after { display: none; }
}
@media (max-width: 1240px) {
    .site-header { align-items: start; grid-template-columns: 1fr; gap: 10px; }
    .site-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
        width: 100%;
    }
    .site-nav .nav-cta { margin-left: 0; }
}
@media (max-width: 980px) {
    .hero-section,
    .section-grid,
    .content-band,
    .contact-layout { grid-template-columns: 1fr; }
    .process-flow {
        grid-template-columns: 1fr;
        overflow: visible;
        padding-bottom: 0;
    }
    .card-grid,
    .team-grid,
    .location-grid,
    .job-grid,
    .blog-grid,
    .events-grid,
    .testimonials,
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .stats-band,
    .proof-band { grid-template-columns: repeat(2, 1fr); }
    .hero-section { min-height: auto; }
}
@media (max-width: 680px) {
    .process-flow {
        grid-template-columns: 1fr;
    }
    .process-step:not(:last-child)::after {
        bottom: -28px;
        content: "↓";
        display: flex !important;
        left: 50%;
        right: auto;
        top: auto;
        transform: translateX(-50%);
    }
    .site-header { padding: 10px 16px; }
    .brand-logo { height: 62px; width: 62px; }
    .brand-mark { min-width: 0; }
    .brand-mark strong { font-size: 15px; }
    .brand-mark small { font-size: 11px; }
    .site-nav a { font-size: 13px; padding: 8px 9px; }
    .hero-section,
    .page-hero,
    .section-grid,
    .content-band,
    .contact-layout,
    .admin-shell,
    .team-section,
    .carousel-section,
    .testimonials,
    .accordion-wrap,
    .filter-bar,
    .location-grid,
    .masonry-grid,
    .job-grid,
    .blog-grid,
    .post-detail,
    .related-posts { padding-left: 16px; padding-right: 16px; }
    h1 { font-size: 40px; }
    .hero-copy p:not(.eyebrow),
    .page-hero p:not(.eyebrow) { font-size: 18px; }
    .card-grid,
    .team-grid,
    .location-grid,
    .job-grid,
    .blog-grid,
    .events-grid,
    .testimonials,
    .admin-stats,
    .stats-band,
    .proof-band,
    .footer-grid,
    .process-flow,
    .form-row { grid-template-columns: 1fr; }
    .cta-banner { align-items: flex-start; flex-direction: column; margin-left: 16px; margin-right: 16px; }
    .back-top { bottom: 76px; right: 16px; }
    .whatsapp-float { right: 16px; }
}

/* Admin mall management */
.check-grid {
    border: 1px solid var(--rg-line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 14px;
}
.check-grid.compact {
    grid-template-columns: 1fr;
}
.check-grid legend {
    color: var(--rg-muted);
    font-size: 14px;
    font-weight: 900;
    padding: 0 6px;
}
.check-label {
    align-items: center;
    color: var(--rg-body);
    display: flex;
    flex-direction: row;
    font-weight: 800;
    gap: 8px;
}
.check-label input {
    width: auto;
}
.table-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}
.table-actions form {
    margin: 0;
}

/* Career listing/detail */
.career-list {
    display: grid;
    gap: 16px;
    padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}
.career-summary {
    align-items: center;
    background: white;
    border: 1px solid var(--rg-line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr auto;
    padding: 24px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.career-summary:hover {
    border-color: var(--rg-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.career-summary h2 {
    font-size: clamp(24px, 3vw, 34px);
    margin-bottom: 10px;
}
.career-summary p:last-child {
    color: var(--rg-muted);
    margin-bottom: 0;
}
.career-summary > span {
    background: var(--rg-secondary);
    border-radius: 8px;
    color: white;
    font-weight: 900;
    padding: 12px 14px;
    white-space: nowrap;
}
.career-detail {
    padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}
.career-detail-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
    margin-top: 28px;
}
.career-detail aside {
    align-self: start;
}
.apply-mail {
    margin-top: 18px;
    width: 100%;
}

@media (max-width: 780px) {
    .career-summary,
    .career-detail-grid,
    .check-grid {
        grid-template-columns: 1fr;
    }
    .career-summary > span {
        justify-self: start;
    }
    .table-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Admin-only shell */
.admin-topbar {
    align-items: center;
    background: var(--rg-dark);
    color: white;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 16px clamp(18px, 5vw, 72px);
}
.admin-topbar .eyebrow {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 2px;
}
.admin-topbar strong {
    color: white;
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 22px;
}
.admin-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.admin-nav a {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 900;
    padding: 9px 12px;
}
.admin-nav a:hover {
    background: var(--rg-secondary);
    border-color: var(--rg-secondary);
    color: white;
}
.admin-nav a.logout-link {
    background: var(--rg-primary);
    border-color: var(--rg-primary);
    color: white;
}
.admin-nav a.logout-link:hover {
    background: #b42318;
    border-color: #b42318;
}
@media (max-width: 780px) {
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .admin-nav {
        justify-content: flex-start;
    }
}

/* Refined admin dashboard */
.admin-dashboard {
    padding: clamp(40px, 6vw, 72px) clamp(18px, 5vw, 72px);
}
.admin-welcome {
    align-items: center;
    background: linear-gradient(135deg, var(--rg-secondary), var(--rg-secondary-dark));
    border-radius: 8px;
    color: white;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 32px;
}
.admin-welcome h1,
.admin-welcome .eyebrow {
    color: white;
}
.admin-welcome p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}
.admin-action-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 24px;
}
.admin-action-card {
    background: white;
    border: 1px solid var(--rg-line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: grid;
    min-height: 220px;
    padding: 24px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.admin-action-card:hover {
    border-color: var(--rg-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.admin-action-card h2 {
    font-size: 25px;
}
.admin-action-card p {
    color: var(--rg-muted);
}
.admin-action-card span {
    align-self: end;
    color: var(--rg-primary);
    font-weight: 900;
}
.gallery-admin-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery-admin-card {
    background: white;
    border: 1px solid var(--rg-line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 150px 1fr;
    overflow: hidden;
}
.gallery-admin-card img {
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    width: 100%;
}
.gallery-admin-card div {
    padding: 16px;
}
.gallery-admin-card h3 {
    font-size: 19px;
}
.gallery-admin-card p {
    color: var(--rg-muted);
    margin-bottom: 8px;
}
.gallery-admin-card span {
    color: var(--rg-secondary);
    display: block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 12px;
}
@media (max-width: 1100px) {
    .admin-action-grid,
    .gallery-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {\n    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .admin-welcome {
        align-items: flex-start;
        flex-direction: column;
    }
    .admin-action-grid,
    .gallery-admin-grid,
    .gallery-admin-card {
        grid-template-columns: 1fr;
    }
}

/* Mobile hamburger navigation */
.menu-toggle {
    align-items: center;
    background: var(--rg-secondary);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    height: 44px;
    justify-content: center;
    width: 48px;
}
.menu-toggle span {
    background: white;
    border-radius: 999px;
    display: block;
    height: 3px;
    transition: transform .16s ease, opacity .16s ease;
    width: 22px;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .site-nav {
        background: white;
        border: 1px solid var(--rg-line);
        border-radius: 8px;
        box-shadow: var(--shadow-md);
        display: none;
        grid-column: 1 / -1;
        overflow: visible;
        padding: 10px;
        width: 100%;
    }
    .site-nav.open,
    .menu-toggle[aria-expanded="true"] + .site-nav {
        display: grid;
        gap: 4px;
    }
    .site-nav a {
        padding: 12px;
    }
    .site-nav .nav-cta {
        margin-left: 0;
        text-align: center;
    }
}
@media (max-width: 680px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }
}

/* Map visibility override */
.map-card,
.footer-map-card {
    background: white;
    border: 1px solid var(--rg-line);
    border-radius: 8px;
    display: block;
    margin-top: 20px;
    overflow: hidden;
    width: 100%;
}
.footer-map-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    margin-top: 30px;
}
.map-card iframe,
.footer-map-card iframe,
.footer-map {
    border: 0 !important;
    display: block !important;
    height: 320px !important;
    min-height: 300px !important;
    width: 100% !important;
}
.map-card a,
.footer-map-card a {
    display: block;
    font-weight: 900;
    padding: 12px 14px;
}
.map-card a { color: var(--rg-secondary); }
.footer-map-card a { color: #dbe8ff; }

.table-checkbox {
    height: 22px;
    margin: 0;
    width: 22px;
}
.form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.empty-state.compact,
.gallery-empty {
    margin: 0 clamp(18px, 5vw, 72px) 72px;
    max-width: 760px;
}
.gallery-empty {
    min-height: 220px;
}
