/* ===== SCHOOL MANAGEMENT SYSTEM - MODERN UI ===== */
:root {
    --primary: #0F2E7A;
    --primary-dark: #0F2E7A;
    --primary-light: #0F2E7A;
    --secondary: #64748b;
    --success: #10b981;
    --info: #06b6d4;
    --warning: #D9A11E;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #1e293b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 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 20px rgba(99, 102, 241, 0.3);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 50%, #f5f3ff 100%);
    background-attachment: fixed;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease forwards;
}

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

/* ===== NAVBAR - GLASSMORPHISM ===== */
.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: var(--radius);
    margin: 0 3px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.08);
}

.nav-link.btn-light {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: var(--shadow);
}

.nav-link.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
    height: 650px;
    overflow: hidden;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.hero-carousel .carousel-item {
    height: 650px;
    background-size: cover;
    background-position: center;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(79, 70, 229, 0.7) 100%);
}

.hero-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
    z-index: 2;
}

.hero-carousel .carousel-caption h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-carousel .carousel-caption p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-carousel .carousel-caption .btn {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* ===== GLASS CARDS ===== */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

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

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

/* ===== STATS CARDS ===== */
.stats-card {
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transition: all 0.4s ease;
}

.stats-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-xl);
}

.stats-card:hover::after {
    top: -30%;
    right: -30%;
}

.counter-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.counter-box:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.counter-box h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

/* ===== NEWS CARDS ===== */
.news-card {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    background: white;
}

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

.news-card .card-body {
    padding: 30px;
}

/* ===== EVENT CARDS ===== */
.event-card {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border-left: 4px solid var(--primary);
    background: white;
    overflow: hidden;
}

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

/* ===== FACILITY CARDS ===== */
.facility-card {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    background: white;
    position: relative;
}

.facility-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
    transition: height 0.4s ease;
    z-index: 0;
}

.facility-card:hover::after {
    height: 100%;
}

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

.facility-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.facility-card:hover .facility-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ===== AUTH SECTION ===== */
.auth-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: 50px 45px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    width: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.auth-card .form-control,
.auth-card .form-select {
    border-radius: var(--radius);
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.auth-card .input-group-text {
    border-radius: var(--radius) 0 0 var(--radius);
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-color: #e2e8f0;
    color: var(--primary);
    font-size: 1.1rem;
}

/*.sidebar {*/
/*    width: var(--sidebar-width);*/
/*    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);*/
/*    position: fixed;*/
/*    height: 130vh;*/
/*    overflow-y: auto;*/
/*    z-index: 1000;*/
/*    transition: all 0.3s ease;*/
/*    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);*/
/*}*/

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 4px 12px;
    border-radius: var(--radius);
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--warning);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-menu li a i {
    width: 25px;
    margin-right: 12px;
    font-size: 1rem;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 35px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
}

.content-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.5);
}

/* ===== AVATAR ===== */
.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* ===== CARDS ===== */
.card {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow);
    overflow: hidden;
    background: white;
    transition: all 0.4s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: white;
    border-bottom: 2px solid rgba(226, 232, 240, 0.5);
    padding: 25px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* ===== TABLES ===== */
.table {
    font-size: 0.9rem;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--primary);
    border-bottom: 2px solid #e2e8f0;
    padding: 18px 15px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
}

.table tbody td {
    padding: 18px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.table-hover tbody tr:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
    transform: scaleX(1.01);
    transition: all 0.2s ease;
}

/* ===== BADGES ===== */
.badge {
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-sm);
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}
 /*Mission and vision section start */

/* ── Section Background ── */
#mission-vision {
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4ff 30%, #f5f3ff 70%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

#mission-vision::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

#mission-vision::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Section Header ── */
.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(129, 140, 248, 0.1));
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

/* ── Mission/Vision Cards ── */
.mv-card {
    background: white;
    border-radius: 28px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    z-index: 1;
}

