:root {
    --bg: #ffffff;
    --panel: #ffffff;
    --panel-soft: #f5f5f5;
    --header: #111111;
    --header-alt: #1b1b1b;
    --gold: #b89556;
    --gold-soft: #dec58d;
    --text: #202020;
    --muted: #666666;
    --line: rgba(0, 0, 0, 0.1);
    --shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
    --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 90px 0; }
.section-header { margin-bottom: 35px; }
.section-title {
    font-size: 2.5rem;
    margin: 0 0 10px;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--header);
}
.section-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(17, 17, 17, 0.97);
    border-bottom: 1px solid rgba(197, 159, 88, 0.2);
    backdrop-filter: blur(8px);
}
.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
}
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex: none; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: var(--gold);
    color: var(--header);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: none;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-family: 'Cormorant Garamond', serif;
}
.brand-text strong {
    font-size: 1.8rem;
    letter-spacing: 0;
}
.brand-text small {
    letter-spacing: 0;
    font-size: 0.7rem;
    color: #d9dfe8;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.main-nav a {
    color: rgba(255,255,255,0.82);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: color 0.2s ease;
    position: relative;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--gold-soft);
}
.main-nav a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    bottom: -10px;
    background: var(--gold);
    border-radius: 4px;
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.9rem 1.4rem;
    font-weight: 700;
    transition: 0.2s ease;
    cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
    background: var(--gold);
    color: #171c26;
    box-shadow: none;
    border: none;
}
.btn-light {
    background: #fff;
    color: var(--header);
    border-color: rgba(0,0,0,0.08);
}
.btn-dark {
    background: var(--header);
    color: white;
    border-color: var(--header);
}
.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    border-radius: 10px;
    padding: 10px 8px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    height: 2px;
    background: white;
    margin: 5px 0;
    border-radius: 4px;
}
.mobile-menu {
    display: none;
    background: #111111;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu nav { display: grid; padding: 15px 20px 25px; }
.mobile-menu a {
    color: white;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.is-open { display: block; }

.hero {
    position: relative;
    background-color: #111111;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 18px);
    min-height: 620px;
    display: flex;
    align-items: center;
    color: white;
}
.hero .container {
    width: min(1180px, calc(100% - 32px));
}
.hero.has-portrait .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 48px;
}
.hero-content {
    max-width: 680px;
    padding: 80px 0;
}
.hero-kicker {
    display: inline-flex;
    background: rgba(197, 159, 88, 0.12);
    border: 1px solid rgba(197, 159, 88, 0.35);
    color: var(--gold-soft);
    border-radius: 0;
    padding: 7px 14px;
    font-size: 0.75rem;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 4.5rem;
    line-height: 0.98;
    margin: 0 0 20px;
    letter-spacing: 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}
.hero p {
    color: rgba(255,255,255,0.8);
    margin: 0 0 28px;
    font-size: 1.1rem;
    max-width: 560px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 34px;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #e7d4a7;
    font-size: 0.9rem;
}
.hero-meta span::before {
    content: '•';
    margin-right: 8px;
}
.hero-portrait {
    min-height: 390px;
    max-height: 520px;
    border-left: 3px solid var(--gold);
    overflow: hidden;
}
.hero-portrait img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: center 25%; }

.grid-3, .work-grid, .content-grid, .video-grid, .cards-grid {
    display: grid;
    gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.area-card {
    padding: 26px 22px 20px;
}
.area-card .icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(197, 159, 88, 0.12);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.area-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}
.area-card p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.96rem;
}
.card-link {
    color: var(--header);
    font-weight: 700;
}

.content-card .thumb, .video-card .thumb {
    height: 220px;
    object-fit: cover;
    display: block;
}
.content-card .meta, .video-card .meta {
    padding: 16px 18px 18px;
}
.featured-video-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 30px; align-items: center; padding: 20px; border: 1px solid var(--line); background: #111; color: #fff; }
.featured-video-thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: #1b1b1b; border-bottom: 3px solid var(--gold); color: var(--gold-soft); font-weight: 700; }
.featured-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-video-copy { padding: 12px 10px; }
.featured-video-copy h3 { margin: 0 0 12px; font-size: 1.7rem; }
.featured-video-copy p { color: rgba(255,255,255,0.75); }
.more-videos-title { margin: 28px 0 16px; }
.post-badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    background: rgba(197, 159, 88, 0.1);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 12px;
    font-weight: 700;
}
.content-card h3, .video-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: var(--header);
}
.content-card p, .video-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.95rem;
}
.info-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.cta-strip {
    background: #111111;
    color: white;
    padding: 34px 0;
}
.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.cta-box h3 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 0;
}
.cta-box p { margin: 0; color: rgba(255,255,255,0.7); }

