.bg-ams-primary-light {
    background-color: var(--ams-primary-light);
}

/* Hero - Schools */
.hero-schools {
    background: linear-gradient(165deg, var(--ams-primary) 0%, #00208f 40%, var(--ams-primary-dark) 100%);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 3rem 3rem;
    padding: 4rem 0 3.5rem;
}

.hero-schools::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-schools::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge-prof {
    display: inline-block;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(4px);
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

/* School card */
.school-card {
    border-left: 4px solid var(--ams-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.school-card:hover {
    border-left-color: var(--ams-accent);
    transform: translateX(4px);
}

.school-card .school-level {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Map placeholder with pins */
.map-container {
    background: var(--ams-primary-light);
    border-radius: var(--ams-radius);
    border: 2px solid var(--ams-border);
    min-height: 320px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.map-container:hover {
    border-color: var(--ams-primary);
}

.map-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--ams-accent);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.map-pin:hover {
    transform: rotate(-45deg) scale(1.3);
    z-index: 10;
}

.map-pin .pin-label {
    transform: rotate(45deg);
    font-size: 8px;
}

.map-pin-1 {
    top: 25%;
    left: 30%;
}

.map-pin-2 {
    top: 45%;
    left: 55%;
}

.map-pin-3 {
    top: 15%;
    left: 70%;
}

.map-pin-4 {
    top: 55%;
    left: 20%;
}

.map-pin-5 {
    top: 35%;
    left: 75%;
}

/* Table */
.table-ams-pro th {
    background: var(--ams-primary-light);
    color: var(--ams-primary-dark);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--ams-primary);
    padding: 0.8rem 0.5rem;
}

.table-ams-pro td {
    padding: 0.8rem 0.5rem;
    vertical-align: middle;
    border-color: var(--ams-border);
}

.table-ams-pro tr:hover td {
    background-color: var(--ams-primary-light);
}

/* Filter bar */
.filter-bar-pro .form-select,
.filter-bar-pro .form-control {
    background-color: #fff;
    border: 1px solid var(--ams-border);
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.45rem 0.75rem;
    transition: border-color 0.2s;
}

.filter-bar-pro .form-select:focus,
.filter-bar-pro .form-control:focus {
    border-color: var(--ams-primary);
    box-shadow: 0 0 0 3px rgba(0, 22, 122, 0.08);
}

/* Stats counter */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ams-primary);
}

/* Toast notification */
.toast-ams {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--ams-primary);
    color: white;
    border-radius: var(--ams-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--ams-shadow-lg);
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 400px;
}

.toast-ams.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 576px) {
    .hero-schools {
        padding: 2.5rem 0 2rem;
        border-radius: 0 0 1.5rem 1.5rem;
    }

    .hero-schools h1 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .toast-ams {
        max-width: 90%;
        right: 5%;
        bottom: 10px;
    }
}

@media (max-width: 768px) {
    .hero-schools {
        padding: 2.5rem 0 2rem;
    }

    .map-pin {
        width: 18px;
        height: 18px;
    }

    .map-pin .pin-label {
        font-size: 6px;
    }
}

/* Loading shimmer */
.shimmer {
    background: linear-gradient(90deg, var(--ams-border) 25%, var(--ams-primary-light) 50%, var(--ams-border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.school-card.hidden {
    display: none;
}