/* =========================================
   1. CORE: VARIABLES & RESET
   ========================================= */
:root {
    --oliveDark: #556B2F;
    --olive: #7A8F29;
    --oliveSoft: #AFC86B;
    --limeSoft: #DAE8A2;
    --limeLight: #F2F8D5;
    --bg: #f5f7f3;
    --text: #1f2933;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    /* Snap scroll behavior extracted from bottom of original file */
    scroll-snap-type: y mandatory; 
}

a { color: var(--oliveDark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* Utilities */
.muted { color: #6b7280; font-size: 0.9rem; }
.text-link { font-size: 0.85rem; }
.dot-separated + .dot-separated::before { content: "•"; margin: 0 .3rem; }

/* =========================================
   2. LAYOUT & GLOBAL SECTIONS
   ========================================= */
.container, .yeshivot-shell {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Updated to use your "Compact Mode" padding values */
.section { padding: 2rem 0; }
.section-light { padding: 3rem 0; background: white; }

/* Combined Bottom Section */
.section-combined {
    background: linear-gradient(to bottom, #f2f8d5, #e8f0c4, #dce7b1);
    padding: 5rem 0;
}

/* Snap Scroll Logic */
.snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* =========================================
   3. COMPONENTS (Header, Footer, UI)
   ========================================= */
/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}
.logo a { font-weight: 700; font-size: 1.25rem; color: var(--oliveDark); }
.main-nav { display: flex; gap: 1rem; align-items: center; font-size: 0.95rem; }

/* Footer */
.site-footer {
    border-top: 1px solid #e5ebdd;
    background: white;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Buttons */
.btn-primary {
    background: var(--oliveDark);
    color: white !important;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
}
.btn-outline {
    border-radius: 999px;
    border: 1px solid var(--oliveDark);
    padding: 0.4rem 0.9rem;
    font-weight: 500;
}
.btn-ghost {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-weight: 500;
    border: 1px dashed var(--olive);
    background: transparent;
}

/* Chips & Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--oliveSoft);
    color: #1f2a10;
    font-size: 0.85rem;
    font-weight: 600;
}
.chip {
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(209, 213, 219, 0.7);
}

/* Cards */
.card {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    border: 1px solid #e5ebdd;
}
.glass-card {
    background: rgba(122, 143, 41, 0.10);
    border: 1px solid rgba(122, 143, 41, 0.25);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-radius: 1.5rem;
    padding: 1.75rem 2rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    transition: transform .25s ease, box-shadow .25s ease;
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

/* =========================================
   4. COMPLEX MODULES (DO NOT DELETE)
   ========================================= */

/* --- A. 3D CAROUSEL (Requires JS) --- */
.yeshiva-carousel-3d {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}
.yeshiva-3d-wrapper {
    position: relative;
    min-height: 320px;
    perspective: 1800px;
}
.yeshiva-3d-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform-origin: center;
    transform: translateX(0) scale(0.85);
    filter: blur(1px);
    pointer-events: none; /* Crucial for click-through */
    transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease;
}
.yeshiva-3d-slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1) translateZ(0);
    filter: blur(0);
    pointer-events: auto; /* Re-enable clicks */
    z-index: 10;
}
.yeshiva-3d-slide.is-prev {
    opacity: 0.65;
    transform: translateX(14%) scale(0.9) rotateY(18deg);
    z-index: 5;
}
.yeshiva-3d-slide.is-next {
    opacity: 0.65;
    transform: translateX(-14%) scale(0.9) rotateY(-18deg);
    z-index: 5;
}
.yeshiva-3d-slide.is-hidden {
    opacity: 0;
    transform: translateX(0) scale(0.85) translateZ(-300px);
}
.carousel-btn {
    background: white;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* --- B. HERO SLIDER (Flickity) --- */
.hero-slider {
    width: 100%;
    height: 75vh;
    max-height: 640px;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    margin: 1.5rem auto 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    background: #000;
}
.hero-slider .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6, 13, 5, 0.15), rgba(24, 38, 15, 0.85));
}
.carousel-cell {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
/* Flickity Specific Overrides - DO NOT REMOVE */
.hero-slider .flickity-prev-next-button {
    width: 70px;
    height: 70px;
    background: transparent;
}
.hero-slider .flickity-prev-next-button .arrow { fill: #ffffff; }
.hero-slider .flickity-page-dots { bottom: 18px; }
.hero-slider .flickity-page-dots .dot {
    width: 26px; height: 4px; opacity: 1;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px; margin: 0 4px;
}
.hero-slider .flickity-page-dots .dot.is-selected { background: var(--oliveSoft); }

/* Glass Box for Slider Text */
.hero-slider .glass-box {
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    width: 38%;
    padding: 2rem;
    background: rgba(5, 20, 5, 0.55);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: right;
    color: white;
    z-index: 10;
}

/* --- C. ANIMATED MOUSE SCROLL --- */
.scroll-indicator {
    position: absolute;
    bottom: 5.75rem;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    z-index: 20;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}
.scroll-mouse {
    width: 26px; height: 42px; border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 4px; overflow: hidden;
}
.scroll-wheel {
    width: 4px; height: 8px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    animation: scroll-wheel 1.4s infinite;
}
@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* =========================================
   5. PAGE TYPES: HERO VARIANTS
   ========================================= */

/* Hero Type 1: Standard Gradient */
.hero {
    background: radial-gradient(circle at top right, var(--limeLight), white);
    padding: 3rem 0 3.5rem;
}
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}
.hero-text h1 { font-size: 2.4rem; margin-bottom: 0.5rem; color: var(--oliveDark); }

/* Hero Type 2: Full BG Glass */
.hero-bg {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('/static/core/img/1.jpg');
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    border-radius: 0 0 2rem 2rem;
    overflow: hidden;
}
.hero-content {
    position: absolute;
    right: 5%;     /* move to the right */
    top: 15%;      /* move upward */
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    padding-inline: 3rem;
}
.hero-text-glass {
    max-width: 540px;
    text-align: right;
    color: #fff;
    background: rgba(5, 20, 5, 0.55);
    backdrop-filter: blur(18px) saturate(180%);
    border-radius: 1.5rem;
    padding: 1.75rem 2.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Hero Type 3: List Page Hero */
.yeshivot-list-hero {
    background: radial-gradient(circle at top left, #f8fbe8, #f3f7ea 55%, #eef3e0);
}
.yeshivot-hero-inner {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem; /* Compact padding */
}
.yeshivot-hero-text h1 { font-size: 2rem; margin-bottom: 0.4rem; }

/* =========================================
   6. PAGE TYPES: YESHIVA LISTS & GRIDS
   ========================================= */

/* List Grid Layout */
.yeshivot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem; /* Compact gap */
    margin-top: 1rem;
}

/* The Standard Card */
.yeshiva-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5ebdd;
}
.yeshiva-card-media {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    max-height: 190px; /* Compact height */
}
.yeshiva-card-body {
    padding: 0.9rem 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.yeshiva-card-footer {
    margin-top: 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

/* The "Row" Card (Used in List View V2) */
.yeshiva-row-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.1fr);
    gap: 1.25rem;
    padding: 0.9rem 1rem;
    align-items: center;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* =========================================
   7. PAGE TYPES: DETAIL PAGES (V1 & V2)
   ========================================= */

/* Common Layout Grids */
.yeshiva-detail-layout,
.yeshiva-study-layout,
.yeshiva-extra-layout,
.yeshiva-partners-map-layout {
    display: grid;
    gap: 1.25rem;
}
.yeshiva-main-info, .study-column, .yeshiva-gallery-block {
    padding: 1.25rem 1.4rem; /* Compact padding */
}

/* DETAIL HERO V2 (Sleek Redesign) */
.yeshiva-hero-v2 {
    background: radial-gradient(circle at top right, #f5fbef, #eef4e2 60%, #e7edd9);
}
.yeshiva-hero-v2-inner {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem 0.5rem;
}
.yeshiva-hero-v2-media {
    position: relative;
    border-radius: 1.75rem;
    overflow: hidden;
    height: 260px;
}
.yeshiva-hero-v2-card {
    position: relative;
    max-width: 650px;
    margin-right: auto;
    margin-left: 2.5rem;
    margin-top: -140px;
    padding: 1.5rem 1.75rem;
    color: #111827;
    background: white; /* Ensure bg exists for overlap */
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.yeshiva-hero-v2-chips {
    margin-top: 0.8rem;
    padding: 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Info Rail (Sidebar) */
.yeshiva-info-rail-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
.rail-card {
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.05);
    border-inline-start: 4px solid #9cae5b;
}

/* FAQ & Partners */
.faq-accordion { display: flex; flex-direction: column; gap: 0.4rem; }
.faq-item {
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(209, 213, 219, 0.7);
    padding: 0.35rem 0.7rem;
}
.faq-item summary { cursor: pointer; }
.partners-chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.partner-chip {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(209, 213, 219, 0.7);
}
.partner-chip-logo img { width: 34px; height: 34px; object-fit: contain; }

/* =========================================
   8. MEDIA QUERIES (Responsive)
   ========================================= */
@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .combined-grid { grid-template-columns: 1.1fr 1fr; }
    .news-events-layout { grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr); }
    .benefits-grid { grid-template-columns: repeat(4, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
    .yeshiva-detail-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    .yeshiva-extra-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr); }
    .yeshiva-study-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    /* Mobile resets for Hero */
    .hero-bg { min-height: 60vh; }
    .hero-text-glass { max-width: 100%; text-align: center; }
    .hero-slider { height: 60vh; max-height: 520px; }
    .hero-slider .glass-box { width: 55%; bottom: 10%; right: 5%; }
    
    /* Mobile resets for Modules */
    .yeshiva-carousel-3d { grid-template-columns: minmax(0, 1fr); }
    .yeshivot-hero-inner { flex-direction: column; }
    .yeshiva-hero-v2-card { margin: -120px 1.25rem 0; max-width: none; }
    .yeshiva-info-rail-inner { grid-template-columns: minmax(0, 1fr); }
    .yeshiva-row-card { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .hero-slider .glass-box {
        width: 90%; right: 50%; transform: translate(50%, 50%);
        top: auto; bottom: 6%;
    }
}

/* =========================================
   Bottom Home Section – Clean Olive Glass
   ========================================= */

.section-combined {
    position: relative;
    padding: 4rem 0 4.5rem;
    background: radial-gradient(circle at top left, #f7fbe8 0%, #e9f1c9 55%, #dde8b7 100%);
    overflow: hidden;
}

/* faint vignette */
.section-combined::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.6), transparent 60%),
        radial-gradient(circle at bottom left, rgba(205,221,142,0.5), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.combined-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* ---------- SHARED GLASS CARD ---------- */

.benefit-card,
.testimonial-card,
.news-item,
.events-column {
    position: relative;
    border-radius: 1.4rem;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.95),
        rgba(243,249,218,0.92)
    );
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow:
        0 15px 40px rgba(85,107,47,0.22),
        0 0 0 1px rgba(190,207,130,0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.1rem 1.35rem;
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        background 0.18s ease-out;
}

.benefit-card::before,
.testimonial-card::before,
.news-item::before,
.events-column::before {
    content: "";
    position: absolute;
    inset-block: 0.8rem;
    inset-inline-start: 1.1rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--oliveDark), var(--oliveSoft));
    opacity: 0.9;
}

.benefit-card:hover,
.testimonial-card:hover,
.news-item:hover,
.events-column:hover {
    transform: translateY(-3px);
    box-shadow:
        0 22px 55px rgba(85,107,47,0.3),
        0 0 0 1px rgba(144,163,71,0.7);
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.98),
        rgba(247,253,229,0.96)
    );
}

