/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Professional Palette */
    --primary-color: #0a66c2;
    /* Deep Indigo Professional Blue */
    --primary-light: #e7f3ff;
    --primary-dark: #004182;
    --secondary-color: #00bfa5;
    /* Vibrant Medicine Teal */
    --accent-color: #ff6b6b;
    /* Energy Coral/Red */
    --gold-color: #f1c40f;
    /* Excellence Gold */
    --text-color: #1a202c;
    --light-text: #64748b;
    --white: #ffffff;
    --bg-light: #f0f7ff;
    --bg-gradient: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    --gradient-primary: linear-gradient(135deg, #0a66c2 0%, #00bfa5 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    --shadow: 0 20px 40px rgba(10, 102, 194, 0.1);
    --shadow-hover: 0 30px 60px rgba(10, 102, 194, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fafbfc;
    overflow-x: hidden;
}

::selection {
    background: var(--primary-color);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 15px;
    letter-spacing: -1px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.section-title p {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white) !important;
    box-shadow: 0 10px 20px rgba(10, 102, 194, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: var(--white) !important;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.3);
}

/* News Ticker */
.news-ticker {
    background: #f1f7ff;
    padding: 10px 0;
    border-bottom: 1px solid #e1e8f0;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ticker-label {
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 4px;
    white-space: nowrap;
    position: relative;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid var(--accent-color);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
}

.ticker-item {
    margin-right: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
}

.ticker-item i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Event Cards Hook */
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.event-card:hover h4 {
    color: var(--primary-color);
}

/* Courses Cards */
.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 74, 173, 0.05);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 74, 173, 0.15);
}

.course-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-img img {
    transform: scale(1.1);
}

.course-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-body {
    padding: 25px;
}

.course-body h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.eligibility {
    margin-bottom: 20px;
}

.eligibility strong {
    display: block;
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.eligibility strong i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.eligibility p {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.5;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white !important;
}

/* Mosaic Gallery Grid - Compact & No Gaps */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 155px;
    gap: 5px;
    /* Tighter gap */
    grid-auto-flow: dense;
    /* Automatically fills holes/gaps */
}

.home-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    height: 100%;
}

/* Specific Spans for 6-column Mosaic (Desktop) */
.home-gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.home-gallery-item:nth-child(2) {
    grid-column: span 2;
}

.home-gallery-item:nth-child(5) {
    grid-row: span 2;
}

.home-gallery-item:nth-child(8) {
    grid-column: span 2;
}

.home-gallery-item:nth-child(12) {
    grid-column: span 2;
}

.home-gallery-item:nth-child(15) {
    grid-row: span 2;
}

.home-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Removes baseline gap */
    transition: var(--transition);
}

.home-gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 102, 194, 0.4), rgba(0, 191, 165, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.home-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 992px) {
    .mosaic-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 140px;
    }
}

@media (max-width: 768px) {
    .mosaic-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 120px;
        gap: 8px;
        padding: 0 10px;
    }

    /* Reset/Adjust Spans for 3-col Mobile */
    .home-gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .home-gallery-item:nth-child(3) {
        grid-column: span 1;
        grid-row: span 2;
    }

    .home-gallery-item:nth-child(4) {
        grid-column: span 3;
        grid-row: span 1;
    }

    .home-gallery-item:nth-child(10) {
        grid-column: span 2;
    }
}

/* Facility Cards with Images */
.facility-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(10, 102, 194, 0.05);
}

.facility-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.facility-img {
    height: 160px;
    /* Smaller image height */
    position: relative;
    overflow: hidden;
}

.facility-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.facility-card:hover .facility-img img {
    transform: scale(1.1);
}

.facility-icon-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    /* Slightly smaller badge */
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 74, 173, 0.3);
}

.facility-info {
    padding: 20px;
}

/* Principal's Message */
.principal-message {
    padding: 100px 0;
    background: white;
}

