/* =========================================
   CSS Variables & Core Setup
   ========================================= */
:root {
    /* Primary Brand Colors - Rich Indigo */
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --primary-light: #818cf8;
    --primary-glow: rgba(79, 70, 229, 0.4);

    /* Secondary Colors - Vibrant Sky */
    --secondary: #0ea5e9;
    --secondary-light: #7dd3fc;
    --secondary-glow: rgba(14, 165, 233, 0.3);

    /* Accent Colors */
    --accent: #f43f5e;
    --accent-light: #fda4af;
    --success: #10b981;
    --warning: #f59e0b;

    /* Neutral Colors */
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Background Colors */
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-soft: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-gradient-start: #f0f9ff;
    --bg-gradient-end: #f8fafc;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Enhanced Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Enhanced Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --shadow-glow-sm: 0 0 20px var(--primary-glow);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-primary-hover: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    --gradient-subtle: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography Enhancements */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-subtle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Title Enhancements */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-title h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Buttons - Enhanced */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-bounce);
    border: none;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39), 0 0 0 0 rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px 0 rgba(79, 70, 229, 0.4), 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px 0 rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.w-100 {
    width: 100%;
}

/* =========================================
   Navbar - Enhanced
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition-slow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.hamburger:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* =========================================
   Page Header Banners
   ========================================= */
.page-header {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(79, 70, 229, 0.75) 100%);
    backdrop-filter: blur(2px);
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.page-header-content h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
}

.page-header-content p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 1.25rem;
    opacity: 0.9;
    font-weight: 400;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: white;
    opacity: 0.9;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 1;
    color: var(--secondary-light);
}

.breadcrumb span {
    opacity: 0.6;
}

/* =========================================
   Hero / Slider Section
   ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
}

.swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Glass Effect over the whole image */
    background: rgba(15, 23, 42, 0.3);
    /* or linear-gradient */
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(5px);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.swiper-slide-active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slide-desc {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Swiper custom arrows */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary);
}

/* =========================================
   Notifications Bar
   ========================================= */
/* =========================================
   Announcements Section - Professional Layout
   ========================================= */
.announcements-section {
    background: linear-gradient(180deg, rgba(248,250,252,0.98) 0%, rgba(241,245,249,0.5) 100%);
    position: relative;
}

.announcements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79,70,229,0.15), transparent);
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.announcements-grid .card-minimal {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.announcement-loader {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.6;
}

.announcement-header {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.announcement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.announcement-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.announcement-type {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
}

.announcement-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.announcement-content {
    flex: 1;
    margin-bottom: 0.8rem;
}

.announcement-content h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.announcement-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(79,70,229,0.08);
}

.announcement-link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.announcement-link:hover {
    color: var(--primary-dark);
    gap: 0.6rem;
}

.announcement-link i {
    font-size: 0.7rem;
}

.announcements-footer {
    padding: 1rem 0;
}

/* =========================================
   Forms Section (Enhanced Glassmorphism)
   ========================================= */
.forms-section {
    position: relative;
    background: var(--gradient-subtle);
    min-height: 100vh;
}

.forms-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.3;
    pointer-events: none;
}

.forms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* Single form centered layout (used on admissions.html and careers.html) */
.forms-container.single {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.forms-container.single .form-card {
    width: 100%;
    max-width: 620px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-xl), 0 20px 60px rgba(79, 70, 229, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transform: translateY(-5px);
}

.card-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.card-header h2 {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.custom-form .input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.custom-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.custom-form input,
.custom-form select {
    width: 100%;
    padding: 1.125rem 1.25rem;
    border: 2px solid rgba(79, 70, 229, 0.1);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.custom-form input:hover,
.custom-form select:hover {
    border-color: rgba(79, 70, 229, 0.2);
    background: #fff;
}

.custom-form input:focus,
.custom-form select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1), 0 4px 12px rgba(79, 70, 229, 0.15);
}

/* Floating label - Enhanced */
.custom-form .input-group label {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    font-size: 1rem;
    background: transparent;
    padding: 0 0.25rem;
}

.custom-form .input-group input:focus~label,
.custom-form .input-group input:valid~label {
    top: -10px;
    left: 1rem;
    font-size: 0.8rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.9) 100%);
    padding: 0 0.5rem;
    border-radius: 4px;
    color: var(--primary);
    font-weight: 600;
}

.custom-form .input-group select~label {
    top: -10px;
    left: 1rem;
    font-size: 0.8rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.9) 100%);
    padding: 0 0.5rem;
    border-radius: 4px;
    color: var(--primary);
    font-weight: 600;
}

