/* ================================================
   CITY PAGE OVERRIDES
   Only styles specific to city-level pages.
   All other styles inherit from the shared style.css
   ================================================ */

/* ===================================
   CITY SCHOOLS SECTION
   New component for city-level pages
   =================================== */

.city-schools-section {
    background: #ffffff;
    padding: 40px 20px;
}

.city-schools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.city-schools-container h2 {
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #6366F1;
}

.city-schools-container .intro-text {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.7;
}

/* Grid: Schools + Sidebar */
.city-schools-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 2rem;
}

.city-schools-main {
    min-width: 0;
}

.city-schools-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* School Accordion Cards */
.school-card {
    background: white;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 16px;
}

.school-card:hover {
    border-color: #6366F1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.school-card.active {
    border-color: #6366F1;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}

.school-header {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 20px;
}

.school-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.school-card.active .school-icon {
    transform: scale(1.1);
}

.school-title-area {
    flex: 1;
}

.school-title-area h3 {
    font-size: 1.3rem;
    color: #6366F1;
    margin-bottom: 4px;
    font-weight: 600;
}

.school-hint {
    font-size: 0.9rem;
    color: #6c757d;
}

.school-program-count {
    flex-shrink: 0;
}

.count-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.school-chevron {
    font-size: 20px;
    color: #6366F1;
    transition: transform 0.3s ease;
}

.school-card.active .school-chevron {
    transform: rotate(180deg);
    color: #8B5CF6;
}

/* School Content (collapsed by default) */
.school-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.school-card.active .school-content {
    max-height: 1200px;
    padding: 0 24px 24px 24px;
}

.school-content p {
    font-size: 1.05rem;
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Program Tags */
.school-programs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.school-program-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    color: #4338CA;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.school-program-tag i {
    color: #6366F1;
}

/* School Details Grid */
.school-details {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #6366F1;
    margin-bottom: 16px;
}

.school-detail-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.school-detail-row:last-child {
    margin-bottom: 0;
}

.school-detail-label {
    font-weight: 600;
    color: #2c3e50;
}

.school-detail-value {
    color: #4a5568;
}

/* School Link */
.school-link {
    display: inline-block;
    color: #6366F1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.school-link:hover {
    color: #8B5CF6;
    transform: translateX(4px);
}

/* ===================================
   CITY SIDEBAR (mirrors how-to-page
   sidebar but scoped to city section)
   =================================== */

.city-schools-sidebar .sidebar-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.city-schools-sidebar .clinical-hours-hero {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 8px;
    color: white;
    margin-bottom: 2rem;
}

.city-schools-sidebar .clinical-hours-hero .big-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.city-schools-sidebar .clinical-hours-hero .subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.95;
}

.city-schools-sidebar .clinical-hours-hero .detail {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.city-schools-sidebar .clinical-breakdown {
    margin-top: 1.5rem;
}

.city-schools-sidebar .clinical-breakdown h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.city-schools-sidebar .clinical-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #6366F1;
    transition: all 0.3s ease;
}

.city-schools-sidebar .clinical-item:hover {
    background: #EEF2FF;
    transform: translateX(4px);
}

.city-schools-sidebar .clinical-icon {
    font-size: 1.8rem;
    color: #6366F1;
    min-width: 40px;
    text-align: center;
}

.city-schools-sidebar .clinical-info h5 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.city-schools-sidebar .clinical-info p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.4;
    margin: 0;
}

.city-schools-sidebar .clinical-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.city-schools-sidebar .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6366F1;
    line-height: 1;
}

.city-schools-sidebar .stat-label {
    font-size: 0.85rem;
    color: #4a5568;
    margin-top: 0.25rem;
}

/* ===================================
   RESPONSIVE: City Schools
   =================================== */

@media (max-width: 968px) {
    .city-schools-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .city-schools-sidebar {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .city-schools-container {
        padding: 25px;
    }

    .school-header {
        flex-wrap: wrap;
        padding: 18px 14px;
        gap: 12px;
    }

    .school-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .school-title-area h3 {
        font-size: 1.1rem;
    }

    .school-program-count {
        order: 4;
        width: 100%;
    }

    .school-detail-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .school-detail-label {
        margin-bottom: 2px;
    }

    .school-detail-value {
        margin-bottom: 10px;
    }
}

/* ================================================
   SCHOOL PAGE STYLES
   Program detail cards and school-programs sidebar
   Used by school-template.html
   ================================================ */

/* ===================================
   SCHOOL PROGRAMS SECTION
   Expanded detail cards (not accordion)
   shown at the top of school pages
   =================================== */

.school-programs-section {
    background: #ffffff;
    padding: 40px 20px;
}

.school-programs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.school-programs-container h2 {
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #6366F1;
}

.school-programs-container .intro-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.7;
}

/* Grid: Program Cards + Sidebar */
.school-programs-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 2rem;
}

.school-programs-main {
    min-width: 0;
}

.school-programs-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* Program Detail Cards (always open, not accordion) */
.school-program-detail-card {
    background: white;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.school-program-detail-card:hover {
    border-color: #6366F1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.program-detail-header {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #e5e7eb;
}

.program-detail-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.program-detail-header h3 {
    font-size: 1.3rem;
    color: #6366F1;
    margin-bottom: 4px;
    font-weight: 600;
}

.program-detail-type {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.program-detail-body {
    padding: 24px;
}

.program-detail-body p {
    font-size: 1.05rem;
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Program Details Grid (2-column key-value pairs) */
.program-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #6366F1;
    margin-bottom: 20px;
}

.program-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.program-detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 6px;
}

.program-detail-label i {
    color: #6366F1;
    font-size: 0.9rem;
}

.program-detail-value {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

/* ===================================
   SCHOOL PROGRAMS SIDEBAR
   =================================== */

.school-programs-sidebar .sidebar-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.school-programs-sidebar .clinical-hours-hero {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 8px;
    color: white;
    margin-bottom: 2rem;
}

.school-programs-sidebar .clinical-hours-hero .big-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.school-programs-sidebar .clinical-hours-hero .subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.95;
}

.school-programs-sidebar .clinical-hours-hero .detail {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.school-programs-sidebar .clinical-breakdown {
    margin-top: 1.5rem;
}

.school-programs-sidebar .clinical-breakdown h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.school-programs-sidebar .clinical-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #6366F1;
    transition: all 0.3s ease;
}

.school-programs-sidebar .clinical-item:hover {
    background: #EEF2FF;
    transform: translateX(4px);
}

.school-programs-sidebar .clinical-icon {
    font-size: 1.8rem;
    color: #6366F1;
    min-width: 40px;
    text-align: center;
}

.school-programs-sidebar .clinical-info h5 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.school-programs-sidebar .clinical-info p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.4;
    margin: 0;
}

.school-programs-sidebar .clinical-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.school-programs-sidebar .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6366F1;
    line-height: 1;
}

.school-programs-sidebar .stat-label {
    font-size: 0.85rem;
    color: #4a5568;
    margin-top: 0.25rem;
}

/* ===================================
   RESPONSIVE: School Page
   =================================== */

@media (max-width: 968px) {
    .school-programs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .school-programs-sidebar {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .school-programs-container {
        padding: 25px;
    }

    .program-detail-header {
        flex-wrap: wrap;
        padding: 18px 14px;
        gap: 12px;
    }

    .program-detail-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .program-detail-header h3 {
        font-size: 1.1rem;
    }

    .program-detail-grid {
        grid-template-columns: 1fr;
    }
}
