/* ═══════════════════════════════════════════════════════
   IGLESIA APOSENTO ALTO – Panel Admin
   Colores de la iglesia: #00173b (azul) · #c9a84c (dorado)
═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --p: #00173b;
    /* azul profundo — primario */
    --p-d: #000d24;
    /* más oscuro */
    --p-l: #112a55;
    /* más claro */
    --p-ll: #1e3d6e;
    /* acento medio */
    --gold: #c9a84c;
    --gold-l: #e8d5a3;
    --gold-d: #9a6f28;
    --white: #ffffff;
    --border: rgba(201, 168, 76, 0.18);
    --dim: rgba(255, 255, 255, 0.05);
    --muted: rgba(255, 255, 255, 0.42);
    --ok: #48bb78;
    --ok-bg: rgba(72, 187, 120, 0.12);
    --err: #fc8181;
    --err-bg: rgba(252, 129, 129, 0.12);
    --info: #63b3ed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--p);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── TOP NAV ── */
.adm-navbar {
    background: var(--p-d);
    border-bottom: 2px solid var(--gold);
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 200;
    gap: 1.5rem;
}

.adm-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.adm-brand-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.adm-nav-links {
    display: flex;
    gap: .3rem;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
}

.adm-nav-links a {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    padding: .45rem .9rem;
    border-radius: 2px;
    transition: all .2s;
    position: relative;
}

.adm-nav-links a:hover,
.adm-nav-links a.active {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.adm-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
}

.adm-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--p-d);
    border-radius: 2px;
    padding: 1px 6px;
    font-size: .58rem;
    font-weight: 700;
    margin-left: .3rem;
    letter-spacing: 1px;
}

.adm-user-pill {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
    font-size: .72rem;
    color: var(--muted);
    flex-shrink: 0;
}

.adm-user-pill .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-d), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    color: var(--p-d);
    flex-shrink: 0;
}

.adm-logout {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: 1px solid rgba(201, 168, 76, 0.2);
    cursor: pointer;
    transition: all .2s;
    padding: .4rem .8rem;
}

.adm-logout:hover {
    color: var(--err);
    border-color: rgba(252, 129, 129, 0.3);
}

/* ── MAIN ── */
.adm-main {
    flex: 1;
    padding: 2rem 1.5rem;
}

.adm-container {
    max-width: 1140px;
    margin: 0 auto;
}

.adm-page-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.adm-page-hdr h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .6rem;
}

/* ── STAT CARDS ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--p-d);
    border: 1px solid var(--border);
    padding: 1.4rem 1.2rem;
    text-align: center;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.stat-card:hover {
    border-color: rgba(201, 168, 76, 0.4);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--gold);
    font-weight: 700;
}

.stat-label {
    font-size: .65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .4rem;
}

/* ── CARDS ── */
.adm-card {
    background: var(--p-d);
    border: 1px solid var(--border);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
}

.adm-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--gold);
    margin-bottom: 1.4rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ── TABLE ── */
.adm-table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

thead tr {
    background: var(--p-d);
    border-bottom: 2px solid var(--border);
}

thead th {
    padding: .85rem 1rem;
    text-align: left;
    font-size: .64rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}

tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background .15s;
}

tbody tr:hover {
    background: rgba(201, 168, 76, 0.04);
}

tbody td {
    padding: .8rem 1rem;
    color: var(--white);
    vertical-align: middle;
}

/* badges */
.badge {
    display: inline-block;
    padding: .22rem .65rem;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
}