.highlight-box {
    background: linear-gradient(180deg, #fffdfb, var(--panel-soft));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.page-hero {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, rgba(13,19,28,0.94), rgba(26,35,49,0.9));
    color: white;
}
.page-hero h1 {
    margin: 0;
    font-size: 3.5rem;
    letter-spacing: 0;
    font-family: 'Cormorant Garamond', serif;
}
.page-hero p {
    margin: 18px 0 0;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
}

.content-shell {
    padding: 60px 0;
}
.two-column {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}
.block {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
}
.block h3 { margin-top: 0; }
.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}
.list-check li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-check li:last-child { border-bottom: 0; }

.site-footer {
    background: #111111;
    color: white;
    padding-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
    gap: 30px;
    padding-bottom: 28px;
}
.footer-brand { margin-bottom: 16px; }
.footer-lead { color: rgba(255,255,255,0.72); }
.site-footer h4 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 0.82rem;
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-list li { margin-bottom: 10px; color: rgba(255,255,255,0.75); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0 26px;
    color: rgba(255,255,255,0.7);
    text-align: center;
}
.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    background: linear-gradient(135deg, #25d366, #1faa5d);
    color: white;
    padding: 14px 18px;
    border-radius: 999px;
    box-shadow: 0 18px 35px rgba(37, 211, 102, 0.28);
    z-index: 30;
    font-weight: 700;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.filter-bar a {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--header);
    font-weight: 600;
}
.filter-bar a.active {
    background: #111111;
    color: white;
    border-color: #111111;
}
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}
.pagination a, .pagination span {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--line);
    color: var(--text);
}