.principal-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #fdfdfd;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

.principal-img {
    flex: 0 0 350px;
    position: relative;
}

.principal-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--primary-color);
}

.principal-text {
    flex: 1;
}

.principal-text .quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.15;
    margin-bottom: -20px;
    display: block;
}

.principal-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.principal-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.principal-name {
    margin-top: 30px;
}

.principal-name h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.principal-name span {
    color: var(--secondary-color);
    font-weight: 600;
}

@media (max-width: 992px) {
    .principal-flex {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

    .principal-img {
        flex: 0 0 auto;
        width: 250px;
        margin-bottom: 40px;
    }

    .principal-img img {
        box-shadow: 15px 15px 0 var(--primary-color);
    }
}

@media (max-width: 768px) {
    .facility-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 items per row on mobile */
        gap: 15px !important;
    }

    .facility-img {
        height: 120px;
        /* Shorter height for mobile grid */
    }

    .facility-info {
        padding: 12px;
    }

    .facility-info h4 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .facility-info p {
        font-size: 0.8rem;
    }
}

.facility-info h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.facility-info p {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.6;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1010;
    transition: var(--transition);
}

header.sticky {
    padding: 2px 0;
    background: rgba(255, 255, 255, 0.98);
}

.top-bar {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 5px 0;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 3px solid var(--secondary-color);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-social a {
    margin-left: 15px;
    opacity: 0.8;
}

.top-social a:hover {
    opacity: 1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    /* Increased padding */
    gap: 60px;
    /* Minimum gap between sections */
}

/* Logo - Far Left */
.logo {
    flex-shrink: 0;
    /* Prevent logo from shrinking */
    margin-right: auto;
    /* Push to far left */
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    /* Prevent wrapping */
}

.logo span {
    color: var(--secondary-color);
    font-weight: 300;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation - Center */
.nav-links {
    display: flex;
    gap: 30px;
    /* Increased gap between menu items */
    align-items: center;
    justify-content: center;
    flex: 1;
    /* Take available space */
    margin: 0 60px;
    /* Add spacing from logo and button */
}

/* Desktop Navigation Links */
.nav-links li {
    position: relative;
}

.nav-links li a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a.active {
    color: var(--primary-color);
}

/* Chevron Icon Animation */
.nav-links li a .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-links li:hover>a .fa-chevron-down {
    transform: rotate(180deg);
}

/* Submenu Styles - Premium Design */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 260px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(10, 102, 194, 0.15);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(10, 102, 194, 0.1);
    overflow: hidden;
}

/* Submenu Gradient Border Effect */
.submenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

/* Show Submenu on Hover */
.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu Items */
.submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Submenu Item Icons */
.submenu li a i {
    font-size: 0.9rem;
    color: var(--primary-color);
    width: 20px;
    transition: all 0.3s ease;
}

/* Submenu Hover Effect with Gradient */
.submenu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(10, 102, 194, 0.1) 0%, rgba(0, 191, 165, 0.1) 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.submenu li a:hover::before {
    width: 100%;
}

.submenu li a:hover {
    color: var(--primary-color);
    padding-left: 30px;
    background: linear-gradient(90deg, rgba(10, 102, 194, 0.05) 0%, transparent 100%);
}

.submenu li a:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--secondary-color);
}

/* Staggered Animation for Submenu Items */
.has-submenu:hover .submenu li {
    animation: slideInSubmenu 0.4s ease forwards;
    opacity: 0;
}

.has-submenu:hover .submenu li:nth-child(1) {
    animation-delay: 0.05s;
}

.has-submenu:hover .submenu li:nth-child(2) {
    animation-delay: 0.10s;
}

.has-submenu:hover .submenu li:nth-child(3) {
    animation-delay: 0.15s;
}

.has-submenu:hover .submenu li:nth-child(4) {
    animation-delay: 0.20s;
}

