﻿@import url("/Page/About/Regional-Centers/css/regional-centers.css");

/* ── Page spacing ───────────────────────────────────────── */
.rc-section {
    padding: 40px 0;
}

/* ── Hero ───────────────────────────────────────────────── */
.rc-hero {
    padding: 40px 0 28px;
    background: #fdf4f4;
    border-bottom: 1px solid #f3d6d6;
}

.rc-hero-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

.rc-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #ffe4e4;
    color: #8b0000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.rc-hero-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
}

.rc-hero-sub {
    margin: 4px 0 0;
    font-size: .9rem;
    color: #6c757d;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.rc-breadcrumb {
    padding: 10px 0;
    background: #fff;
    border-bottom: 1px solid #f1f3f5;
}

    .rc-breadcrumb .breadcrumb {
        font-size: .8rem;
        margin-bottom: 0;
    }

    .rc-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        color: #adb5bd;
    }

    .rc-breadcrumb .breadcrumb a {
        color: #8b0000;
        text-decoration: none;
    }

        .rc-breadcrumb .breadcrumb a:hover {
            text-decoration: underline;
        }

/* ── Main details card ──────────────────────────────────── */
.news-details-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
    overflow: hidden;
    padding: 1.8rem 1.8rem 2.2rem;
}

@media (min-width: 992px) {
    .news-details-card {
        padding: 2.1rem 2.3rem 2.6rem;
    }
}

/* ── Banner ─────────────────────────────────────────────── */
.news-details-banner {
    border-radius: 14px;
    overflow: hidden;
    background: #111827;
    margin-bottom: 1rem;
}

    .news-details-banner img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

/* ── Inline photo strip ─────────────────────────────────── */
.news-photos-strip {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
    padding-bottom: .2rem;
    overflow-x: auto;
}

.news-photos-strip-thumb {
    flex: 0 0 auto;
    width: 90px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    transition: transform .12s ease-out, box-shadow .12s ease-out;
}

    .news-photos-strip-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .news-photos-strip-thumb:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
    }

/* ── Meta row (date + cats) ─────────────────────────────── */
.news-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .9rem;
    margin-top: 1rem;
    margin-bottom: .5rem;
    font-size: .8rem;
    color: #6c757d;
}

    .news-details-meta i {
        margin-right: .25rem;
    }

.news-details-cats {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.news-details-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: #fff0f0;
    border: 1px solid rgba(192, 57, 43, .35);
    font-size: .75rem;
    font-weight: 600;
    color: #c0392b;
}

/* ── Body text ──────────────────────────────────────────── */
.news-details-body {
    margin-top: .6rem;
    font-size: .95rem;
    line-height: 1.85;
    color: #444;
}

    .news-details-body p {
        margin-bottom: 1rem;
    }

    .news-details-body h1,
    .news-details-body h2,
    .news-details-body h3,
    .news-details-body h4 {
        margin-top: 1.4rem;
        margin-bottom: .5rem;
        font-weight: 700;
        color: #1a1a2e;
    }

    .news-details-body ul,
    .news-details-body ol {
        padding-left: 1.3rem;
        margin-bottom: 1rem;
    }

    .news-details-body li {
        margin-bottom: .25rem;
    }

    .news-details-body a {
        color: #c0392b;
        text-decoration: none;
    }

        .news-details-body a:hover {
            text-decoration: underline;
        }

/* ── Gallery section ───────────────────────────────────── */
.news-gallery {
    margin-top: 2rem;
}

.news-gallery-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .92rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: .7rem;
}

    .news-gallery-title i {
        color: #c0392b;
    }

.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

@media (min-width: 768px) {
    .news-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .news-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.news-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f1f3f5;
    transition: transform .12s ease-out, box-shadow .12s ease-out;
}

    .news-gallery-item img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        display: block;
    }

    .news-gallery-item::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .28));
        opacity: 0;
        transition: opacity .12s ease-out;
    }

    .news-gallery-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
    }

        .news-gallery-item:hover::after {
            opacity: 1;
        }

/* ── Lightbox ───────────────────────────────────────────── */
.news-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

    .news-lightbox-backdrop.open {
        display: flex;
    }

.news-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    color: #f8f9fa;
}

.news-lightbox-img-wrap {
    max-width: 90vw;
    max-height: 80vh;
}

    .news-lightbox-img-wrap img {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
        display: block;
    }

.news-lightbox-caption {
    margin-top: .35rem;
    font-size: .8rem;
    color: #e9ecef;
}

/* Close & arrows */
.news-lightbox-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    color: #f8f9fa;
    font-size: 1.8rem;
    cursor: pointer;
}

.news-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .55);
    border: none;
    color: #f8f9fa;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .news-lightbox-arrow.prev {
        left: 16px;
    }

    .news-lightbox-arrow.next {
        right: 16px;
    }

/* ── Empty state (404 or no content) ───────────────────── */
.rc-empty {
    text-align: center;
    padding: 3rem 0;
    color: #adb5bd;
}

    .rc-empty i {
        font-size: 2.3rem;
        display: block;
        margin-bottom: .6rem;
    }