.video-player {
    width: 100%;
    max-width: 980px;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    border-radius: 8px;
    background: #000;
    object-fit: contain;
}
.video-details {
    padding-top: 16px;
    display: grid;
    gap: 12px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    background: #f4f4f4;
}
.admin-sidebar {
    background: #111111;
    color: white;
    padding: 26px 18px;
}
.admin-sidebar .brand { margin-bottom: 26px; }
.admin-nav { display: grid; gap: 8px; }
.admin-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.82);
    font-weight: 600;
}
.admin-nav a.active, .admin-nav a:hover {
    background: rgba(197, 159, 88, 0.16);
    color: #f8e5b2;
}
.admin-main { padding: 24px; }
.admin-card {
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    padding: 20px;
}
.kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0 28px;
}
.kpi {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--line);
}
.kpi .label { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; }
.kpi .value { font-size: 2rem; font-weight: 800; margin-top: 10px; }
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}
.table th, .table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    vertical-align: top;
}
.table th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; }
.admin-form {
    display: grid;
    gap: 16px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
label {
    display: grid;
    gap: 8px;
    color: var(--header);
    font-weight: 600;
}
input, select, textarea {
    width: 100%;
    padding: 0.9rem 0.95rem;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: white;
}
textarea { min-height: 150px; resize: vertical; }
.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge.published { background: rgba(34, 197, 94, 0.12); color: #166534; }
.badge.draft { background: rgba(245, 158, 11, 0.12); color: #92400e; }

@media (max-width: 980px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-block; }
    .header-actions .btn { display: none; }
    .grid-3, .work-grid, .content-grid, .video-grid, .cards-grid, .kpis, .two-column, .footer-grid, .admin-shell, .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { padding-bottom: 10px; }
    .admin-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero.has-portrait .container { grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: 28px; }
}

@media (max-width: 1100px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-block; }
    .header-actions .btn { display: none; }
}

@media (max-width: 720px) {
    .hero { min-height: 500px; }
    .hero.has-portrait .container { grid-template-columns: 1fr; }
    .hero-content { max-width: 100%; }
    .grid-3, .work-grid, .content-grid, .video-grid, .cards-grid, .kpis, .two-column, .footer-grid, .form-grid {
        grid-template-columns: 1fr;
    }
    .brand-text strong { font-size: 1.4rem; }
    .site-header { position: sticky; }
    .section { padding: 70px 0; }
    .cta-box { align-items: flex-start; }
    .hero h1 { font-size: 3.25rem; }
    .section-title { font-size: 2rem; }
    .page-hero h1 { font-size: 2.75rem; }
    .hero-portrait { min-height: 280px; max-height: 380px; }
    .hero-portrait img { min-height: 280px; }
    .admin-main { padding: 16px; }
    .media-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-nav a { padding: 12px 10px; font-size: 0.78rem; }
    .table { display: block; overflow-x: auto; white-space: nowrap; }
    .form-actions .btn { min-height: 48px; }
    .social-contact .container { grid-template-columns: 1fr; }
    .media-library-grid { grid-template-columns: 1fr; }
}

.thumb-empty {
    min-height: 180px;
    background: #171717;
    border-bottom: 2px solid var(--gold);
}
.empty-state { color: var(--muted); padding: 20px 0; }
.social-contact .container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.social-contact .section-title { font-size: 1.8rem; }
.social-contact a { color: var(--header); font-weight: 700; }
.admin-nav a { border-radius: 6px; }
.admin-card h1, .admin-card h2 { color: var(--header); }
.admin-form input[type="radio"] { width: auto; accent-color: var(--gold); }
.type-choice { display: flex; flex-wrap: wrap; gap: 12px 20px; grid-column: 1 / -1; border: 1px solid var(--line); padding: 16px; border-radius: 6px; }
.type-choice legend { padding: 0 6px; color: var(--header); font-weight: 700; }
.type-choice label { display: inline-flex; align-items: center; gap: 8px; }
.media-tabs { display: flex; gap: 8px; margin: 20px 0 12px; border-bottom: 1px solid var(--line); }
.media-tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.media-tabs a.active { color: var(--header); border-color: var(--gold); font-weight: 700; }
.media-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.media-library-card { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.media-library-preview { aspect-ratio: 16 / 10; background: #111; }
.media-library-preview img, .media-library-preview video { width: 100%; height: 100%; object-fit: cover; }
.media-library-meta { padding: 14px; }
.media-library-meta h3 { margin: 0 0 8px; overflow-wrap: anywhere; font-size: 1rem; }
.media-library-meta p { color: var(--muted); font-size: 0.86rem; margin: 4px 0; }
.media-library-meta form { margin-top: 12px; }
.admin-record-list { display: grid; gap: 12px; margin-top: 22px; }
.admin-record-row { display: grid; grid-template-columns: 90px minmax(150px, 0.8fr) minmax(200px, 1.5fr) 130px auto; align-items: end; gap: 12px; padding: 14px; border: 1px solid var(--line); background: #fff; }
.record-delete-form { display: flex; justify-content: flex-end; padding: 0 14px 12px; }
.category-edit-form { display: flex; align-items: center; gap: 8px; min-width: 240px; }
.category-edit-form input { min-width: 140px; }
.upload-limit { color: var(--muted); margin: 12px 0 0; }
.notice, .setup-error { padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: #f7f7f7; color: var(--text); }
.media-preview:empty { display: none; }
.media-preview img, .media-preview video { display: block; max-width: min(100%, 520px); max-height: 320px; background: #111; }

.setup-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #111; }
.setup-panel { width: min(680px, 100%); background: white; padding: 32px; border-top: 4px solid var(--gold); }
.setup-panel h1 { font: 600 2.6rem/1.1 'Cormorant Garamond', serif; color: var(--header); }
.setup-checks { list-style: none; padding: 0; margin: 24px 0; }
.setup-checks li, .diagnostic-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-pass { color: #22623a; }
.check-fail { color: #9c2a23; }
.diagnostic-list { margin: 0; }
.diagnostic-list dt { font-weight: 700; }
.diagnostic-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.not-found-page { min-height: 55vh; display: grid; align-items: center; background: #111; color: white; }
.not-found-content { padding-top: 70px; padding-bottom: 70px; }
.not-found-content h1 { font: 600 3.5rem/1.05 'Cormorant Garamond', serif; }

@media (max-width: 720px) {
    .featured-video-card { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
    .featured-video-copy { padding: 8px 2px; }
    .setup-panel { padding: 24px 18px; }
    .setup-checks li, .diagnostic-list > div { align-items: flex-start; }
    .setup-panel h1, .not-found-content h1 { font-size: 2.5rem; }
}

@media (max-width: 980px) {
    .media-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-record-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .media-library-grid, .social-contact .container { grid-template-columns: 1fr; }
    .admin-record-row { grid-template-columns: 1fr; }
    .record-delete-form { justify-content: flex-start; }
    .category-edit-form { min-width: 0; }
}

.top-alert { background: #111; color: #fff; border-bottom: 1px solid rgba(184,149,86,.5); }
.top-alert .container { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; font-size: .9rem; }
.top-alert a { color: var(--gold-soft); font-weight: 700; white-space: nowrap; }
.founded-year { display: block; color: var(--gold-soft); margin-top: 16px; }
.hero-claim { font: 600 1.65rem/1.2 'Cormorant Garamond', serif !important; color: #fff !important; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.contact-layout .block { min-width: 0; }
.contact-form-block h2, .contact-details h2 { margin-top: 0; }
.legal-notice { margin-top: 20px; padding: 14px; border-left: 3px solid var(--gold); background: #f5f5f5; }
.faq-list { display: grid; gap: 10px; }
.faq-item { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--header); }
.faq-item p { margin-bottom: 0; color: var(--muted); }
.service-steps { list-style: none; padding: 0; display: grid; gap: 14px; }
.service-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.service-steps li > span { display: grid; place-items: center; width: 36px; aspect-ratio: 1; background: #111; color: var(--gold-soft); border-bottom: 2px solid var(--gold); }
.service-steps h4, .service-steps p { margin: 0 0 6px; }

@media (max-width: 720px) {
    .contact-layout { grid-template-columns: 1fr; }
    .top-alert .container { align-items: flex-start; flex-direction: column; gap: 4px; }
    .hero-claim { font-size: 1.45rem !important; }
}


/* Dedicated shortcut target for the home page hero image setting. */
.home-image-setting { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,220px) minmax(0,1fr); gap: 12px 20px; align-items: start; padding: 20px; border: 1px solid rgba(15,23,42,.12); border-radius: 8px; background: #faf9f6; scroll-margin-top: 24px; }
.home-image-setting-copy { grid-column: 1 / -1; }
.home-image-setting-copy h3 { margin: 0 0 6px; color: var(--header); font-size: 1.05rem; }
.home-image-setting-copy p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.home-image-preview { grid-column: 1; grid-row: 2 / span 2; display: block; width: 100%; max-height: 190px; aspect-ratio: 4 / 3; border: 1px solid rgba(15,23,42,.12); border-radius: 6px; background: #e9e7e1; object-fit: cover; object-position: center 20%; }
.home-image-setting > label { grid-column: 2; grid-row: 2; }
.home-image-setting > .btn { grid-column: 2; grid-row: 3; justify-self: start; min-height: 42px; padding: 10px 14px; background: #f0ede5; color: var(--header); }
.home-image-setting > .btn:hover { background: #e8e1d1; }
@media (max-width: 560px) {
    .home-image-setting { grid-template-columns: minmax(0,1fr); padding: 15px; }
    .home-image-setting-copy, .home-image-preview, .home-image-setting > label, .home-image-setting > .btn { grid-column: 1; grid-row: auto; }
    .home-image-preview { width: min(100%,320px); max-height: 220px; }
    .home-image-setting > .btn { justify-self: stretch; }
}
/* Consistent admin workspace layout and responsive controls. */
.admin-shell { grid-template-columns: minmax(224px,260px) minmax(0,1fr); min-width: 0; }
.admin-sidebar { position: sticky; top: 0; min-width: 0; height: 100vh; overflow-y: auto; padding: 24px 16px; }
.admin-sidebar .brand { min-width: 0; gap: 10px; }
.admin-sidebar .brand-text { min-width: 0; }
.admin-sidebar .brand-text strong { font-size: 1.35rem; white-space: nowrap; }
.admin-nav { min-width: 0; }
.admin-nav a { min-width: 0; padding: 11px 12px; font-size: .81rem; line-height: 1.35; letter-spacing: .025em; white-space: nowrap; transition: color .18s ease,background-color .18s ease,transform .18s ease; }
.admin-nav a:hover { transform: translateX(2px); }
.admin-nav a:focus-visible, .admin-shell :focus-visible { outline: 3px solid #d6b568; outline-offset: 3px; }
.admin-main { width: 100%; min-width: 0; padding: clamp(18px,2.5vw,34px); }
.admin-card { width: 100%; min-width: 0; padding: clamp(18px,2.3vw,30px); border-color: rgba(15,23,42,.1); border-radius: 10px; box-shadow: 0 12px 32px rgba(15,23,42,.055); }
.admin-card > h1, .admin-card > h2, .admin-card > h3 { margin-top: 0; overflow-wrap: anywhere; }
.form-grid { min-width: 0; align-items: start; gap: 18px; }
.form-grid > *, .admin-form > * { min-width: 0; }
.admin-form label { min-width: 0; line-height: 1.4; }
.admin-form input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]), .admin-form select, .admin-form textarea { display: block; min-width: 0; max-width: 100%; min-height: 46px; padding: 11px 13px; border-color: rgba(15,23,42,.16); border-radius: 7px; }
.admin-form input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]):focus, .admin-form select:focus, .admin-form textarea:focus { border-color: #b89556; outline: 0; box-shadow: 0 0 0 3px rgba(184,149,86,.16); }
.admin-form textarea { min-height: 170px; line-height: 1.6; }
.admin-form textarea[name="resumo"] { min-height: 110px; }
.admin-form textarea[name="conteudo"] { min-height: 320px; }
.form-actions { align-items: center; gap: 10px; }
.form-actions .btn { min-height: 44px; white-space: nowrap; }
.admin-card > div[style*="justify-content:space-between"] { min-width: 0; }
.table { display: block; width: 100%; max-width: 100%; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.table th, .table td { padding: 12px 14px; }
.table td form { max-width: 100%; }
.table .btn { min-height: 36px; white-space: nowrap; }
.admin-record-row { min-width: 0; }
.admin-record-row > * { min-width: 0; }
.admin-record-row input, .admin-record-row select { min-width: 0; }
.category-edit-form { min-width: 0; }
.category-edit-form input { min-width: 0; }
.media-library-grid { min-width: 0; }
.media-library-card { min-width: 0; }
.media-library-meta { min-width: 0; }
.media-library-meta h3, .media-library-meta p { overflow-wrap: anywhere; }
.media-library-meta .btn, .media-library-meta button { max-width: 100%; }
.notice, .setup-error { overflow-wrap: anywhere; }
.diagnostic-list > div { min-width: 0; flex-wrap: wrap; align-items: flex-start; }
.diagnostic-list dt, .diagnostic-list dd { min-width: 0; overflow-wrap: anywhere; }
.diagnostic-list dd { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 1200px) {
    .admin-record-row { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; }
    .admin-record-row .btn { justify-self: start; }
}
@media (max-width: 980px) {
    .admin-shell { grid-template-columns: minmax(0,1fr); }
    .admin-sidebar { position: relative; top: auto; height: auto; overflow: visible; padding: 20px 18px; }
    .admin-sidebar .brand { margin-bottom: 18px; }
    .admin-nav { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
    .admin-nav a { display: flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 8px; text-align: center; }
    .admin-main { padding: 22px; }
}
@media (max-width: 720px) {
    .admin-sidebar { padding: 16px 14px; }
    .admin-nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
    .admin-nav a { min-height: 40px; padding: 8px 6px; font-size: .72rem; letter-spacing: 0; }
    .admin-main { padding: 14px; }
    .admin-card { padding: 17px; }
    .admin-card > div[style*="justify-content:space-between"] { align-items: flex-start !important; }
    .admin-card > div[style*="justify-content:space-between"] .btn { max-width: 100%; white-space: normal; text-align: center; }
    .form-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .form-grid > label[style*="grid-column"] { grid-column: 1 / -1 !important; }
    .form-actions { align-items: stretch; }
    .form-actions .btn { flex: 1 1 180px; white-space: normal; }
    .type-choice { min-width: 0; }
    .type-choice label { white-space: nowrap; }
    .admin-record-row { grid-template-columns: minmax(0,1fr); gap: 12px; }
    .admin-record-row .btn { justify-self: stretch; }
    .record-delete-form { padding: 0 0 12px; }
    .diagnostic-list > div { flex-direction: column; gap: 6px; }
    .diagnostic-list dd { justify-content: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .admin-nav a { transition: none; }
    .admin-nav a:hover { transform: none; }
}.form-grid > .media-preview:not(:empty) { grid-column: 1 / -1; }
@media (max-width: 720px) {
    .record-delete-form .btn { max-width: 100%; white-space: normal; text-align: left; }
}.admin-main .kpis { grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); }
.table-action { color: #70501d; font-weight: 700; }
.table-action:hover { text-decoration: underline; }
