/* ============================================================
   VMS CAMPUSES LISTING & DETAILS STYLES
   Isolated stylesheet for maximum mobile/tablet responsiveness
============================================================ */

/* Page Background */
body.campuses-page {
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
}

/* Page Title Hero */
.campus-hero {
    background-image: linear-gradient(rgba(33, 48, 100, 0.82), rgba(15, 23, 42, 0.88)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1920&q=80');
    height: 260px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 0 20px;
}
.campus-hero-content {
    z-index: 2;
}
.campus-hero-title {
    color: #ffffff;
    font-size: 2.8rem;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
    line-height: 1.2;
}
.campus-hero-breadcrumbs-wrap {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}
.campus-hero-breadcrumbs {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}
.campus-hero-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}
.campus-hero-breadcrumbs a:hover {
    color: var(--accent-color, #C5A551);
}
.campus-hero-breadcrumbs span {
    color: #ffffff;
}

/* Campus Layout Container */
.campus-container {
    max-width: 1100px;
    margin: 50px auto 80px;
    padding: 0 20px;
}

/* Back Link Button */
.campus-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color, #213064);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 25px;
    transition: color 0.2s ease;
}
.campus-back-link:hover {
    color: var(--accent-color, #C5A551);
}

/* Single Campus Header Banner */
.campus-hero-banner {
    height: 420px;
    border-radius: var(--radius-lg, 16px);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1.5px solid var(--border-color, #e2e8f0);
}
.campus-hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    pointer-events: none;
}
.campus-hero-text-card {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    max-width: 85%;
    pointer-events: auto;
}
.campus-badge-official {
    background-color: var(--accent-color, #C5A551);
    color: var(--primary-color, #213064);
    font-weight: 800;
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 8px;
}
.campus-hero-overlay h2, .campus-hero-text-card h2 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.85rem;
    margin: 0;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.25;
}

/* Two-column layout grid for Single Campus */
.vms-campus-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.campus-section-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    color: var(--primary-color, #213064);
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.campus-section-title i {
    color: var(--accent-color, #C5A551);
}

/* Contact Details Metadata Box */
.campus-contact-card {
    background-color: var(--bg-white, #ffffff);
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
}
.contact-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.contact-meta-row:last-child {
    margin-bottom: 0;
    align-items: flex-start;
}
.contact-meta-icon-box {
    color: var(--primary-color, #213064);
    background-color: rgba(26,86,219,0.06);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-meta-row:last-child .contact-meta-icon-box {
    margin-top: 2px;
}
.contact-meta-label {
    font-size: 0.72rem;
    color: var(--text-muted, #475569);
    font-weight: 700;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.contact-meta-val {
    font-size: 0.95rem;
    color: var(--primary-color, #213064);
    display: block;
}
.contact-meta-row:last-child .contact-meta-val {
    color: var(--text-dark, #0f172a);
    line-height: 1.45;
}

.campus-welcome-desc {
    color: var(--text-dark, #0f172a);
    line-height: 1.7;
    font-size: 0.98rem;
    margin-bottom: 30px;
    font-weight: 500;
}
.campus-sub-intro {
    color: var(--text-muted, #475569);
    font-size: 0.88rem;
    margin-top: -8px;
    margin-bottom: 20px;
}

/* Exam Centers Nodes Tags Grid */
.center-tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.center-card {
    background-color: var(--bg-white, #ffffff);
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    padding: 24px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 16px;
}
.center-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color, #213064);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.08));
}
.center-card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: rgba(26, 86, 219, 0.06);
    color: var(--primary-color, #213064);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.center-card h4 {
    margin: 0 0 3px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--primary-color, #213064);
}
.center-card span {
    font-size: 0.75rem;
    color: var(--text-muted, #475569);
    font-weight: 600;
}
.center-empty-box {
    background-color: var(--bg-white, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 15px;
    border-radius: var(--radius-md, 8px);
    text-align: center;
    grid-column: span 2;
    color: var(--text-muted, #475569);
}

/* Sidebar Facilities Panel */
.campus-facilities-sidebar {
    background-color: var(--bg-white, #ffffff);
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    padding: 30px;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.08));
}
.campus-facilities-sidebar h3 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    color: var(--primary-color, #213064);
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1.5px solid var(--border-color, #e2e8f0);
    padding-bottom: 10px;
}
.feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.feature-icon-wrapper {
    background-color: rgba(26, 86, 219, 0.08);
    color: var(--primary-color, #213064);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-item h5 {
    margin: 0 0 2px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color, #213064);
}
.feature-item p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted, #475569);
}

/* Promo application link box */
.campus-promo-box {
    background-color: rgba(197, 165, 81, 0.08);
    border: 1.5px dashed var(--accent-color, #C5A551);
    border-radius: var(--radius-md, 8px);
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}
.campus-promo-box h4 {
    margin: 0 0 8px;
    color: var(--primary-color, #213064);
    font-size: 1.05rem;
    font-weight: 800;
}
.campus-promo-box p {
    font-size: 0.8rem;
    color: var(--text-dark, #0f172a);
    margin: 0 0 15px;
    line-height: 1.45;
    font-weight: 500;
}
.campus-promo-box a {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

/* ========================================== */
/* ALL CAMPUSES GRID STYLING */
/* ========================================== */
.campuses-list-header {
    text-align: center;
    margin-bottom: 45px;
}
.campuses-list-header h2 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    color: var(--primary-color, #213064);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 10px;
}
.campuses-list-header p {
    color: var(--text-muted, #475569);
    font-size: 1.02rem;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 500;
}

.all-campuses-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.campus-grid-card {
    background: white;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.08));
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: row;
}
.campus-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg, 0 10px 25px -5px rgba(0,0,0,0.1));
    border-color: var(--primary-color, #213064);
}
.campus-card-img {
    width: 35%;
    min-width: 250px;
    height: auto;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.campus-card-body {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
}
.campus-card-body h3 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    color: var(--primary-color, #213064);
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 12px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.campus-address-snippet {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 15px;
    color: var(--text-muted, #475569);
    font-size: 0.8rem;
    line-height: 1.45;
}
.campus-address-snippet i {
    color: var(--accent-color, #C5A551);
    flex-shrink: 0;
    margin-top: 1px;
}
.campus-address-snippet span {
    font-weight: 500;
}
.campus-exam-section {
    margin-bottom: 20px;
}
.campus-exam-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted, #475569);
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.campus-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.campus-exam-empty {
    font-size: 0.72rem;
    color: var(--text-muted, #475569);
    font-style: italic;
}
.campus-center-tag {
    font-size: 0.72rem;
    background-color: #f1f5f9;
    color: var(--text-dark, #0f172a);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color, #e2e8f0);
    font-weight: 600;
}
.campus-more-tag {
    font-size: 0.72rem;
    background-color: rgba(26, 86, 219, 0.05);
    color: var(--primary-color, #213064);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}
.campus-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding: 10px;
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
============================================================ */
@media (max-width: 900px) {
    .vms-campus-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .campus-grid-card {
        flex-direction: column;
    }
    .campus-card-img {
        width: 100%;
        height: 200px;
        min-height: auto;
    }
    .campus-hero {
        height: 240px;
    }
    .campus-hero-title {
        font-size: 2.3rem;
    }
    .campus-hero-banner {
        height: 260px;
        margin-bottom: 30px;
    }
    .campus-hero-overlay {
        padding: 20px;
    }
    .campus-hero-overlay h2 {
        font-size: 1.6rem !important;
    }
    .campus-section-title {
        font-size: 1.4rem;
    }
    .campus-facilities-sidebar {
        padding: 25px 20px;
    }
}

@media (max-width: 576px) {
    .campus-hero {
        height: 180px;
    }
    .campus-hero-title {
        font-size: 1.8rem;
    }
    .campus-container {
        margin: 30px auto 60px;
    }
    .center-tag-grid {
        grid-template-columns: 1fr;
    }
    .campus-hero-banner {
        height: 200px;
    }
    .campus-hero-overlay h2 {
        font-size: 1.3rem !important;
    }
    .campus-contact-card {
        padding: 20px 15px;
    }
    .contact-meta-row {
        gap: 8px;
    }
    .contact-meta-val {
        font-size: 0.88rem;
    }
}

/* Superintendent / TIC Leadership Cards */
.leadership-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}
.leadership-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-lg, 16px);
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}
.leadership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}
.sup-card {
    border-color: #bae6fd;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}
.tic-card {
    border-color: #fde68a;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}
.leadership-header-tag {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag-sup {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
.tag-tic {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}
.leadership-card-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.leadership-avatar-box {
    width: 90px;
    height: 105px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    background: #f8fafc;
    position: relative;
}
.border-sup { border: 2.5px solid #0284c7; }
.border-tic { border: 2.5px solid #d97706; }

.leadership-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.leadership-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    font-family: var(--font-heading, 'Outfit', sans-serif);
}
.bg-sup { background: linear-gradient(135deg, #0f172a, #0369a1); color: #7dd3fc; }
.bg-tic { background: linear-gradient(135deg, #78350f, #d97706); color: #fef08a; }

.leadership-info {
    flex-grow: 1;
    min-width: 0;
}
.leadership-name {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color, #213064);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    line-height: 1.25;
    text-transform: uppercase;
}
.leadership-desig-text {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}
.leadership-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.lead-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-call-sup {
    background: #0284c7;
    color: #ffffff;
}
.btn-call-sup:hover { background: #0369a1; }
.btn-mail-sup {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
.btn-mail-sup:hover { background: #bae6fd; }

.btn-call-tic {
    background: #d97706;
    color: #ffffff;
}
.btn-call-tic:hover { background: #b45309; }
.btn-mail-tic {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.btn-mail-tic:hover { background: #fde68a; }

.leadership-quote-box {
    background: rgba(255,255,255,0.7);
    border-left: 3px solid #0284c7;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: #334155;
    font-style: italic;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.quote-tic {
    border-left-color: #d97706;
}

/* Faculty Members Grid & Premium Cards */
.faculty-section-wrap {
    margin-top: 45px;
    margin-bottom: 45px;
}
.faculty-count-badge {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--accent-color, #C5A551);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(197, 165, 81, 0.3);
}
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 15px;
}
.faculty-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #213064), var(--accent-color, #C5A551));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: var(--accent-color, #C5A551);
}
.faculty-card:hover::before {
    opacity: 1;
}
.faculty-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.faculty-avatar-wrap {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    position: relative;
}
.faculty-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--accent-color, #C5A551);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.faculty-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a 0%, #213064 100%);
    color: var(--accent-color, #C5A551);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    border: 2.5px solid var(--accent-color, #C5A551);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}
.faculty-info-header {
    flex-grow: 1;
    min-width: 0;
}
.faculty-name {
    margin: 0 0 4px 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--primary-color, #213064);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.faculty-desig-badge {
    font-size: 0.72rem;
    color: #0369a1;
    background: #e0f2fe;
    font-weight: 800;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.faculty-details-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
    font-size: 0.84rem;
    color: #334155;
    margin-top: auto;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faculty-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.subject-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid #bae6fd;
}
.qual-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid #fde68a;
    line-height: 1.3;
}
.faculty-contact-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}
.fac-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}
.fac-phone {
    color: #059669;
}
.fac-phone:hover {
    color: #047857;
    text-decoration: underline;
}
.fac-email {
    color: #2563eb;
}
.fac-email:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Campus Gallery (Photos & Videos) */
.gallery-section-wrap {
    margin-top: 45px;
}
.media-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}
.media-photo-item {
    border-radius: 12px;
    overflow: hidden;
    height: 170px;
    border: 1.5px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.media-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.media-photo-item:hover img {
    transform: scale(1.06);
}
.media-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 15px 12px 8px;
}
.media-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 20px;
}
.media-video-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-sm);
    background: #ffffff;
}
.media-video-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
}
.media-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.media-video-title {
    padding: 12px 15px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary-color, #213064);
    font-family: var(--font-heading, 'Outfit', sans-serif);
}

/* Call Campus Mobile Button */
.btn-call-campus-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #16a34a;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: var(--radius-md, 10px);
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
    transition: background 0.2s ease;
}
.btn-call-campus-mobile:hover {
    background: #15803d;
}

/* Compact Faculty Toggle & Gallery CTA Buttons */
.btn-toggle-faculty {
    background: #ffffff;
    border: 1.5px solid var(--primary-color, #213064);
    color: var(--primary-color, #213064);
    font-weight: 800;
    font-size: 0.88rem;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.btn-toggle-faculty:hover {
    background: var(--primary-color, #213064);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(33, 48, 100, 0.2);
}

.btn-view-gallery-link {
    color: var(--primary-color, #213064);
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.btn-view-gallery-link:hover {
    color: var(--accent-color, #C5A551);
}

.btn-full-gallery-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0f172a 0%, #213064 100%);
    color: var(--accent-color, #C5A551);
    font-weight: 900;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: 1.5px solid rgba(197, 165, 81, 0.4);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    width: 100%;
    box-sizing: border-box;
}
.btn-full-gallery-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    border-color: var(--accent-color, #C5A551);
    color: #ffffff;
}

@media (max-width: 640px) {
    .leadership-card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .leadership-contact-buttons {
        justify-content: center;
    }
    .leadership-avatar-box {
        width: 100px;
        height: 120px;
    }
    .media-videos-grid {
        grid-template-columns: 1fr;
    }
}
