/* Schools Listing Page - Custom Styles Only */
/* Only styles that are NOT available in theme CSS */

/* Hero Section - Unique gradient background */
.school-hero-section {
    background: linear-gradient(135deg, #6963ff 0%, #362ae8 100%);
    padding: 80px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.school-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='3' fill='%234a8fd9' opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.school-hero-title {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.school-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* Search Widget - Unique search interface */
.school-search-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.school-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.school-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.school-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

.school-tab:hover {
    color: #fff;
}

.search-input-wrapper {
    display: flex;
    gap: 0;
}

.school-search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
}

.school-search-input:focus {
    outline: none;
    border-color: #6963ff;
    box-shadow: 0 0 0 0.2rem rgba(105, 99, 255, 0.25);
}

.school-search-btn {
    background: #ec296b;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.school-search-btn:hover {
    background: #d62860;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}

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

/* Section Titles */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 16px;
    color: #4b5d73;
    text-align: center;
    margin-bottom: 40px;
}

/* School Type Cards - Using theme .card styles, adding custom touches */
.school-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.school-type-card {
    transition: all 0.3s;
}

.school-type-card:hover {
    transform: translateY(-5px);
}

.school-type-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f6f7fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-type-icon i {
    font-size: 40px;
    color: #6963ff;
}

.show-all-link {
    color: #6963ff;
    text-decoration: none;
    font-weight: 600;
}

.show-all-link:hover {
    text-decoration: underline;
    color: #362ae8;
}

/* Popular Areas Grid */
.popular-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.popular-area-card {
    transition: all 0.3s;
}

.popular-area-card:hover {
    transform: translateY(-5px);
}

.school-count {
    font-weight: 700;
    color: #6963ff;
}

.popular-area-card i {
    color: #6963ff;
}

.view-more-btn {
    background: transparent;
    border: 2px solid #6963ff;
    color: #6963ff;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-more-btn:hover {
    background: #6963ff;
    color: #fff;
}

/* Did You Know Section */
.did-you-know-section {
    background: #6963ff;
    padding: 80px 20px;
    margin: 0;
}

.info-banner {
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.info-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.info-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.slider-dots .dot.active {
    background: #fff;
}

/* Localities Grid */
.localities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.locality-card {
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.locality-card:hover {
    border-color: #6963ff;
    box-shadow: 0 5px 15px rgba(105, 99, 255, 0.1);
}

/* Boards Grid */
.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.board-card {
    transition: all 0.3s;
}

.board-card:hover {
    transform: translateY(-5px);
}

.board-count {
    color: #ec296b;
    font-weight: 700;
}

.board-card-highlighted {
    border-left: 4px solid #ec296b;
}

.board-card-highlighted-right {
    border-right: 4px solid #ec296b;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tool-card {
    transition: all 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: #f6f7fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tool-icon i {
    font-size: 40px;
    color: #6963ff;
}

.tool-btn {
    background: #6963ff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tool-btn:hover {
    background: #362ae8;
}

/* Schools Grid Section */
.schools-grid-section {
    background: #f2f5f9;
    padding: 60px 20px 80px;
    margin-bottom: 0;
}


/* Location Listing Page Styles */
.school-listing-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.filters-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.schools-main {
    flex: 1;
}

.filter-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-option label {
    cursor: pointer;
    flex: 1;
}

.filter-count {
    color: #666;
    font-size: 14px;
}

.school-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.school-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.school-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.school-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.school-content {
    padding: 20px;
}

.school-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.school-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.school-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.school-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
}

.school-detail-item i {
    color: #007bff;
    width: 20px;
}

.school-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.compare-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-detail-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.view-detail-btn:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.page-header {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.breadcrumbs {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}

.page-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.school-count-badge {
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: #333;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown select {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.clear-filter-btn {
    background: transparent;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.clear-filter-btn:hover {
    background: #007bff;
    color: white;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.active-filter-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-filter-tag .remove {
    cursor: pointer;
    font-weight: bold;
}

.range-slider {
    padding: 20px;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .school-listing-container {
        flex-direction: column;
    }
    
    .filters-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .school-hero-title {
        font-size: 26px;
    }
    
    .school-hero-subtitle {
        font-size: 16px;
    }
    
    .school-type-tabs {
        flex-wrap: wrap;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .school-search-input {
        border-radius: 8px 8px 0 0;
    }
    
    .school-search-btn {
        border-radius: 0 0 8px 8px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .page-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
