/* School Detail Page - Custom Styles Only */
/* Only styles that are NOT available in theme CSS */

/* Container */
.school-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Full width wrapper */
.school-detail-wrapper {
    width: 100%;
    background: #f8f9fa;
    padding: 20px 0;
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb-wrapper {
    padding-top: 20px;
}

.breadcrumb-custom {
    background: transparent;
    padding: 0;
}

/* Main wrapper to ensure sticky works */
.school-detail-page-wrapper {
    min-height: 100vh;
}

/* School Header */
.school-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.school-badge-verified {
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.school-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

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

.school-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge-item {
    background: #e9ecef;
    color: #495057;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.badge-item.primary { 
    background: #007bff; 
    color: white; 
}

.badge-item.success { 
    background: #28a745; 
    color: white; 
}

.badge-item.info { 
    background: #17a2b8; 
    color: white; 
}

.school-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.school-actions .btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

/* Section Navigation */
.section-navigation {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.section-nav-list {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 10px 0;
}

.section-nav-item {
    cursor: pointer;
    padding: 8px 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.section-nav-item:hover, .section-nav-item.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

/* Content Sections */
.content-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    scroll-margin-top: 100px;
}

/* Sidebar Layout */
.content-with-sidebar {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    min-height: calc(100vh - 300px);
}

.sidebar-wrapper {
    width: 280px;
    flex-shrink: 0;
    position: relative;
}

.sidebar-spacer {
    min-height: 1px;
}

.sidebar-sticky-container {
    width: 100%;
}

.sticky-sidebar-inner {
    z-index: 100;
}

/* About Section */
.about-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.about-content p {
    margin-bottom: 1rem;
}

/* Criteria Item */
.criteria-item {
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    margin-bottom: 20px;
    border-radius: 4px;
}

.criteria-item h5 {
    margin-bottom: 10px;
    color: #333;
}

.criteria-item p {
    margin: 0;
    line-height: 1.7;
}

/* Social Icons */
.social-links {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.social-links h5 {
    margin-bottom: 15px;
    color: #333;
}

.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.social-icon.facebook {
    background: #3b5998;
}

.social-icon.twitter {
    background: #1da1f2;
}

.social-icon.instagram {
    background: #e4405f;
}

.social-icon.linkedin {
    background: #0077b5;
}

.social-icon.youtube {
    background: #ff0000;
}

/* Facility Badges */
.facility-badge {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 20px;
    font-size: 14px;
    color: #2e7d32;
}

.facility-badge i {
    margin-right: 5px;
}

.facility-category {
    margin-bottom: 25px;
}

.facility-category h6 {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
}

/* Hall of Fame */
.highlight-section,
.achievement-section,
.awards-section {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.highlight-section h5,
.achievement-section h5,
.awards-section h5 {
    color: #333;
    margin-bottom: 10px;
}

/* Results Section */
.results-info {
    padding: 20px;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.insight-card {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

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

.insight-card i {
    font-size: 40px;
    margin-bottom: 15px;
}

.insight-card h5 {
    color: #333;
    margin-bottom: 10px;
}

.insight-card p {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    margin: 0;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Videos Container */
.videos-container {
    padding: 20px;
}

.video-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.video-item h5 {
    margin-bottom: 15px;
    color: #333;
}

/* Results Stats */
.results-info .stat-box {
    text-align: center;
}

.results-info .stat-box h5 {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.results-info .stat-box p {
    font-size: 20px;
    font-weight: 600;
    color: #007bff;
    margin: 0;
}

.sidebar-tabs {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sticky-sidebar-inner {
    position: sticky;
    top: 20px;
}

.sidebar-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-tab:hover {
    background: #f8f9fa;
    color: #007bff;
}

.sidebar-tab.active {
    background: #e7f3ff;
    color: #007bff;
    border-left-color: #007bff;
    font-weight: 600;
}

.sidebar-tab i {
    width: 20px;
    text-align: center;
}

.content-main {
    flex: 1;
    min-width: 0;
}

.content-main.school-detail-container {
    max-width: none;
}

.section-heading {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.stat-box h5 {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-box p {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Fee Tabs */
.fee-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.fee-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    padding: 12px 20px;
    font-weight: 500;
}

.fee-tabs .nav-link:hover {
    border-bottom-color: #007bff;
}

.fee-tabs .nav-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: transparent;
}

/* Facilities */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.facility-category {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.facility-category h6 {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.facility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.facility-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    gap: 6px;
}

.facility-badge.available {
    background: #d4edda;
    color: #155724;
}

.facility-badge.not-available {
    background: #f8d7da;
    color: #721c24;
}

.facility-badge.info {
    background: #d1ecf1;
    color: #0c5460;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-with-sidebar {
        flex-direction: column;
    }
    
    .content-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .sidebar-tabs {
        display: flex;
        overflow-x: auto;
        padding: 10px;
        gap: 10px;
    }
    
    .sidebar-tab {
        white-space: nowrap;
        margin-bottom: 0;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .school-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .school-actions .btn {
        width: 100%;
    }
    
    .school-title {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .facility-grid {
        grid-template-columns: 1fr;
    }
    
    .school-header .d-flex {
        flex-direction: column;
    }
}