/* ---------- TOP BLOCK – PILLARS ---------- */

.combined-block {
    text-align: right;
}

.combined-block .section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--oliveDark);
    margin-bottom: 0.4rem;
}

.combined-block .section-intro {
    font-size: 0.95rem;
    color: #465134;
    max-width: 40rem;
    margin-inline-start: auto;
}

.benefits-grid {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.benefit-card {
    padding-inline-start: 2.1rem; /* space for accent bar */
}

.benefit-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--oliveDark);
}

.benefit-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #424d32;
}

/* ---------- BOTTOM BLOCK – TWO COLUMNS ---------- */

.combined-grid {
    display: grid;
    gap: 2.5rem;
}

/* headings inside this section */
.section-combined h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--oliveDark);
    margin-bottom: 0.35rem;
    text-align: right;
}

.section-combined .section-intro {
    font-size: 0.9rem;
    color: #55613c;
}

/* Testimonials column (right on desktop) */
.testimonials-grid {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.testimonial-quote {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #313a23;
}

.testimonial-meta {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #6b7a4a;
}

/* News + events column */
.news-events-layout {
    margin-top: 1.2rem;
    display: grid;
    gap: 1.2rem;
}

/* news list */
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.news-item {
    padding-inline-start: 2.1rem;
}

.news-item a {
    text-decoration: none;
    color: #1f2933;
    font-weight: 500;
    font-size: 0.92rem;
}

.news-meta {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6b7a4a;
}

/* events card */
.events-column {
    padding-top: 1.2rem;
}

.events-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--oliveDark);
    margin-bottom: 0.7rem;
}

