/* Hide the footer on the compare page */
.rp-footer { display: none !important; }

.cmp-search-wrap {
    max-width: 820px;
    margin: 40px auto;
    padding: 0 20px 40px;
    font-family: 'DM Sans', sans-serif;
}

/* Search Card */
.cmp-search-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 28px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    text-align: left;
}
.cmp-search-input-wrap {
    position: relative;
    margin-bottom: 16px;
}
.cmp-search-input {
    width: 100%;
    box-sizing: border-box;
    height: 58px;
    padding: 0 50px 0 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    color: #000;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.cmp-search-input:focus { border-color: #0371be; box-shadow: 0 0 0 4px rgba(3,113,190,0.1); }
.cmp-search-input::placeholder { color: rgba(0,0,0,0.4); }
.cmp-search-input-icon {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
}
.cmp-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.cmp-filter-grid select {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: #000;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%23000' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 14px center / 10px no-repeat;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.cmp-filter-grid select:focus { border-color: #0371be; }
.cmp-filter-grid select option { color: #000; background: #fff; }
.cmp-search-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #0371be 0%, #00205d 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
}
.cmp-search-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.cmp-search-btn:active { transform: translateY(0); }

/* Results Section */
#cmpResultsSection { display: none; }
#cmpResultsSection.visible { display: block; }
.cmp-results-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 60px;
}
.cmp-results-heading {
    text-align: center;
    margin-bottom: 36px;
}
.cmp-results-heading p {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0371be;
    margin: 0 0 6px;
}
.cmp-results-heading h2 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #00205d;
    margin: 0 0 10px;
}
.cmp-results-heading .cmp-line {
    width: 50px; height: 4px;
    background: #0371be;
    border-radius: 2px;
    margin: 0 auto;
}
#cmpSchoolsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.cmp-school-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px 28px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'DM Sans', sans-serif;
    display: flex;
    flex-direction: column;
}
.cmp-school-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(3,113,190,0.12);
    border-color: #cbd5e1;
}
.cmp-school-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0371be, #00205d);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 8px 16px rgba(3,113,190,0.2);
}
.cmp-school-name {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #00205d;
    margin: 0 0 18px;
    line-height: 1.3;
    text-align: center;
}
.cmp-school-meta {
    list-style: none;
    padding: 0; margin: 0 0 16px;
    display: flex;
    flex-direction: column;
}
.cmp-school-meta li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1.5px solid #f1f5f9;
    font-size: 13.5px;
}
.cmp-school-meta li:last-child {
    border-bottom: none;
}
.cmp-school-meta .lbl {
    font-weight: 600;
    color: #00205d;
}
.cmp-school-meta .val {
    font-weight: 500;
    color: #475569;
    text-align: right;
    max-width: 60%;
    line-height: 1.4;
}
.cmp-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}
.cmp-btn-add {
    height: 44px;
    border-radius: 10px;
    border: 2px solid #0371be;
    background: transparent;
    color: #0371be;
    font-size: 14px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}
.cmp-btn-add:hover { background: #eff6ff; }
.cmp-btn-add.added {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.cmp-btn-view {
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0371be, #00205d);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.cmp-btn-view:hover { opacity: 0.88; }
.cmp-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 16px;
}
.cmp-no-results i { font-size: 48px; color: #cbd5e1; margin-bottom: 16px; display: block; }
@media (max-width: 1100px) {
    .cmp-filter-grid { grid-template-columns: 1fr; }
    .cmp-search-card { padding: 24px 16px; }
    #cmpSchoolsGrid { grid-template-columns: 1fr; }
    .cmp-search-wrap { margin-top: 20px; }
}
@media (max-width: 480px) {
    .cmp-card-actions { grid-template-columns: 1fr; }
}

/* Select2 Custom Styling */
.select2-container {
    width: 100% !important;
}
.select2-container--default .select2-selection--single {
    height: 54px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 52px !important;
    right: 10px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000 !important;
    line-height: 54px !important;
}
.select2-dropdown {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
    font-family: 'DM Sans', sans-serif !important;
    z-index: 9999 !important;
}
.select2-results__option {
    padding: 12px 15px !important;
    font-size: 14px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0371be !important;
}
.select2-search--dropdown .select2-search__field {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    outline: none !important;
}

/* Red border box & red text for unselected fields */
.field-error .select2-container--default .select2-selection--single,
div.field-error select,
select.field-error,
div.field-error input,
input.field-error {
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25) !important;
    background-color: #fff5f5 !important;
    color: #ef4444 !important;
    animation: rpShake 0.3s ease-in-out;
}

.field-error .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ef4444 !important;
}

.field-error .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #ef4444 transparent transparent transparent !important;
}

select.field-error option {
    color: #000000;
}

@keyframes rpShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}
@media (max-width: 480px) {
    .cmp-search-card { padding: 20px 12px; }
    .cmp-search-wrap { padding: 0 10px 40px; }
    .cmp-search-btn { height: 50px; font-size: 15px; }
}

/* Hero background gradient */
.hero-bg {
    background: linear-gradient(135deg, #0371be, #00205d);
}

/* School Card */
.school-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.school-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Section hover effect */
.section {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
/* Glass effect cards */
.card-glass {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 1rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-glass:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Badges */
.badge {
    background: linear-gradient(135deg, #0371be, #00205d);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}
.badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Staggered fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Section hover glow */
.section:hover {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Animate facilities icon */
.animate-bounce {
    animation: bounce 1.2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Converted from inline style attributes */
body .cmp-inl-1 {
    padding: 60px 20px 40px;
    background: #f8fafc;
}
body .cmp-inl-2 {
    max-width: 1200px;
    margin: 0 auto;
}
body .cmp-inl-3 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #00205d;
    text-align: center;
    margin: 0 0 32px;
}
body .cmp-inl-4 {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
body .cmp-inl-5 {
    width: 100%;
    border-collapse: collapse;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}
body .cmp-inl-6 {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    color: #fff;
}
body .cmp-inl-7 {
    padding: 14px 20px;
    text-align: left;
    font-weight: 700;
}
body .cmp-inl-8 {
    padding: 14px 16px;
    text-align: center;
    font-weight: 700;
}
body .cmp-inl-9 {
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}
body .cmp-inl-10 {
    padding: 13px 20px;
    font-weight: 600;
    color: #1e293b;
}
body .cmp-inl-11 {
    padding: 13px 16px;
    text-align: center;
    color: #475569;
}
body .cmp-inl-12 {
    border-bottom: 1px solid #e2e8f0;
    background: #f1f5f9;
}
body .cmp-inl-13 {
    background: #fff;
}
body .cmp-inl-14 {
    padding-top: 80px;
    padding-bottom: 60px;
}
body .cmp-inl-15 {
    text-align: center;
    margin-bottom: 36px;
}
body .cmp-inl-16 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #00205d;
    margin: 0 0 12px;
    line-height: 1.2;
}
body .cmp-inl-17 {
    color: #0371be;
}
body .cmp-inl-18 {
    color: #64748b;
    font-size: 16px;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}
body .cmp-inl-19 {
    position: relative;
}
body .cmp-inl-20 {
    animation-delay: 0.2s;
}
