/**
 * ===========================================================================
 * IGE 운영 배포 변경 파일 (deploy-2026-05-02-v2)
 * ---------------------------------------------------------------------------
 * 변경 종류: 수정 (overwrite)
 * 변경 위치: 프리셋 칩, 학비 슬라이더 관련 CSS 추가
 * 변경 내용: 신UI CSS (프리셋 칩, 슬라이더, 카드 학비 표시)
 * 운영 baseline 대비: 본 파일은 운영 baseline 존재. 패키지가 overwrite.
 * 변경 사유: 사립학교 검색 UX 신규 컴포넌트 스타일
 * 의존성: private-schools/index.php, private-schools/js/app.js
 * 관련 문서: FOR_DEVELOPER.md §5.2
 * ===========================================================================
 */
/* ============================================
   BC Private Schools - Editorial Luxury
   Deep Ocean Palette
   Since: 2026-02-09
   ============================================ */

:root {
    /* Deep Ocean Palette (교육청 페이지 동일) */
    --ink-deep: #0a1628;
    --ink-medium: #152238;
    --ink-soft: #1e3a5f;
    --azure-pure: #0066cc;
    --azure-bright: #2d8cf0;
    --azure-glow: #5ba3f5;
    --sky-light: #7dd3fc;
    --pearl: #f8fafc;
    --silver: #94a3b8;
    --gold-warm: #f59e0b;
    --emerald: #10b981;

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Noto Sans KR', serif;
    --font-body: 'DM Sans', 'Noto Sans KR', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    /* Radius */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    /* Private Schools Specific */
    --ps-max-width: 1240px;
    --ps-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
    --ps-card-hover-shadow: 0 8px 24px rgba(0, 102, 204, 0.08), 0 24px 48px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Cinematic Animations
   ============================================ */
@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.98);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes cardRise {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spinRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-hero {
    animation: heroReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

/* ============================================
   Hero Section - Editorial Masthead
   ============================================ */
.ps-hero {
    position: relative;
    background: linear-gradient(145deg, var(--ink-deep) 0%, var(--ink-medium) 40%, var(--ink-soft) 100%);
    overflow: hidden;
    text-align: center;
}

.ps-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 10% 20%, rgba(45, 140, 240, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 90% 30%, rgba(0, 102, 204, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 90%, rgba(125, 211, 252, 0.08) 0%, transparent 50%);
    animation: subtleFloat 12s ease-in-out infinite;
}

.ps-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.ps-hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--pearl) 0%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}

.ps-hero-inner {
    position: relative;
    z-index: 10;
    max-width: var(--ps-max-width);
    margin: 0 auto;
    padding: 3.5rem 2rem 5rem;
}

.ps-hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--azure-glow);
    margin-bottom: var(--space-sm);
}

.ps-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    font-weight: 600;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.ps-hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.4rem;
    letter-spacing: 0.02em;
}

.ps-hero-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin-top: var(--space-md);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.ps-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: var(--space-lg);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.7rem 1.5rem;
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
}

.ps-hero-stat-icon {
    font-size: 1.1rem;
}

.ps-hero-stat strong {
    font-weight: 700;
    color: white;
}

/* ============================================
   District Filter - Sticky Dropdown
   ============================================ */
.ps-district-filter {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.ps-district-filter.is-stuck {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ps-district-filter-inner {
    max-width: var(--ps-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ps-district-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-medium);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
}

.ps-district-label-icon {
    font-size: 1rem;
}

.ps-district-select {
    flex: 1;
    max-width: 360px;
    padding: 10px 36px 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink-deep);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.25s ease;
}

.ps-district-select:focus {
    border-color: var(--azure-bright);
    box-shadow: 0 0 0 3px rgba(45, 140, 240, 0.1);
}

/* ============================================
   Section Headers (Secondary / Elementary)
   ============================================ */
.ps-section {
    margin-bottom: var(--space-lg);
}

.ps-section:last-child {
    margin-bottom: 0;
}

.ps-section-header {
    max-width: var(--ps-max-width);
    margin: 0 auto;
    padding: 28px 2rem 8px;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.ps-section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink-deep);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.ps-section-count {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--azure-pure);
    background: rgba(0, 102, 204, 0.08);
    padding: 3px 10px;
    border-radius: 100px;
}