.events-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.events-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.event-date {
    min-width: 3.1rem;
    height: 3.1rem;
    border-radius: 1.25rem;
    background: linear-gradient(to bottom, var(--oliveDark), var(--olive));
    color: #fbfdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 15px 35px rgba(64,77,33,0.45);
}

.event-body strong {
    font-size: 0.9rem;
    color: #273117;
}

.event-body .muted {
    font-size: 0.8rem;
    color: #667546;
}

/* ---------- RESPONSIVE ---------- */

@media (min-width: 720px) {
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .combined-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
        align-items: flex-start;
    }

    .news-events-layout {
        grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    }
}
/* ============================
   News list & detail styling
   ============================ */

.news-page {
    background: linear-gradient(to bottom, #f4f8dd, #e6efc7);
}

.news-hero {
    margin-bottom: 1.8rem;
    text-align: right;
}

.news-hero h1 {
    font-size: 1.7rem;
    color: var(--oliveDark);
    margin-bottom: 0.3rem;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.4rem;
}

/* reuse “glass-card” look */
.news-card.glass-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.news-card-body {
    padding: 1.1rem 1.3rem 1.2rem;
}

.news-card-title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.news-card-title a {
    color: var(--oliveDark);
    text-decoration: none;
}

.news-card-title a:hover {
    text-decoration: underline;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    color: #6b7a4a;
}

.news-date {
    white-space: nowrap;
}

.news-author {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.news-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-author-name {
    font-weight: 600;
    color: #445030;
}

.news-author-role {
    font-size: 0.78rem;
    color: #7b8a57;
}

.news-card-summary {
    font-size: 0.9rem;
    color: #313a23;
    margin-bottom: 0.6rem;
}

/* detail page */

.news-detail-page {
    background: linear-gradient(to bottom, #f4f8dd, #f7faf1);
}

.post-hero-banner {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(85,107,47,0.25);
    margin-bottom: 1.4rem;
}

.post-hero-banner img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.post.glass-card {
    padding: 1.6rem 1.8rem;
}

.post-header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    color: var(--oliveDark);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7a4a;
}

.post-author {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-name {
    font-weight: 600;
    color: #374021;
}

.post-author-role {
    font-size: 0.8rem;
    color: #7b8a57;
}

.post-body {
    margin-top: 1.2rem;
    font-size: 0.96rem;
    color: #212814;
    line-height: 1.8;
}

/* responsive tweaks */

@media (max-width: 640px) {
    .post.glass-card {
        padding: 1.3rem 1.2rem;
    }

    .post-hero-banner img {
        height: 210px;
    }
}
/* Rich post body styling */

.post-body {
    margin-top: 1.2rem;
    font-size: 0.96rem;
    color: #212814;
    line-height: 1.8;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    color: var(--oliveDark);
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
}

.post-body p {
    margin: 0 0 0.8rem;
}

.post-body ul,
.post-body ol {
    margin: 0 0 0.9rem 0;
    padding-inline-start: 1.2rem;
}

/* Images inside the article */
.post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.2rem auto;
    border-radius: 1rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

/* Optional figure/figcaption styling */
.post-body figure {
    margin: 1.2rem 0;
    text-align: center;
}

.post-body figcaption {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: #6b7a4a;
}
/* Header / Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    background: linear-gradient(
        to left,
        rgba(245, 248, 213, 0.92),
        rgba(223, 234, 179, 0.88)
    );
    border-bottom: 1px solid rgba(174, 191, 115, 0.6);
    box-shadow: 0 10px 30px rgba(34, 46, 16, 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    gap: 1.25rem;
}

/* Logo */
.logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 56px;
    width: auto;
    display: block;
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link {
    position: relative;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    color: #1f2933;
    text-decoration: none;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 0.85rem;
    bottom: 0.22rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to left, var(--oliveDark), var(--oliveSoft));
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: center;
    transition: opacity 0.18s ease, transform 0.18s ease;
    color: #1f2933;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 18px rgba(85, 107, 47, 0.18);
    transform: translateY(-1px);
    color: #1f2933;
}

/* “Active” / focus state if you add a class later */
.nav-link.is-active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--oliveDark);
    box-shadow: 0 10px 24px rgba(85, 107, 47, 0.24);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* CTA + portal tweaks */
.nav-cta.btn-primary {
    padding-inline: 1.2rem;
    box-shadow: 0 12px 30px rgba(85, 107, 47, 0.32);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.nav-portal {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Mobile behaviour */
@media (max-width: 800px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding-block: 0.4rem;
    }

    .logo {
        order: 1;
    }

    .main-nav {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.4rem;
    }

    .nav-link {
        font-size: 0.88rem;
        padding: 0.28rem 0.8rem;
    }

    .logo img {
        height: 48px;
    }
}
.nav-link,
.nav-link:visited,
.nav-link:hover,
.nav-link:active {
    text-decoration: none;
}
/* ============================
   News albums on list page
   ============================ */

.news-albums {
    margin-top: 3rem;
}

.news-albums-header {
    text-align: right;
    margin-bottom: 1.4rem;
}

.news-albums-header h2 {
    font-size: 1.4rem;
    color: var(--oliveDark);
    margin-bottom: 0.2rem;
}

.news-albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.album-card.glass-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.album-card-cover {
    position: relative;
    display: block;
}

.album-card-cover img,
.album-card-cover-placeholder {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.album-card-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(175,200,107,0.28);
    color: #445030;
    font-size: 0.86rem;
}

.album-card-count {
    position: absolute;
    inset-inline-start: 0.9rem;
    bottom: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(17,24,39,0.78);
    color: #f9fafb;
    font-size: 0.78rem;
}

.album-card-body {
    padding: 0.9rem 1.1rem 1.1rem;
    text-align: right;
}

.album-card-title {
    margin: 0;
    font-size: 1rem;
}

.album-card-title a {
    color: var(--oliveDark);
    text-decoration: none;
}

.album-card-title a:hover {
    text-decoration: underline;
}

.album-card-date {
    margin: 0.25rem 0 0.3rem;
    font-size: 0.82rem;
    color: #6b7a4a;
}

.album-card-description {
    margin: 0;
    font-size: 0.86rem;
    color: #313a23;
}

/* ============================
   Album detail page
   ============================ */

.album-detail-page {
    background: linear-gradient(to bottom, #f4f8dd, #f7faf1);
}

.album-detail-header {
    text-align: right;
    margin-bottom: 1.5rem;
}

.album-detail-header h1 {
    font-size: 1.6rem;
    color: var(--oliveDark);
    margin-bottom: 0.3rem;
}

.album-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    font-size: 0.84rem;
    color: #6b7a4a;
}

.album-detail-description {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: #313a23;
}

.album-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.album-detail-item {
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 14px 36px rgba(15,23,42,0.18);
    display: flex;
    flex-direction: column;
}

.album-detail-item img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.album-detail-item figcaption {
    padding: 0.45rem 0.7rem 0.7rem;
    font-size: 0.8rem;
    color: #4a5532;
    text-align: right;
}

@media (max-width: 480px) {
    .album-detail-item img {
        height: 240px;
    }
}
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--oliveDark);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    padding: 1rem 0 3rem;
}