.has-submenu:hover .submenu li:nth-child(5) {
    animation-delay: 0.25s;
}

.has-submenu:hover .submenu li:nth-child(6) {
    animation-delay: 0.30s;
}

@keyframes slideInSubmenu {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Submenu Divider (Optional Enhancement) */
.submenu li:not(:last-child) {
    border-bottom: 1px solid rgba(10, 102, 194, 0.05);
}

/* Header Apply Now Button - Far Right */
.header-btns {
    flex-shrink: 0;
    /* Prevent button from shrinking */
    margin-left: auto;
    /* Push to far right */
}

.header-btns .btn {
    padding: 12px 30px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), #00d4aa);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 191, 165, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevent text wrapping */
    border: none;
}

.header-btns .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 191, 165, 0.4);
    background: linear-gradient(135deg, #00d4aa, var(--secondary-color));
}

.header-btns .btn:active {
    transform: translateY(0);
}

/* Mobile Toggle & Close (Central Control) */
.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary-color);
    z-index: 1003;
    padding: 5px;
}

.mobile-close {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    height: 85vh;
    overflow: hidden;
    background: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Slide Background with Ken Burns Effect */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Slide Overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
}

/* Hero Content */
.hero-slide .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-content .badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 191, 165, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1.5px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.hero-btns .btn {
    width: 100%;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-btns .btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #00d4aa);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 191, 165, 0.4);
}

.hero-btns .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 191, 165, 0.5);
}

