:root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --bg-card: #141414;
    
    --primary: #00ff88;
    --primary-dim: rgba(0, 255, 136, 0.1);
    --secondary: #ff3d71;
    --secondary-dim: rgba(255, 61, 113, 0.1);
    
    --text: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #b8b8b8;
    
    --border: #1a1a1a;
    --border-bright: #222222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== SCHOOLS CONTAINER ===== */
.schools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* ===== HERO SECTION ===== */
.schools-hero {
    padding: 3rem 2rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: lowercase;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: lowercase;
    font-weight: 600;
}

.hero-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    text-transform: lowercase;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    text-transform: lowercase;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: lowercase;
}

/* ===== FILTERS SECTION ===== */
.filters-section {
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.filters-header {
    max-width: 1100px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: lowercase;
}

.btn-reset {
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--text-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-transform: lowercase;
}

.btn-reset:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filters-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

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

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: lowercase;
}

.filter-select,
.filter-input {
    background: var(--bg);
    border: 1px solid var(--border-bright);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-input {
    cursor: text;
}

.filter-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.6;
}

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

.filter-input.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

/* ===== RESULTS INFO ===== */
.results-info {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-transform: lowercase;
}

.results-count strong {
    color: var(--text);
    font-weight: 700;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.results-sort label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: lowercase;
}

.sort-select {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
}

/* ===== SCHOOLS LIST ===== */
.schools-list {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow: visible;
}

/* ===== SCHOOL CARD ===== */
.school-card {
    background: var(--bg-card);
    border: 2px solid var(--border-bright);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: visible;
}

.school-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.school-card.featured {
    border-color: rgba(255, 202, 40, 0.25);
    background: linear-gradient(135deg, rgba(255, 202, 40, 0.02), rgba(255, 179, 0, 0.04));
}

.school-card.featured:hover {
    border-color: rgba(255, 202, 40, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 202, 40, 0.1);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(255, 202, 40, 0.1), rgba(255, 179, 0, 0.18));
    color: #ffca28;
    padding: 0.5rem 1.25rem 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: lowercase;
    line-height: 1.3;
    white-space: nowrap;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 202, 40, 0.3);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.featured-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 202, 40, 0.08), transparent);
    animation: badgeShimmer 3s infinite;
}

@keyframes badgeShimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.school-card:hover .featured-badge {
    border-color: rgba(255, 202, 40, 0.5);
    background: linear-gradient(135deg, rgba(255, 202, 40, 0.14), rgba(255, 179, 0, 0.24));
}

/* School Header */
.school-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.school-name {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
    letter-spacing: -0.01em;
}

.school-location {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.school-rating {
    text-align: right;
}

.rating-stars {
    color: #ffd700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.rating-score {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.rating-count {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

/* Highlights */
.school-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.highlight-icon {
    font-size: 2rem;
    line-height: 1;
}

.highlight-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-transform: lowercase;
    margin-bottom: 0.25rem;
}

.highlight-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
}

/* Features */
.school-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-badge {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: lowercase;
}

/* Description */
.school-description {
    margin-bottom: 2rem;
}

.school-description p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Actions */
.school-actions {
    display: flex;
    gap: 1rem;
}

.btn-request-info,
.btn-visit,
.btn-compare {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-request-info {
    background: var(--primary);
    color: #000;
    border: none;
    flex: 1;
}

.btn-request-info:hover {
    background: #00dd77;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-visit {
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--text-secondary);
}

.btn-visit:hover {
    border-color: var(--text);
    color: var(--text);
}

.btn-compare {
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--text-tertiary);
}

.btn-compare:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-bookmark {
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--text-tertiary);
    padding: 0.85rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-bookmark:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-bookmark.bookmarked {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
}

/* ===== LOAD MORE ===== */
.load-more-section {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-bright);
    border-radius: 1rem;
}

.load-more-text {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    text-transform: lowercase;
}

.btn-load-more {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-transform: lowercase;
}

.btn-load-more:hover {
    background: var(--primary);
    color: #000;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
}