.file-upload {
    margin-bottom: 1.5rem;
}

.file-upload input[type="file"] {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
    border: 2px dashed rgba(79, 70, 229, 0.3);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(14, 165, 233, 0.03) 100%);
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 1rem;
}

.file-label i {
    font-size: 1.25rem;
    transition: var(--transition);
}

.file-label:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
    border-color: var(--primary);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.file-label:hover i {
    transform: scale(1.1);
}

/* =========================================
   Faculty Tree / Hierarchy - Enhanced
   ========================================= */
.faculty-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-soft) 100%);
    position: relative;
}

.faculty-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.2;
    pointer-events: none;
}

.tree-container {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.tree {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree ul {
    position: relative;
    padding-top: 30px;
    display: flex;
    gap: 30px;
}

.tree>li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree li {
    position: relative;
    text-align: center;
    list-style-type: none;
    padding: 20px 10px 0 10px;
}

/* Connecting Lines - Enhanced */
.tree li::before,
.tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid var(--primary-light);
    width: 50%;
    height: 30px;
}

.tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid var(--primary-light);
}

.tree li:only-child::after,
.tree li:only-child::before {
    display: none;
}

.tree li:only-child {
    padding-top: 0;
}

.tree li:first-child::before,
.tree li:last-child::after {
    border: 0 none;
}

.tree li:last-child::before {
    border-right: 2px solid var(--primary-light);
    border-radius: 0 8px 0 0;
}

.tree li:first-child::after {
    border-radius: 8px 0 0 0;
}

.tree ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid var(--primary-light);
    width: 0;
    height: 30px;
    transform: translateX(-50%);
}

.tree-node {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-bounce);
    border: 1px solid rgba(79, 70, 229, 0.08);
    min-width: 180px;
    position: relative;
    z-index: 10;
}

.tree-node:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 20px 40px rgba(79, 70, 229, 0.15);
    border-color: var(--primary-light);
}

.tree-node img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-light);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
    transition: var(--transition);
}

.tree-node:hover img {
    transform: scale(1.05);
    border-color: var(--primary-light);
}

.node-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.node-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Node Custom Styles - Enhanced */
.md-node {
    border-top: 4px solid var(--primary);
    background: linear-gradient(180deg, white 0%, rgba(79, 70, 229, 0.03) 100%);
}

.principal-node {
    border-top: 4px solid var(--secondary);
    background: linear-gradient(180deg, white 0%, rgba(14, 165, 233, 0.03) 100%);
}

.coord-node {
    background: linear-gradient(180deg, var(--bg-light) 0%, white 100%);
    padding: 1rem 1.5rem;
    border: 2px solid rgba(79, 70, 229, 0.1);
}

.teacher-node {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    border: 2px dashed rgba(79, 70, 229, 0.2);
    padding: 0.75rem 1rem;
}

.teacher-node:hover {
    border-style: solid;
    background: white;
}

/* =========================================
   Navbar Logo Wrap
   ========================================= */
.nav-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-logo-wrap #nav-logo-name {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 5000;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: #0f172a;
    color: white;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    color: white;
}

/* =========================================
   Home Highlights
   ========================================= */
.home-highlight-strip {
    padding: 1.25rem 0 0;
    background:
        linear-gradient(180deg, rgba(239,246,255,0.72) 0%, rgba(255,255,255,0) 100%);
}

.home-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem 1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 38px rgba(15, 23, 42, 0.09);
    border-color: rgba(14, 165, 233, 0.32);
}

.home-highlight-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(14,165,233,0.14));
    color: var(--primary);
    font-size: 1rem;
}

.home-highlight-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.home-highlight-card p {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* =========================================
   About Our School Section
   ========================================= */
.about-section {
    background: var(--bg-main);
}

.home-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.home-inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}

/* Left info card */
.about-info-card {
    background: var(--bg-light);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-school-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.about-logo-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.about-info-card h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
}

.about-body-text {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.75;
    text-align: center;
}

.about-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.about-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.about-contact-item i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.about-contact-item a {
    color: var(--primary);
}

.about-contact-item a:hover {
    text-decoration: underline;
}

/* Right stats grid */
.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.about-stat-card {
    background: white;
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-stat-card:hover::before {
    opacity: 1;
}

.about-stat-card:hover i,
.about-stat-card:hover h4,
.about-stat-card:hover p {
    color: white !important;
    position: relative;
    z-index: 1;
}

.about-stat-card i,
.about-stat-card h4,
.about-stat-card p {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.about-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-stat-card i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.75rem;
}

.about-stat-card h4 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.about-stat-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.about-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.home-about-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-feature-card {
    padding: 1.25rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.home-feature-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 0.85rem;
    background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(14,165,233,0.14));
    color: var(--primary);
}

