/* ======================== Faculties-Section-Start =========================== */

.home-faculty-section {
    --fac-ivory:    #FFFDF5;
    --fac-ivory-2:  #FAF4E4;

    --fac-maroon-900: #1A0308;
    --fac-maroon-800: #2A050B;
    --fac-maroon-700: #3A060D;
    --fac-maroon-600: #4E0912;
    --fac-maroon-500: #6B0F1A;

    --fac-gold-600: #B8860B;
    --fac-gold-500: #D4AF37;
    --fac-gold-400: #E0C158;
    --fac-gold-300: #EBD07A;

    --fac-orange:      #e77913;
    --fac-orange-soft: #ff9a3c;

    --fac-border:     rgba(212, 175, 55, .22);
    --fac-text-soft:  rgba(255, 253, 245, .88);
    --fac-text-ghost: rgba(255, 253, 245, .6);

    position: relative;
    overflow: hidden;
    padding: 110px 0 90px;
    background:
        radial-gradient(circle at 12% 20%, rgba(212, 175, 55, .18) 0%, transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(107, 15, 26, .5) 0%, transparent 50%),
        linear-gradient(160deg, #1A0308 0%, #2A050B 45%, #3A060D 75%, #4E0912 100%);
    color: var(--fac-ivory);
}

.home-faculty-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(212, 175, 55, .08) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 15%, #000 0%, transparent 70%);
            mask-image: radial-gradient(ellipse at 50% 15%, #000 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.home-faculty-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--fac-orange) 25%,
        var(--fac-gold-500) 55%,
        var(--fac-orange) 75%,
        transparent);
    z-index: 2;
    box-shadow: 0 0 20px rgba(212, 175, 55, .4);
}

.home-faculty-section .container {
    position: relative;
    z-index: 1;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4.5vw, 64px);
}

/* ============================================================
   EDITORIAL HEADER (unchanged)
   ============================================================ */
.home-faculty-header {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 55px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--fac-border);
}

.home-faculty-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--fac-gold-400);
    margin-bottom: 24px;
    text-shadow: 0 0 18px rgba(212, 175, 55, .4);
}

.home-faculty-eyebrow-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fac-orange);
    box-shadow: 0 0 12px rgba(231, 121, 19, .9);
    animation: facultyDotPulse 2s ease-in-out infinite;
}
@keyframes facultyDotPulse {
    0%, 100% { transform: scale(1);   box-shadow: 0 0 12px rgba(231, 121, 19, .9); }
    50%      { transform: scale(1.4); box-shadow: 0 0 22px rgba(231, 121, 19, 1); }
}

.home-faculty-heading {
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
    letter-spacing: -1.2px;
    color: var(--fac-ivory);
}

.home-faculty-heading span {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg,
        var(--fac-orange) 0%,
        var(--fac-gold-400) 45%,
        var(--fac-gold-300) 75%,
        var(--fac-orange) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: facultyHeadingShimmer 4s ease-in-out infinite;
}
@keyframes facultyHeadingShimmer {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 100% center; }
}
.home-faculty-heading span::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 4px;
    background: linear-gradient(90deg, var(--fac-orange), var(--fac-gold-500));
    border-radius: 4px;
    opacity: .4;
    box-shadow: 0 0 14px rgba(212, 175, 55, .55);
}

.home-faculty-header-right { padding-bottom: 6px; }

.home-faculty-intro {
    font-size: 16px;
    line-height: 1.75;
    color: var(--fac-text-soft);
    margin: 0 0 22px;
    letter-spacing: .2px;
}

.home-faculty-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fac-ivory);
    text-decoration: none;
    position: relative;
    padding-bottom: 6px;
    transition: color .35s ease, gap .4s cubic-bezier(.34, 1.56, .64, 1);
}
.home-faculty-cta::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 34px; height: 2px;
    background: linear-gradient(90deg, var(--fac-orange), var(--fac-gold-500));
    border-radius: 2px;
    transition: width .5s cubic-bezier(.34, 1.56, .64, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, .55);
}
.home-faculty-cta i {
    font-size: 11px;
    color: var(--fac-orange);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.home-faculty-cta:hover { color: var(--fac-gold-400); gap: 16px; }
.home-faculty-cta:hover::after { width: 100%; }
.home-faculty-cta:hover i { transform: translateX(4px); }

/* ============================================================
   STAGE — swipe track on ALL viewports
   ============================================================ */
.home-faculty-stage { position: relative; }

.home-faculty-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    justify-content: safe center;
    gap: 24px;

    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;

    padding: 14px 0 40px;
    margin-bottom: 10px;
}
.home-faculty-grid::-webkit-scrollbar { display: none; }
.home-faculty-grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}
.home-faculty-grid.is-dragging * { pointer-events: none; }