.badge-on {
    background: rgba(72, 187, 120, 0.15);
    color: var(--ok);
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.badge-off {
    background: rgba(252, 129, 129, 0.15);
    color: var(--err);
    border: 1px solid rgba(252, 129, 129, 0.25);
}

.badge-new {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.badge-read {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-sa {
    background: rgba(201, 168, 76, 0.2);
    color: var(--gold-l);
    border: 1px solid rgba(201, 168, 76, 0.4);
}

.badge-admin {
    background: rgba(99, 179, 237, 0.12);
    color: var(--info);
    border: 1px solid rgba(99, 179, 237, 0.25);
}

.badge-editor {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── BUTTONS ── */
.btn-sm {
    display: inline-block;
    padding: .35rem .85rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .2s;
    line-height: 1.4;
}

.btn-primary {
    background: var(--gold);
    color: var(--p-d);
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background: var(--gold-l);
}

.btn-outline-gold {
    background: none;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.4);
}

.btn-outline-gold:hover {
    background: rgba(201, 168, 76, 0.08);
    border-color: var(--gold);
}

.btn-edit {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.btn-edit:hover {
    background: var(--gold);
    color: var(--p-d);
}

.btn-del {
    background: rgba(252, 129, 129, 0.1);
    color: var(--err);
    border: 1px solid rgba(252, 129, 129, 0.25);
}

.btn-del:hover {
    background: #c53030;
    color: #fff;
    border-color: #c53030;
}

.btn-view {
    background: rgba(99, 179, 237, 0.1);
    color: var(--info);
    border: 1px solid rgba(99, 179, 237, 0.25);
}

.btn-view:hover {
    background: #2b6cb0;
    color: #fff;
}

.btn-toggle-on {
    background: rgba(252, 129, 129, 0.1);
    color: var(--err);
    border: 1px solid rgba(252, 129, 129, 0.2);
}

.btn-toggle-on:hover {
    background: #c53030;
    color: #fff;
}

.btn-toggle-off {
    background: rgba(72, 187, 120, 0.12);
    color: var(--ok);
    border: 1px solid rgba(72, 187, 120, 0.25);
}

.btn-toggle-off:hover {
    background: #276749;
    color: #fff;
}

/* ── FORMS ── */
.adm-form {
    max-width: 740px;
}

.adm-field {
    margin-bottom: 1.2rem;
}

.adm-field label {
    display: block;
    font-size: .65rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .5rem;
}

.adm-field input[type=text],
.adm-field input[type=email],
.adm-field input[type=number],
.adm-field input[type=password],
.adm-field input[type=file],
.adm-field textarea,
.adm-field select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: .8rem .9rem;
    color: var(--white);
    font-family: 'Lato', sans-serif;
    font-size: .9rem;
    outline: none;
    transition: border-color .25s;
}

.adm-field input:focus,
.adm-field textarea:focus,
.adm-field select:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.06);
}

.adm-field textarea {
    height: 95px;
    resize: vertical;
}

.adm-field select option {
    background: var(--p-l);
}

.adm-field input[type=file] {
    padding: .6rem .9rem;
    cursor: pointer;
}

.adm-field .hint {
    font-size: .7rem;
    color: var(--muted);
    margin-top: .35rem;
    line-height: 1.5;
}

.adm-field .error {
    font-size: .7rem;
    color: var(--err);
    margin-top: .3rem;
}

.check-group {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.check-group input[type=checkbox] {
    width: 17px;
    height: 17px;
    accent-color: var(--gold);
    cursor: pointer;
}

.check-group label {
    font-size: .8rem;
    color: var(--white);
    cursor: pointer;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.adm-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ── IMAGE UPLOADER ── */
.img-upload-area {
    border: 2px dashed rgba(201, 168, 76, 0.25);
    padding: 1.5rem;
    text-align: center;
    transition: all .3s;
    cursor: pointer;
    position: relative;
}

.img-upload-area:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.03);
}

.img-upload-area p {
    font-size: .8rem;
    color: var(--muted);
    margin-top: .4rem;
}

.img-upload-area .img-specs {
    font-size: .68rem;
    color: rgba(201, 168, 76, 0.55);
    margin-top: .3rem;
    letter-spacing: .5px;
}

.img-preview-wrap {
    margin-bottom: .8rem;
}

.img-preview-label {
    font-size: .63rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .4rem;
}

.img-remove-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
}

.img-remove-row label {
    font-size: .72rem;
    color: var(--err);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

/* BG gradient options */
.bg-options {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.bg-opt {
    width: 80px;
    height: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .2s;
    position: relative;
}

.bg-opt.selected,
.bg-opt:hover {
    border-color: var(--gold);
}

.bg-opt span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: .58rem;
    background: rgba(0, 0, 0, .65);
    padding: .12rem;
    color: #fff;
}

/* ── ALERTS ── */
.adm-alert {
    padding: .85rem 1.2rem;
    margin-bottom: 1.4rem;
    border-left: 3px solid var(--gold);
    background: rgba(201, 168, 76, 0.07);
    font-size: .88rem;
    color: var(--gold-l);
}

.adm-alert-error {
    border-color: #c53030;
    background: var(--err-bg);
    color: var(--err);
}

.adm-alert-success {
    border-color: #276749;
    background: var(--ok-bg);
    color: var(--ok);
}

/* ── PAGINATION ── */
.pagination {
    display: flex;
    gap: .4rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: .48rem .9rem;
    font-size: .78rem;
    border: 1px solid var(--border);
    color: var(--white);
    text-decoration: none;
    transition: all .2s;
}

.pagination a:hover,
.pagination .active span {
    background: var(--gold);
    color: var(--p-d);
    border-color: var(--gold);
}

/* ── DETAIL BOX ── */
.detail-box {
    background: var(--p-d);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: .64rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    align-self: start;
    padding-top: .1rem;
}

.detail-val {
    color: var(--white);
    font-size: .92rem;
    line-height: 1.65;
}

/* ── LOGIN PAGE ── */
.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--p-d);
}

.login-box {
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    background: var(--p);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: .4rem;
}

