:root {
    --primary: #1E3A8A; /* Deep Royal Blue */
    --primary-light: #3B5BA5;
    --primary-dark: #0F2B66;
    --secondary: #F59E0B; /* Amber */
    --secondary-light: #FBBF24;
    --accent: #DC2626; /* Red */
    --dark: #111827;
    --light: #F9FAFB;
    --gray: #6B7280;
    --border: #E5E7EB;
    --success: #059669;
    --shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.02);
    --shadow-hover: 0 20px 30px -10px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #1F2937;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Professional Header with Enhanced Colors */
.top-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #FFFFFF;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 3px solid var(--secondary);
    position: relative;
    z-index: 1001;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMzAgMTBhMjAgMjAgMCAwIDEgMjAgMjAgMjAgMjAgMCAwIDEtNDAgMCAyMCAyMCAwIDAgMSAyMC0yMHoiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wMykiLz48L3N2Zz4=');
    opacity: 0.1;
}

.top-bar .contact-info a {
    color: #FFFFFF;
    text-decoration: none;
    margin-right: 25px;
    transition: all 0.3s;
    font-weight: 500;
    opacity: 0.95;
    position: relative;
    padding: 5px 0;
}

.top-bar .contact-info a:hover {
    color: var(--secondary);
    opacity: 1;
    transform: translateY(-1px);
}

.top-bar .contact-info i {
    margin-right: 8px;
    color: var(--secondary);
}

.top-bar .social-links a {
    color: #FFFFFF;
    margin-left: 20px;
    font-size: 15px;
    transition: all 0.3s;
    opacity: 0.9;
    display: inline-block;
}

.top-bar .social-links a:hover {
    color: var(--secondary);
    opacity: 1;
    transform: translateY(-3px) scale(1.1);
}

.main-header {
    background: linear-gradient(135deg, #FFFFFF 0%, #F3F4F6 100%);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-wrapper img {
    max-height: 80px;
    transition: all 0.3s;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.logo-wrapper img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 8px rgba(0,0,0,0.15));
}

.school-title h1 {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.2;
}

.school-title p {
    font-size: 14px;
    color: var(--gray);
    margin: 5px 0 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.school-title p i {
    color: var(--secondary);
    margin-right: 5px;
}

.header-badge {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--primary-dark);
    padding: 12px 25px;
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(245,158,11,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(245,158,11,0.3); }
    50% { box-shadow: 0 4px 20px rgba(245,158,11,0.5); }
    100% { box-shadow: 0 4px 15px rgba(245,158,11,0.3); }
}

.header-badge span {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-top: 3px;
}

/* Navigation with Enhanced Colors */
.nav-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 4px 15px rgba(30,58,138,0.3);
    position: sticky;
    top: 115px;
    z-index: 999;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.95) !important;
    font-weight: 600;
    padding: 16px 20px !important;
    transition: all 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover {
    color: #FFFFFF !important;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: #FFFFFF !important;
    background: var(--secondary);
    position: relative;
}

.navbar-nav .nav-link.active::after {
    display: none;
}

.navbar-nav .nav-link i {
    margin-right: 8px;
    color: var(--secondary);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 10px 0;
    margin-top: 5px;
    border: 1px solid var(--border);
    animation: dropdownFade 0.3s;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, var(--light), #FFFFFF);
    color: var(--primary);
    padding-left: 30px;
}

.dropdown-item i {
    color: var(--secondary);
    width: 20px;
    margin-right: 10px;
}