.album-card {
    display: block;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.album-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.album-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--oliveSoft);
    color: var(--oliveDark);
    font-weight: 600;
}

.album-card-body {
    padding: 1rem 1.2rem;
}

.album-card-body h3 {
    margin: 0;
    padding: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--oliveDark);
}

.album-date {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.95rem;
    color: #555;
}

.album-count {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: var(--oliveDark);
    font-weight: 600;
}
/* ===== Full-page album gallery ===== */

.album-page {
    min-height: calc(100vh - 80px);
    padding: 2.5rem 0 4rem;
    background: radial-gradient(circle at top, #f8fbef 0%, #eef5dc 45%, #e7f0d3 100%);
}

/* Top bar */

/* ===== Album sticky header ===== */

.album-page {
    min-height: calc(100vh - 80px);
    padding: 2.5rem 0 4rem;
    background: radial-gradient(circle at top, #f8fbef 0%, #eef5dc 45%, #e7f0d3 100%);
}
/* ===== Floating album hero card ===== */

.album-hero {
    max-width: 1100px;
    margin: 1.5rem auto 1.5rem;
    padding: 1.4rem 1.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.album-hero-main {
    text-align: right;
}

.album-hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7f8a4a;
    margin-bottom: 0.15rem;
}

.album-hero h1 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--oliveDark);
}

