* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f9fafb;
    /* Deep maroon / EVSU-inspired background */
    background: radial-gradient(circle at top, #7f1d1d 0, #3b0d11 35%, #020617 100%);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

 .navbar {
    padding: 2.5rem 1.5rem 1rem;
 }

.top-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.top-links a {
    color: #fde68a;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.25);
    background: rgba(248, 113, 113, 0.08);
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.top-links a:hover {
    border-color: rgba(248, 250, 252, 0.6);
    background: rgba(248, 113, 113, 0.14);
}

.brand {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(127, 29, 29, 0.9);
    border: 1px solid rgba(248, 250, 252, 0.35);
}

.brand h1 {
    margin: 0.6rem 0 0.4rem;
    font-size: clamp(1.9rem, 3.4vw + 1rem, 2.6rem);
}

.subtitle {
    margin: 0.25rem auto 0;
    max-width: 640px;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.subtitle-secondary {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #d1d5db;
}

.link {
    color: #f97373;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.content {
    flex: 1;
    padding: 0 1.5rem 2.5rem;
}

.authority {
    max-width: 1080px;
    margin: 0 auto 1.5rem;
}

.authority-card {
    background: rgba(24, 11, 15, 0.9);
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: 1rem;
    padding: 1.25rem 1.2rem;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.7);
}

.authority-card h2 {
    margin: 0 0 0.4rem;
}

.authority-card p {
    margin: 0 0 0.8rem;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.authority-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.grid {
    max-width: 1080px;
    margin: 1.75rem auto 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    position: relative;
    background: rgba(24, 11, 15, 0.96);
    border-radius: 1rem;
    padding: 1.5rem 1.4rem 1.4rem;
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(248, 113, 113, 0.55);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
    border-color: rgba(252, 165, 165, 0.95);
    background: rgba(30, 12, 16, 0.98);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.card-icon-blue {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
}

.card-icon-green {
    background: linear-gradient(135deg, #f97316, #b45309);
}

.card-icon-rose {
    background: linear-gradient(135deg, #fca5a5, #ef4444);
}

.card-icon-purple {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.card-icon img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.card p {
    margin: 0 0 0.9rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.7);
    text-decoration: none;
}

.pill-online {
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(34, 197, 94, 0.7);
}

.pill-offline {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(248, 113, 113, 0.8);
}

.helper {
    max-width: 1080px;
    margin: 0 auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(51, 65, 85, 0.7);
    color: #9ca3af;
    font-size: 0.85rem;
    text-align: center;
}

.helper p {
    margin: 0.75rem 0 0;
}

.subdomains {
    max-width: 1080px;
    margin: 1.5rem auto 1rem;
    background: rgba(24, 11, 15, 0.92);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 1rem;
    padding: 1.25rem 1.1rem;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.7);
}

.subdomains-header h2 {
    margin: 0;
}

.subdomains-header p {
    margin: 0.2rem 0 0.9rem;
    color: #e5e7eb;
}

.subdomain-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.8rem;
}

.subdomain-card {
    padding: 0.9rem 0.85rem;
    border-radius: 0.9rem;
    background: rgba(17, 10, 14, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.subdomain-name {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.subdomain-desc {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
    color: #e5e7eb;
    border-top: 1px solid rgba(51, 65, 85, 0.7);
    background: rgba(12, 6, 10, 0.9);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.footer a {
    color: #fde68a;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-note {
    font-size: 0.85rem;
    color: #cbd5e1;
}

@media (max-width: 640px) {
    .navbar {
        padding-top: 1.75rem;
    }

    .content {
        padding-bottom: 1.75rem;
    }

    .authority-card,
    .subdomains {
        padding: 1rem 0.9rem;
    }
}
