/* Features Section (Home Page) */
.features-section {
    background: var(--bg-light);
    padding: 60px 0 60px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.feature-card p {
    color: #555;
    font-size: 1rem;
}
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card {
        padding: 1.2rem 0.8rem;
    }
}
/* Applying for grade dropdown width fix */
#applying_for_grade.form-control {
    max-width: 300px;
    min-width: 180px;
    width: 100%;
}
/* Application form dropdown styling */
.application-form select.form-control,
select.form-control {
    padding: 0.75rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    font-size: 1rem;
    width: 100%;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    appearance: none;
    transition: border-color 0.3s;
}
.application-form select.form-control:focus,
select.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}
/* Contact form dropdown styling */
.contact-form select.form-control {
    padding: 0.75rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    font-size: 1rem;
    width: 100%;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    appearance: none;
    transition: border-color 0.3s;
}
.contact-form select.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}
.contact-form label[for="enquiry_type"] {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}
/* Footer brand and social links alignment */
.footer-brand-social {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.footer-brand-social .social-links {
    margin-top: 0.25rem;
}
/* Footer brand alignment */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-brand h3, .footer-brand p {
    margin: 0;
}
/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    flex-direction: column;
    padding: 0.5rem 0;
    border-radius: 8px;
    list-style: none;
    margin: 0;
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu .dropdown-item {
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.dropdown-menu .dropdown-item:hover {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 6px;
    padding-left: 24px;
    padding-right: 24px;
    margin-left: 8px;
    margin-right: 8px;
}

.dropdown.open > .dropdown-menu {
    display: flex;
}
/* Uniform staff image squares for academic section */
.staff-card img, .teacher-card img, .profile-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    margin: 0 auto 1rem auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
:root {
    --primary-color: #003d82;
    --secondary-color: #0056b3;
    --accent-color: #fbb040;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo img {
    height: 80px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}


.nav-link:hover {
    color: var(--primary-color);
    color: var(--white);
    background: var(--primary-color);
    border-radius: 16px;
    transition: background 0.2s, color 0.2s;
    padding: 12px 28px;
    margin: -8px -14px;
    /* Makes highlight visually larger without shifting layout */
}

.nav-link-apply {
    background: var(--accent-color);
    color: white !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
}

.nav-link-apply:hover {
    background: #e09f30;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 176, 64, 0.3);
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Jumbotron */
.jumbotron-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}

.jumbotron {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.jumbotron h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.jumbotron p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-light);
}

.jumbotron-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: float 3s ease-in-out infinite;
}

.stat-item:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-item:nth-child(3) {
    animation-delay: 1s;
}

.stat-item:nth-child(4) {
    animation-delay: 1.5s;
}

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

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    margin: 0;
}

.jumbotron-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

/* Section */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.feature-card {
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Quick Links Section */
.quick-links-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quick-links-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.quick-link-card {
    padding: 40px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    border-left: 5px solid var(--primary-color);
}

.quick-link-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.quick-link-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Welcome Section */
.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.welcome-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.welcome-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.image-placeholder {
    background: var(--bg-light);
    padding: 100px;
    border-radius: 10px;
    text-align: center;
    color: var(--text-light);
}

/* Footer */

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 0 10px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 72px;
    height: auto;
    margin-bottom: 0.5rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

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

.social-links a {
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .jumbotron {
        padding: 30px;
    }
    
    .jumbotron h2 {
        font-size: 2rem;
    }
    
    .jumbotron-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
    }
}