/* ============================================================
   CARD — fixed size, horizontal
   ============================================================ */
.home-faculty-card {
    --fac-card-w: 460px;
    --fac-card-h: 300px;
    --fac-img-w:  121px;   /* = card-h × image aspect (0.405) → no crop */

    flex: 0 0 var(--fac-card-w);
    width: var(--fac-card-w);
    min-width: 0;
    display: block;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    isolation: isolate;
}

/* Card inner — 2 column grid, info left / image right */
.home-faculty-card-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--fac-img-w);
    grid-template-rows: 1fr;
    height: var(--fac-card-h);
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate;

    border: 1px solid rgba(212, 175, 55, .32);
    background: linear-gradient(135deg, var(--fac-maroon-700) 0%, var(--fac-maroon-900) 100%);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, .22),
        0 2px 4px rgba(0, 0, 0, .35),
        0 14px 30px -10px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(212, 175, 55, .08);

    transition:
        transform .55s cubic-bezier(.22, 1, .36, 1),
        border-color .4s ease,
        box-shadow .55s ease;
}

.home-faculty-card:hover .home-faculty-card-inner {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, .9);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, .35),
        0 2px 4px rgba(0, 0, 0, .3),
        0 24px 50px -12px rgba(212, 175, 55, .35),
        0 0 0 1px rgba(212, 175, 55, .55),
        0 0 55px rgba(212, 175, 55, .22);
}

/* ============================================================
   IMAGE COLUMN — right side, aspect matches source → no crop
   ============================================================ */
.home-faculty-pic {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    overflow: hidden;
    background: var(--fac-maroon-900);
    z-index: 1;
}

.home-faculty-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;    /* shows top of tall image (logo/name) */
    display: block;
    filter: contrast(98%) saturate(108%) brightness(.92) sepia(.04);
    transition:
        transform 1.4s cubic-bezier(.2, .7, .3, 1),
        filter .55s ease;
}
.home-faculty-card:hover .home-faculty-pic img {
    transform: scale(1.05);
    filter: contrast(104%) saturate(115%) brightness(1) sepia(0);
}

/* Fade image into the info column on its left edge */
.home-faculty-pic::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(42, 5, 11, .55) 0%, transparent 30%),
        linear-gradient(180deg,
            rgba(20, 3, 8, .2) 0%,
            transparent 25%,
            transparent 70%,
            rgba(20, 3, 8, .35) 100%);
}

/* Thin gold divider at the left edge of the image column */
.home-faculty-pic::before {
    content: "";
    position: absolute;
    top: 8%; bottom: 8%; left: 0;
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(212, 175, 55, .55) 20%,
        rgba(212, 175, 55, .55) 80%,
        transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* ============================================================
   INFO COLUMN — left side
   ============================================================ */
.home-faculty-body {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

/* ── Number badge — top-left of card ── */
.home-faculty-number {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;

    font-family: 'Fraunces', Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--fac-gold-300);

    background: rgba(42, 5, 11, .78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, .55);

    transition:
        background .4s ease, color .4s ease,
        border-color .4s ease,
        transform .5s cubic-bezier(.34, 1.56, .64, 1),
        box-shadow .4s ease;
}
.home-faculty-card:hover .home-faculty-number {
    background: linear-gradient(135deg, var(--fac-gold-400), var(--fac-gold-600));
    color: var(--fac-maroon-800);
    border-color: var(--fac-gold-500);
    box-shadow: 0 8px 22px rgba(212, 175, 55, .6);
}

/* ── Icon badge — top-right of card (over image column) ── */
.home-faculty-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;

    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;

    background: rgba(42, 5, 11, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, .55);
    color: var(--fac-gold-300);
    font-size: 13px;

    transition:
        background .4s ease, color .4s ease,
        border-color .4s ease,
        transform .5s cubic-bezier(.34, 1.56, .64, 1),
        box-shadow .4s ease;
}
.home-faculty-card:hover .home-faculty-icon {
    background: linear-gradient(135deg, var(--fac-gold-400), var(--fac-gold-600));
    color: var(--fac-maroon-800);
    border-color: var(--fac-gold-500);
    transform: scale(1.08) rotate(-6deg);
    box-shadow: 0 8px 20px rgba(212, 175, 55, .55);
}

