body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Remove all space between header and school image */
.school-hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
}

.school-hero-image {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 0; /* Remove any line-height spacing */
}

.school-hero-image img {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    display: block;
    width: 100%;
    vertical-align: top; /* Remove any vertical alignment spacing */
}

/* Remove space between school header and navigation menu */
.school-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.navbar {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure container doesn't add any spacing */
.container,
.container-fluid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any potential spacing from the main content area */
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure no margin from the row and col classes */
.row {
    margin-top: 0 !important;
}

.col-md-8,
.col-md-4 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any default margin/padding from navbar elements */
.navbar-nav {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.navbar-collapse {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.navbar-brand {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    font-weight: bold;
    font-size: 1.4rem; /* Increased brand size */
}

/* Ensure the navigation bar sticks directly below the header */
.navbar-expand-lg {
    margin-top: 0 !important;
}

/* INCREASED MENU ITEM SIZES */
.navbar-nav .nav-link {
            color: white !important;
            font-weight: 500;
            padding: 0.8rem 1.2rem;
        }

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.25) !important;
    font-weight: 700 !important;
}

/* Larger dropdown menu items */
.navbar-nav .dropdown-menu .dropdown-item {
    font-size: 1.1rem !important;
    padding: 0.8rem 1.2rem !important;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: #007bff !important;
    color: white !important;
}

/* Larger navbar toggler for mobile */
.navbar-toggler {
    padding: 0.5rem 0.75rem !important;
    font-size: 1.3rem !important;
}

/* Center the navigation items */
.nav-center {
    width: 100% !important;
    justify-content: center !important;
}

/* Larger user dropdown */
.navbar-nav .dropdown-toggle {
    font-size: 1.2rem !important;
    padding: 1rem 1.5rem !important;
}

/* Ensure proper spacing with larger menu items */
.navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

/* Mobile responsiveness for larger menu items */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        font-size: 1.3rem !important; /* Even larger on mobile */
        padding: 1rem 1.5rem !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none !important;
    }
    
    .navbar-collapse {
        margin-top: 0rem !important;
    }
}

/* Card and component styles */
.card {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: 1px solid #e3e6f0;
}

.stat-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.admission-date {
    padding: 10px;
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
    margin-bottom: 15px;
}

.scholarship-item {
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.teacher-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.hero-section .jumbotron {
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-section .jumbotron::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.hero-section .jumbotron > .row {
    position: relative;
    z-index: 2;
}

.list-group-item {
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.event-date {
    min-width: 60px;
}

/* Contact page specific styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.school-motto {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.address-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.address-info h2 {
    color: #1e5799;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
}

.contact-details {
    margin: 25px 0;
}

.contact-details p {
    margin: 12px 0;
    display: flex;
    align-items: center;
}

.contact-details i {
    width: 30px;
    color: #1e5799;
    font-size: 1.1rem;
}

.map-container {
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.additional-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.info-card {
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #1e5799;
}

.info-card h3 {
    color: #1e5799;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.info-card h3 i {
    margin-right: 10px;
}

.directions {
    margin-top: 30px;
    padding: 25px;
    background: #e8f4ff;
    border-radius: 10px;
}

.directions h3 {
    color: #1e5799;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .school-name {
        font-size: 1.8rem;
    }
}