:root {
    --main-red: #B61E2E;
    --main-red-light: #C93A46;
    --text-dark: #1F2937;
    --text-muted: #4B5563; /* darkened for contrast */
    --bg-light: #F3F4F6;
    --card-bg: #ffffff;
    --border: #D1D5DB; /* slightly darker for contrast */
}

/* GLOBAL RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 16px;
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* PAGE WRAPPER */
.page-wrapper {
    max-width: 1100px;
    margin: auto;
    animation: fadeIn 0.6s ease-out;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animated-card {
    animation: slideUp 0.6s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .animated-card {
        opacity: 1;
        transform: none;
    }
}

/* HEADER */
.header-card {
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 24px 24px 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    margin-bottom: 26px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
    text-align: center;
}

.header-text h1 {
    margin: 0 0 4px;
    color: var(--main-red);
    font-size: 1.9rem;
}

.header-text .subline,
.campus-line {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FAQ LAYOUT */
.faq-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
}

@media (max-width: 850px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }
}

/* SECTION TITLES */
.faq-section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.08rem;
    margin: 0 0 8px;
}

/* FAQ CARDS */
.faq-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 18px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}

/* DETAILS / SUMMARY */
details {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 14px 18px; /* increased for touch targets */
    transition: 0.2s ease;
}

details + details {
    margin-top: 12px;
}

details[open] {
    border-color: var(--main-red-light);
    background: #fff6f6;
    box-shadow: 0 4px 12px rgba(182, 30, 46, 0.15);
}

summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0; /* improves focus visibility */
}

summary:focus-visible {
    outline: 3px solid var(--main-red-light);
    outline-offset: 4px;
}

summary::-webkit-details-marker { display: none; }

/* FAQ TEXT */
.faq-question {
    font-weight: 600;
    color: var(--main-red);
    font-size: 1rem;
}

.faq-tagline {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chevron {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: 0.2s;
}

details[open] .chevron {
    transform: rotate(90deg);
    color: var(--main-red);
}

.faq-answer {
    margin-top: 10px;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* LINKS */
.resource-label {
    margin-top: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.resource-links {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
    gap: 4px;
}

.resource-links a {
    color: var(--main-red);
    font-size: 0.9rem;
    text-decoration: underline;
}

.resource-links a:hover,
.resource-links a:focus-visible {
    color: var(--main-red-light);
    outline: 3px solid var(--main-red-light);
    outline-offset: 3px;
}

/* SIDEBAR */
.sidebar-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--main-red);
    margin-bottom: 8px;
}

.sidebar-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* PILL DROPDOWNS */
.pill-dropdown {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 14px 18px; /* larger touch target */
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 12px;
}

.pill-dropdown[open] {
    background: #fff0f0;
    border-color: var(--main-red-light);
}

.pill-dropdown summary {
    list-style: none;
    font-weight: 600;
    color: var(--main-red);
}

.pill-dropdown summary:focus-visible {
    outline: 3px solid var(--main-red-light);
    outline-offset: 4px;
}

.dropdown-content {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-dark);
}
