/* ================================================================
   FACILITIES PAGE - Pragati Academy
   Crimson #980D1A + Gold #B09845 | About-page hero style
   ================================================================ */

/* ── Reveal Animation ──────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal[data-reveal="fade-up"],
.reveal:not([data-reveal]) {
    transform: translateY(50px);
}

.reveal[data-reveal="fade-down"] {
    transform: translateY(-50px);
}

.reveal[data-reveal="fade-left"] {
    transform: translateX(60px);
}

.reveal[data-reveal="fade-right"] {
    transform: translateX(-60px);
}

.reveal[data-reveal="zoom-in"] {
    transform: scale(0.88);
}

.reveal[data-reveal="fade"] {
    transform: none;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes eyebrowGrow {
    0%   { width: 0; }
    100% { width: 30px; }
}

@keyframes fadeInCustom {
    to { opacity: 1; }
}

@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes kenBurns1 {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-2%, -1%); }
}

@keyframes kenBurns2 {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.10) translate(2%, -2%); }
}

@keyframes kenBurns3 {
    0%   { transform: scale(1.05) translate(-1%, 1%); }
    100% { transform: scale(1.15) translate(1%, -1%); }
}

@keyframes shimmerBar {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ================================================================
   HERO: Left Text + Right Image Slider (about-page style)
   ================================================================ */
.fac-hero {
    position: relative;
    overflow: hidden;
    background: #fff;
    min-height: 540px;
}

.fac-hero__grid {
    display: flex;
    height: 600px;
}

.fac-hero__text-col {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    padding: 80px 56px 80px max(calc((100vw - var(--main-container)) / 2 + 24px), 24px);
    background: #fff;
    position: relative;
}

.fac-hero__text-col::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(176, 152, 69, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.fac-hero__text-inner {
    max-width: 520px;
}

.fac-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--body-font);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--theme-color);
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeInCustom 0.6s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fac-hero__eyebrow-line {
    width: 0;
    height: 2px;
    background: var(--theme-color);
    border-radius: 2px;
    animation: eyebrowGrow 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fac-hero__title {
    font-family: var(--title-font);
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 800;
    color: var(--title-color);
    line-height: 1.15;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fac-hero__title em {
    font-style: normal;
    color: var(--theme-color);
}

.fac-hero__desc {
    font-family: var(--body-font);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
    padding-left: 14px;
    border-left: 3px solid var(--theme-color);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.7s 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fac-hero__breadcrumb {
    display: flex;
    gap: 8px;
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 500;
    color: #999;
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    opacity: 0;
    animation: fadeInCustom 0.5s 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fac-hero__breadcrumb a {
    color: var(--theme-color);
    text-decoration: none;
}

.fac-hero__breadcrumb li + li::before {
    content: '/';
    margin-right: 8px;
    color: #ccc;
}

/* Right: Image slider column */
.fac-hero__image-col {
    flex: 1;
    position: relative;
    overflow: hidden;
    clip-path: polygon(7% 0%, 100% 0%, 100% 100%, 0% 100%);
    background: #111;
}

.fac-hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover !important;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: block;
    max-width: none;
    max-height: none;
    width: 100% !important;
    height: 100% !important;
}

.fac-hero__slide--active {
    opacity: 1;
    animation: kenBurns1 8s ease-out forwards;
}

.fac-hero__image-accent {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, transparent 30%, rgba(0,0,0,0.35) 100%),
        linear-gradient(135deg, rgba(152,13,26,0.25) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.fac-hero__image-col::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-color), var(--theme-color2), var(--theme-color));
    background-size: 200% 100%;
    animation: shimmerBar 3s linear infinite;
    z-index: 3;
}

/* ================================================================
   QUICK NAV STRIP
   ================================================================ */
.fac-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s;
}

.fac-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fac-nav__list::-webkit-scrollbar {
    display: none;
}

.fac-nav__list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 22px;
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.fac-nav__list a i {
    font-size: 14px;
    color: var(--theme-color2);
    transition: color 0.3s;
}