.hero-btns .btn-white {
    background: white;
    color: var(--primary-color);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.hero-btns .btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 191, 165, 0.4);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    width: 35px;
    border-radius: 10px;
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 900;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 20px;
        /* Reduced padding for mobile */
        gap: 20px;
    }

    /* Hide desktop Apply Now button on mobile */
    .header-btns {
        display: none;
    }

    /* Hide desktop navigation */
    .nav-links {
        margin: 0;
        /* Remove desktop margins */
    }

    .mobile-toggle {
        display: block;
        z-index: 2005;
        /* Always visible to open */
        font-size: 1.8rem;
        color: var(--primary-color);
        transition: var(--transition);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* Premium Gradient Background */
        background: linear-gradient(135deg,
                rgba(10, 102, 194, 0.97) 0%,
                rgba(0, 74, 173, 0.97) 50%,
                rgba(0, 191, 165, 0.95) 100%);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 80px 20px 30px;
        /* Reduced top padding from 120px for better visibility */
        z-index: 2000;
        clip-path: circle(0% at calc(100% - 40px) 45px);
        transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        gap: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        /* Subtle Pattern Overlay */
        background-image:
            linear-gradient(135deg,
                rgba(10, 102, 194, 0.97) 0%,
                rgba(0, 74, 173, 0.97) 50%,
                rgba(0, 191, 165, 0.95) 100%),
            repeating-linear-gradient(45deg,
                transparent,
                transparent 10px,
                rgba(255, 255, 255, 0.03) 10px,
                rgba(255, 255, 255, 0.03) 20px);
    }

    /* Mobile Menu Scrollbar */
    .nav-links::-webkit-scrollbar {
        width: 6px;
    }

    .nav-links::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .nav-links::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--secondary-color), rgba(0, 191, 165, 0.7));
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 191, 165, 0.3);
    }

    .nav-links.active {
        clip-path: circle(150% at calc(100% - 40px) 45px);
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav-links li {
        margin: 4px 0;
        /* Reduced from 6px */
        opacity: 0;
        transform: translateY(40px) skewY(5deg);
        transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
        width: 100%;
        text-align: center;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0) skewY(0);
    }

    /* Main Menu Links on Mobile */
    .nav-links li>a {
        font-size: 1rem !important;
        /* Reduced from 1.3rem */
        font-weight: 600 !important;
        /* Reduced from 700 */
        color: white !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        /* Reduced from 1.5px */
        padding: 10px 18px !important;
        /* Reduced from 12px 20px */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        /* Reduced from 8px */
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        /* Reduced from 12px */
        position: relative;
        transition: all 0.3s ease;
        width: 100%;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
    }

    .nav-links li>a:hover {
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.2),
                rgba(0, 191, 165, 0.3)) !important;
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateX(5px);
        box-shadow: 0 8px 25px rgba(0, 191, 165, 0.3);
    }

    .nav-links li>a.active {
        background: linear-gradient(135deg,
                rgba(0, 191, 165, 0.4),
                rgba(0, 191, 165, 0.2)) !important;
        border-color: var(--secondary-color);
        box-shadow: 0 0 20px rgba(0, 191, 165, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }

    .nav-links li>a::after {
        display: none;
        /* Remove underline effect */
    }

    /* Mobile Chevron */
    .nav-links li>a .fa-chevron-down {
        font-size: 0.8rem !important;
        /* Reduced from 1rem */
        margin-left: 6px;
        transition: transform 0.3s ease;
    }

    .nav-links .has-submenu.active>a .fa-chevron-down {
        transform: rotate(180deg);
    }

    /* Mobile Submenu Styles */
    .nav-links .submenu {
        position: static;
        background: rgba(255, 255, 255, 0.15);
        /* Simplified background */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 8px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: none;
        /* Optimized transition: specific properties instead of 'all' */
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease,
            margin 0.3s ease,
            padding 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        will-change: max-height, opacity;
        /* Hint to browser for smoother animation */
    }

    .nav-links .submenu::before {
        display: none;
    }

    .nav-links .has-submenu.active .submenu {
        max-height: 600px;
        opacity: 1;
        margin-bottom: 15px;
        padding: 12px 8px;
    }


    .nav-links .submenu li {
        margin: 3px 0;
        /* Reduced from 4px */
        padding: 0;
        opacity: 1 !important;
        transform: none !important;
    }

    .nav-links .submenu li a {
        font-size: 0.9rem !important;
        /* Reduced from 1rem */
        font-weight: 500 !important;
        text-transform: none !important;
        letter-spacing: 0.5px !important;
        padding: 10px 16px !important;
        /* Reduced from 12px 18px */
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 10px !important;
        /* Reduced from 12px */
        color: rgba(255, 255, 255, 0.95) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 8px;
        /* Reduced from 10px */
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }

    .nav-links .submenu li a i {
        font-size: 0.7rem;
        /* Reduced from 0.75rem */
        color: var(--secondary-color);
        min-width: 16px;
        /* Reduced from 18px */
        filter: drop-shadow(0 0 4px rgba(0, 191, 165, 0.5));
    }

    .nav-links .submenu li a:hover {
        background: linear-gradient(135deg,
                rgba(0, 191, 165, 0.25),
                rgba(255, 255, 255, 0.15)) !important;
        padding-left: 24px !important;
        color: white !important;
        border-color: rgba(0, 191, 165, 0.3);
        box-shadow: 0 4px 15px rgba(0, 191, 165, 0.2);
        transform: translateX(3px);
    }

    .nav-links .submenu li a:hover i {
        color: #fff;
        filter: drop-shadow(0 0 8px rgba(0, 191, 165, 0.8));
    }

    .nav-links .submenu li a::after {
        display: none;
    }

    .mobile-close {
        display: flex !important;
        position: absolute;
        top: 25px;
        /* Reduced from 30px */
        right: 25px;
        /* Reduced from 30px */
        width: 50px;
        /* Reduced from 60px */
        height: 50px;
        /* Reduced from 60px */
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(10px);
        color: white;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        /* Reduced from 2rem */
        cursor: pointer;
        z-index: 2010;
        border: 2px solid rgba(255, 255, 255, 0.25);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .mobile-close:hover {
        background: linear-gradient(135deg,
                rgba(255, 59, 48, 0.8),
                rgba(255, 149, 0, 0.6));
        border-color: rgba(255, 255, 255, 0.5);
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 8px 30px rgba(255, 59, 48, 0.4),
            0 0 20px rgba(255, 59, 48, 0.3);
    }

    /* Luxury Staggered Animation Times */
    .nav-links.active li:nth-child(2) {
        transition-delay: 0.10s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.20s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.30s;
    }

    .nav-links.active li:nth-child(7) {
        transition-delay: 0.35s;
    }

    .nav-links.active li:nth-child(8) {
        transition-delay: 0.40s;
    }


    .header-btns {
        display: none;
    }

    /* Course Grid Responsive - Stack on Mobile */
    .course-grid {
        grid-template-columns: 1fr !important;
        /* Single column on mobile */
    }

    /* Hero Slider Responsive */
    .hero-content h1 {
        font-size: 2.5rem !important;
    }

    .hero-content p {
        font-size: 1.1rem !important;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }

    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 25px;
    }
}


