/**
 * Frontend Stylesheet for Student One Islamic School
 * Principles: Guided by frontend-design skill (anti-AI-slop, intentional, subject-grounded)
 * Typography: Signika (matches employee/admin dashboard)
 * Colors: Strictly 100% bound to database theme settings
 */

/* ============================================================
   1. TYPOGRAPHY & FOUNDATION
   ============================================================ */
body,
input,
select,
textarea {
    font-family: 'Signika', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.sub-banner h2,
.main-heading1,
.main-heading2,
.footer-area h4 {
    font-family: 'Signika', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Explicitly preserve Font Awesome (Solid, Regular, Brands) across all elements */
.fa, .fas, .fa-solid, .fal, .fad {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.far, .fa-regular {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.fab, .fa-brands,
i.fab, span.fab,
a > i.fab,
.social i.fab,
.whatsapp-popup .fab,
.teacher-card-social i.fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

body {
    color: var(--thm-text, #232323);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--thm-primary, #f96283);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: var(--thm-hover, #e94f70);
    text-decoration: none;
}

/* ============================================================
   2. NAVBAR & DROPDOWNS
   ============================================================ */
#nav .arrow:after,
#nav .dropdown-menu a.dropdown-item:before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

#nav .dropdown-menu {
    border-top: 3px solid var(--thm-primary, #f96283) !important;
    border-radius: var(--thm-radius, 0px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

#nav .dropdown-menu > .dropdown-item {
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

#nav .dropdown-menu > .dropdown-item:hover,
#nav .dropdown-menu > .dropdown-item:focus {
    background-color: var(--thm-primary, #f96283) !important;
    color: #ffffff !important;
    padding-left: 26px !important;
}

/* ============================================================
   3. BANNER & BREADCRUMB
   ============================================================ */
.main-banner {
    background-size: cover !important;
    position: relative;
    padding: 55px 0 50px;
}

.main-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(38, 38, 38, 0.85);
}

.main-banner .container {
    position: relative;
    z-index: 2;
}

.main-banner h2 span {
    font-size: 32px;
    font-weight: 700;
    color: var(--thm-text, #323232);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 28px 0;
    padding: 14px 50px 16px 30px;
    display: inline-block;
    letter-spacing: 0.3px;
}

.main-banner h2::first-letter,
.main-banner h2 span::first-letter {
    color: var(--thm-primary, #f96283) !important;
}

.breadcrumb {
    background-color: #fafafa;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
    margin-bottom: 35px;
    border-radius: 0;
}

.breadcrumb a {
    color: var(--thm-secondary-text, #8d8d8d);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--thm-primary, #f96283);
}

.breadcrumb .active {
    color: var(--thm-text, #232323);
    font-weight: 600;
}

/* ============================================================
   4. EDITORIAL CONTENT & HEADINGS
   ============================================================ */
.page-lead-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    line-height: 1.3;
    margin-bottom: 10px;
}

.page-lead-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--thm-secondary-text, #8d8d8d);
    margin-bottom: 24px;
    line-height: 1.5;
}

.content-lead-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--thm-text, #232323);
}

.content-lead-text p {
    margin-bottom: 16px;
}

/* Section Header (Restrained, no tracking/all-caps eyebrow) */
.section-headline {
    margin-bottom: 30px;
}

.section-headline h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 6px;
    border-bottom: 2px solid var(--thm-primary, #f96283);
    display: inline-block;
    padding-bottom: 4px;
}

.section-headline p {
    color: var(--thm-secondary-text, #8d8d8d);
    font-size: 15px;
    margin-top: 8px;
    max-width: 780px;
}

/* Structural History Panel */
.history-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--thm-primary, #f96283);
    border-radius: var(--thm-radius, 0px);
    padding: 32px;
    margin-bottom: 35px;
}

/* Structural Legal Note */
.legal-note {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 16px 20px;
    margin-top: 24px;
    font-size: 13.5px;
    color: var(--thm-secondary-text, #8d8d8d);
}

.legal-note strong {
    color: var(--thm-text, #232323);
}

/* Timeline Milestones (Actual Sequence) */
.milestones-sequence {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 28px 0 10px;
}

.milestone-node {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 20px;
}

.milestone-node .node-period {
    font-size: 13px;
    font-weight: 700;
    color: var(--thm-primary, #f96283);
    margin-bottom: 6px;
}

.milestone-node .node-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 4px;
}

.milestone-node .node-desc {
    font-size: 13px;
    color: var(--thm-secondary-text, #8d8d8d);
    margin: 0;
    line-height: 1.5;
}

/* Curriculum Section (Editorial contrast) */
.curriculum-editorial-panel {
    background: var(--thm-footer-bg, #8f3045);
    color: var(--thm-footer-text, #ffffff);
    border-radius: var(--thm-radius, 0px);
    padding: 36px;
    margin-bottom: 35px;
}

.curriculum-editorial-panel h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.curriculum-editorial-panel p {
    color: #f1f5f9;
    font-size: 15.5px;
    line-height: 1.7;
}

.curriculum-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.curriculum-pillar-cell {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--thm-radius, 0px);
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

/* ============================================================
   5. LEADERSHIP & TEACHERS (STRUCTURAL HIERARCHY)
   ============================================================ */

/* Tier 1: Board of Management */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.board-member-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.board-member-photo {
    position: relative;
    padding-top: 105%;
    background-color: #f3f4f6;
    overflow: hidden;
}

.board-member-photo img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}

.board-member-body {
    padding: 20px;
    flex-grow: 1;
}

.board-member-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 4px;
}

.board-member-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--thm-primary, #f96283);
    margin-bottom: 10px;
}

.board-member-bio {
    font-size: 13px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.5;
    margin: 0;
}

/* Tier 2: Principals & Vice Principals */
.principals-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.principal-row-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.principal-row-card.lead {
    border-left: 3px solid var(--thm-primary, #f96283);
}

.principal-avatar-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--thm-radius, 0px);
    background: #f3f4f6;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.principal-detail h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 2px;
}

.principal-detail .principal-position {
    font-size: 13px;
    font-weight: 600;
    color: var(--thm-primary, #f96283);
    margin-bottom: 0;
}

/* Tier 3: Teachers Filter & Cards */
#doctors-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 25px;
}

#doctors-filter li a {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: var(--thm-text, #232323);
    font-weight: 600;
    font-size: 13px;
    padding: 7px 16px;
    border-radius: var(--thm-radius, 0px);
    display: inline-block;
}

#doctors-filter li a:hover,
#doctors-filter li a.active {
    background: var(--thm-primary, #f96283);
    color: #ffffff;
    border-color: var(--thm-primary, #f96283);
}

.dlab-border-left,
.dlab-border-right {
    display: none !important;
}

.bio-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    overflow: hidden;
    margin-bottom: 25px;
}

.bio-box .profile-img {
    position: relative;
    padding-top: 100%;
    background-color: #f3f4f6;
}

.bio-box .profile-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.bio-box .txt-holder {
    padding: 14px 12px;
    text-align: center;
}

.bio-box .txt-holder h5 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bio-box .txt-holder p.designation {
    font-size: 12px;
    color: var(--thm-secondary-text, #8d8d8d);
    font-weight: 600;
    margin: 0;
}

/* ============================================================
   6. CAMBRIDGE CURRICULUM (SUBSTANCE & STRUCTURE)
   ============================================================ */
.cambridge-banner-block {
    background: var(--thm-footer-bg, #8f3045);
    color: #ffffff;
    padding: 45px 0 40px;
}

.cambridge-banner-block h1 {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.cambridge-banner-block .subtitle {
    font-size: 18px;
    color: #fce7eb;
    margin-bottom: 12px;
}

.cambridge-banner-block p {
    font-size: 15px;
    color: #f1f5f9;
    max-width: 820px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Framework Comparative Layout */
.framework-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.framework-column {
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 24px;
    background: #fafafa;
}

.framework-column.enrichment {
    border-left: 3px solid var(--thm-primary, #f96283);
    background: #ffffff;
}

.framework-column h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 8px;
}

.framework-column p {
    font-size: 14px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.6;
    margin: 0;
}

/* School Units Grid */
.units-pathway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 20px 0 35px;
}

.unit-cell {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 24px;
}

.unit-cell .unit-scope {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--thm-primary, #f96283);
    margin-bottom: 6px;
}

.unit-cell h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 10px;
}

.unit-cell p {
    font-size: 14px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.6;
    margin: 0;
}

/* Subjects Structure */
.subjects-unit-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 22px;
    height: 100%;
}

.subjects-unit-card h5 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.subject-bullet {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    color: var(--thm-text, #232323);
    margin-bottom: 8px;
}

.subject-bullet::before {
    content: '■';
    color: var(--thm-primary, #f96283);
    font-size: 10px;
}

/* Methodology Columns */
.methodology-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0 35px;
}

.methodology-box {
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 26px;
    background: #ffffff;
}

.methodology-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 8px;
}

.methodology-box p {
    font-size: 14px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.6;
    margin: 0;
}

/* Assessment Comparison */
.assessment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0 35px;
}

.assessment-box {
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 26px;
    background: #ffffff;
}

.assessment-box.external {
    border-left: 3px solid var(--thm-primary, #f96283);
}

.assessment-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 4px;
}

.assessment-box .schedule {
    font-size: 13px;
    font-weight: 600;
    color: var(--thm-primary, #f96283);
    margin-bottom: 12px;
}

.assessment-box p {
    font-size: 14px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   7. BUTTONS & UTILITIES
   ============================================================ */
.btn-primary, .btn-black, .btn-action {
    background-color: var(--thm-primary, #f96283) !important;
    border: 1px solid var(--thm-primary, #f96283) !important;
    color: #ffffff !important;
    border-radius: var(--thm-radius, 0px) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
}

.btn-primary:hover, .btn-black:hover, .btn-action:hover {
    background-color: var(--thm-hover, #e94f70) !important;
    border-color: var(--thm-hover, #e94f70) !important;
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .framework-layout, .methodology-row, .assessment-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   8. PAGINATION STYLING
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 35px 0 10px;
    list-style: none;
    padding: 0;
}

.pagination > li > a,
.pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    color: var(--thm-text, #232323);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--thm-radius, 0px);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination > li > a:hover {
    color: #ffffff;
    background: var(--thm-hover, #e94f70);
    border-color: var(--thm-hover, #e94f70);
}

.pagination > .active > span,
.pagination > .active > a {
    color: #ffffff !important;
    background: var(--thm-primary, #f96283) !important;
    border-color: var(--thm-primary, #f96283) !important;
}

/* ============================================================
   9. HOMEPAGE FEATURE CARDS (Fix top-left bug & Anti-AI-slop design)
   ============================================================ */
.home-features-boxes .feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
}

.home-features-boxes .feature-card:hover {
    border-color: var(--thm-primary, #f96283);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
    transform: translateY(-3px);
}

.home-features-boxes .feature-icon {
    position: static !important; /* Strictly prevents floating to top-left corner */
    width: 52px;
    height: 52px;
    border-radius: var(--thm-radius, 0px);
    background: var(--thm-primary-soft, rgba(249, 98, 131, 0.1));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--thm-primary, #f96283);
    margin-bottom: 18px;
    transition: all 0.25s ease;
}

.home-features-boxes .feature-card:hover .feature-icon {
    background: var(--thm-primary, #f96283);
    color: #ffffff;
}

.home-features-boxes .feature-icon i {
    color: inherit;
    font-size: 22px;
    line-height: 1;
}

.home-features-boxes .feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 8px;
    line-height: 1.35;
}

.home-features-boxes .feature-card p {
    font-size: 14px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.6;
    margin-bottom: 18px;
}

.home-features-boxes .feature-card .btn-primary {
    padding: 6px 18px !important;
    font-size: 13px !important;
}

/* Also reset legacy notification-boxes icon just in case */
.notification-boxes .box .icon {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 auto 15px auto !important;
}

/* ============================================================
   10. ABOUT US - ADVANTAGES SECTION (Clean Modern Cards, No Parallax)
   ============================================================ */
.about-advantages-section {
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 65px 0 45px;
}

.about-advantages-section .advantages-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--thm-primary, #f96283);
    margin-bottom: 8px;
}

.about-advantages-section .advantages-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.3;
}

.about-advantages-section .advantages-title span {
    color: var(--thm-primary, #f96283);
}

.about-advantages-section .advantage-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.about-advantages-section .advantage-card:hover {
    border-color: var(--thm-primary, #f96283);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.about-advantages-section .advantage-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--thm-radius, 0px);
    background: var(--thm-primary-soft, rgba(249, 98, 131, 0.1));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--thm-primary, #f96283);
    margin-bottom: 18px;
    transition: all 0.25s ease;
}

.about-advantages-section .advantage-card:hover .advantage-icon {
    background: var(--thm-primary, #f96283);
    color: #ffffff;
}

.about-advantages-section .advantage-icon i {
    color: inherit;
    font-size: 22px;
    line-height: 1;
}

.about-advantages-section .advantage-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 10px;
    line-height: 1.35;
}

.about-advantages-section .advantage-card p {
    font-size: 14px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================
   11. TEACHERS & FACULTY DIRECTORY (Clean Cards, Perfect Ratio, No Overlap)
   ============================================================ */
.teachers-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    padding: 0;
    list-style: none;
}

.teachers-filter-tabs .list-inline-item {
    margin-right: 0 !important;
}

.teachers-filter-tabs a {
    display: inline-block;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    color: var(--thm-text, #232323);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.teachers-filter-tabs a:hover {
    border-color: var(--thm-primary, #f96283);
    color: var(--thm-primary, #f96283);
    background: #ffffff;
}

.teachers-filter-tabs a.active {
    background: var(--thm-primary, #f96283);
    border-color: var(--thm-primary, #f96283);
    color: #ffffff;
}

#teachers-grid-container {
    display: flex;
    flex-wrap: wrap;
}

#teachers-grid-container > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.team-card,
.teacher-card {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--thm-radius, 12px);
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.team-card:hover,
.teacher-card:hover {
    border-color: rgba(249, 98, 131, 0.45) !important;
    box-shadow: 0 20px 35px -8px rgba(249, 98, 131, 0.18), 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
}

.team-card-photo,
.teacher-card-photo {
    position: relative;
    width: 100%;
    height: 290px;
    overflow: hidden;
    background-color: #f8fafc;
    flex-shrink: 0;
}

.team-card-photo img,
.teacher-card-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
    transition: transform 0.35s ease;
}

.team-card-photo.is-default,
.teacher-card-photo.is-default {
    background: #f1f5f9 !important;
}

.team-card-photo.is-default img,
.teacher-card-photo.is-default img {
    object-fit: contain !important;
    padding: 35px !important;
    opacity: 0.65;
    filter: none !important;
}

.team-card:hover .team-card-photo img,
.teacher-card:hover .teacher-card-photo img {
    transform: scale(1.04);
}

.team-card-social,
.teacher-card-social {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.team-card-social a,
.teacher-card-social a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--thm-radius, 4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--thm-text, #232323);
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.team-card-social a:hover,
.teacher-card-social a:hover {
    background: var(--thm-primary, #f96283);
    color: #ffffff;
}

.team-card-body,
.teacher-card-body {
    padding: 16px 18px;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid #f1f5f9;
    transition: background 0.25s ease;
}

.team-card-name,
.teacher-card-name {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.team-card-dept,
.teacher-card-dept {
    font-size: 12.5px;
    color: var(--thm-primary, #f96283) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.4;
    display: block;
}

/* ============================================================
   12. WHATSAPP POPUP & SOCIAL MEDIA ICONS ENHANCEMENT
   ============================================================ */
.whatsapp-popup .whatsapp-button {
    background: #25D366 !important;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4) !important;
}

.whatsapp-popup .whatsapp-button i.fab.fa-whatsapp,
.whatsapp-popup .whatsapp-button .i-open {
    font-size: 30px !important;
    line-height: 1 !important;
    color: #ffffff !important;
}

.whatsapp-popup .whatsapp-button i.far.fa-times-circle,
.whatsapp-popup .whatsapp-button .i-close {
    font-size: 26px !important;
    line-height: 1 !important;
    color: #ffffff !important;
}

.whatsapp-popup .popup-content-header i.fab.fa-whatsapp {
    color: #ffffff !important;
}

.social {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 16px 0 0 0 !important;
    list-style: none !important;
}

.social li {
    display: inline-block !important;
    margin: 0 !important;
}

.social li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: var(--thm-radius, 0px) !important;
    color: var(--thm-footer-text, #ffffff) !important;
    font-size: 15px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.social li a:hover {
    background: var(--thm-primary, #f96283) !important;
    border-color: var(--thm-primary, #f96283) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ============================================================
   CONTACT PAGE — reduce excessive padding on info-box section
   ============================================================ */
.contact-info-box {
    margin-bottom: 24px !important;
}

.contact-info-box .info-box {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}