.home-feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.home-feature-card p {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.92rem;
}

@media (max-width: 992px) {
    .home-highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .home-highlight-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-cta {
        flex-direction: column;
    }

    .home-badge-row {
        justify-content: center;
    }
}

/* =========================================
   Event Gallery
   ========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 0.75rem;
    }

    .gallery-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .gallery-grid-compact {
        grid-template-columns: 1fr;
    }
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.gallery-header .section-title::before {
    left: 0;
    transform: none;
}

.gallery-page-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.gallery-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.gallery-page-note {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    padding: 1.25rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 48%),
        linear-gradient(135deg, #082f49, #0f172a);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.18);
}

.gallery-page-note strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.gallery-page-note span {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.74);
}

.page-header-gallery .page-header-overlay {
    background:
        linear-gradient(135deg, rgba(8, 47, 73, 0.88) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(79, 70, 229, 0.62) 100%);
}

.page-header-gallery .page-header-content {
    max-width: 880px;
}

.gallery-landing-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 24%),
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.08), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.gallery-page-hero-premium {
    align-items: stretch;
}

.gallery-page-intro-premium {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    padding: 1.65rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.07);
}

.gallery-page-intro-premium h2 {
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.gallery-page-intro-premium p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #475569;
    max-width: 42rem;
    margin-bottom: 0;
}

.gallery-premium-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.35rem;
}

.gallery-premium-metric {
    padding: 1rem 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.gallery-premium-metric strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.gallery-premium-metric span {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.gallery-page-note-premium {
    min-height: 100%;
    gap: 0.8rem;
}

.gallery-page-note-premium strong {
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    line-height: 1.2;
}

.gallery-page-note-premium > span:not(.gallery-note-eyebrow) {
    font-size: 1rem;
}

.gallery-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.4rem 0 1.6rem;
}

.gallery-story-card {
    padding: 1.2rem 1.15rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.gallery-story-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 0.9rem;
    background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(14,165,233,0.16));
    color: var(--primary);
}

.gallery-story-card h3 {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    margin-bottom: 0.45rem;
    color: #0f172a;
}

.gallery-story-card p {
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.7;
}

.gallery-collection-panel {
    padding: 1.35rem;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 28px 54px rgba(15, 23, 42, 0.08);
}

.gallery-collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.gallery-collection-header h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.gallery-collection-header p {
    margin-bottom: 0;
    max-width: 48rem;
    color: #64748b;
    line-height: 1.75;
}

.gallery-grid-gallerypage {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.15rem;
}

.gallery-grid-gallerypage .gallery-album-card {
    border-radius: 24px;
    box-shadow: 0 22px 36px rgba(15, 23, 42, 0.08);
}

.gallery-grid-gallerypage .gallery-album-collage {
    min-height: 220px;
}

.gallery-section-home {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.gallery-page-hero-home {
    align-items: stretch;
}

.gallery-page-note-home {
    min-height: 100%;
}

.gallery-page-intro-home {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.4rem 1.5rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.96));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.gallery-page-intro-home::after {
    content: '';
    position: absolute;
    inset: auto auto 1rem 1rem;
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(79,70,229,0.09), rgba(14,165,233,0.16));
    filter: blur(6px);
    z-index: 0;
}

.gallery-page-intro-home > * {
    position: relative;
    z-index: 1;
}

.gallery-page-intro-home h2 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.gallery-page-intro-home p {
    max-width: 38rem;
    font-size: 1.14rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.gallery-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    width: 100%;
    max-width: 42rem;
    margin-top: 0.2rem;
}

.gallery-hero-metric {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.gallery-hero-metric strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    color: var(--text-main);
    margin-bottom: 0.22rem;
}

.gallery-hero-metric span {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.gallery-note-eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.82);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-page-note-home strong {
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    line-height: 1.2;
}

.gallery-page-note-home > span:not(.gallery-note-eyebrow) {
    font-size: 1rem;
    line-height: 1.75;
}

.gallery-note-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    width: 100%;
    margin-top: 0.4rem;
}

.gallery-note-preview-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 0.8rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    min-height: 112px;
}

.gallery-note-preview-card.is-primary {
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}

.gallery-note-preview-card i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.14);
    color: white;
    font-size: 0.95rem;
}

.gallery-note-preview-card span {
    color: rgba(255,255,255,0.84);
    font-size: 0.86rem;
    line-height: 1.5;
}

.gallery-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-grid-compact .gallery-album-card {
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.gallery-grid-compact .gallery-album-collage {
    min-height: 185px;
    padding: 0.35rem;
    gap: 0.3rem;
}

.gallery-grid-compact .gallery-album-cell {
    border-radius: 14px;
    min-height: 84px;
}

.gallery-grid-compact .gallery-album-count-badge {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
}

.gallery-grid-compact .gallery-album-meta {
    padding: 0.95rem 0.95rem 1rem;
}

.gallery-grid-compact .gallery-album-meta h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.gallery-grid-compact .gallery-album-meta p {
    min-height: auto;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.gallery-page-intro h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.45rem;
}

.gallery-page-intro p {
    max-width: 56ch;
    color: #64748b;
    line-height: 1.7;
}

.gallery-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.gallery-album-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.08);
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-album-card:focus-visible,
.album-photo-item:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 4px;
}

.gallery-album-card.is-active {
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow: 0 28px 48px rgba(14, 165, 233, 0.18);
}

.gallery-album-collage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
    padding: 0.45rem;
    min-height: 240px;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 55%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.14), transparent 45%),
        #dbeafe;
}

.gallery-album-cell {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 110px;
}

.gallery-album-cell.is-featured {
    grid-row: span 2;
    min-height: 100%;
}

.gallery-album-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.gallery-album-count-badge {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.74);
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
}

.gallery-album-meta {
    padding: 1.15rem 1.15rem 1.25rem;
}

.gallery-album-meta h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: #0f172a;
}

.gallery-album-meta p {
    color: #64748b;
    line-height: 1.65;
    min-height: 3.2em;
    margin-bottom: 0.9rem;
}

.gallery-album-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f766e;
    font-family: var(--font-heading);
    font-weight: 600;
}

.gallery-album-link::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.82rem;
}

@media (hover: hover) {
    .gallery-album-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 32px 52px rgba(15, 23, 42, 0.14);
        border-color: rgba(14, 165, 233, 0.35);
    }

    .gallery-album-card:hover .gallery-album-cell img,
    .album-photo-item:hover img {
        transform: scale(1.06);
    }
}

.album-page-shell {
    padding: 7.5rem 0 4rem;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}

.album-page-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.album-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #0f172a;
    font-weight: 600;
}

.album-back-link:hover {
    color: #0284c7;
}

.album-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.95rem;
}

.album-breadcrumb a {
    color: #0369a1;
}

.album-hero-card,
.album-content-card {
    border-radius: 30px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.album-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.95fr);
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.album-hero-copy h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    line-height: 1;
    margin-bottom: 0.8rem;
    color: #0f172a;
}

.album-hero-copy p {
    max-width: 58ch;
    color: #475569;
    line-height: 1.8;
}

.album-hero-stats {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.album-stat-chip {
    min-width: 160px;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #eff6ff);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.album-stat-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.album-stat-chip strong {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #0f172a;
}

.album-hero-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    min-height: 340px;
}

.album-hero-preview-cell {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 120px;
    background: #dbeafe;
}

.album-hero-preview-cell.is-large {
    grid-row: span 2;
    min-height: 100%;
}

.album-hero-preview-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.album-preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #0284c7;
    font-size: 1.5rem;
}

.album-content-card {
    padding: 1.5rem;
}

.album-content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.album-content-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.25rem;
}

.album-content-header p {
    color: #64748b;
    margin-bottom: 0;
}

.album-viewer-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 0.84rem;
    font-weight: 700;
}

.album-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.album-gallery-grid-detail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.album-gallery-grid-detail .album-photo-item {
    aspect-ratio: 1 / 1;
}

.album-gallery-grid-detail .album-photo-item:nth-child(6n + 1),
.album-gallery-grid-detail .album-photo-item:nth-child(6n + 4) {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
}

.album-photo-item {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #e2e8f0;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.album-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.album-photo-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem 0.9rem 0.85rem;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.82));
    color: white;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}

@media (hover: hover) {
    .album-hero-preview-cell:hover img {
        transform: scale(1.06);
    }
}

/* Gallery modal */
#lightboxModal .modal-content {
    background: rgba(3, 7, 18, 0.72) !important;
    border-radius: 28px;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

