body {
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* School Categories Section */
.school-categories {
    padding: 20px 0;
    position: relative;
    margin-top: 0;
}

.category-row {
    margin-bottom: 40px;
}

.category-title {
    font-size: 24px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.search-btn {
    right: 150px;
}

/* Expanded Footer Styles */
.footer-content {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column h3 {
    color: #ecf0f1;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #ecf0f1;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-bottom {
    background: #1a252f;
    padding: 20px 0;
    text-align: center;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.nav-icon {
    width: 24px;
    height: 24px;
    fill: #7f8c8d;
}

.nav-label {
    font-size: 12px;
    margin-top: 5px;
    color: #7f8c8d;
}

/* Main Content Section */
.main-content {
    padding: 5px;
    position: relative;
    z-index: 2;
    margin-top: 30px;
}

/* Carousel Styles */
.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.carousel-container {
    width: calc(100% - 80px);
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    padding: 10px 0;
    width: max-content;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

.carousel-arrow:hover {
    background: #f5f5f5;
}

.carousel-arrow svg {
    fill: #333;
}

/* Base card styles - applied to all screen sizes */
.school-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 15px; /* Add consistent bottom margin */
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    .school-card {
        min-width: 280px;
        max-width: 320px;
        /* Remove width:100% if it was set elsewhere */
    }
}
/* Mobile grid layout */
.mobile-school-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px;
}

@media (min-width: 480px) {
    .mobile-school-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .school-card {
        width: 100%;
        min-width: unset; /* Reset min-width for mobile */
        max-width: unset; /* Reset max-width for mobile */
    }

    /* Optional: Adjust other mobile-specific properties */
    .school-card .school-image {
        height: 180px;
    }

    .school-card .school-info {
        padding: 12px;
    }
}

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

.school-image {
    height: 160px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #999;
    font-size: 14px;
}

.school-info {
    padding: 15px;
}

.school-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.flag {
    font-size: 16px;
}

.category {
    font-size: 14px;
    color: #fff;
    background: #4a6baf;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.description {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #4a6baf;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Slideshow Styles */
.static-cover {
    position: absolute;
    width: 100%;
    height: 400px;
    background-image: url('/assets/images/slide2.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    margin-bottom: 30px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

}





/* Prevent layout shifts during inspection */
.intro-slides {
contain: strict;
position: relative;
}

/* Ensure slides maintain their layout */
.slide {
will-change: transform, opacity;
backface-visibility: hidden;
}