:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #06b6d4;
    --danger: #ef4444;
    --secondary: #6b7280;
    --light: #f8fafc;
    --dark: #1f2937;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Hero Section */
.school-detail-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    min-height: auto;
    position: relative;
}

.school-detail-hero .container {
    position: relative;
}

.hero-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(-2px);
}

.school-type-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
}

.lgs-badge {
    background: #4764fa;
    color: white;
}

.obp-badge {
    background: #498555;
    color: white;
}

.hero-title h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-subtitle > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

/* Action Buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.compare-btn {
    background: rgba(16, 185, 129, 0.9);
    color: white;
    border: none;
}

.compare-btn:hover {
    background: var(--success);
    transform: translateY(-2px);
    color: white;
}

.website-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.website-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Main Content */
.school-detail-content {
    padding: 2rem 0;
    background: var(--light);
    min-height: 50vh;
}

/* Performance Metrics Cards */
.metrics-section {
    margin-bottom: 2rem;
}

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

.metric-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border-left: 4px solid;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.metric-card.primary { border-left-color: var(--primary); }
.metric-card.secondary { border-left-color: var(--secondary); }
.metric-card.success { border-left-color: var(--success); }
.metric-card.warning { border-left-color: var(--warning); }
.metric-card.info { border-left-color: var(--info); }
.metric-card.accent { border-left-color: var(--danger); }

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metric-card.primary .metric-icon { background: var(--primary); }
.metric-card.secondary .metric-icon { background: var(--secondary); }
.metric-card.success .metric-icon { background: var(--success); }
.metric-card.warning .metric-icon { background: var(--warning); }
.metric-card.info .metric-icon { background: var(--info); }
.metric-card.accent .metric-icon { background: var(--danger); }