.mv-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* ── Card Header ── */
.mv-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.mv-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mission-icon {
    background: linear-gradient(135deg, #0F2E7A 0%, #0F2E7A 100%);
}

.vision-icon {
    background: linear-gradient(135deg, #D9A11E 0%, #D9A11E 100%);
}

.mv-card:hover .mv-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.mv-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 50px;
    color: white;
}

.mission-badge {
    background: linear-gradient(135deg, #0F2E7A, #0F2E7A);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.vision-badge {
    background: linear-gradient(135deg, #D9A11E, #D9A11E);
    box-shadow: 0 4px 15px rgba(201, 151, 30, 0.3);
}

/* ── Card Body ── */
.mv-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 0;
}

.mv-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 12px;
}

.mv-divider span {
    flex: 1;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.vision-mv-card .mv-divider span {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
}

.mv-divider::before,
.mv-divider::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
}

.vision-mv-card .mv-divider::before,
.vision-mv-card .mv-divider::after {
    background: var(--warning);
}

.mv-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #64748b;
    margin-bottom: 0;
}

/* ── Card Footer ── */
.mv-card-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.mv-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    transition: all 0.3s ease;
    cursor: default;
}

.mv-item:hover {
    transform: translateX(8px);
}

.mv-item span {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.mv-check {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mission-check {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.vision-check {
    background: linear-gradient(135deg, #D9A11E, #D9A11E);
    box-shadow: 0 4px 12px rgba(201, 151, 30, 0.3);
}

.mv-item:hover .mv-check {
    transform: scale(1.15) rotate(10deg);
}

/* ── Decorative Glow ── */
.mv-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.mission-glow {
    top: -50px;
    right: -50px;
    background: rgba(99, 102, 241, 0.15);
}

.vision-glow {
    bottom: -50px;
    left: -50px;
    background: rgba(245, 158, 11, 0.15);
}

.mv-card:hover .mv-glow {
    opacity: 1;
}

/* ── Decorative Pattern ── */
.mv-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.vision-mv-card .mv-pattern {
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f59e0b' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .mv-card { padding: 32px; border-radius: 24px; }
    .mv-icon { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 16px; }
    .mv-lead { font-size: 1.05rem; }
    .mv-body { font-size: 0.9rem; }
    .mv-item span { font-size: 0.9rem; }
    .display-5 { font-size: 2rem; }
}

@media (max-width: 767px) {
    .mv-card { padding: 28px; border-radius: 20px; }
    .mv-icon { width: 50px; height: 50px; font-size: 1.2rem; border-radius: 14px; }
    .mv-card-header { margin-bottom: 20px; }
    .mv-lead { font-size: 1rem; line-height: 1.7; }
    .mv-body { font-size: 0.88rem; }
    .mv-item { padding: 8px 0; }
    .mv-item span { font-size: 0.88rem; }
    .mv-check { width: 28px; height: 28px; font-size: 0.75rem; }
    .section-label { font-size: 0.8rem; padding: 6px 18px; }
    .display-5 { font-size: 1.75rem; }
    .py-lg-6 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
}

@media (max-width: 575px) {
    .mv-card { padding: 22px; border-radius: 18px; }
    .mv-icon { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; }
    .mv-badge { font-size: 0.7rem; padding: 4px 14px; letter-spacing: 1px; }
    .mv-lead { font-size: 0.95rem; }
    .mv-body { font-size: 0.85rem; line-height: 1.65; }
    .mv-item span { font-size: 0.85rem; }
    .mv-divider { margin: 18px 0; }
    .mv-card-footer { margin-top: 24px; padding-top: 18px; }
    .display-5 { font-size: 1.5rem; }
    .section-divider { width: 60px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .mv-card, .mv-icon, .mv-item, .mv-check {
        transition: none !important;
    }
    .mv-card:hover {
        transform: none;
    }
}



 /*Mission and vision section end */




.timeline {
    padding-left: 10px;
}

.timeline-line {
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 50%, var(--success) 100%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(6) {
    animation-delay: 0.5s;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
    z-index: 1;
}

.timeline-item:hover::before {
    transform: scale(1.3);
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.25);
}

.timeline-item .badge {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    margin-top: 6px;
}

/* Responsive Timeline */
@media (max-width: 991px) {
    .timeline-line {
        left: 6px;
    }

    .timeline-item::before {
        left: -8px;
        width: 12px;
        height: 12px;
    }

    .timeline-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .timeline {
        padding-left: 5px;
    }

    .timeline-line {
        left: 4px;
        width: 2px;
    }

    .timeline-item {
        padding-left: 1.25rem !important;
    }

    .timeline-item::before {
        left: -9px;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    .timeline-item .badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

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

@media (max-width: 575px) {
    .timeline-item {
        padding-left: 1rem !important;
    }

    .timeline-item::before {
        left: -7px;
        top: 4px;
    }

    .timeline-item .badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}





/* ── Background Gradients ── */
.bg-gradient-md {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient-md::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.bg-gradient-principal {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient-principal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Leader Profile ── */
.leader-profile {
    max-width: 280px;
}

.leader-avatar-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 4rem;
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.md-avatar {
    background: linear-gradient(135deg, #0F2E7A 0%, #0F2E7A 100%);
    box-shadow: 0 20px 60px rgba(13, 71, 161, 0.35);
}

.principal-avatar-img {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.35);
}

.leader-avatar-wrapper:hover .leader-avatar {
    transform: scale(1.08) rotate(3deg);
}

/* ── Leader Badge ── */
.leader-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    z-index: 3;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.leader-avatar-wrapper:hover .leader-badge {
    transform: scale(1.15) rotate(-10deg);
}

.md-avatar + .leader-badge {
    background: linear-gradient(135deg, #D9A11E, #D9A11E);
}

.principal-avatar-img + .leader-badge {
    background: linear-gradient(135deg, #0F2E7A, #0F2E7A);
}

/* ── Leader Ring ── */
.leader-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(99, 102, 241, 0.2);
    animation: spin 20s linear infinite;
    pointer-events: none;
}

.principal-ring {
    border-color: rgba(16, 185, 129, 0.2);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.leader-avatar-wrapper:hover .leader-ring {
    animation-duration: 8s;
    border-color: rgba(99, 102, 241, 0.4);
}

.leader-avatar-wrapper:hover .principal-ring {
    border-color: rgba(16, 185, 129, 0.4);
}

/* ── Social Links Modern ── */
.social-links-modern {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-md {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-md::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-md.linkedin {
    background: #0077b5;
}

.social-md.twitter {
    background: #1da1f2;
}

.social-md.email {
    background: #ef4444;
}

.social-md:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ── Message Content ── */
.message-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.md-content {
    border-left: 4px solid var(--primary);
}

.principal-content {
    border-right: 4px solid var(--success);
}

.message-content:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    transition: all 0.4s ease;
}

/* ── Quote Decoration ── */
.quote-decoration {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    line-height: 1;
    opacity: 0.08;
    pointer-events: none;
}

.md-content .quote-decoration {
    color: var(--primary);
}

.principal-content .quote-decoration {
    color: var(--success);
}

/* ── Title Styling ── */
.message-content h3 {
    font-size: 1.6rem;
    color: var(--dark);
    position: relative;
}

.title-line {
    display: inline-block;
    width: 4px;
    height: 32px;
    border-radius: 2px;
    margin-right: 15px;
    flex-shrink: 0;
}

.md-content .title-line {
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
}

.principal-content .title-line {
    background: linear-gradient(180deg, var(--success), #059669);
}

/* ── Text Styling ── */
.lead-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    font-weight: 500;
}

.body-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #64748b;
}

.body-text strong {
    color: var(--dark);
    font-weight: 600;
}

/* ── Message Footer ── */
.message-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.signature span:first-child {
    font-size: 1.1rem;
}

/* ── Button Glow ── */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.btn-glow:hover::after {
    width: 300px;
    height: 300px;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-success.btn-glow:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .leader-avatar-wrapper {
        width: 170px;
        height: 170px;
    }

    .leader-avatar {
        width: 150px;
        height: 150px;
        font-size: 3.5rem;
    }

    .leader-badge {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        bottom: 8px;
        right: 8px;
    }

    .leader-ring {
        inset: -8px;
    }

    .message-content {
        padding: 30px;
        border-radius: 20px;
    }

    .message-content h3 {
        font-size: 1.4rem;
    }

    .lead-text {
        font-size: 1rem;
    }

    .body-text {
        font-size: 0.9rem;
    }

    .quote-decoration {
        font-size: 3rem;
        top: 15px;
        right: 20px;
    }
}

@media (max-width: 767px) {
    .leader-avatar-wrapper {
        width: 150px;
        height: 150px;
    }

    .leader-avatar {
        width: 130px;
        height: 130px;
        font-size: 3rem;
    }

    .leader-badge {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .leader-ring {
        inset: -6px;
        border-width: 1.5px;
    }

    .message-content {
        padding: 25px;
        border-radius: 16px;
    }

    .message-content h3 {
        font-size: 1.2rem;
    }

    .title-line {
        height: 28px;
        margin-right: 12px;
    }

    .lead-text {
        font-size: 0.95rem;
    }

    .body-text {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .quote-decoration {
        font-size: 2.5rem;
    }

    .action-buttons .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .signature span:first-child {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .leader-avatar-wrapper {
        width: 130px;
        height: 130px;
    }

    .leader-avatar {
        width: 110px;
        height: 110px;
        font-size: 2.5rem;
    }

    .leader-badge {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
        border-width: 2px;
    }

    .leader-ring {
        display: none;
    }

    .message-content {
        padding: 20px;
        border-radius: 14px;
        border-left-width: 3px !important;
        border-right-width: 3px !important;
    }

    .message-content h3 {
        font-size: 1.1rem;
    }

    .title-line {
        height: 24px;
        width: 3px;
        margin-right: 10px;
    }

    .lead-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .body-text {
        font-size: 0.85rem;
    }

    .quote-decoration {
        font-size: 2rem;
        top: 10px;
        right: 15px;
    }

    .action-buttons {
        width: 100%;
    }

    .action-buttons .btn {
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0 !important;
    }

    .message-footer .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .social-md {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .leader-ring {
        animation: none;
    }

    .leader-avatar, .leader-badge, .social-md, .message-content {
        transition: none !important;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* ===== FORMS ===== */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 2px solid #e2e8f0;
    padding: 14px 18px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* ===== MODALS ===== */
.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 30px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 25px 30px;
    border-top: 2px solid #f1f5f9;
}


/* ===== ALERTS ===== */
.alert {
    border-radius: var(--radius);
    border: none;
    padding: 18px 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.3;
}

/* ===== SECTION TITLES ===== */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: #0F2E7A;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== TIMETABLE ===== */
.timetable-cell {
    min-height: 80px;
    border-radius: var(--radius);
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.timetable-cell:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.timetable-cell .subject-name {
    font-weight: 700;
    font-size: 0.85rem;
}

.timetable-cell .time-range {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* ===== ATTENDANCE STATUS ===== */
.status-present {
    color: var(--success);
    font-weight: 700;
}

.status-absent {
    color: var(--danger);
    font-weight: 700;
}

.status-late {
    color: var(--warning);
    font-weight: 700;
}

.status-excused {
    color: var(--info);
    font-weight: 700;
}

/* ===== GRADE COLORS ===== */
.grade-a-plus {
    color: #059669;
    font-weight: 800;
}

.grade-a {
    color: var(--primary);
    font-weight: 800;
}

.grade-b {
    color: var(--info);
    font-weight: 800;
}

.grade-c {
    color: var(--warning);
    font-weight: 800;
}

.grade-d {
    color: #ea580c;
    font-weight: 800;
}

.grade-f {
    color: var(--danger);
    font-weight: 800;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }


    .hero-carousel {
        height: 500px;
    }

    .hero-carousel .carousel-item {
        height: 500px;
    }

    .hero-carousel .carousel-caption h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 35px 25px;
    }

    .card {
        margin-bottom: 10px !important;
    }

    .main-content {
        padding: 25px;
    }

    .stats-card h3 {
        font-size: 1.8rem;
    }

    .hero-carousel .carousel-caption h1 {
        font-size: 2rem;
    }

    .hero-carousel .carousel-caption p {
        font-size: 1rem;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== DROPDOWNS ===== */
.dropdown-menu {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.dropdown-item {
    border-radius: var(--radius);
    padding: 12px 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
    color: var(--primary);
    transform: translateX(5px);
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    border-radius: var(--radius);
    margin: 0 4px;
    border: 2px solid #e2e8f0;
    color: var(--primary);
    font-weight: 600;
    padding: 10px 18px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== LIST GROUPS ===== */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 18px 20px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
    transform: translateX(5px);
}

/* ===== PROGRESS BARS ===== */
.progress {
    height: 10px;
    border-radius: 10px;
    background: #f1f5f9;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: width 0.6s ease;
}

/* ===== TOOLTIPS ===== */
.tooltip {
    --bs-tooltip-bg: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar, .navbar, .btn, footer {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   DASHBOARD ENHANCED ANIMATIONS & SMART CARDS
   Added: Animated admin dashboard components
   ═══════════════════════════════════════════════════════════════ */

/* ── Dashboard Layout Wrapper ── */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

/* ── Animated Sidebar ── */

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    margin: 0;
}

.sidebar-menu li {
    padding: 0 15px;
    margin-bottom: 5px;
    animation: slideInLeft 0.5s ease forwards;
    opacity: 0;
}

.sidebar-menu li:nth-child(1) {
    animation-delay: 0.1s;
}

.sidebar-menu li:nth-child(2) {
    animation-delay: 0.15s;
}

.sidebar-menu li:nth-child(3) {
    animation-delay: 0.2s;
}

.sidebar-menu li:nth-child(4) {
    animation-delay: 0.25s;
}

.sidebar-menu li:nth-child(5) {
    animation-delay: 0.3s;
}

.sidebar-menu li:nth-child(6) {
    animation-delay: 0.35s;
}

.sidebar-menu li:nth-child(7) {
    animation-delay: 0.4s;
}

.sidebar-menu li:nth-child(8) {
    animation-delay: 0.45s;
}

.sidebar-menu li:nth-child(9) {
    animation-delay: 0.5s;
}

.sidebar-menu li:nth-child(10) {
    animation-delay: 0.55s;
}

.sidebar-menu li:nth-child(11) {
    animation-delay: 0.6s;
}

.sidebar-menu li:nth-child(12) {
    animation-delay: 0.65s;
}

.sidebar-menu li:nth-child(13) {
    animation-delay: 0.7s;
}

.sidebar-menu li:nth-child(14) {
    animation-delay: 0.75s;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #e94560, transparent);
    transition: width 0.3s ease;
    border-radius: 12px;
}


.sidebar-menu a:hover::before,
.sidebar-menu a.active::before {
    width: 100%;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: #fff;
    background: rgba(233, 69, 96, 0.15);
    transform: translateX(5px);
}

.sidebar-menu a i {
    width: 28px;
    margin-right: 12px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.sidebar-menu a:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* ── Main Content Area ── */
/* ── Sidebar Default (100px) ── */
/*.sidebar {*/
/*    width: 120px;*/
/*    height: 100vh;*/
/*    position: fixed;*/
/*    background: linear-gradient(180deg, #1a1a2e, #16213e, #0f3460);*/
/*    color: white;*/
/*    transition: all 0.3s ease;*/
/*    overflow-x: hidden;*/
/*}*/

/* ── Sidebar Expanded (260px) ── */
.sidebar.expanded {
    width: 260px;
}

/* Menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin: 8px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    color: white;
    padding: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar-menu a i {
    min-width: 40px;
    text-align: center;
}

/* Hide text when collapsed */
.sidebar span {
    display: none;
}

/* Show text when expanded */
.sidebar.expanded span {
    display: inline;
}

/* Hover */
.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* Active */
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

/* ── Main Content Default ── */
.main-content {
    margin-left: 100px;
    padding: 30px;
    width: 95% !important;
    transition: all 0.3s ease;
}

/* ── Main Content Expanded ── */
.main-content.expanded {
    margin-left: 260px;
}


/* ── Content Header ── */
.content-header {
    background: white;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease 0.2s both;
    position: relative;
    overflow: hidden;
}

.content-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), transparent);
    border-radius: 0 0 0 100%;
}

/* ── Smart Stats Cards ── */
.stats-card-smart {
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    animation: cardAppear 0.6s ease forwards;
    opacity: 0;
}

.stats-card-smart:nth-child(1) {
    animation-delay: 0.3s;
}

.stats-card-smart:nth-child(2) {
    animation-delay: 0.4s;
}

.stats-card-smart:nth-child(3) {
    animation-delay: 0.5s;
}

.stats-card-smart:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stats-card-smart::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    transition: all 0.5s ease;
    opacity: 0;
}

.stats-card-smart:hover::before {
    opacity: 1;
    top: -30%;
    right: -30%;
}

.stats-card-smart:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.stats-card-smart .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.stats-card-smart:hover .icon-wrapper {
    transform: rotate(15deg) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.stats-card-smart .counter {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.stats-card-smart .label {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ── Gradient Card Variants ── */
.gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.gradient-info {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

/* ── Floating Particles ── */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 0.6;
    }
}

/* ── Smart Table Card ── */
.smart-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.smart-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.smart-card .card-header {
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    background: white;
}

/* ── Animated Table ── */
.animated-table tbody tr {
    transition: all 0.3s ease;
    animation: rowSlide 0.5s ease forwards;
    opacity: 0;
}

.animated-table tbody tr:nth-child(1) {
    animation-delay: 0.1s;
}

.animated-table tbody tr:nth-child(2) {
    animation-delay: 0.15s;
}

.animated-table tbody tr:nth-child(3) {
    animation-delay: 0.2s;
}

.animated-table tbody tr:nth-child(4) {
    animation-delay: 0.25s;
}

.animated-table tbody tr:nth-child(5) {
    animation-delay: 0.3s;
}

@keyframes rowSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animated-table tbody tr:hover {
    background: linear-gradient(90deg, #f8f9ff, #fff0f3);
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 10;
    position: relative;
}

/* ── Avatar with Pulse ── */
.avatar-pulse {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.avatar-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: pulseRing 2s ease infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* ── Notice Items ── */
.notice-item-smart {
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.notice-item-smart:hover {
    background: #f8f9ff;
    border-left-color: #e94560;
    transform: translateX(5px);
}

/* ── Shimmer Text Effect ── */
.shimmer-text {
    background: linear-gradient(90deg, #fff 25%, rgba(255, 255, 255, 0.5) 50%, #fff 75%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s infinite;
}

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

/* ── Animated Progress Bar ── */
.progress-animate {
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    overflow: hidden;
    margin-top: 10px;
}

.progress-animate .bar {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    animation: progressGrow 1.5s ease forwards;
    transform-origin: left;
}


.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-carousel .carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.9) 0%, rgba(34, 74, 190, 0.85) 100%);
}

.hero-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
    z-index: 2;
}

.hero-carousel .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-carousel .carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.counter-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.counter-box:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.counter-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.news-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.news-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.event-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.event-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.facility-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}


@keyframes progressGrow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* ── Responsive Dashboard ── */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar-menu {
        margin-left: -25px !important;
    }

    .toggle-btn {
        margin-left: -5px !important;
    }

    .sidebar-menu a span {
        display: none;
    }

    .main-content {
        margin-left: 70px;
        padding: 15px;
        width: 100% !important;
    }

    .stats-card-smart .counter {
        font-size: 1.5rem;
    }
}



/* ============================================
   ADMIN DASHBOARD STYLES
   ============================================ */

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ---------- SIDEBAR (Desktop Default) ---------- */
.sidebar {
    width: 100px;           /* Collapsed by default */
    background: linear-gradient(180deg, #1a1a2e, #16213e, #0f3460);
    color: #fff;
    transition: width 0.3s ease;
    position: fixed;
    height: 90vh;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
}




.sidebar.expanded {
    width: 250px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    animation: fadeInUp 0.6s ease;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0, 0, 0, 0.1);
}

.toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 10px 14px;
}



/* Hide text when collapsed */
.sidebar .sidebar-menu li a span {
    display: none;
    white-space: nowrap;
}

.sidebar.expanded .sidebar-menu li a span {
    display: inline;
    margin-left: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin-left: -20px !important;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px;
    color: #b8b8b8;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: #16213e;
    color: #fff;
    /*border-left: 3px solid #e94560;*/
    border-left-color: var(--warning);
}

.sidebar-menu li a i {
    min-width: 30px;
    text-align: center;
    font-size: 18px;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
    /*margin-left: 60px;     !* Match collapsed sidebar width *!*/
    padding: 20px;
    width: calc(100% - 60px);
    transition: margin-left 0.3s ease, width 0.3s ease;
    min-height: 100vh;
}

.main-content.expanded {
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* ============================================
   MOBILE STYLES (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

    /* Sidebar becomes overlay on mobile */
    .sidebar {
        width: 0;          /* Hidden by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
    }

    .sidebar.expanded {
        width: 250px;      /* Show when toggled */
    }

    /* Main content takes full width */
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .main-content.expanded {
        margin-left: 0;    /* Don't shift content on mobile */
        width: 100%;
    }

    /* Toggle button visible on mobile */
    .toggle-btn {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: #1a1a2e;
        padding: 10px 15px;
        border-radius: 5px;
    }

    /* Add overlay when sidebar is open */
    .sidebar.expanded::after {
        content: '';
        position: fixed;
        top: 0;
        left: 250px;
        width: calc(100% - 250px);
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    /* Show text when sidebar is expanded on mobile */
    .sidebar.expanded .sidebar-menu li a span {
        display: inline;
    }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .main-content {
        padding: 15px;
        padding-top: 60px;  /* Space for toggle button */
    }

    .sidebar.expanded {
        width: 200px;
    }
}