/* ── Tag ── */
.home-faculty-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--fac-gold-300);
    padding: 3px 10px;
    border: 1px solid rgba(212, 175, 55, .55);
    border-radius: 20px;
    background: rgba(212, 175, 55, .14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition:
        background .35s ease, color .35s ease,
        border-color .35s ease, box-shadow .35s ease;
}
.home-faculty-card:hover .home-faculty-tag {
    background: linear-gradient(135deg, var(--fac-gold-400), var(--fac-gold-600));
    color: var(--fac-maroon-800);
    border-color: var(--fac-gold-500);
    box-shadow: 0 6px 16px rgba(212, 175, 55, .45);
}

/* ── Title ── */
.home-faculty-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--fac-ivory);
    letter-spacing: -.2px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .75);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    transition: color .35s ease;
}
.home-faculty-card:hover .home-faculty-title {
    color: var(--fac-gold-300);
}

/* ── Meta ── */
.home-faculty-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    margin-top: 4px;
    padding-right: 44px;          /* room for arrow */
    border-top: 1px solid rgba(212, 175, 55, .3);
    transition: border-color .35s ease;
}
.home-faculty-card:hover .home-faculty-meta {
    border-top-color: rgba(212, 175, 55, .65);
}

.home-faculty-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1px;
    color: rgba(255, 253, 245, .88);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
    transition: color .35s ease;
}
.home-faculty-meta-item i {
    font-size: 10px;
    color: var(--fac-orange);
}

.home-faculty-meta-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(212, 175, 55, .65);
    flex-shrink: 0;
}

/* ── Arrow — bottom-right of info column ── */
.home-faculty-arrow {
    position: absolute;
    bottom: 16px;
    right: calc(var(--fac-img-w) + 16px);
    z-index: 3;

    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;

    background: rgba(212, 175, 55, .12);
    border: 1px solid rgba(212, 175, 55, .45);
    color: var(--fac-gold-300);
    font-size: 11px;

    opacity: 0;
    transform: translateX(-6px) scale(.85);
    transition:
        opacity .4s ease,
        transform .5s cubic-bezier(.34, 1.56, .64, 1),
        background .35s ease, border-color .35s ease,
        color .35s ease, box-shadow .35s ease;
}
.home-faculty-card:hover .home-faculty-arrow {
    opacity: 1;
    transform: translateX(0) scale(1);
    background: linear-gradient(135deg, var(--fac-gold-400), var(--fac-gold-600));
    border-color: var(--fac-gold-500);
    color: var(--fac-maroon-800);
    box-shadow: 0 8px 20px rgba(212, 175, 55, .55);
}
.home-faculty-arrow i {
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.home-faculty-card:hover .home-faculty-arrow i {
    transform: translateX(2px);
}

/* ============================================================
   FOOTER ACCREDITATION STRIP
   ============================================================ */
.home-faculty-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 40px;
    margin-top: 10px;
    border-top: 1px solid var(--fac-border);
}
.home-faculty-footer-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--fac-text-ghost);
    margin-right: 8px;
}
.home-faculty-footer-item {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 253, 245, .8);
    transition: color .3s ease, transform .35s ease;
}
.home-faculty-footer-item:hover {
    color: var(--fac-gold-400);
    transform: translateY(-2px);
    text-shadow: 0 0 18px rgba(212, 175, 55, .55);
}
.home-faculty-footer-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(212, 175, 55, .7);
    box-shadow: 0 0 8px rgba(212, 175, 55, .6);
}