/* Announcement Ticker */
.announcement-wrapper {
    background: linear-gradient(90deg, #FEF3C7, #FFFBEB);
    border-bottom: 2px solid var(--secondary);
    padding: 0;
}

.ticker {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 50px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid var(--border);
}

.ticker-label {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--primary-dark);
    padding: 12px 30px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    border-radius: 50px 0 0 50px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.ticker-content {
    flex: 1;
    padding: 0 20px;
    overflow: hidden;
}

.ticker-content marquee {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.ticker-content marquee a {
    color: var(--primary);
    text-decoration: none;
    margin-right: 40px;
    transition: color 0.3s;
    font-weight: 500;
}

.ticker-content marquee a:hover {
    color: var(--accent);
}

.ticker-content marquee i {
    color: var(--accent);
    font-size: 8px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Popup Styles */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.welcome-popup.active {
    display: flex;
}

.popup-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: popupSlideIn 0.5s ease;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
    text-align: center;
}

.popup-header h3 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.popup-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-popup:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.popup-body {
    padding: 30px;
}

.welcome-message {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-message i {
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 20px;
}

.welcome-message p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.popup-messages {
    text-align: left;
    margin-top: 20px;
}

.message-line {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.message-line:last-child {
    border-bottom: none;
}

.message-text a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.message-text a:hover {
    color: var(--accent);
}

.message-text i {
    color: var(--accent);
    margin-right: 10px;
}

.popup-footer {
    text-align: center;
    margin-top: 20px;
}

.start-exploring {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.start-exploring:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* Hero Slider - Height 400px */
.hero-slider {
    margin-top: 0;
    width: 100%;
}

.carousel-item {
    height: 400px;
    background-color: #f5f5f5;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Remove overlay completely */
.carousel-item::before {
    display: none;
}

/* Optional caption styling */
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    bottom: 50px;
    left: 10%;
    right: 10%;
    max-width: 80%;
    margin: 0 auto;
}

.carousel-caption h3 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 18px;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
}

.carousel-indicators button.active {
    background-color: var(--secondary);
}

/* No Slider Banner */
.no-slider-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.no-slider-banner h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.no-slider-banner p {
    font-size: 20px;
    opacity: 0.95;
}

/* Section Titles */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Quick Stats */
.stats-wrapper {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 0;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.stats-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMzAgMTBhMjAgMjAgMCAwIDEgMjAgMjAgMjAgMjAgMCAwIDEtNDAgMCAyMCAyMCAwIDAgMSAyMC0yMHoiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    opacity: 0.1;
}

.stat-item {
    text-align: center;
    color: white;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 16px;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Team Section Full Width - Fixed Photo Frames */
.team-section {
    background: var(--light);
    padding: 70px 0;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
}

.team-section .container-fluid {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.team-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.team-member {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid var(--border);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.member-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    border-bottom: 3px solid var(--secondary);
    background-color: #f0f0f0;
}

.member-info {
    padding: 20px 15px;
}

.member-info h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.member-info p {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
}

/* Quick Access Portal - Full Width with Vibrant Colors */
.quick-access-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc, #eef2f6);
    width: 100%;
    position: relative;
}

.quick-access-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.quick-access-card {
    display: block;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border: none;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quick-access-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 40px rgba(0,0,0,0.3);
}

.quick-access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.quick-access-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.quick-access-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.quick-access-card p {
    font-size: 14px;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Vibrant Colors - No SVG, Pure Gradients */
.btn-color-1 { 
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    box-shadow: 0 10px 20px rgba(255,65,108,0.3);
}
.btn-color-1:hover { background: linear-gradient(135deg, #FF4B2B, #FF416C); }

.btn-color-2 { 
    background: linear-gradient(135deg, #1A2980, #26D0CE);
    box-shadow: 0 10px 20px rgba(26,41,128,0.3);
}
.btn-color-2:hover { background: linear-gradient(135deg, #26D0CE, #1A2980); }

.btn-color-3 { 
    background: linear-gradient(135deg, #56ab2f, #a8e063);
    box-shadow: 0 10px 20px rgba(86,171,47,0.3);
}
.btn-color-3:hover { background: linear-gradient(135deg, #a8e063, #56ab2f); }

.btn-color-4 { 
    background: linear-gradient(135deg, #f12711, #f5af19);
    box-shadow: 0 10px 20px rgba(241,39,17,0.3);
}
.btn-color-4:hover { background: linear-gradient(135deg, #f5af19, #f12711); }

.btn-color-5 { 
    background: linear-gradient(135deg, #7F00FF, #E100FF);
    box-shadow: 0 10px 20px rgba(127,0,255,0.3);
}
.btn-color-5:hover { background: linear-gradient(135deg, #E100FF, #7F00FF); }

.btn-color-6 { 
    background: linear-gradient(135deg, #00B4DB, #0083B0);
    box-shadow: 0 10px 20px rgba(0,180,219,0.3);
}
.btn-color-6:hover { background: linear-gradient(135deg, #0083B0, #00B4DB); }

/* Border for Admission Card */
.admission-card {
    border: 3px solid var(--primary) !important;
    box-shadow: 0 10px 30px rgba(30,58,138,0.15) !important;
}

.admission-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.admission-header h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.admission-header h3 i {
    margin-right: 15px;
    font-size: 30px;
    color: var(--secondary);
}

.view-all-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.view-all-btn:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    border-color: var(--secondary);
    transform: translateX(5px);
}

.admission-body {
    padding: 20px;
    background: #F9FAFB;
}

.notification-scroll {
    height: 400px;
    overflow: hidden;
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 5px;
}

.notification-list {
    animation: scrollUp 20s linear infinite;
    padding: 10px;
}

.notification-list:hover {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #FFFFFF;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.notification-item:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: var(--shadow);
    border-color: var(--primary);
    background: linear-gradient(90deg, #FFFFFF, #F0F7FF);
}

.notification-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(30,58,138,0.2);
}

.notification-content {
    flex: 1;
}

.notification-content a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    display: block;
}

.notification-content a:hover {
    color: var(--primary);
}

.notification-date {
    font-size: 12px;
    color: var(--gray);
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.notification-date i {
    margin-right: 5px;
    font-size: 10px;
    color: var(--success);
}

.new-badge {
    background: linear-gradient(135deg, var(--accent), #EF4444);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 15px;
    box-shadow: 0 2px 5px rgba(220,38,38,0.3);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.download-icon {
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light);
}

.download-icon:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Facilities Section */
.facilities-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #F9FAFB, #FFFFFF);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.facility-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.facility-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(30,58,138,0.1);
    border-color: var(--primary);
}

.facility-card:hover::before {
    transform: scaleX(1);
}

.facility-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(30,58,138,0.1), rgba(245,158,11,0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 32px;
    transition: all 0.4s;
}

.facility-card:hover .facility-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    transform: rotateY(180deg);
}

.facility-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.facility-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.facility-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.facility-features span {
    background: var(--light);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
}

.facility-features span i {
    color: var(--success);
    margin-right: 5px;
    font-size: 10px;
}

.government-initiatives {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    padding: 40px;
    margin-top: 50px;
    color: white;
    box-shadow: 0 20px 40px rgba(30,58,138,0.3);
}

.government-initiatives h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.government-initiatives h4 i {
    color: var(--secondary);
    margin-right: 10px;
}

.government-initiatives p {
    opacity: 0.95;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* Helpdesk Section */
.helpdesk-section {
    background: white;
    padding: 70px 0;
}

.helpdesk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.helpdesk-card {
    background: linear-gradient(135deg, #FFFFFF, var(--light));
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.helpdesk-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.helpdesk-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(30,58,138,0.2);
}

.helpdesk-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.helpdesk-card p {
    color: var(--gray);
    margin-bottom: 8px;
    font-size: 15px;
}

.helpdesk-card small {
    color: var(--secondary);
    font-weight: 600;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--primary-dark), #0A1A3A);
    color: white;
    padding: 70px 0 20px;
    position: relative;
}

.footer-title {
    color: var(--secondary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--secondary);
    margin-right: 12px;
    width: 20px;
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-wrapper {
        top: 100px;
    }
    
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .helpdesk-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        bottom: 30px;
        padding: 15px;
    }
    
    .carousel-caption h3 {
        font-size: 24px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .admission-header {
        flex-direction: column;
        text-align: center;
    }
    
    .no-slider-banner {
        height: 350px;
    }
    
    .no-slider-banner h2 {
        font-size: 32px;
    }
    
    .quick-access-card {
        min-height: 160px;
        padding: 20px 15px;
    }
    
    .quick-access-card h4 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .ticker-label {
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption h3 {
        font-size: 20px;
    }
    
    .carousel-caption {
        bottom: 20px;
        padding: 10px;
    }
    
    .no-slider-banner {
        height: 250px;
    }
    
    .no-slider-banner h2 {
        font-size: 24px;
    }
    
    .government-initiatives {
        padding: 30px 20px;
        text-align: center;
    }
    
    .quick-access-card {
        min-height: 150px;
    }
}

/* ===== MOBILE PHOTO FIX - ADDED AT THE END ===== */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .member-photo {
        height: 180px !important;
        width: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        background-color: #f5f5f5 !important;
        border-bottom: 3px solid var(--secondary) !important;
    }
}
@media (max-width: 576px) {
    .member-photo {
        height: 160px !important;
    }
    .member-info h5 {
        font-size: 14px !important;
    }
    .member-info p {
        font-size: 11px !important;
    }
}
@media (max-width: 380px) {
    .member-photo {
        height: 140px !important;
    }
}


/* ============================================
   EVENTS SECTION - PROFESSIONAL STYLES
   ============================================ */

/* Section Styling */
.events-section {
    background: #f8fafc;
    padding: 80px 0;
    position: relative;
}

/* Section Title */
.events-section .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8edf2;
    position: relative;
}

.events-section .section-title h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a2332;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.events-section .section-title h4:first-child {
    color: #2c7be5;
    position: relative;
    padding-left: 15px;
}

.events-section .section-title h4:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #2c7be5;
    border-radius: 2px;
}

.events-section .section-title h4 a {
    color: #2c7be5;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.events-section .section-title h4 a:hover {
    color: #1a5fc7;
    text-decoration: underline;
}

/* ============================================
   BLOG POST CARDS - FIXED DIMENSIONS
   ============================================ */

.single-blog-post {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f6;
}

.single-blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(44, 123, 229, 0.12);
    border-color: #dce5f0;
}

/* ============================================
   FIXED IMAGE CONTAINER
   ============================================ */

.post-image {
    position: relative;
    overflow: hidden;
    background: #eef2f6;
    flex-shrink: 0;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 220px; /* FIXED HEIGHT */
    overflow: hidden;
    background: #f0f3f7;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers area without distortion */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.single-blog-post:hover .image-wrapper img {
    transform: scale(1.05);
}

/* Image Overlay Effect */
.post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.05));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.single-blog-post:hover .post-image::after {
    opacity: 1;
}

/* ============================================
   POST CONTENT - FIXED TITLE & DESCRIPTION
   ============================================ */

.post-content {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* --- FIXED TITLE LENGTH --- */
.post-content h3 {
    margin: 0 0 12px 0;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: #1a2332;
    height: 48px; /* FIXED HEIGHT for 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* LIMIT TO 2 LINES */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-word;
}

.post-content h3 a {
    color: #1a2332;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.post-content h3 a:hover {
    color: #2c7be5;
}

/* --- FIXED DESCRIPTION LENGTH --- */
.post-content .event-description {
    font-size: 14px;
    line-height: 1.6;
    color: #5e6f8d;
    margin: 0 0 16px 0;
    height: 44px; /* FIXED HEIGHT for 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* LIMIT TO 2 LINES */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-word;
    flex: 0 0 auto;
}

/* --- LEARN MORE BUTTON --- */
.post-content .event-date {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #2c7be5;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f3f7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 6px;
}

.post-content .event-date::after {
    content: '→';
    transition: transform 0.3s ease;
    font-size: 14px;
}

.post-content .event-date:hover {
    color: #1a5fc7;
}

.post-content .event-date:hover::after {
    transform: translateX(5px);
}

/* ============================================
   RESPONSIVE GRID
   ============================================ */

@media (max-width: 1199px) {
    .image-wrapper {
        height: 200px;
    }
    
    .post-content h3 {
        font-size: 16px;
        height: 44px;
    }
}

@media (max-width: 991px) {
    .events-section {
        padding: 60px 0;
    }
    
    .image-wrapper {
        height: 190px;
    }
    
    .post-content h3 {
        font-size: 15px;
        height: 42px;
    }
    
    .post-content .event-description {
        font-size: 13px;
        height: 40px;
    }
    
    .events-section .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 767px) {
    .events-section {
        padding: 40px 0;
    }
    
    .events-section .section-title h4 {
        font-size: 16px;
    }
    
    .image-wrapper {
        height: 180px;
    }
    
    .post-content {
        padding: 16px 18px 20px;
    }
    
    .post-content h3 {
        font-size: 15px;
        height: 42px;
        margin-bottom: 8px;
    }
    
    .post-content .event-description {
        font-size: 13px;
        height: 38px;
        margin-bottom: 12px;
    }
    
    .post-content .event-date {
        font-size: 12px;
        padding-top: 10px;
    }
}

@media (max-width: 575px) {
    .events-section {
        padding: 30px 0;
    }
    
    .image-wrapper {
        height: 200px;
    }
    
    .post-content h3 {
        font-size: 14px;
        height: 40px;
    }
    
    .post-content .event-description {
        font-size: 12.5px;
        height: 36px;
    }
    
    .single-blog-post {
        border-radius: 8px;
    }
}

/* ============================================
   PAGINATION STYLING
   ============================================ */

.pagination {
    margin-top: 30px !important;
}

.pagination .page-item .page-link {
    color: #1a2332;
    border: 1px solid #e8edf2;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #ffffff;
    border-radius: 6px;
    margin: 0 3px;
}

.pagination .page-item .page-link:hover {
    background: #f0f6ff;
    border-color: #2c7be5;
    color: #2c7be5;
}

.pagination .page-item.active .page-link {
    background: #2c7be5;
    border-color: #2c7be5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(44, 123, 229, 0.3);
}

.pagination .page-item.active .page-link:hover {
    background: #1a5fc7;
    border-color: #1a5fc7;
    color: #ffffff;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.single-blog-post {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.single-blog-post:nth-child(1) { animation-delay: 0.1s; }
.single-blog-post:nth-child(2) { animation-delay: 0.2s; }
.single-blog-post:nth-child(3) { animation-delay: 0.3s; }
.single-blog-post:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Add this if you want a subtle gradient background */
.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #2c7be5, #6c8ce9, #a8bff5);
    opacity: 0.6;
}

/* For better spacing in the grid */
.row.gap-3 {
    --bs-gap: 1rem;
}