.album-hero-desc {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
    color: #43502a;
}

/* meta chips on the left side (for RTL) */

.album-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-start;
}

/* chip reused */
.chip {
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: rgba(122, 143, 41, 0.08);
    border: 1px solid rgba(122, 143, 41, 0.4);
    font-size: 0.78rem;
    color: #43502a;
}

/* responsive stacking */

@media (max-width: 768px) {
    .album-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem 1.3rem 1.4rem;
        margin: 1.2rem 1rem 1.4rem;
    }

    .album-hero h1 {
        font-size: 1.6rem;
    }

    .album-hero-meta {
        justify-content: flex-start;
    }
}


.album-topbar {
    position: sticky;
    top: 60px; /* under main navbar */
    z-index: 5;
    backdrop-filter: blur(18px);
    background: linear-gradient(
        to bottom,
        rgba(244, 248, 233, 0.96),
        rgba(244, 248, 233, 0.75)
    );
    border-bottom: 1px solid rgba(175, 200, 107, 0.4);
}

.album-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.album-topbar-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7f8a4a;
    margin-bottom: 0.1rem;
}

.album-topbar-title h1 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--oliveDark);
}

.album-topbar-desc {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    color: #43502a;
}

.album-topbar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.chip {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(122, 143, 41, 0.08);
    border: 1px solid rgba(122, 143, 41, 0.4);
    font-size: 0.78rem;
    color: #43502a;
}