/* ============================================================
   PROGRESS + HINT
   ============================================================ */
.home-faculty-progress {
    display: block;
    position: relative;
    height: 3px;
    margin: 6px auto 14px;
    width: 62%;
    max-width: 260px;
    background: rgba(212, 175, 55, .18);
    border-radius: 999px;
    overflow: hidden;
}
.home-faculty-progress-bar {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 14%;
    background: linear-gradient(90deg, var(--fac-maroon-500), var(--fac-gold-500));
    border-radius: 999px;
    transition: width .18s linear;
}

.home-faculty-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--fac-text-ghost);
    margin-top: 4px;
    transition: opacity .6s ease;
}
.home-faculty-hint svg { animation: facNudge 1.6s ease-in-out infinite; }
.home-faculty-hint.is-hidden { opacity: 0; pointer-events: none; }
@keyframes facNudge {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(4px); }
}

/* ============================================================
   RESPONSIVE — only card + image sizes change
   ============================================================ */
@media (max-width: 1199px) {
    .home-faculty-card {
        --fac-card-w: 440px;
        --fac-card-h: 290px;
        --fac-img-w:  118px;
    }
    .home-faculty-title  { font-size: 19px; }
}

@media (max-width: 991px) {
    .home-faculty-card {
        --fac-card-w: 400px;
        --fac-card-h: 270px;
        --fac-img-w:  110px;
    }
    .home-faculty-title  { font-size: 18px; }
    .home-faculty-tag    { font-size: 8.5px; padding: 3px 9px; }
    .home-faculty-meta-item { font-size: 10.5px; }
}

@media (max-width: 720px) {
    .home-faculty-section { padding: 75px 0 55px; }

    .home-faculty-header {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: start;
        margin-bottom: 40px;
    }
    .home-faculty-heading {
        letter-spacing: -.5px;
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .home-faculty-stage { margin: 0 calc(-1 * clamp(20px, 4.5vw, 64px)); }

    .home-faculty-grid {
        gap: 14px;
        padding: 12px clamp(20px, 4.5vw, 64px) 34px;
    }

    .home-faculty-card {
        flex: 0 0 82%;
        width: 82%;
        max-width: 400px;
        --fac-card-h: 240px;
        --fac-img-w:  97px;
        scroll-snap-align: center;
    }

    .home-faculty-title       { font-size: 17px; }
    .home-faculty-tag         { font-size: 8px; padding: 3px 8px; }
    .home-faculty-meta-item   { font-size: 10px; }
    .home-faculty-body        { padding: 18px 16px 16px; gap: 8px; }
    .home-faculty-meta        { padding-top: 8px; }

    .home-faculty-arrow {
        bottom: 12px;
        right: calc(var(--fac-img-w) + 12px);
        width: 28px;
        height: 28px;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 480px) {
    .home-faculty-section { padding: 60px 0 45px; }
    .home-faculty-heading { font-size: 1.9rem; }
    .home-faculty-eyebrow {
        font-size: 10px;
        letter-spacing: 2.5px;
    }

    .home-faculty-card {
        flex: 0 0 88%;
        width: 88%;
        --fac-card-h: 220px;
        --fac-img-w:  89px;
    }
    .home-faculty-title { font-size: 16px; }
    .home-faculty-body  { padding: 16px 14px 14px; gap: 7px; }

    .home-faculty-footer {
        gap: 14px;
        padding-top: 30px;
    }
    .home-faculty-footer-label {
        flex-basis: 100%;
        margin-bottom: 6px;
        text-align: center;
    }
    .home-faculty-footer-item {
        font-size: 14px;
        letter-spacing: 1.5px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .home-faculty-eyebrow-dot,
    .home-faculty-heading span,
    .home-faculty-hint svg {
        animation: none !important;
    }
    .home-faculty-card:hover .home-faculty-card-inner,
    .home-faculty-card:hover .home-faculty-pic img,
    .home-faculty-card:hover .home-faculty-number,
    .home-faculty-card:hover .home-faculty-icon,
    .home-faculty-card:hover .home-faculty-arrow {
        transform: none;
    }
}

/* ======================== Faculties-Section-End =========================== */