.metric-info {
    flex: 1;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-label {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.875rem;
}

.metric-year {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.8;
    font-style: italic;
}

/* Gallery Section */
.gallery-section {
    margin-bottom: 2rem;
}

.gallery-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-photo {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: #f8fafc;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    gap: 0.5rem;
    font-weight: 600;
}

.main-photo:hover .photo-overlay {
    opacity: 1;
}

.main-photo:hover .main-image {
    transform: scale(1.05);
}

.gallery-placeholder {
    width: 100%;
    max-width: 500px;
    height: 300px;
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.placeholder-content {
    text-align: center;
    color: var(--secondary);
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.placeholder-content h6 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* Quick Navigation */
.quick-nav-section {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.quick-nav-container {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-nav-container::-webkit-scrollbar {
    display: none;
}

.nav-pills {
    display: flex;
    gap: 0.5rem;
    min-width: max-content;
    padding: 0.5rem 0;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    color: var(--secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
}

.nav-pill:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    border-color: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.nav-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Content Sections */
.content-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-section {
    scroll-margin-top: 140px;
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.info-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

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

.card-header.success {
    background: var(--success);
    color: white;
}

.card-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Enhanced Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--secondary);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h6 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.empty-state p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Info Grid and Row Styles */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
    min-width: 120px;
}

.info-row .value {
    font-weight: 600;
    color: var(--dark);
    text-align: right;
    font-size: 0.9rem;
}

/* Badge Styles */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.secondary {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Statistics Container */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon.primary { background: var(--primary); }
.stat-icon.success { background: var(--success); }
.stat-icon.warning { background: var(--warning); }
.stat-icon.info { background: var(--info); }

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Features Grid - Compact Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    text-align: left;
    transition: var(--transition);
    border: 1px solid #f1f3f4;
    display: flex;
    flex-direction: column;
    min-height: 80px;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Header with icon and label side by side */
.feature-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.feature-header i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.feature-header .feature-label {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

/* Value section */
.feature-card .feature-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    flex: 1;
    display: flex;
    align-items: center;
}

/* Chart Card */
.chart-card .chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

.chart-card canvas {
    max-height: 100%;
}

/* Performance Table */
.performance-table-container {
    overflow-x: auto;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.performance-table th,
.performance-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.performance-table th {
    background: var(--light);
    font-weight: 700;
    color: var(--dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.performance-table td {
    color: var(--secondary);
    font-weight: 600;
}

.performance-table tbody tr:hover {
    background: rgba(79, 70, 229, 0.05);
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Location Details - Fix layout to be vertical */
.location-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.location-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.location-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.location-content {
    flex: 1;
    min-width: 0; /* Prevents overflow */
}

.location-label {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.location-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
}

.location-value a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.location-value a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Details */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-content {
    flex: 1;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

.contact-value a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-value a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Photo Modal */
.photo-modal .modal-dialog {
    max-width: 90vw;
    margin: 2rem auto;
}

.photo-modal .modal-content {
    background: #000;
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.photo-modal .modal-header {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.photo-modal .modal-body {
    padding: 0;
    background: #000;
}

.photo-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    max-height: 80vh;
}

.viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

/* Gallery Actions */
.gallery-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Mobile Floating Navigation */
.floating-nav-mobile {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.floating-nav-mobile::-webkit-scrollbar {
    display: none;
}

.floating-nav-pill {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-nav-pill:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.floating-nav-pill.active {
    background: var(--success);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.floating-nav-pill i {
    font-size: 1.2rem;
}

/* Tooltip for floating nav */
.floating-nav-pill::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.floating-nav-pill::after {
    content: '';
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.floating-nav-pill:hover::before,
.floating-nav-pill:hover::after {
    opacity: 1;
}

/* Responsive Design Updates for Mobile Navigation */
@media (max-width: 768px) {
    .quick-nav-section {
        display: none; /* Desktop navigation gizlenir */
    }
    
    .floating-nav-mobile {
        display: flex; /* Mobile floating navigation gösterilir */
    }
    
    .floating-nav-pill {
        width: 45px;
        height: 45px;
    }
    
    .floating-nav-pill i {
        font-size: 1.1rem;
    }
    
    .floating-nav-pill::before {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .floating-nav-mobile {
        right: 0.75rem;
        gap: 0.4rem;
    }
    
    .floating-nav-pill {
        width: 42px;
        height: 42px;
    }
    
    .floating-nav-pill i {
        font-size: 1rem;
    }
    
    .floating-nav-pill::before {
        right: 52px;
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
    }
    
    .floating-nav-pill::after {
        right: 44px;
        border-width: 4px 0 4px 7px;
    }
}

/* Responsive Design Updates for Mobile Sticky Navigation */
@media (max-width: 768px) {
    .hero-title h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.75rem;
    }
    
    .feature-card {
        padding: 0.75rem;
        min-height: 70px;
    }
    
    .feature-header i {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .feature-header .feature-label {
        font-size: 0.7rem;
    }
    
    .feature-card .feature-value {
        font-size: 0.8rem;
    }
    
    .stats-container {
        gap: 1rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-row .value {
        text-align: left;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .quick-nav-section {
        position: sticky;
        top: 60px; /* Navbar height on mobile */
        margin-bottom: 1rem;
        padding: 0.75rem;
        border-radius: var(--border-radius);
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .quick-nav-container {
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }
    
    .nav-pills {
        gap: 0.25rem;
        padding: 0.25rem 0;
    }
    
    .nav-pill {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: fit-content;
        flex-shrink: 0;
    }
    
    .nav-pill i {
        font-size: 0.9rem;
    }
    
    .nav-pill span {
        font-size: 0.75rem;
    }
    
    .nav-pill.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
    }
    
    .content-section {
        scroll-margin-top: 120px;
    }
}

@media (max-width: 576px) {
    .quick-nav-section {
        position: sticky;
        top: 56px; /* Smaller navbar on mobile */
        margin-bottom: 1rem;
        padding: 0.5rem;
        border-radius: var(--border-radius);
        display: block; /* Küçük ekranlarda da görünür */
    }
    
    .nav-pills {
        gap: 0.2rem;
        padding: 0.2rem 0;
    }
    
    .nav-pill {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .nav-pill i {
        font-size: 0.8rem;
    }
    
    .nav-pill span {
        font-size: 0.7rem;
    }
    
    .content-section {
        scroll-margin-top: 110px;
    }
}

/* Mobile-specific compact design */
@media (max-width: 768px) {
    /* Compact Location Info */
    .location-details {
        gap: 0.75rem;
    }
    
    .location-item {
        padding: 0.5rem;
        border-radius: 0.5rem;
        background: rgba(248, 250, 252, 0.8);
    }
    
    .location-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.75rem;
    }
    
    .location-label {
        font-size: 0.7rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        color: #6b7280;
    }
    
    .location-value {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    /* Compact Contact Info */
    .contact-item {
        padding: 0.5rem;
        border-radius: 0.5rem;
        background: rgba(248, 250, 252, 0.8);
        margin-bottom: 0.5rem;
    }
    
    .contact-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.75rem;
    }
    
    .contact-label {
        font-size: 0.7rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        color: #6b7280;
    }
    
    .contact-value {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .contact-value a {
        word-break: break-all;
    }
    
    /* Compact Vision/Mission Cards */
    .vision-card .card-header,
    .mission-card .card-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .vision-card .card-body,
    .mission-card .card-body {
        padding: 0.75rem 1rem;
    }
    
    .vision-card .card-body p,
    .mission-card .card-body p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0;
    }
    
    /* Compact Review Form */
    .review-form-card {
        border-radius: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .review-form-header {
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .review-form-header h5 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .review-form-header p {
        font-size: 0.75rem;
    }
    
    .review-form-body {
        padding: 1rem;
    }
    
    .form-group-modern {
        margin-bottom: 0.75rem;
    }
    
    .form-label-modern {
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        color: #374151;
    }
    
    .form-control-modern,
    .form-select-modern {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        border: 1px solid #d1d5db;
    }
    
    .form-textarea-modern {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        border: 1px solid #d1d5db;
        resize: vertical;
        min-height: 80px;
    }
    
    .rating-input-container {
        padding: 0.5rem;
    }
    
    .rating-stars-input-modern {
        gap: 0.1rem;
    }
    
    .rating-star-modern {
        font-size: 1rem;
        gap: 0.1rem;
    }
    
    .rating-text {
        font-size: 0.7rem;
    }
    
    /* Compact Rating Summary */
    .rating-summary-card {
        border-radius: 0.75rem;
        padding: 1rem;
    }
    
    .rating-summary-header h5 {
        font-size: 1rem;
    }
    
    .rating-score-large {
        font-size: 2rem;
    }
    
    .rating-stars-large {
        font-size: 1rem;
    }
    
    .rating-count-text {
        font-size: 0.8rem;
    }
    
    .rating-breakdown-section h6,
    .category-ratings-section h6 {
        font-size: 0.8rem;
    }
    
    .breakdown-label,
    .category-name {
        font-size: 0.75rem;
    }
    
    .breakdown-count,
    .category-score {
        font-size: 0.75rem;
    }
    
    /* Compact Comments */
    .comment-item-modern {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border-radius: 0.75rem;
    }
    
    .author-avatar-modern {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .author-name-modern {
        font-size: 0.9rem;
    }
    
    .author-type-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
    
    .comment-date-modern {
        font-size: 0.7rem;
    }
    
    .rating-number {
        font-size: 0.9rem;
    }
    
    .rating-stars-small {
        font-size: 0.8rem;
    }
    
    .comment-content-modern p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .action-btn-modern {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Print Styles */
@media print {
    .hero-navigation,
    .hero-actions,
    .quick-nav-section,
    .gallery-actions,
    .btn,
    button {
        display: none !important;
    }
    
    .school-detail-hero {
        background: white !important;
        color: black !important;
    }
    
    .info-card,
    .metric-card,
    .feature-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Rating Star Styles */
.rating-input-container {
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.rating-stars-input-modern {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.25rem;
}

.rating-star-modern {
    font-size: 1.5rem;
    color: #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.rating-star-modern:hover {
    transform: scale(1.1);
    color: #ffc107 !important;
}

.rating-star-clicked {
    animation: starPulse 0.3s ease;
}

@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.rating-text {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

/* Mobile responsive for star rating */
@media (max-width: 768px) {
    .rating-input-container {
        padding: 0.5rem;
    }
    
    .rating-star-modern {
        font-size: 1.2rem;
    }
    
    .rating-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .rating-star-modern {
        font-size: 1rem;
        gap: 0.1rem;
    }
    
    .rating-stars-input-modern {
        gap: 0.1rem;
    }
    
    .rating-text {
        font-size: 0.7rem;
    }
}

/* Gallery styles - Fixed layout issues */
.gallery-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.gallery-main-image:hover {
    transform: scale(1.02);
}

/* Navigation buttons - repositioned */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Photo counter - moved to bottom and made more transparent */
.gallery-counter {
    position: absolute;
    top: 15px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 15;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.3;
}

/* Zoom button - repositioned */
.gallery-zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 15;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-zoom-btn:hover {
    background: rgba(0, 0, 0, 1);
    transform: scale(1.1);
}

/* Info panel - repositioned to bottom */
.gallery-info-panel {
    background: #fff;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
}

.photo-meta .photo-title {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.photo-details {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.uploader-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.uploader-info i {
    color: #007bff;
}

.photo-description {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Thumbnails */
.gallery-thumbnails-container {
    position: relative;
    margin-top: 1rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.gallery-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    border-color: #007bff;
}

.gallery-thumbnail.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

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

.thumbnail-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.thumbnail-badge.official {
    background: #ffc107;
    color: #212529;
}

/* Thumbnail navigation */
.thumbnail-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.thumbnail-nav-btn:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.thumbnail-prev {
    left: -16px;
}

.thumbnail-next {
    right: -16px;
}

/* Modal styles - Fixed fullscreen image display */
.photo-modal .modal-content {
    background: #000;
    border: none;
    height: 100vh;
}

.photo-modal .modal-header {
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.photo-modal .modal-body {
    height: 100vh;
    padding: 0;
}

.fullscreen-gallery {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.fullscreen-image-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    padding: 60px 20px 80px; /* Add padding for header and info panel */
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 15;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

/* Modal counter - also moved to bottom area in modal */
.modal-counter {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 15;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

/* Responsive design */
@media (max-width: 768px) {
    .gallery-image-container {
        height: 300px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-counter {
        bottom: 10px;
        padding: 3px 8px;
        font-size: 0.75rem;
    }
    
    .gallery-zoom-btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .gallery-info-panel {
        padding: 1rem;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .modal-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .modal-prev {
        left: 15px;
    }
    
    .modal-next {
        right: 15px;
    }
    
    .modal-counter {
        bottom: 80px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .modal-info-panel {
        padding: 1rem;
    }
    
    .fullscreen-image-container {
        padding: 50px 10px 60px;
    }
}

@media (max-width: 576px) {
    .gallery-image-container {
        height: 250px;
    }
    
    .modern-gallery {
        padding: 1rem;
    }
    
    .uploader-info {
        font-size: 0.85rem;
    }
    
    /* Hide thumbnail navigation on very small screens */
    .thumbnail-nav-btn {
        display: none;
    }
    
    .modal-counter {
        bottom: 70px;
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .fullscreen-image-container {
        padding: 40px 5px 50px;
    }
}

/* Animation for slideshow */
.slideshow-active .gallery-main-image {
    transition: opacity 0.5s ease-in-out;
}

.gallery-actions .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Loading state */
.gallery-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6c757d;
}

.gallery-loading i {
    font-size: 2rem;
    margin-right: 0.5rem;
}

/* Remove old conflicting styles */
.gallery-thumb {
    position: relative;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumb:hover .gallery-thumb-overlay {
    opacity: 1;
}

.gallery-thumb-overlay i {
    color: white;
    font-size: 1.5rem;
}

.gallery-thumb-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 10px 8px 8px;
    font-size: 0.75rem;
    line-height: 1.2;
}

.user-photos-section h6 {
    color: #6c757d;
    font-weight: 600;
}

.main-photo {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-photo:hover .main-image {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.main-photo:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* Hero Review Widget */
.hero-review-widget {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-review-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.review-score {
    text-align: center;
    color: var(--dark);
}

.score-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.score-stars {
    display: flex;
    justify-content: center;
    gap: 0.125rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.score-stars .bi-star-fill {
    color: #fbbf24;
}

.score-stars .bi-star-half {
    color: #fbbf24;
}

.score-stars .bi-star {
    color: #d1d5db;
}

.review-count {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
    white-space: nowrap;
}

.review-placeholder {
    text-align: center;
    color: var(--secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.review-placeholder i {
    font-size: 1.25rem;
    color: #d1d5db;
}

.review-placeholder span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Sports and Arts specific badges */
.sports-badge {
    background: #059669;
    color: white;
}

.arts-badge {
    background: #7c3aed;
    color: white;
}

/* Responsive adjustments for review widget */
@media (max-width: 768px) {
    .hero-review-widget {
        position: static;
        margin-top: 1.5rem;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }
    
    .school-detail-hero .container {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-review-widget {
        padding: 0.75rem;
    }
    
    .score-value {
        font-size: 1.25rem;
    }
    
    .review-count {
        font-size: 0.7rem;
    }
}