/* Scholarship promotion modal */
.scholarship-modal-dialog {
    width: min(90vw, calc(100vh - 110px));
    max-width: 700px;
}

.scholarship-modal .modal-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.scholarship-modal .modal-header {
    padding: 1.25rem 1.5rem 0.75rem;
}

.scholarship-modal-body {
    padding: 0 1rem 1rem;
}

.scholarship-modal-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.scholarship-modal-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.scholarship-modal-link:hover .scholarship-modal-image,
.scholarship-modal-link:focus-visible .scholarship-modal-image {
    transform: scale(1.02);
}

#lightboxModal .modal-header {
    padding-bottom: 0;
}

#lightboxModal .modal-body {
    padding: 1rem 1rem 1.5rem;
}

.lightbox-image {
    display: block;
    width: 100%;
    max-height: min(78vh, 820px);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
}

.lightbox-caption {
    max-width: 42rem;
    margin: 1rem auto 0;
    font-size: 1rem;
    line-height: 1.6;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    margin-bottom: 1rem;
}

.footer-col i {
    margin-right: 0.5rem;
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* =========================================
   Animations & Responsive - Enhanced
   ========================================= */

/* Enhanced Fade In Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide In Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In Animation */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation Delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* Pulse Glow Animation */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(79, 70, 229, 0.5);
    }
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Gradient Shift Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Original fade-in for backward compatibility */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