.fac-nav__list a:hover,
.fac-nav__list a.is-active {
    color: var(--theme-color);
    border-bottom-color: var(--theme-color);
    background: rgba(152, 13, 26, 0.03);
}

.fac-nav__list a:hover i,
.fac-nav__list a.is-active i {
    color: var(--theme-color);
}

/* ================================================================
   FACILITY DETAIL SECTIONS
   ================================================================ */
.fac-detail {
    padding: 100px 0;
    position: relative;
}

.fac-detail--alt {
    background: linear-gradient(180deg, #fafaf8 0%, #fff 100%);
}

.fac-detail--alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8e4dc, transparent);
}

.fac-detail__row {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.fac-detail__row--reverse {
    grid-template-columns: 1.15fr 1fr;
}

.fac-detail__row--reverse .fac-detail__media {
    order: 2;
}

.fac-detail__row--reverse .fac-detail__content {
    order: 1;
}

/* Image */
.fac-detail__img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.fac-detail__img-wrap img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fac-detail__img-wrap:hover img {
    transform: scale(1.04);
}

.fac-detail__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--theme-color), #b81a2a);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(152, 13, 26, 0.3);
}

/* Content */
.fac-detail__eyebrow {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--theme-color2);
    margin-bottom: 12px;
}

.fac-detail__title {
    font-family: var(--title-font);
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 8px;
    line-height: 1.2;
    position: relative;
}

.fac-detail__title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-color), var(--theme-color2));
    border-radius: 3px;
    margin-top: 14px;
}

.fac-detail__lead {
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-color);
    margin-bottom: 20px;
    margin-top: 16px;
}

.fac-detail__content p {
    font-family: var(--body-font);
    font-size: 15.5px;
    line-height: 1.85;
    color: #555;
    margin-bottom: 16px;
}

.fac-detail__note {
    font-size: 14.5px !important;
    padding: 16px 18px;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    background: linear-gradient(135deg, rgba(176, 152, 69, 0.1), rgba(152, 13, 26, 0.06));
    border-radius: 12px;
    border: 1px solid rgba(152, 13, 26, 0.1);
}

.fac-detail__note a {
    color: var(--theme-color);
    font-weight: 600;
    text-decoration: none;
}

.fac-detail__note a:hover {
    text-decoration: underline;
}

.fac-detail__content > ul,
.fac-detail__list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 20px;
}

.fac-detail__content > ul li,
.fac-detail__list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15.5px;
    line-height: 1.8;
    color: #555;
}

.fac-detail__content > ul li::before,
.fac-detail__list li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
}

/* Quote block */
.fac-detail__quote {
    font-family: var(--title-font);
    font-size: 18px;
    font-style: italic;
    font-weight: 600;
    color: var(--theme-color);
    border-left: 4px solid var(--theme-color2);
    padding: 16px 24px;
    margin: 20px 0 24px;
    background: rgba(176, 152, 69, 0.06);
    border-radius: 0 10px 10px 0;
    line-height: 1.7;
}

/* Objectives box */
.fac-detail__objectives {
    background: linear-gradient(135deg, rgba(176, 152, 69, 0.06) 0%, rgba(152, 13, 26, 0.03) 100%);
    border: 1px solid rgba(176, 152, 69, 0.15);
    border-radius: 14px;
    padding: 28px 28px 20px;
    margin-top: 28px;
}

.fac-detail__objectives h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fac-detail__objectives h4 i {
    color: var(--theme-color);
    font-size: 14px;
}

.fac-detail__objectives ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.fac-detail__objectives ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.fac-detail__objectives ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 3px;
    left: 0;
    font-size: 11px;
    color: var(--theme-color);
}

/* Info boxes */
.fac-detail__info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.fac-detail__info-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.fac-detail__info-box:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.fac-detail__info-box--accent {
    background: rgba(152, 13, 26, 0.04);
    border-color: rgba(152, 13, 26, 0.1);
}

.fac-detail__info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--theme-color), #b81a2a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.fac-detail__info-box--accent .fac-detail__info-icon {
    background: linear-gradient(135deg, var(--theme-color2), #8a7530);
}