/* Cleanup Legacy Overlay */
.menu-overlay {
    display: none !important;
}

/* =========================================
   CORE EXCELLENCE SECTION (OVERLAPPING HERO)
   ========================================= */

.core-excellence-section {
    position: relative;
    margin-top: -80px;
    /* Overlap the hero section */
    z-index: 100;
    margin-bottom: 60px;
}

.excellence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.excellence-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}

.excellence-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-bottom-color: var(--secondary-color);
}

.ex-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(10, 102, 194, 0.3);
}

.ex-content h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.ex-content p {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.5;
}

/* RESPONSIVE: TABLET */
@media (max-width: 1024px) {
    .excellence-grid {
        gap: 20px;
    }

    .excellence-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .ex-content h3 {
        margin-top: 15px;
    }
}

/* RESPONSIVE: MOBILE (SINGLE LINE GRID - ALL 3 VISIBLE) */
@media (max-width: 768px) {
    .core-excellence-section {
        margin-top: -60px;
        /* Adjust overlap for mobile */
        margin-bottom: 40px;
    }

    .excellence-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Force 3 columns in one row */
        gap: 8px;
        /* Very tight gap */
    }

    .excellence-card {
        padding: 15px 10px;
        border-radius: 10px;
        gap: 10px;
        min-height: 160px;
        /* Ensure uniform height */
    }

    .ex-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .ex-content h3 {
        font-size: 0.8rem;
        /* Smaller font for titles */
        line-height: 1.2;
        margin-bottom: 5px;
        height: 32px;
        /* Fixed height for 2 lines of text */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ex-content p {
        font-size: 0.65rem;
        /* Tiny description */
        line-height: 1.3;
        display: none;
        /* Hide description on very small screens if needed, strictly speaking user wants 'icon ke sath me' but titles are essential. I will try to show it but cut it off if too long */
    }

    /* Make description visible but constrained */
    .ex-content p {
        display: block;
        opacity: 0.8;

    }
}

/* Small Mobile Adjustments */
@media (max-width: 400px) {
    .core-excellence-section .container {
        padding: 0 10px;
    }

    .ex-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .ex-content p {
        display: none;
        /* Hide description on very small screens to keep layout clean */
    }
}


