/**
 * Infinity Classes - Ultra-Premium Faculty & Learning Mentors Stylesheet
 * 1:1 Pixel-Perfect Match with Reference Design Architecture
 * Light Cream Hero with Math Watermarks, Editorial Spotlight Dark Card & Subject Specialists Grid
 */

/* ==========================================================================
   1. HERO SECTION WITH MATH WATERMARKS (LIGHT CREAM THEME)
   ========================================================================== */
.faculty-hero-clean {
    position: relative;
    background: #FFFDFB;
    background-image: 
        linear-gradient(rgba(245, 158, 11, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    padding: 5rem 1rem 4rem;
    overflow: hidden;
    border-bottom: 1px solid #F1F5F9;
}

/* Faint Math & Science Formula Watermarks */
.fac-watermark {
    position: absolute;
    font-family: 'Times New Roman', 'Cambria Math', serif;
    font-style: italic;
    color: #94A3B8;
    opacity: 0.25;
    pointer-events: none;
    user-select: none;
}

.fac-wm-cap   { top: 18%; left: 4%; font-size: 2rem; color: #CBD5E1; opacity: 0.35; }
.fac-wm-math  { top: 22%; right: 4%; font-size: 1.15rem; }
.fac-wm-mic   { bottom: 18%; left: 24%; font-size: 1.35rem; color: #FCA5A5; opacity: 0.35; }
.fac-wm-flask { bottom: 18%; right: 26%; font-size: 1.5rem; color: #94A3B8; opacity: 0.35; }

/* Eyebrow Pill */
.fac-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 1.15rem;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: 9999px;
    color: #EA580C;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Curved Orange Bottom Highlight Accent */
.text-highlight-curved {
    position: relative;
    color: #FF4D15;
    display: inline-block;
}

.text-highlight-curved::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 6px;
    background: #FF4D15;
    border-radius: 9999px;
    opacity: 0.85;
}

/* Hero 3 Feature Badges */
.fac-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    padding: 0.25rem 0.65rem;
}

/* ==========================================================================
   2. EDITORIAL SPOTLIGHT (DARK THEME CARD & CAROUSEL)
   ========================================================================== */
.editorial-spotlight-section {
    background: #0B0F19;
    color: #FFFFFF;
    padding: 4.5rem 1rem 5.5rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.editorial-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 77, 21, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.editorial-container-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .editorial-container-card {
        padding: 3rem 3rem;
    }
}

/* Photo Box Left */
.editorial-photo-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1.5px solid rgba(255, 77, 21, 0.45);
    background: #0B0F19;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    height: 380px;
}

.editorial-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.editorial-photo-wrapper:hover .editorial-photo-img {
    transform: scale(1.03);
}

/* Badge Top Left on Photo */
.editorial-photo-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #FF4D15;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(255, 77, 21, 0.4);
    z-index: 5;
}

/* Bottom Translucent Bar on Photo */
.editorial-photo-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 60%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #CBD5E1;
    z-index: 5;
}

/* Navigation Arrow Controls */
.editorial-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.editorial-nav-btn:hover {
    background: #FF4D15;
    border-color: #FF4D15;
}

/* ==========================================================================
   3. OUR SUBJECT SPECIALISTS (FILTER TABS & CARDS)
   ========================================================================= */
.specialists-section {
    padding: 5rem 1rem 6rem;
    background: #FFFFFF;
}

/* Category Filter Tabs Bar */
.specialists-filters-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 2rem 0 3rem;
}

.spec-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #334155;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.spec-filter-btn:hover {
    border-color: #FDBA74;
    color: #EA580C;
    background: #FFFBF7;
    transform: translateY(-1px);
}

.spec-filter-btn.active {
    background: #FF4D15;
    border-color: #FF4D15;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(255, 77, 21, 0.3);
}

.spec-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 0.35rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 800;
    background: #F1F5F9;
    color: #64748B;
    transition: all 0.2s ease;
}

.spec-filter-btn.active .spec-filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* ==========================================================================
   4. FACULTY CARDS GRID (HIGH RESOLUTION PORTRAITS & BADGES)
   ========================================================================== */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

.spec-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.spec-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    border-color: #CBD5E1;
}

/* Card Photo Wrapper */
.spec-photo-wrapper {
    position: relative;
    height: 380px;
    overflow: hidden;
    background: #0B0F19;
}

.spec-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.spec-card:hover .spec-photo-img {
    transform: scale(1.04);
}

/* Photo Badges */
.badge-photo-subject {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #0F172A;
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

.badge-photo-role {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #FF4D15;
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(255, 77, 21, 0.35);
    z-index: 5;
}

/* Card Body Content */
.spec-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.spec-teacher-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.spec-teacher-degree {
    font-size: 0.78rem;
    color: #64748B;
    font-weight: 600;
    margin-top: 0.25rem;
}

.spec-teacher-bio {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.55;
    margin-top: 0.75rem;
}

/* Action Buttons */
.btn-card-profile {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.25rem;
    border-radius: 0.85rem;
    background: #0F172A;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-card-profile:hover {
    background: #FF4D15;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 77, 21, 0.28);
}

.btn-card-profile:active {
    transform: translateY(0);
}

/* ==========================================================================
   4. FACULTY PROFILE MODAL POPUP (IMG, NAME, SUBJECT, ABOUT ONLY)
   ========================================================================== */
.faculty-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.faculty-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.faculty-modal-dialog {
    position: relative;
    background: #FFFFFF;
    border-radius: 1.75rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.faculty-modal-backdrop.active .faculty-modal-dialog {
    transform: scale(1) translateY(0);
}

.faculty-modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #F1F5F9;
    border: none;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.faculty-modal-close:hover {
    background: #FFE4D6;
    color: #FF4D15;
    transform: rotate(90deg);
}

.faculty-modal-content {
    padding: 2.5rem 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.faculty-modal-img-wrap {
    width: 140px;
    height: 140px;
    border-radius: 9999px;
    padding: 4px;
    background: linear-gradient(135deg, #FF4D15, #F59E0B);
    box-shadow: 0 12px 28px rgba(255, 77, 21, 0.25);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
    overflow: hidden;
}

.faculty-modal-img {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    object-fit: cover;
    background: #0B0F19;
}

.faculty-modal-subject {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    color: #EA580C;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.faculty-modal-name {
    font-size: 1.65rem;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
}

.faculty-modal-about-box {
    width: 100%;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #F1F5F9;
    text-align: left;
}

.faculty-modal-about-lbl {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94A3B8;
    margin-bottom: 0.5rem;
}

.faculty-modal-about {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    font-weight: 500;
    margin: 0;
}