/* responsive header */

@media (max-width: 768px) {
    .album-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .album-topbar-title h1 {
        font-size: 1.5rem;
    }
}


/* Gallery wrapper */

/* ========= IMPROVED FULL PAGE GALLERY ========= */

.album-gallery-wrapper {
    max-width: 2000px;   /* wider than before */
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Larger grid items + tighter spacing */
.album-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); 
    gap: 0.1rem;  /* closer together! */
}

/* Tablet */
@media (max-width: 900px) {
    .album-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 0.5rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .album-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 0.4rem;
    }
}

/* Bigger, more dynamic tiles */
/* Tiles */

.album-tile {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    transform: translateY(14px);
    opacity: 0;
    transition:
        transform 0.4s ease,
        opacity 0.4s ease,
        box-shadow 0.25s ease;
}

/* fade-in on scroll (IntersectionObserver adds .is-visible) */
.album-tile.is-visible {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.album-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        filter 0.25s ease;
}

/* hover: zoom + slight blur + dark overlay */
.album-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.55) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.album-tile:hover img {
    transform: scale(1.05);
    opacity: 0.9;
    filter: blur(1px);
}

.album-tile:hover::after {
    opacity: 1;
}

/* caption bubble stays above overlay */
.album-tile figcaption {
    position: absolute;
    bottom: 0.4rem;
    left: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    background: rgba(0,0,0,0.78);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 1;
}

/* ===== Lightbox ===== */

.no-scroll {
    overflow: hidden;
}

.album-lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
}

.album-lightbox.is-open {
    display: flex;
}

.album-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 30, 0.8);
    backdrop-filter: blur(12px);
}

/* Modal content */