@media (max-width: 992px) {
    .forms-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Faculty Profile Modal
   ========================================= */
.tree-node-clickable {
    cursor: pointer;
}

.tree-node-clickable:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.view-profile-hint {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tree-node-clickable:hover .view-profile-hint {
    opacity: 1;
}

/* Overlay */
.faculty-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(12px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.faculty-modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Card */
.faculty-modal-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
    width: 100%;
    max-width: 620px;
    position: relative;
    overflow: hidden;
    animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faculty-modal-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -70px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.18), transparent 68%);
    pointer-events: none;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px) scale(0.96);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Close button */
.faculty-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.3rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.86);
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faculty-modal-close:hover {
    background: rgba(255, 255, 255, 0.24);
    color: white;
    transform: translateY(-2px) rotate(90deg);
}

/* Header band */
.faculty-modal-header {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 26%),
        radial-gradient(circle at 78% 22%, rgba(125, 211, 252, 0.24), transparent 22%),
        linear-gradient(135deg, #4338ca 0%, #2563eb 58%, #0ea5e9 100%);
    padding: 2.4rem 2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
    min-height: 220px;
    position: relative;
}

.faculty-modal-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 78px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.16), transparent);
}

/* Avatar */
.faculty-modal-avatar {
    flex-shrink: 0;
    width: 116px;
    height: 116px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.24);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.faculty-modal-avatar img,
#modal-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-initials-placeholder,
#modal-initials {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 24%),
        linear-gradient(135deg, rgba(79,70,229,0.88), rgba(14,165,233,0.88));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.04em;
}

/* Title */
.faculty-modal-title {
    position: relative;
    z-index: 1;
    max-width: 340px;
}

.faculty-modal-title h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    font-weight: 800;
    color: white;
    line-height: 1.08;
    margin-bottom: 0.45rem;
    text-transform: capitalize;
}

.faculty-modal-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.02rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.modal-level-badge {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: rgba(255, 255, 255, 0.18);
    color: white;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.modal-level-md {
    background: rgba(255, 255, 255, 0.35);
}

.modal-level-principal {
    background: rgba(14, 165, 233, 0.55);
}

.modal-level-coordinator {
    background: rgba(16, 185, 129, 0.55);
}

.modal-level-teacher {
    background: rgba(244, 63, 94, 0.4);
}

/* Body */
.faculty-modal-body {
    padding: 1.55rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.modal-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 1rem 1rem 1rem 0.95rem;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    min-height: 84px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.modal-detail-row i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.14));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.modal-detail-row span,
.modal-detail-row a {
    display: block;
    align-self: center;
    font-size: 0.98rem;
    line-height: 1.55;
}

.modal-detail-row a {
    color: var(--primary);
    font-weight: 600;
    word-break: break-all;
}

.modal-detail-row a:hover {
    text-decoration: underline;
}

/* Bio */
.faculty-modal-bio {
    grid-column: 1 / -1;
    margin-top: 0.1rem;
    padding: 1.35rem 1.4rem;
    background: linear-gradient(180deg, rgba(248,250,252,0.96), rgba(241,245,249,0.96));
    border-radius: 22px;
    border: 1px solid rgba(79, 70, 229, 0.08);
    border-left: 5px solid var(--primary);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.faculty-modal-bio h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.faculty-modal-bio p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .faculty-modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .faculty-modal-card {
        border-radius: 24px;
    }

    .faculty-modal-header {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 2rem 1.35rem 1.6rem;
        gap: 1rem;
    }

    .faculty-modal-body {
        padding: 1.1rem 1.1rem 1.35rem;
    }

    .faculty-modal-title h2 {
        font-size: 1.25rem;
    }
}