/* Mobile Selection Adjustment */
@media (max-width: 992px) {
    .navbar {
        justify-content: space-between !important;
    }

    .mobile-toggle {
        order: -1 !important;
        margin-right: auto !important;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Ensure toggle is clickable */
    .mobile-toggle {
        z-index: 2010 !important;
        cursor: pointer;
    }
}


/* Mobile Header Height Fix */
@media (max-width: 992px) {

    /* Force navbar to be thin and compact */
    .navbar {
        height: 60px !important;
        /* Fixed height for thin strip */
        min-height: auto !important;
        padding: 0 15px !important;
        /* Minimal padding */
        display: flex !important;
        align-items: center !important;
        position: relative;
        /* Context for absolute positioning */
    }

    /* Centered Logo */
    .logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        white-space: nowrap;
    }

    /* Logo scaling to fit if needed */
    .logo h1 {
        font-size: 1.4rem !important;
        /* Slightly smaller logo text for mobile */
        margin: 0 !important;
        line-height: 1 !important;
        display: flex;
        align-items: center;
    }

    /* Left-aligned Menu Toggle */
    .mobile-toggle {
        order: -1 !important;
        margin-right: auto !important;
        position: relative !important;
        /* Ensure it doesn't float weirdly */
        display: flex !important;
        align-items: center;
        height: 100%;
        font-size: 1.5rem !important;
        /* Adjust icon size */
    }

    /* Ensure header container doesn't overflow */
    header {
        height: auto !important;
        overflow: visible;
    }
}

/* Compact News Ticker */
.news-ticker {
    padding: 2px 0 !important;
    /* Extremely thin */
    height: 30px;
    /* Force height */
    display: flex;
    align-items: center;
}

.ticker-wrapper {
    gap: 10px;
}

.ticker-label {
    padding: 2px 8px !important;
    font-size: 0.7rem !important;
    height: 20px;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
}

.ticker-item {
    font-size: 0.8rem !important;
    padding: 0;
    margin-right: 30px;
}

/* Ensure no gap between header/ticker/hero */
header {
    margin-bottom: 0 !important;
}

.news-ticker {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* FORCE Mobile Toggle Position - Absolute Left */
@media (max-width: 992px) {
    .navbar {
        position: relative !important;
        /* Anchor for absolute positioning */
    }

    .mobile-toggle {
        position: absolute !important;
        left: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        order: unset !important;
        /* Remove flex order */
        z-index: 2020 !important;
    }

    .logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: auto !important;
        margin: 0 !important;
    }
}

/* Administration / Staff Page Styles - Landscape Mode */
.staff-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Wider for landscape */
    gap: 30px;
    margin-top: 30px;
}

.staff-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    /* Flexbox for landscape layout */
    align-items: center;
    max-width: 100%;
    margin: 0;
    /* Removing center margin since it's now filling grid cells */
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 102, 194, 0.1);
    border-color: rgba(10, 102, 194, 0.2);
}

/* Gradient accent bar on the left instead of top */
.staff-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.staff-card:hover::before {
    opacity: 1;
}

.staff-img-wrapper {
    width: 130px;
    /* Fixed width for image part */
    height: 100%;
    /* Full height of card */
    min-height: 150px;
    /* Minimum height ensures consistency */
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: #f4f6f8;
}

.staff-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.staff-card:hover .staff-img-wrapper img {
    transform: scale(1.1);
}

.staff-info {
    padding: 15px 20px;
    flex-grow: 1;
    /* Take remaining space */
    text-align: left;
    /* Align text to left */
}

.staff-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-weight: 700;
}

.staff-role {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    /* More rectangular for professional look */
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.principal-card .staff-role {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.staff-info .qualification {
    color: var(--light-text);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align */
    gap: 6px;
}

.staff-info .qualification i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.contact-strip {
    border-top: 1px dashed #eee;
    padding-top: 8px;
    margin-top: 5px;
    display: inline-block;
    width: 100%;
}

.contact-strip a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-strip a:hover {
    color: var(--secondary-color);
}

.contact-strip a i {
    color: var(--secondary-color);
    background: rgba(0, 191, 165, 0.08);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.contact-strip a:hover i {
    background: var(--secondary-color);
    color: white;
    transform: rotate(15deg);
}

/* Mobile Responsiveness for Landscape Cards */
@media (max-width: 480px) {
    .staff-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .staff-card {
        max-width: 100%;
        margin-bottom: 15px;
    }

    .staff-img-wrapper {
        width: 110px;
        /* Slightly smaller image on very small screens */
    }

    .staff-info {
        padding: 15px;
    }
}