.album-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    width: 960px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.2rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lb-image-shell {
    flex: 1;
    border-radius: 14px;
    overflow: hidden;
}

.lb-image-shell img {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    background: #000;
}

.lb-caption {
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
    color: #e5f0c9;
    text-align: right;
}

/* Lightbox controls */

.lb-close {
    position: absolute;
    inset-inline-end: 0.9rem;
    top: 0.5rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: none;
    background: rgba(31, 41, 55, 0.9);
    color: #f9fafb;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: none;
    background: rgba(31, 41, 55, 0.9);
    color: #f9fafb;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-prev {
    inset-inline-start: 0.5rem;
}

.lb-next {
    inset-inline-end: 0.5rem;
}

.lb-close:hover,
.lb-nav:hover {
    background: rgba(99, 115, 52, 0.95);
}
/* ===== Portal login ===== */

.auth-section {
    min-height: calc(100vh - 140px); /* header + footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
    background: radial-gradient(circle at top, #f8fbef 0%, #eef5dc 45%, #e7f0d3 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.2rem 2.4rem 2.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    text-align: right;
}

.auth-title {
    margin: 0 0 0.4rem;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--oliveDark);
}

.auth-subtitle {
    margin: 0 0 1.6rem;
    font-size: 0.95rem;
    color: #43502a;
}

/* Form */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auth-field label {
    font-size: 0.9rem;
    color: #3b4a1f;
}

/* Style the actual inputs (Django renders <input> elements) */
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"] {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(122, 143, 41, 0.5);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    direction: rtl;
}

.auth-card input[type="text"]:focus,
.auth-card input[type="password"]:focus,
.auth-card input[type="email"]:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 2px rgba(175, 200, 107, 0.45);
}

/* Button */

.auth-submit {
    margin-top: 0.4rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 999px;
    border: none;
    background: var(--oliveDark);
    color: #f9fafb;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    background: var(--olive);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

/* Errors / helper */

.auth-errors {
    margin: -0.4rem 0 0.6rem;
    padding: 0.4rem 0.7rem;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.08);
    color: #991b1b;
    font-size: 0.85rem;
}

.auth-help {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: #4b4b3a;
}

.auth-help a {
    color: var(--oliveDark);
    text-decoration: underline;
}
/* Portal layout */
/* === STAFF TOOLS GRID === */
.portal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;   /* because site is RTL, "start" = right side */
  margin-top: 1.5rem;
}

.portal-card {
  text-decoration: none;
  padding: 1.2rem 1.4rem;
  min-height: 120px;
  flex: 1 1 260px;        /* responsive columns */
  max-width: 320px;       /* prevents them from becoming huge pills */
  border-radius: 1.4rem;  /* make them look like nice cards */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease, backdrop-filter 0.15s ease;
}

/* keep the hover but on a smaller card */
.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.portal-card h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
}

.portal-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}


/* Tables */
.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.portal-table th,
.portal-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-table th {
  text-align: right;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.85;
}

.portal-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.portal-table .actions-col {
  white-space: nowrap;
}

/* Two-column layouts inside portal pages */
.portal-two-columns,
.portal-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.portal-columns .portal-column {
  min-width: 0;
}

/* Badges & links */
.badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.badge-draft {
  background: rgba(255, 180, 0, 0.15);
  color: #ffb400;
}

.badge-published {
  background: rgba(0, 200, 120, 0.15);
  color: #00c878;
}

.link-action {
  font-size: 0.9rem;
  margin-inline-start: 0.4rem;
  text-decoration: none;
}

.link-action:hover {
  text-decoration: underline;
}

.text-danger {
  color: #ff4b5c;
}

/* Forms */
.form-card {
  margin-top: 1.2rem;
}

.form-row {
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-row label {
  font-size: 0.9rem;
  opacity: 0.85;
}

.form-row input,
.form-row select,
.form-row textarea {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.45rem 0.6rem;
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
}

.form-row textarea {
  min-height: 120px;
}

.form-errors,
.field-errors {
  color: #ff4b5c;
  font-size: 0.85rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.portal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-list li {
  margin-bottom: 0.4rem;
}

.portal-list .small {
  font-size: 0.8rem;
}