/* =========================================
   Mobile Responsive Enhancements
   ========================================= */

/* Container adjustments for mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    /* Navbar mobile adjustments */
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    /* Page header mobile */
    .page-header {
        height: 300px;
    }

    .page-header-content {
        padding: 1rem;
    }

    .breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Forms mobile */
    .glass-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .card-header h2 {
        font-size: 1.25rem;
    }

    .custom-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .custom-form input,
    .custom-form select {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    /* About section mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-info-card {
        padding: 1.5rem;
    }

    .about-logo-placeholder {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .about-info-card h3 {
        font-size: 1.4rem;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .about-stat-card {
        padding: 1.25rem 1rem;
    }

    .about-stat-card i {
        font-size: 1.5rem;
    }

    .about-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .about-cta .btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Gallery mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .gallery-album-collage {
        min-height: 210px;
    }

    .gallery-album-meta {
        padding: 1rem;
    }

    .gallery-page-hero,
    .album-hero-card {
        grid-template-columns: 1fr;
    }

    .gallery-page-note-home {
        order: -1;
    }

    .gallery-premium-metrics,
    .gallery-story-grid {
        grid-template-columns: 1fr;
    }

    .gallery-collection-panel,
    .gallery-page-intro-premium {
        padding: 1.1rem;
    }

    .gallery-page-intro-home {
        padding: 1.1rem;
    }

    .gallery-hero-metrics,
    .gallery-note-preview {
        grid-template-columns: 1fr;
    }

    .album-page-shell {
        padding-top: 6.5rem;
    }

    .album-content-card,
    .album-hero-card {
        padding: 1rem;
    }

    .album-hero-preview {
        min-height: 250px;
    }

    .album-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-gallery-grid-detail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-gallery-grid-detail .album-photo-item:nth-child(6n + 1),
    .album-gallery-grid-detail .album-photo-item:nth-child(6n + 4) {
        grid-column: span 2;
    }

    /* Announcements section responsive - tablet */
    .announcements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .announcement-card {
        padding: 1.35rem;
    }

    .announcement-content h3 {
        font-size: 0.98rem;
    }

    .announcement-content p {
        font-size: 0.85rem;
    }

    /* Hero slider mobile */
    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .slide-content {
        padding: 0 1rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 1rem;
    }

    /* Footer mobile */
    .footer {
        padding: 2rem 0 0 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-col h3 {
        font-size: 1.5rem;
    }

    .footer-col h4 {
        font-size: 1.1rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-links a {
        width: 36px;
        height: 36px;
    }

    .footer-bottom {
        padding: 1rem;
        font-size: 0.8rem;
    }

    /* Faculty tree mobile */
    .tree-container {
        padding: 1rem;
    }

    .tree ul {
        flex-direction: column;
        gap: 15px;
        padding-top: 0;
    }

    .tree li {
        padding: 10px 5px 0 5px;
    }

    .tree li::before,
    .tree li::after,
    .tree ul::before {
        display: none;
    }

    .tree-node {
        min-width: auto;
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.25rem;
    }

    .tree-node img {
        width: 56px;
        height: 56px;
    }

    .node-info h3 {
        font-size: 1rem;
    }

    .node-info span {
        font-size: 0.8rem;
    }

    /* Lightbox mobile */
    #lightboxModal .modal-dialog {
        width: min(92vw, 420px);
        margin: 1rem auto;
    }

    #lightboxModal .modal-content {
        border-radius: 20px;
    }

    #lightboxModal .modal-body {
        padding: 0.85rem;
    }

    .lightbox-image {
        max-height: 52vh;
    }

    .lightbox-caption {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .gallery-grid {
        gap: 0.6rem;
    }

    /* Announcements section responsive - mobile */
    .announcements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }

    .announcement-card {
        padding: 1.25rem;
    }

    .announcement-header {
        margin-bottom: 0.9rem;
    }

    .announcement-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .announcement-content h3 {
        font-size: 0.95rem;
    }

    .announcement-content p {
        font-size: 0.8rem;
    }

    .gallery-page-intro-premium h2 {
        font-size: clamp(1.95rem, 9vw, 2.8rem);
    }

    .gallery-page-intro-premium p,
    .gallery-collection-header p {
        font-size: 0.98rem;
    }

    .gallery-page-intro-home h2 {
        font-size: clamp(2rem, 10vw, 2.9rem);
    }

    .gallery-page-intro-home p {
        font-size: 1rem;
    }

    .album-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .album-gallery-grid-detail {
        grid-template-columns: 1fr;
    }

    .album-gallery-grid-detail .album-photo-item:nth-child(6n + 1),
    .album-gallery-grid-detail .album-photo-item:nth-child(6n + 4) {
        grid-column: span 1;
    }

    .album-hero-copy h1 {
        font-size: clamp(2rem, 11vw, 2.8rem);
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .section-title::before {
        width: 40px;
        height: 3px;
        top: -12px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 1.25rem;
    }

    .card-header {
        margin-bottom: 1.5rem;
    }

    .file-label {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stat-card {
        padding: 1rem 0.75rem;
    }

    .about-stat-card h4 {
        font-size: 1.1rem;
    }

    .about-stat-card p {
        font-size: 0.75rem;
    }

    .page-header {
        height: 250px;
    }

    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .forms-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   Modern Faculty Page Styles
   ========================================= */

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.page-header-faculty .page-header-overlay {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(8, 47, 73, 0.78) 50%, rgba(79, 70, 229, 0.62) 100%);
}

.faculty-showcase-section {
    position: relative;
    padding: 4.5rem 0 2.5rem;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.faculty-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.95fr);
    gap: 1.35rem;
    align-items: stretch;
}