/* ============================================
   Toolbar: Search + Sort
   ============================================ */
.ps-toolbar {
    background: var(--pearl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 14px 0;
}

.ps-toolbar-inner {
    max-width: var(--ps-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ps-search {
    position: relative;
    flex: 1;
    max-width: 380px;
}

.ps-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--silver);
    pointer-events: none;
}

.ps-search-input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink-deep);
    transition: all 0.25s ease;
    outline: none;
}

.ps-search-input::placeholder {
    color: #b0bec5;
}

.ps-search-input:focus {
    border-color: var(--azure-bright);
    box-shadow: 0 0 0 3px rgba(45, 140, 240, 0.1);
}

.ps-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ps-sort-label {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ps-sort-select {
    padding: 10px 32px 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink-deep);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.25s ease;
}

.ps-sort-select:focus {
    border-color: var(--azure-bright);
    box-shadow: 0 0 0 3px rgba(45, 140, 240, 0.1);
}

/* ============================================
   Result Info Bar
   ============================================ */
.ps-result-bar {
    background: var(--pearl);
    padding: 0 0 4px;
}

.ps-result-bar-inner {
    max-width: var(--ps-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.ps-result-info {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.ps-result-info strong {
    color: var(--ink-deep);
    font-weight: 700;
}

/* ============================================
   Content Area + Card Grid
   ============================================ */
.ps-content {
    background: var(--pearl);
    min-height: 400px;
    padding-bottom: var(--space-xl);
}

.ps-school-grid {
    max-width: var(--ps-max-width);
    margin: 0 auto;
    padding: 20px 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ============================================
   School Card
   ============================================ */
.ps-school-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--ps-card-shadow);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    animation: fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.ps-school-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--azure-pure), var(--azure-glow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-school-card:hover {
    box-shadow: var(--ps-card-hover-shadow);
    transform: translateY(-4px);
}

.ps-school-card:hover::before {
    transform: scaleX(1);
}

.ps-card-header {
    margin-bottom: 10px;
}

.ps-card-info {
    min-width: 0;
}

.ps-card-name {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink-deep);
    margin: 0 0 3px;
    line-height: 1.3;
}

.ps-card-city {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.ps-card-desc {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rank badge removed - not applicable for private schools */

/* ============================================
   Card Tags
   ============================================ */
.ps-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
    min-height: 24px;
}

.ps-card-tags span {
    padding: 3px 9px;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ps-tag-ige {
    background: linear-gradient(135deg, var(--ink-deep), var(--ink-soft));
    color: white;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.ps-tag-ige-premium {
    background: linear-gradient(135deg, #b45309, #f59e0b);
    color: white;
    font-weight: 700;
}

.ps-tag-ige-exclusive {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    color: white;
    font-weight: 700;
}

.ps-tag-boarding {
    background: #ecfdf5;
    color: #059669;
}

.ps-tag-category {
    background: #f3e8ff;
    color: #7c3aed;
}

.ps-tag-gender {
    background: #ede9fe;
    color: #7c3aed;
}

.ps-tag-esl {
    background: #dbeafe;
    color: #1d4ed8;
}

.ps-tag-religion {
    background: #fef3c7;
    color: #b45309;
}

/* ============================================
   Card Footer
   ============================================ */
.ps-card-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.ps-card-link {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--azure-pure);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.ps-school-card:hover .ps-card-link {
    color: var(--azure-bright);
}

/* ============================================
   Load More Button
   ============================================ */
.ps-loadmore-wrap {
    max-width: var(--ps-max-width);
    margin: 0 auto;
    padding: 24px 2rem 8px;
    text-align: center;
}

.ps-loadmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: 1.5px solid #e2e8f0;
    border-radius: 100px;
    background: white;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-medium);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ps-loadmore-btn:hover {
    border-color: var(--azure-bright);
    color: var(--azure-pure);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.ps-loadmore-btn:active {
    transform: translateY(0);
}

.ps-loadmore-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.ps-loadmore-btn:hover .ps-loadmore-icon {
    transform: rotate(90deg);
}

.ps-loadmore-remain {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--silver);
}

/* ============================================
   Section Divider
   ============================================ */
.ps-section + .ps-section .ps-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 15%, #e2e8f0 85%, transparent);
}

.ps-section + .ps-section .ps-section-header {
    position: relative;
    padding-top: 36px;
}

/* ============================================
   Loading State
   ============================================ */
.ps-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--silver);
    gap: 1rem;
}

.ps-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--azure-pure);
    border-radius: 50%;
    animation: spinRotate 0.7s linear infinite;
}

