/* --- FAQ LAYOUT & TYPOGRAPHY --- */
.admin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Inter', sans-serif;
}

.admin-hero {
    text-align: center;
    margin-bottom: 50px;
}

.admin-hero h1 {
    font-size: 2.5rem;
    color: #111827;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2; /* Better wrapping on small screens */
}

.admin-hero p {
    color: #6b7280;
    font-size: 1.1rem;
    padding: 0 10px;
}

/* --- THE WHITE CARD CONTAINER --- */
.faq-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

/* --- CATEGORY HEADER (Academic Resources) --- */
.faq-category-header {
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
}

.faq-category-icon {
    background-color: #eff6ff;
    color: #15803d;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevents icon from squishing on mobile */
}

/* --- ACCORDION ITEMS --- */
.faq-item {
    border-bottom: 1px solid #f3f4f6;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    transition: color 0.3s ease;
    gap: 15px; /* Space between question text and chevron */
}

.faq-question:hover {
    color: #10b981;
}

.faq-chevron {
    color: #9ca3af;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevents chevron from shrinking */
}

/* Rotate chevron when active */
.faq-question.active .faq-chevron {
    transform: rotate(180deg);
    color: #10b981;
}

/* --- HIDDEN ANSWER --- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: #4b5563; 
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- ANIMATED UNDERLINE HIGHLIGHT --- */
.underlined {
    color: #15803d; /* Changed to match your primary green */
    position: relative;
    display: inline-block;
}

.underlined::after {
    content: '';
    position: absolute;
    bottom: -5px; 
    left: 0;
    height: 4px;
    background: #10b981; /* Emerald Green Line */
    border-radius: 2px;
    width: 0;
    animation: loadLine 1.2s ease-out forwards;
    animation-delay: 0.3s; 
}

@keyframes loadLine {
    0% { width: 0; opacity: 0; }
    100% { width: 100%; opacity: 1; }
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
    .admin-container {
        padding: 40px 15px;
    }

    .admin-hero h1 {
        font-size: 1.8rem;
    }

    .faq-question {
        padding: 20px 15px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 15px;
    }

    .faq-category-header {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .admin-hero h1 {
        font-size: 1.6rem;
    }
    
    .faq-question {
        line-height: 1.4;
    }
}