.faculty-showcase-copy,
.faculty-showcase-note,
.faculty-directory-shell {
    border-radius: 30px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.07);
}

.faculty-showcase-copy {
    padding: 1.65rem;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
}

.faculty-showcase-copy h2 {
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.faculty-showcase-copy p {
    max-width: 44rem;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 0;
}

.faculty-showcase-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.faculty-showcase-metric {
    padding: 1rem 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.faculty-showcase-metric strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    color: var(--text-main);
    margin-bottom: 0.22rem;
}

.faculty-showcase-metric span {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.faculty-showcase-note {
    padding: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 42%),
        linear-gradient(135deg, #082f49, #0f172a);
    color: rgba(255,255,255,0.9);
}

/* =========================================
   Leadership Section - MD & Principal Messages
   ========================================= */
.leaders-section {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    position: relative;
    overflow: hidden;
}

.leaders-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.leader-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.leader-card:hover::before {
    transform: scaleX(1);
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.leader-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    width: fit-content;
    margin-bottom: 1.5rem;
}

.badge-md {
    background: rgba(79, 70, 229, 0.15);
    color: #4F46E5;
}

.badge-principal {
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
}

.leader-image-wrap {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: var(--radius-lg);
    height: 250px;
    background: linear-gradient(135deg, var(--bg-soft), var(--bg-light));
}

.leader-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.leader-card:hover .leader-image {
    transform: scale(1.08);
}

.leader-content {
    flex: 1;
}

.leader-name {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.3;
}

.leader-role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.leader-qualification {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leader-qualification i {
    color: var(--secondary);
}

.leader-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1rem 0;
    font-style: italic;
    padding: 0.75rem;
    background: rgba(79, 70, 229, 0.04);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
}

.leader-placeholder-message {
    opacity: 0.85;
    border-left-color: #cbd5e1;
    background: rgba(203, 213, 225, 0.08);
    color: #64748b;
}

.leader-image-wrap.has-placeholder {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.leader-image-wrap.has-placeholder .leader-image {
    opacity: 0.9;
}

.leader-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    color: rgba(255, 255, 255, 0.5);
    font-size: 4rem;
}

.leader-card.is-placeholder {
    opacity: 0.7;
    border: 2px dashed rgba(79, 70, 229, 0.2);
    position: relative;
}

.placeholder-text {
    background: linear-gradient(90deg, 
        rgba(203, 213, 225, 0.5) 0%, 
        rgba(203, 213, 225, 0.3) 50%, 
        rgba(203, 213, 225, 0.5) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    color: transparent;
    border-radius: 4px;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 200% 0;
    }
    50% {
        background-position: 0 0;
    }
}

.leader-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.leader-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.leader-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .leaders-grid {
        grid-template-columns: 1fr;
    }

    .leader-card {
        padding: 1.5rem;
    }

    .leader-image-wrap {
        height: 200px;
    }
}
}

.faculty-showcase-note strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.2;
    margin-bottom: 0.65rem;
}