.ps-loading p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   Empty State
   ============================================ */
.ps-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--silver);
}

.ps-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.ps-empty-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

.ps-empty-sub {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--silver);
}

.ps-empty-reset {
    margin-top: 1.25rem;
    padding: 8px 20px;
    border: 1px solid var(--azure-pure);
    border-radius: 100px;
    background: transparent;
    color: var(--azure-pure);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ps-empty-reset:hover {
    background: var(--azure-pure);
    color: white;
}

/* ============================================
   Error State
   ============================================ */
.ps-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.ps-error-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.ps-error-retry {
    padding: 8px 20px;
    border: 1px solid #ef4444;
    border-radius: 100px;
    background: transparent;
    color: #ef4444;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ps-error-retry:hover {
    background: #ef4444;
    color: white;
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1024px) {
    .ps-school-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ps-hero-inner {
        padding: 3rem 1.5rem 4.5rem;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
    .ps-school-grid {
        grid-template-columns: 1fr;
        padding: 16px 1rem 0;
        gap: 12px;
    }

    .ps-hero-inner {
        padding: 2.5rem 1.25rem 3.5rem;
    }

    .ps-hero-title {
        font-size: 1.75rem;
    }

    .ps-hero-subtitle {
        font-size: 0.95rem;
    }

    .ps-hero-desc {
        font-size: 0.9rem;
    }

    /* District filter */
    .ps-district-filter-inner {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .ps-district-select {
        max-width: 100%;
        flex: 1;
    }

    /* Section header */
    .ps-section-header {
        padding: 20px 1rem 6px;
    }

    .ps-section-title {
        font-size: 1.25rem;
    }

    .ps-section + .ps-section .ps-section-header {
        padding-top: 28px;
    }

    .ps-section + .ps-section .ps-section-header::before {
        left: 1rem;
        right: 1rem;
    }

    /* Load more */
    .ps-loadmore-wrap {
        padding: 20px 1rem 8px;
    }

    .ps-loadmore-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.92rem;
    }

    /* Toolbar vertical */
    .ps-toolbar-inner {
        flex-direction: column;
        padding: 0 1rem;
        gap: 10px;
    }

    .ps-search {
        max-width: 100%;
    }

    .ps-sort {
        width: 100%;
        justify-content: space-between;
    }

    .ps-sort-select {
        flex: 1;
    }

    /* Result bar */
    .ps-result-bar-inner {
        padding: 0 1rem;
    }

    /* Cards */
    .ps-school-card {
        padding: 18px;
    }

    .ps-card-name {
        font-size: 0.95rem;
    }
}

/* ============================================
   Responsive - Small Mobile
   ============================================ */
@media (max-width: 480px) {
    .ps-hero-eyebrow {
        font-size: 0.7rem;
    }

    .ps-hero-title {
        font-size: 1.5rem;
    }

    .ps-hero-stat {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .ps-district-label {
        font-size: 0.75rem;
    }
}

/* ============================================
   Card stagger animation
   ============================================ */
.ps-school-card:nth-child(1)  { animation-delay: 0.02s; }
.ps-school-card:nth-child(2)  { animation-delay: 0.06s; }
.ps-school-card:nth-child(3)  { animation-delay: 0.10s; }
.ps-school-card:nth-child(4)  { animation-delay: 0.14s; }
.ps-school-card:nth-child(5)  { animation-delay: 0.18s; }
.ps-school-card:nth-child(6)  { animation-delay: 0.22s; }
.ps-school-card:nth-child(7)  { animation-delay: 0.26s; }
.ps-school-card:nth-child(8)  { animation-delay: 0.30s; }
.ps-school-card:nth-child(9)  { animation-delay: 0.34s; }
.ps-school-card:nth-child(10) { animation-delay: 0.38s; }
.ps-school-card:nth-child(11) { animation-delay: 0.42s; }
.ps-school-card:nth-child(12) { animation-delay: 0.46s; }
.ps-school-card:nth-child(13) { animation-delay: 0.50s; }
.ps-school-card:nth-child(14) { animation-delay: 0.54s; }
.ps-school-card:nth-child(15) { animation-delay: 0.58s; }
.ps-school-card:nth-child(16) { animation-delay: 0.62s; }
.ps-school-card:nth-child(17) { animation-delay: 0.66s; }
.ps-school-card:nth-child(18) { animation-delay: 0.70s; }
.ps-school-card:nth-child(19) { animation-delay: 0.74s; }
.ps-school-card:nth-child(20) { animation-delay: 0.78s; }

/* ============================================
   Print
   ============================================ */
@media print {
    .ps-hero,
    .ps-district-filter,
    .ps-toolbar {
        display: none;
    }

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

    .ps-school-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* ============================================
   Preset Chips
   ============================================ */
.ps-preset-bar {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: var(--pearl);
}
.ps-preset-inner {
    max-width: var(--ps-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ps-preset-inner::-webkit-scrollbar {
    display: none;
}
.ps-preset-chip {
    flex-shrink: 0;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--silver);
    border-radius: 2rem;
    background: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--font-body);
    color: var(--ink-medium);
}
.ps-preset-chip:hover {
    border-color: var(--ink-soft);
    background: #f8f9fa;
}
.ps-preset-chip.active {
    background: var(--ink-medium);
    color: #fff;
    border-color: var(--ink-medium);
}
.ps-chip-count {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ============================================
   Filters Bar
   ============================================ */
.ps-filters {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: #fafbfc;
}
.ps-filters-inner {
    max-width: var(--ps-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}
.ps-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.ps-filter-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-body);
}
.ps-filter-select {
    padding: 0.45rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    background: #fff;
    min-width: 120px;
    font-family: var(--font-body);
    color: var(--ink-medium);
}
.ps-filter-select:focus {
    border-color: var(--azure-pure);
    outline: none;
}

/* Tuition Slider */
.ps-filter-tuition {
    min-width: 200px;
}
.ps-tuition-range {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.ps-tuition-range input[type="range"] {
    width: 90px;
    accent-color: var(--ink-soft);
}
.ps-tuition-display {
    font-size: 0.8rem;
    color: var(--ink-medium);
    white-space: nowrap;
    font-family: var(--font-body);
}

/* Filter Reset */
.ps-filter-reset {
    padding: 0.45rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--radius-xs);
    background: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--silver);
    align-self: flex-end;
    font-family: var(--font-body);
    transition: all 0.2s;
}
.ps-filter-reset:hover {
    background: #f0f0f0;
    color: var(--ink-medium);
}

/* ============================================
   Card Tuition Display
   ============================================ */
.ps-card-tuition {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--azure-pure);
    margin-top: 0.2rem;
    font-family: var(--font-body);
}
.ps-card-tuition-na {
    color: var(--silver);
    font-weight: 400;
    font-size: 0.8rem;
}

/* ============================================
   Mobile Responsive (Filters)
   ============================================ */
@media (max-width: 768px) {
    .ps-preset-inner {
        padding: 0 1rem;
    }
    .ps-filters-inner {
        padding: 0 1rem;
    }
    .ps-filter-tuition {
        width: 100%;
    }
    .ps-tuition-range {
        flex-wrap: nowrap;
    }
    .ps-preset-chip {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }
}
