/* Schools List Page Styles */

/* Add padding for fixed header */
body {
    padding-top: 80px;
}

/* Page Title */
.page-title {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8800 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.page-title-content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.page-title-content p {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Search Section */
.search-section {
    padding: 3rem 2rem;
    background: white;
    border-bottom: 1px solid #E0E0E0;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2rem;
    text-align: center;
}

.search-form {
    background: #FAFAFA;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 2px solid #F0F0F0;
}

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

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.search-field select {
    padding: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-search {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    padding: 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Zen Maru Gothic', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: #FF8800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 158, 0, 0.3);
}

/* Schools List Section */
.schools-list-section {
    padding: 4rem 2rem;
    background: #FAFAFA;
}

.schools-container {
    max-width: 1200px;
    margin: 0 auto;
}

.schools-header {
    margin-bottom: 2rem;
}

.schools-count {
    font-size: 1.1rem;
    color: var(--text-light);
}

.schools-count span {
    font-weight: 700;
    color: var(--primary);
}

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

/* School Card */
.school-card {
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.school-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.school-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #F5F5F5;
}

.school-image img {
    transition: transform 0.3s ease;
}

.school-card:hover .school-image img {
    transform: scale(1.05);
}

.school-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.school-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.school-area {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.school-curriculum {
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.school-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.school-fee {
    background: #FFF8E1;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}

.fee-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.fee-amount {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
}

.school-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex: 1;
}

.school-btn {
    display: block;
    width: auto;
    min-width: 200px;
    max-width: 250px;
    margin: 1.5rem auto 0;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 3rem;
    transition: all 0.3s ease;
}

.school-btn:hover {
    background: #FF8800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 158, 0, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
    padding: 2rem 0;
}

.pagination-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    color: var(--text);
    border: 2px solid #E0E0E0;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--text);
    border: 2px solid #E0E0E0;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-number.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 968px) {
    .page-title-content h1 {
        font-size: 2.5rem;
    }

    .search-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .search-form {
        padding: 2rem;
    }

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

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-white,
    .btn-outline {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .page-title {
        padding: 3rem 2rem;
    }

    .page-title-content h1 {
        font-size: 2rem;
    }

    .page-title-content p {
        font-size: 1rem;
    }

    .search-section {
        padding: 2rem 1rem;
    }

    .search-title {
        font-size: 1.5rem;
    }

    .search-form {
        padding: 1.5rem;
    }

    .school-image {
        height: 220px;
    }

    .school-content {
        padding: 1.5rem;
    }

    .school-name {
        font-size: 1.3rem;
    }

    .fee-amount {
        font-size: 1.1rem;
    }

    .pagination-numbers {
        gap: 0.3rem;
    }

    .pagination-number {
        width: 40px;
        height: 40px;
    }

    .cta-section {
        padding: 4rem 2rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .btn-white,
    .btn-outline {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