.cta-card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 184, 255, 0.1));
    border: 2px solid var(--primary);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: lowercase;
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-transform: lowercase;
}

.btn-cta {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-transform: lowercase;
}

.btn-cta:hover {
    background: #00dd77;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

/* ===== TRUST SECTION ===== */
.trust-section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.trust-title {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: lowercase;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 1rem;
}

.trust-label {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.trust-desc {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    text-transform: lowercase;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--bg-elevated);
    border: 2px solid var(--border-bright);
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    text-transform: lowercase;
    padding-right: 2rem;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-transform: lowercase;
}

/* ===== FORM ===== */
.request-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: lowercase;
}

.form-input,
.form-textarea {
    background: var(--bg);
    border: 1px solid var(--border-bright);
    color: var(--text);
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:hover,
.form-input:focus,
.form-textarea:hover,
.form-textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-consent {
    padding: 1rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 0.5rem;
}

.checkbox-label {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.btn-submit {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 1.25rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-transform: lowercase;
}

.btn-submit:hover {
    background: #00dd77;
    transform: translateY(-2px);
}

.form-note {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-align: center;
    text-transform: lowercase;
}

.form-input.invalid,
.form-textarea.invalid {
    border-color: #ff3d71;
    box-shadow: 0 0 0 3px rgba(255, 61, 113, 0.1);
}

.form-input.valid {
    border-color: var(--primary);
}

.form-field-error {
    font-size: 0.78rem;
    color: #ff3d71;
    margin-top: -0.25rem;
    display: none;
    text-transform: lowercase;
}

.form-field-error.show {
    display: block;
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .schools-hero {
        padding: 2rem 1.5rem 3rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .filters-section {
        padding: 2rem 1.5rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .results-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .schools-list {
        padding: 1.5rem 1.5rem 3rem;
        overflow: visible;
    }

    .school-card {
        padding: 2rem 1.5rem;
    }

    .school-header {
        flex-direction: column;
    }

    .school-rating {
        text-align: left;
    }

    .school-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .school-actions {
        flex-direction: column;
    }

    .btn-request-info,
    .btn-visit,
    .btn-compare {
        width: 100%;
    }

    .btn-bookmark {
        width: auto;
        align-self: flex-end;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

}

/* ===== COMPARE BAR ===== */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--primary);
    padding: 1rem 2rem;
    animation: slideUpBar 0.2s ease;
}

@keyframes slideUpBar {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.compare-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.compare-bar-schools {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    overflow-x: auto;
}

.compare-bar-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 2rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    text-transform: lowercase;
}

.compare-bar-pill-remove {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.compare-bar-pill-remove:hover {
    color: #ff4444;
}

.compare-bar-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.compare-bar-btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-transform: lowercase;
}

.compare-bar-btn:hover {
    background: #00dd77;
}

.compare-bar-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.compare-bar-clear {
    background: none;
    border: 1px solid var(--border-bright);
    color: var(--text-tertiary);
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    text-transform: lowercase;
    transition: all 0.2s;
}

.compare-bar-clear:hover {
    border-color: #ff4444;
    color: #ff4444;
}

/* ===== COMPARE MODAL ===== */
.compare-modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 80vh;
    overflow-y: auto;
}

.compare-table {
    margin-top: 1.5rem;
}

.compare-row {
    display: grid;
    gap: 1px;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.compare-row.compare-header {
    border-bottom: 2px solid var(--border-bright);
    font-weight: 700;
    color: var(--text);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}

.compare-row-label {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: lowercase;
}

.compare-row-value {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    text-transform: lowercase;
}

.compare-row-value.winner {
    color: var(--primary);
    font-weight: 700;
}

.compare-school-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    text-align: center;
    text-transform: lowercase;
}

@media (max-width: 768px) {
    .compare-bar-inner {
        flex-direction: column;
        gap: 0.75rem;
    }
    .compare-bar-schools {
        width: 100%;
    }
    .compare-bar-actions {
        width: 100%;
    }
    .compare-bar-btn, .compare-bar-clear {
        flex: 1;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