.fac-detail__info-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 6px;
}

.fac-detail__info-box p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* ================================================================
   OTHER FACILITIES – Card Grid
   ================================================================ */
.fac-others {
    padding: 100px 0 110px;
    background: linear-gradient(180deg, #fafaf8 0%, #f5f3ed 100%);
    position: relative;
}

.fac-others::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0ddd5, transparent);
}

.fac-others__header {
    text-align: center;
    margin-bottom: 56px;
}

.fac-others__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.fac-others__card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.fac-others__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 56px rgba(152, 13, 26, 0.1);
}

.fac-others__img-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.fac-others__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.fac-others__card:hover .fac-others__img-wrap::after {
    opacity: 1;
}

.fac-others__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fac-others__card:hover .fac-others__img-wrap img {
    transform: scale(1.08);
}

.fac-others__body {
    padding: 30px 26px 28px;
}

.fac-others__icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--theme-color), #b81a2a);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    margin-top: -48px;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(152, 13, 26, 0.25);
}

.fac-others__body h3 {
    font-family: var(--title-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 12px;
}

.fac-others__body p {
    font-size: 14.5px;
    line-height: 1.75;
    color: #666;
    margin: 0;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.fac-cta {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
}

.fac-cta__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--theme-color) 0%, #6d0813 50%, #1a0306 100%);
}

.fac-cta__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.fac-cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 660px;
    margin: 0 auto;
}

.fac-cta__eyebrow {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--theme-color2);
    margin-bottom: 16px;
}

.fac-cta__inner h2 {
    font-family: var(--title-font);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.fac-cta__inner p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 32px;
}

.fac-cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.fac-cta__buttons .global-btn {
    background: #fff;
    color: var(--theme-color);
    border-color: #fff;
}

.fac-cta__buttons .global-btn.style2 {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.fac-cta__buttons .global-btn.style2:hover {
    background: #fff;
    color: var(--theme-color);
    border-color: #fff;
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .fac-hero__eyebrow,
    .fac-hero__title,
    .fac-hero__desc,
    .fac-hero__breadcrumb {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    .fac-hero__grid {
        flex-direction: column;
        height: auto;
    }

    .fac-hero__text-col {
        flex: unset;
        padding: 56px 24px;
    }

    .fac-hero__image-col {
        order: -1;
        flex: unset;
        height: 360px;
        clip-path: none;
    }

    .fac-detail {
        padding: 70px 0;
    }

    .fac-detail__row,
    .fac-detail__row--reverse {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .fac-detail__row--reverse .fac-detail__media {
        order: unset;
    }

    .fac-detail__row--reverse .fac-detail__content {
        order: unset;
    }

    .fac-detail__img-wrap img {
        height: 300px;
    }

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

    .fac-others__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .fac-others {
        padding: 70px 0 80px;
    }

    .fac-nav__list a {
        padding: 14px 16px;
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .fac-hero__image-col {
        height: 280px;
    }

    .fac-hero__text-col {
        padding: 36px 20px;
    }

    .fac-hero__title {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.1;
    }

    .fac-hero__desc {
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
    }

    .fac-hero__breadcrumb {
        font-size: 12px;
        margin-top: 18px;
    }

    .fac-detail {
        padding: 50px 0;
    }

    .fac-detail__row {
        gap: 28px;
    }

    .fac-detail__img-wrap img {
        height: 240px;
    }

    .fac-detail__title {
        font-size: clamp(22px, 6vw, 28px);
    }

    .fac-detail__objectives {
        padding: 20px;
    }

    .fac-nav__list a {
        padding: 12px 14px;
        font-size: 11.5px;
        gap: 6px;
    }

    .fac-nav__list a i {
        font-size: 12px;
    }

    .fac-others {
        padding: 50px 0 60px;
    }

    .fac-others__header {
        margin-bottom: 36px;
    }

    .fac-cta {
        padding: 60px 0;
    }

    .fac-cta__buttons {
        flex-direction: column;
    }

    .fac-cta__buttons .global-btn {
        width: 100%;
        justify-content: center;
    }
}