.login-sub {
    font-size: .65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── TABS CONFIG ── */
.config-tabs {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.config-tab-link {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: .5rem 1.2rem;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all .2s;
}

.config-tab-link:hover {
    color: var(--gold);
    border-color: rgba(201, 168, 76, 0.4);
}

.config-tab-link.active {
    background: var(--gold);
    color: var(--p-d);
    border-color: var(--gold);
}

/* ── ROLE COLORS ── */
.role-superadmin {
    color: var(--gold-l);
}

.role-admin {
    color: var(--info);
}

.role-editor {
    color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width:900px) {
    .adm-navbar {
        flex-wrap: wrap;
        height: auto;
        padding: .8rem 1rem;
    }

    .adm-nav-links {
        gap: .2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-row {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .adm-user-pill {
        display: none;
    }
}

/* ── PRINT ── */
@media print {

    .adm-navbar,
    .adm-actions,
    .no-print,
    button {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .adm-main {
        padding: 0;
    }
}

/* WYSIWYG */
.wysiwyg-toolbar {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 5px;
    margin-bottom: 5px;
}

.wysiwyg-toolbar button {
    background: white;
    border: 1px solid #ccc;
    margin: 2px;
    padding: 5px 10px;
    cursor: pointer;
}

.wysiwyg {
    border: 1px solid #ddd;
    min-height: 400px;
    padding: 10px;
    background: white;
    overflow-y: auto;
}

/* Grid noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1rem;
}

/* Galería */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--gold);
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    background: var(--p-d);
    border: 1px solid var(--border);
    color: white;
    border-radius: 4px;
}

.wysiwyg {
    background: white;
    color: #1a2a4f;
    padding: 1rem;
    min-height: 400px;
    border-radius: 8px;
}

.btn-primary {
    background: var(--gold);
    color: #00173b;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary {
    background: #2a3a5a;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.btn-sm {
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-gold {
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-view {
    background: #3a5a7a;
    color: white;
}

.btn-del {
    background: #8b3a3a;
    color: white;
}

/* ===== PARALLAX EN CABECERA ===== */
.page-hero-parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}
@media (max-width: 768px) {
    .page-hero-parallax {
        background-attachment: scroll;
    }
}

/* ===== LAYOUT DOS COLUMNAS ===== */
.news-detail-section {
    background: white;
    padding: 4rem 2rem;
}
.news-detail-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 900px) {
    .news-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== CONTENIDO PRINCIPAL ===== */
.news-content-main {
    background: white;
}
.no-image-notice {
    text-align: center;
    padding: 3rem;
    background: #f7f7f7;
    border-radius: 16px;
    margin-bottom: 2rem;
}
.no-image-notice span {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}
.no-image-notice p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #7a8aa3;
}
.article-content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.18rem;
    line-height: 1.75;
    color: #1a2340;
}
.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}
.article-content h2, .article-content h3 {
    font-family: 'Playfair Display', serif;
    color: #00173b;
}
.article-content a {
    color: #9a6f28;
    text-decoration: underline;
}

/* ===== SIDEBAR GALERÍA ===== */
.news-sidebar {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}
@media (max-width: 900px) {
    .news-sidebar {
        position: static;
    }
}
.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}
.sidebar-title .sidebar-icon {
    font-size: 1.4rem;
}
.sidebar-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #00173b;
    margin: 0;
}
.sidebar-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sidebar-gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sidebar-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.sidebar-gallery-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.img-caption {
    font-size: 0.7rem;
    color: #6a7a9a;
    padding: 0.5rem;
    text-align: center;
    background: white;
    border-top: 1px solid #eee;
}

/* ===== MÁS NOTICIAS (TARJETAS CON IMAGEN) ===== */
.related-news-section {
    background: #f7f8ff;
    padding: 4rem 2rem;
    margin-top: 3rem;
}
.related-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.related-header .sec-label {
    margin-bottom: 0.5rem;
}
.related-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #00173b;
    margin: 0;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: block;
}
.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.related-img {
    height: 180px;
    overflow: hidden;
}
.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.related-card:hover .related-img img {
    transform: scale(1.05);
}
.related-img-fallback {
    background: linear-gradient(135deg, #00173b, #112a55);
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-img-fallback span {
    font-size: 3rem;
}
.related-info {
    padding: 1.2rem;
}
.related-date {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9a6f28;
    font-weight: 700;
    display: block;
    margin-bottom: 0.4rem;
}
.related-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #00173b;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}
.related-info p {
    font-size: 0.85rem;
    color: #4a5a7a;
    line-height: 1.5;
    margin: 0;
}

/* ===== LIGHTBOX SIMPLE ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.lightbox.active {
    display: flex;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.adm-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.adm-brand-logo {
    height: 32px;
    width: auto;
}