:root {
    --cream: #faf7e2;
    --dark-purple: #2F2549;
    --pink: #dd4760;
    --orange: #fea538;
    --teal: #3DB5A2;
    --soft-cream: #f5f1df;
}

body {
    background-color: var(--cream);
    font-family: 'Roboto', sans-serif;
    color: var(--dark-purple);
}

.text-teal {
    color: #3DB5A2;
}

.bg-purple-custom {
    background-color: var(--dark-purple);
}

.text-pink-custom {
    color: var(--pink);
}

.bg-pink-custom {
    background-color: var(--pink);
}

.btn-pink {
    background-color: var(--pink);
    color: white;
    transition: all 0.3s;
}

.btn-pink:hover {
    background-color: #e73c69;
    transform: translateY(-2px);
}

header {
    background: var(--soft-cream);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

footer {
    background: var(--soft-cream);
    border-top: 2px solid #ddd;
}

.footer-bottom {
    background: var(--dark-purple);
    color: white;
    padding: 12px;
    text-align: center;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

/* Animation Utilities */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Shared page header (Institutes, Compare): title + subtext, illustrations as icons */
.page-hero { display: flex; align-items: center; gap: 24px; }
.hero-text { flex: 1; min-width: 0; }
.hero-title { color: var(--teal); font-weight: 700; font-size: 1.6rem; line-height: 1.15; margin-bottom: 6px; }
.hero-em { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hero-sub { color: #7a7393; font-weight: 500; font-size: 0.95rem; line-height: 1.45; max-width: 46rem; }
.hero-icons { display: flex; gap: 14px; flex-shrink: 0; padding: 4px; }
.hero-icons img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
@media (min-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .hero-sub { font-size: 1.2rem; }
    .hero-icons { gap: 18px; padding: 8px 12px; }
    .hero-icons img { width: 116px; height: 116px; border-radius: 18px; }
}
@media (max-width: 520px) { .hero-icons img + img { display: none; } }

/* Shared chart source note */
.chart-note {
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.6;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.chart-note a {
    color: var(--pink);
    text-decoration: underline;
    margin-left: 4px;
}

/* Tag pills */
.tag-pill {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.tag-type {
    background: #ede9fe;
    color: #5b21b6;
}

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

/* Min-N filter toggle */
.min-filter-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #9ca3af;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.min-filter-label input[type="checkbox"] {
    accent-color: var(--pink);
    cursor: pointer;
}

.mobile-nav-link {
    display: block;
    padding: 10px 8px;
    border-radius: 6px;
    transition: background 0.12s;
}

.mobile-nav-link:hover {
    background: #f3f4f6;
}
