/* =========================================
   ACADEMICS PAGE – Premium Sidebar Layout
   ========================================= */

/* --- Main Layout --- */
.academics-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px 20px 100px;
    align-items: start;
}

/* --- Sidebar --- */
.academics-sidebar {
    position: sticky;
    top: 30px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eaeef3;
    box-shadow: 0 4px 20px rgba(10, 31, 68, 0.06);
    padding: 30px 0;
    transition: box-shadow 0.3s ease;
}

.academics-sidebar:hover {
    box-shadow: 0 8px 30px rgba(10, 31, 68, 0.1);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0a1f44;
    padding: 0 28px 16px;
    margin-bottom: 0;
    font-weight: 700;
}

/* Elegant Dividers */
.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0 20%, #d4af37 50%, #e0e0e0 80%, transparent);
    margin: 0 20px;
}

.sidebar-nav {
    padding: 12px 0;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 28px;
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar-nav-link .nav-icon {
    font-size: 1.1rem;
    min-width: 22px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar-nav-link:hover {
    background: rgba(10, 31, 68, 0.04);
    border-left-color: #d4af37;
    color: #0a1f44;
    padding-left: 32px;
}

.sidebar-nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.sidebar-nav-link.active {
    background: rgba(10, 31, 68, 0.07);
    border-left-color: #d4af37;
    color: #0a1f44;
    font-weight: 700;
}

.sidebar-nav-link.active::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #d4af37;
    border-radius: 50%;
}

/* --- Mobile Sidebar Toggle --- */
.sidebar-toggle-btn {
    display: none;
    width: 100%;
    padding: 16px 24px;
    background: #ffffff;
    border: 1px solid #eaeef3;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(10, 31, 68, 0.06);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: #0a1f44;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
    border-color: #d4af37;
}

.sidebar-toggle-btn .toggle-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.sidebar-toggle-btn .toggle-icon svg {
    width: 16px;
    height: 16px;
    stroke: #0a1f44;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* --- Content Area --- */
.academics-content {
    min-width: 0;
}

.academic-section {
    margin-bottom: 70px;
    scroll-margin-top: 50px;
}

.academic-section:last-child {
    margin-bottom: 0;
}

.section-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.06), rgba(212, 175, 55, 0.1));
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.academic-section h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: #0a1f44;
    margin-bottom: 8px;
    line-height: 1.3;
}

.section-gold-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f0d060);
    border-radius: 2px;
    margin-bottom: 24px;
}

.academic-section p {
    font-size: 1.02rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 18px;
}

.academic-section p:last-of-type {
    margin-bottom: 0;
}

/* Section Divider */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, #d4af37, #eaeef3 40%, transparent);
    margin: 0 0 70px;
}

/* Assessment List */
.assessment-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}

.assessment-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(10, 31, 68, 0.025);
    border-radius: 10px;
    border-left: 3px solid #d4af37;
    font-size: 0.98rem;
    color: #4a5568;
    transition: all 0.3s ease;
}

.assessment-list li:hover {
    background: rgba(10, 31, 68, 0.05);
    transform: translateX(4px);
}

.assessment-list li .list-icon {
    color: #d4af37;
    font-size: 1.1rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* --- Content Cards (optional accent blocks) --- */
.content-highlight-box {
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.03), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 14px;
    padding: 28px 30px;
    margin-top: 24px;
}

.content-highlight-box p {
    color: #374151;
    margin-bottom: 0;
}

/* ============================
   RESPONSIVE – Tablet
   ============================ */
@media (max-width: 1024px) {
    .academics-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 30px 20px 80px;
    }

    .academics-sidebar {
        position: relative;
        top: auto;
        border-radius: 12px;
        margin-bottom: 40px;
        overflow: hidden;
        max-height: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        opacity: 0;
        transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.35s ease,
            padding 0.35s ease,
            margin 0.35s ease;
    }

    .academics-sidebar.sidebar-open {
        max-height: 600px;
        padding: 24px 0;
        border: 1px solid #eaeef3;
        box-shadow: 0 4px 20px rgba(10, 31, 68, 0.06);
        opacity: 1;
        margin-bottom: 40px;
    }

    .sidebar-toggle-btn {
        display: flex;
        margin-bottom: 16px;
    }

    .sidebar-nav-link {
        padding: 12px 24px;
    }

    .sidebar-nav-link:hover {
        padding-left: 28px;
    }

}

/* ============================
   RESPONSIVE – Mobile
   ============================ */
@media (max-width: 767px) {

    .academics-layout {
        padding: 20px 16px 60px;
    }

    .academic-section {
        margin-bottom: 50px;
        scroll-margin-top: 30px;
    }

    .academic-section h2 {
        font-size: 1.5rem;
    }

    .section-divider {
        margin-bottom: 50px;
    }

    .section-icon-badge {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .sidebar-toggle-btn {
        border-radius: 10px;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .assessment-list li {
        padding: 12px 14px;
        font-size: 0.92rem;
    }
}

/* ============================
   Scroll Reveal for Content Sections
   ============================ */
.academic-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.academic-section.in-view {
    opacity: 1;
    transform: translateY(0);
}