/* ================================================
   Schools List Page — Figma-Exact & Interactive
   ================================================ */

:root {
    --sch-gold: #E8BA00;
    --sch-border: rgba(107, 114, 128, 0.12);
    --sch-text: #111827;
    --sch-muted: #6B7280;
    --sch-bg-soft: #F8F8F8;
    --sch-success: #008000;
}

.school-wrapper {
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

/* 90% width container for the main content */
.school-content-90 {
    width: 90%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ════ FIX: landing.css has a bare `nav {}` rule (position:absolute) that
   bleeds into the Bootstrap pagination <nav> element. Reset it here. ════ */
.school-wrapper nav,
.school-content-90 nav {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
    align-items: initial !important;
    justify-content: initial !important;
}

/* ════ CONTENT CONSTRAINTS ════ */
.vp-main {
    max-width: 1500px;
    margin: 0 auto;
}

/* ════ HERO OVERRIDES ════ */
.vp-hero-subtitle {
    max-width: 850px;
    margin: 0 auto;
}

/* ════ RANKING ALERT ════ */
.school-ranking-alert {
    background: #FFFDF0;
    border: 1px solid rgba(232, 186, 0, 0.2);
    border-radius: 12px;
    padding: 24px;
    max-width: 850px;
    margin: 0 auto 48px;
}

.school-ranking-alert .alert-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.school-ranking-alert i {
    color: #E8BA00;
    font-size: 20px;
    margin-top: 4px;
}

.school-ranking-alert h5 {
    color: #111827;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
}

.school-ranking-alert p {
    color: #4B5563;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* ════ SCHOOL LIST ════ */
.school-list-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* ════ SCHOOL CARD ════ */
.school-card {
    display: flex;
    flex-direction: row-reverse;
    background: #FFFFFF;
    border: 1px solid rgba(107, 114, 128, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    min-height: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

html[dir="ltr"] .school-card {
    flex-direction: row;
}

.school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.school-logo-area {
    width: 220px;
    background: #F9FAFB;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-left: 1px solid rgba(107, 114, 128, 0.05);
}

html[dir="ltr"] .school-logo-area {
    border-left: none;
    border-right: 1px solid rgba(107, 114, 128, 0.05);
}

.school-logo-area img {
    width: 130px;
    height: 130px;
    object-fit: contain;
}

.school-card-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    text-align: right;
}

html[dir="ltr"] .school-card-content {
    text-align: left;
}

.school-card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.school-card-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #111827;
    margin: 0;
}

.school-verified-icon {
    width: 20px;
    height: 20px;
    color: #10B981;
}

.school-rating {
    display: flex;
    gap: 3px;
    color: #FBBF24;
    margin-bottom: 8px;
}

.school-location-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B7280;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    margin-bottom: 16px;
}

.school-location-icon {
    width: 18px;
    height: 18px;
    color: #9CA3AF;
}

.school-card-footer {
    display: flex;
    justify-content: flex-start; /* Right in RTL */
}

html[dir="ltr"] .school-card-footer {
    justify-content: flex-end; /* Right in LTR */
}


.school-btn-details:hover {
    filter: brightness(1.05);
    color: var(--sch-text);
}

/* ════ CUSTOM TOKEN MODAL ════ */
.token-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.token-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.token-modal-card {
    width: 500px;
    background: #FFFFFF;
    border: 1px solid var(--sch-border);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 60px 40px 40px;
    position: relative;
    text-align: center;
}

.token-modal-illustration {
    width: 250px;
    /* Scaled down from 490px */
    height: auto;
    margin-bottom: 20px;
}

.token-modal-text {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: var(--sch-text);
    margin-bottom: 40px;
}

.token-modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.token-btn-confirm {
    width: 150px;
    height: 46px;
    background: linear-gradient(183.06deg, #FFFFFF -10.89%, #E8BA00 97.46%);
    border: 1px solid var(--sch-border);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--sch-text);
    cursor: pointer;
    border: none;
}

.token-btn-cancel {
    width: 150px;
    height: 46px;
    background: #FFFFFF;
    border: 1px solid var(--sch-gold);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--sch-text);
    cursor: pointer;
}

/* ════ RESPONSIVE ════ */
@media (max-width: 1024px) {
    .school-list-container {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .vp-main {
        padding: 0 20px !important;
    }

    .school-card {
        flex-direction: column !important;
        height: auto;
    }

    .school-logo-area {
        width: 100%;
        height: 160px;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid rgba(107, 114, 128, 0.05);
    }

    .school-card-content {
        padding: 20px;
    }

    .vp-hero-title {
        font-size: 30px;
    }

    .vp-hero-subtitle {
        font-size: 18px;
    }

    .school-card-footer {
        width: 100%;
    }

    .vp-btn-details {
        width: 100% !important;
    }
}
/* Global Button Hover Fix */
a[class*="btn"]:hover,
a.school-btn-details:hover {
    text-decoration: none !important;
}
