/* ============================================
   Facilities Page — Premium Professional Design
   ============================================ */

/* ---- Badge ---- */
.fac-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    background: linear-gradient(135deg, rgba(11, 61, 46, 0.07), rgba(201, 162, 77, 0.07));
    color: var(--primary);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 18px;
    border: 1px solid rgba(11, 61, 46, 0.1);
}

.fac-badge i {
    color: var(--gold);
    font-size: 0.8rem;
}

/* ---- Section Titles ---- */
.fac-section-title {
    font-size: 2.3rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.fac-section-desc {
    color: #5a5a5a;
    font-size: 1.05rem;
    line-height: 1.75;
}

.fac-desc-center {
    max-width: 650px;
    margin: 0 auto 50px;
}

/* ============================================
   SHOWCASE SECTION
   ============================================ */
.fac-showcase-section {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.fac-showcase-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(11, 61, 46, 0.03), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ============================================
   FACILITY CARDS
   ============================================ */

/* ---- Card Base ---- */
.fac-card {
    margin-bottom: 32px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(11, 61, 46, 0.06);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 6px 20px rgba(11, 61, 46, 0.05);
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fac-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold) 50%, var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.fac-card:hover {
    box-shadow:
        0 12px 40px rgba(11, 61, 46, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.fac-card:hover::before {
    transform: scaleX(1);
}

/* ---- Hero Card (Full Width Image) ---- */
.fac-card-hero {
    text-align: center;
}

.fac-card-img-full {
    height: 420px;
    position: relative;
}

.fac-card-img-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.fac-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 61, 46, 0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fac-card-hero:hover .fac-card-img-overlay {
    opacity: 1;
}

.fac-overlay-badge {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fac-card-body-center {
    text-align: center;
}

.fac-card-body-center .fac-card-icon {
    margin-left: auto;
    margin-right: auto;
}

.fac-card-body-center p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Split Card (Image + Content Side by Side) ---- */
.fac-card-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.fac-card-reverse {
    direction: rtl;
}

.fac-card-reverse > * {
    direction: ltr;
}

/* ---- Card Body ---- */
.fac-card-body {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fac-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, var(--primary), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(11, 61, 46, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fac-card:hover .fac-card-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 6px 20px rgba(11, 61, 46, 0.3);
}

.fac-card-body h3 {
    font-size: 1.45rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.fac-card-body p {
    color: #5a5a5a;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ---- Highlights ---- */
.fac-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fac-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(11, 61, 46, 0.05);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.fac-highlights span i {
    color: var(--gold);
    font-size: 0.7rem;
}

/* ---- Image Grids ---- */
.fac-card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.fac-img-grid {
    display: grid;
    gap: 4px;
    height: 100%;
    min-height: 320px;
}

.fac-img-grid-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.fac-img-grid-3 img:first-child {
    grid-row: 1 / 3;
}

.fac-img-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.fac-img-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fac-card:hover .fac-img-grid img {
    transform: scale(1.04);
}

/* ============================================
   PEOPLE SECTION
   ============================================ */
.fac-people-section {
    background: linear-gradient(180deg, #FFF8EE, #FFF0DB);
}

.fac-people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.fac-people-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(11, 61, 46, 0.06);
    box-shadow: 0 4px 16px rgba(11, 61, 46, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fac-people-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(11, 61, 46, 0.12);
}

.fac-people-img {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.fac-people-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fac-people-card:hover .fac-people-img img {
    transform: scale(1.06);
}

.fac-people-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 61, 46, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fac-people-card:hover .fac-people-overlay {
    opacity: 1;
}

.fac-people-overlay i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fac-people-body {
    padding: 22px 24px 26px;
}

.fac-people-body h3 {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.fac-people-body p {
    color: #5a5a5a;
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

/* ============================================
   NCC & SCOUT — EXTRA SECTION
   ============================================ */
.fac-extra-section {
    background: #fff;
}

.fac-extra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.fac-extra-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(11, 61, 46, 0.06);
    box-shadow: 0 4px 16px rgba(11, 61, 46, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fac-extra-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(11, 61, 46, 0.1);
}

.fac-extra-images {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3px;
    height: 220px;
    overflow: hidden;
}

.fac-extra-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fac-extra-card:hover .fac-extra-images img {
    transform: scale(1.05);
}

.fac-extra-body {
    padding: 24px 26px 28px;
}

.fac-extra-body .fac-card-icon {
    margin-bottom: 14px;
}

.fac-extra-body h3 {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.fac-extra-body p {
    color: #5a5a5a;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.fac-cta-section {
    position: relative;
    padding: 90px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #0a3526 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.fac-cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 162, 77, 0.1), transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.05), transparent 50%);
    pointer-events: none;
}

.fac-cta-container {
    position: relative;
    z-index: 1;
}

.fac-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.fac-cta-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(201, 162, 77, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 1.6rem;
    color: var(--gold);
    transition: transform 0.4s ease;
}

.fac-cta-content:hover .fac-cta-icon {
    transform: rotate(-5deg) scale(1.05);
}

.fac-cta-content h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.fac-cta-content > p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.fac-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.fac-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fac-cta-btn-primary {
    background: var(--gold);
    color: var(--primary);
    border: 2px solid var(--gold);
    box-shadow: 0 6px 24px rgba(201, 162, 77, 0.3);
}

.fac-cta-btn-primary:hover {
    background: #dcb35c;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(201, 162, 77, 0.4);
}

.fac-cta-btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid rgba(201, 162, 77, 0.4);
}

.fac-cta-btn-outline:hover {
    background: rgba(201, 162, 77, 0.1);
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .fac-section-title {
        font-size: 1.9rem;
    }

    .fac-card-split {
        grid-template-columns: 1fr 1fr;
    }

    .fac-people-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .fac-card-img-full {
        height: 340px;
    }

    .fac-card-body {
        padding: 28px 24px;
    }
}

@media (max-width: 768px) {
    .fac-section-title {
        font-size: 1.6rem;
    }

    .fac-card-split {
        grid-template-columns: 1fr;
    }

    .fac-card-reverse {
        direction: ltr;
    }

    .fac-img-grid {
        min-height: 240px;
    }

    .fac-card-img-full {
        height: 260px;
    }

    .fac-card-body {
        padding: 24px 20px;
    }

    .fac-card-body h3 {
        font-size: 1.25rem;
    }

    .fac-people-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fac-people-img {
        height: 220px;
    }

    .fac-extra-grid {
        grid-template-columns: 1fr;
    }

    .fac-extra-images {
        height: 180px;
    }

    .fac-cta-section {
        padding: 60px 0;
    }

    .fac-cta-content h2 {
        font-size: 1.7rem;
    }

    .fac-cta-icon {
        width: 58px;
        height: 58px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .fac-section-title {
        font-size: 1.35rem;
    }

    .fac-desc-center {
        margin-bottom: 30px;
    }

    .fac-card {
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .fac-card-body {
        padding: 20px 16px;
    }

    .fac-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .fac-card-img-full {
        height: 200px;
    }

    .fac-img-grid {
        min-height: 180px;
    }

    .fac-img-grid-3 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .fac-img-grid-3 img:first-child {
        grid-row: auto;
    }

    .fac-highlights span {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    .fac-people-card {
        border-radius: 16px;
    }

    .fac-people-img {
        height: 180px;
    }

    .fac-extra-images {
        height: 150px;
    }

    .fac-cta-content h2 {
        font-size: 1.4rem;
    }

    .fac-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.82rem;
    }
}
