/* Schools Page Specific Styles */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Filters Section */
.filters-section {
    background: var(--bg-light);
    padding: 2rem 0;
    border-bottom: 2px solid var(--border-color);
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-select,
.filter-input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: white;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-input {
    width: 100%;
}

/* Schools Listing */
.schools-listing {
    padding: 3rem 0;
    min-height: 60vh;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.listing-header h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-options label {
    font-weight: 600;
    color: var(--text-dark);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.schools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.school-listing-card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.school-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.school-listing-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem;
    color: white;
}

.school-listing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.school-listing-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

.school-listing-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.school-listing-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.school-listing-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.school-listing-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
}

.detail-value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.school-listing-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.school-listing-rating span {
    color: var(--text-light);
    margin-left: 0.5rem;
}

.school-listing-footer {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.school-listing-footer .btn {
    flex: 1;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* School Detail Page Styles */
.school-detail-section {
    padding: 3rem 0;
}

.school-detail-header {
    margin-bottom: 3rem;
}

.school-detail-brand {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.obridge-detail-logo {
    max-width: 220px;
    height: auto;
    object-fit: contain;
}

.school-detail-partner {
    margin: 0.35rem 0 0.75rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.school-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.school-info-card .info-value a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.school-info-card .info-value a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--secondary-color);
}

.school-detail-title h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.school-detail-location {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.school-detail-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.school-detail-rating span {
    color: var(--text-light);
}

.school-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.school-detail-section {
    margin-bottom: 3rem;
}

.school-detail-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.school-detail-section p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.programs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.program-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.program-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.program-item p {
    margin-bottom: 1rem;
}

.program-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.program-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlights-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    color: var(--text-dark);
}

.highlights-list i {
    color: var(--success-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.school-info-card,
.school-features-card,
.school-cta-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.school-info-card h3,
.school-features-card h3,
.school-cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-label {
    color: var(--text-light);
    font-weight: 600;
}

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

.features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.feature-tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.school-cta-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.school-cta-card .btn {
    margin-bottom: 0.75rem;
}

.loading,
.error-message {
    text-align: center;
    padding: 4rem 2rem;
}

.loading i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-message i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.error-message h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.error-message p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .filters-container {
        grid-template-columns: 1fr;
    }

    .listing-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .schools-container {
        grid-template-columns: 1fr;
    }

    .school-listing-details {
        grid-template-columns: 1fr;
    }

    .school-listing-footer {
        flex-direction: column;
    }

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

    .school-detail-title h1 {
        font-size: 2rem;
    }

    .highlights-list {
        grid-template-columns: 1fr;
    }
}