.faculty-showcase-note > span:not(.gallery-note-eyebrow) {
    display: block;
    color: rgba(255,255,255,0.76);
    line-height: 1.8;
}

.faculty-note-points {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.faculty-note-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82);
}

.faculty-note-point i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    color: white;
    flex-shrink: 0;
}

.faculty-leadership-section {
    padding: 2rem 0 2.5rem;
    background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
}

.faculty-directory-section {
    padding: 0 0 4.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.faculty-directory-shell {
    padding: 1.45rem;
    background: rgba(255,255,255,0.96);
}

.faculty-directory-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.faculty-directory-head h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.faculty-directory-head p {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 48rem;
}

.faculty-results-note {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.faculty-filter-wrap {
    margin-bottom: 2rem;
}

/* Leadership Section */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.leadership-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(79, 70, 229, 0.08);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.leadership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.leadership-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 20px 40px rgba(79, 70, 229, 0.12);
}

.leadership-card .faculty-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50% !important;
    object-fit: cover;
    object-position: center;
    border: 4px solid var(--bg-light);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
    margin: 0 auto 1.5rem;
    display: block;
    transition: var(--transition);
    overflow: hidden;
}

.leadership-card:hover .faculty-avatar {
    transform: scale(1.05);
    border-color: var(--primary-light);
}

.leadership-card .avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
    flex-shrink: 0;
}

.leadership-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.leadership-card .role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.leadership-card .department {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.leadership-card .view-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.leadership-card .view-profile-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Faculty Filter */
.faculty-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    background: white;
    border: 2px solid rgba(79, 70, 229, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Faculty Grid */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.35rem;
}

.faculty-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.08);
    transition: var(--transition-bounce);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.faculty-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(14,165,233,0.08));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 48px rgba(15, 23, 42, 0.12);
}

.faculty-card:hover::before {
    opacity: 1;
}

.faculty-card.hidden {
    display: none;
}

.faculty-card-header {
    height: 126px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.16), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(125, 211, 252, 0.2), transparent 24%),
        linear-gradient(135deg, #4338ca, #2563eb 58%, #0ea5e9);
    border-radius: 24px 24px 0 0;
    position: relative;
}

.faculty-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

.faculty-card-avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -46px;
    position: relative;
    z-index: 10;
    height: 46px;
    margin-bottom: 46px;
}

.faculty-card-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    object-fit: cover;
    background: white;
}

.faculty-card-avatar-placeholder {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.95rem;
    font-weight: 700;
    color: white;
}

.faculty-card-body {
    padding: 0.4rem 1.25rem 1.35rem;
    text-align: center;
    flex: 1;
}

.faculty-card-subject {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(14, 165, 233, 0.14));
    color: #312e81;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.faculty-card-body h4 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.faculty-card-body .role {
    color: #4338ca;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
}

.faculty-card-body .department {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.faculty-card-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.faculty-subject-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.875rem;
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.faculty-card-footer {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 1.25rem 1.35rem;
    margin-top: auto;
}

.faculty-card-footer a {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    font-size: 0.9rem;
}

.faculty-card-footer a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Faculty Stats Section */
.faculty-stats-section {
    background: var(--bg-dark);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.faculty-stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.faculty-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.faculty-stat-item {
    text-align: center;
    color: white;
}

.faculty-stat-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faculty-stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.faculty-stat-item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

/* Faculty Page Mobile Responsive */
@media (max-width: 768px) {
    .faculty-showcase-grid,
    .faculty-showcase-metrics {
        grid-template-columns: 1fr;
    }

    .faculty-showcase-copy,
    .faculty-showcase-note,
    .faculty-directory-shell {
        padding: 1.15rem;
    }

    .faculty-directory-head {
        margin-bottom: 1rem;
    }

    .faculty-results-note {
        width: 100%;
        text-align: center;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .leadership-card {
        padding: 2rem 1.5rem;
    }

    .leadership-card .faculty-avatar,
    .leadership-card .avatar-placeholder {
        width: 100px;
        height: 100px;
    }

    .faculty-filter {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .faculty-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }

    .faculty-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }

    .faculty-stat-item i {
        font-size: 2rem;
    }

    .faculty-stat-item h3 {
        font-size: 1.75rem;
    }

    .faculty-stat-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .faculty-showcase-copy h2 {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .faculty-showcase-copy p {
        font-size: 0.98rem;
    }

    .faculty-grid {
        grid-template-columns: 1fr;
    }

    .faculty-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faculty-stat-item h3 {
        font-size: 1.5rem;
    }
}
