/* Base Styles */

:root {
    --primary-color: #14532d;
    --primary-color-hover: #166534;

    --bg-color: #f8f5e9;
    --secondary-color: #d4af37;
    --accent-purple: #0f766e;
    --supporting-color: #ffffff;
    --accent-color: #4d7c0f;

    --main-text: #1f2937;
    --secondary-text: #4b5563;
    --light-gray: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--main-text);
    background-color: #f9fafb;
    line-height: 1.6;
}

html {
    scroll-padding-top: 80px;
}

/* =============================
   HERO AKADEMIK
============================= */
.hero-section-akademik {
    position: relative;
    height: 500px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-color-hover) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
}

#hero-canvas-akademik {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: block;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    animation: heroBlobDrift 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-blob-1 {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.08);
    top: -80px;
    left: -60px;
    animation-duration: 12s;
}

.hero-blob-2 {
    width: 220px;
    height: 220px;
    background: rgba(244, 196, 48, 0.1);
    bottom: -60px;
    right: -40px;
    animation-duration: 9s;
    animation-delay: -4s;
}

.hero-blob-3 {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.05);
    top: 35%;
    right: 12%;
    animation-duration: 14s;
    animation-delay: -7s;
}

@keyframes heroBlobDrift {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(15px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-12px, 15px) scale(0.97);
    }
}

.hero-corner {
    position: absolute;
    width: 52px;
    height: 52px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.hero-corner-tl {
    top: 28px;
    left: 28px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.9);
    border-left: 1.5px solid rgba(255, 255, 255, 0.9);
}

.hero-corner-tr {
    top: 28px;
    right: 28px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.9);
    border-right: 1.5px solid rgba(255, 255, 255, 0.9);
}

.hero-corner-bl {
    bottom: 48px;
    left: 28px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.9);
    border-left: 1.5px solid rgba(255, 255, 255, 0.9);
}

.hero-corner-br {
    bottom: 48px;
    right: 28px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.9);
    border-right: 1.5px solid rgba(255, 255, 255, 0.9);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 24px 32px 0;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
    animation: heroFadeUp 0.7s ease both;
}

.hero-eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f4c430;
    flex-shrink: 0;
    animation: eyebrowDotPulse 2s ease-in-out infinite;
}

@keyframes eyebrowDotPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.6);
    }
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(100, 20, 0, 0.2);
    animation: heroFadeUp 0.7s 0.12s ease both;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    line-height: 1.6;
    animation: heroFadeUp 0.7s 0.22s ease both;
}

.hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
    animation: heroFadeUp 0.7s 0.32s ease both;
}

.hero-ornament-line {
    height: 1px;
    width: 52px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
}

.hero-ornament-line.right {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
}

.hero-ornament-diamond {
    width: 7px;
    height: 7px;
    background: #f4c430;
    transform: rotate(45deg);
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(244, 196, 48, 0.6);
}

.hero-ayat {
    font-family: "Amiri", serif;
    font-size: 1.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 2;
    direction: rtl;
    text-shadow: 0 2px 16px rgba(100, 20, 0, 0.3);
    margin-bottom: 6px;
    animation: heroFadeUp 0.7s 0.42s ease both;
}

.hero-ayat-latin {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    letter-spacing: 0.4px;
    animation: heroFadeUp 0.7s 0.52s ease both;
}

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

/* =============================
   MAIN CONTENT
============================= */
.main-content {
    padding: 3rem 5%;
}

/* =============================
   AKADEMIK GRID
============================= */
.akademik-content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* =============================
   SIDEBAR
============================= */
.fixed-sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
}

.sidebar {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--main-text);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-menu-item {
    display: block;
    text-decoration: none;
    color: var(--secondary-text);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-menu-item:hover {
    background-color: rgba(167, 14, 19, 0.07);
    color: var(--primary-color);
    transform: translateX(3px);
}

/* =============================
   ANNOUNCEMENT (warna disesuaikan agar semantically benar)
============================= */
.sidebar-announcement {
    margin-top: 2rem;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-item {
    padding: 1rem;
    border-radius: 0.75rem;
    border-left: 5px solid transparent;
}

.announcement-item.info {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left-color: #2196f3;
}

.announcement-item.warning {
    background-color: #fff8e1;
    color: #8a6d1d;
    border-left-color: var(--secondary-color);
}

.announcement-item.success {
    background-color: #eef3e8;
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.announcement-text {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* =============================
   AKADEMIK CONTENT MAIN
============================= */
.akademik-content-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Satu class untuk semua section card (Kurikulum, Jadwal, Evaluasi, Prestasi) */
.akademik-content-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =============================
   SECTION HEADER
============================= */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-bullet {
    width: 0.75rem;
    height: 2rem;
    background-color: var(--primary-color);
    border-radius: 999px;
    margin-right: 0.75rem;
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* =============================
   TWO COLUMN GRID
============================= */
.two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* =============================
   SUBSECTION (Tahfidz = merah, Akademik = hijau, agar dua kolom punya identitas berbeda)
============================= */
.subsection-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 0.9rem;
}

.subsection-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3rem;
    bottom: 0.3rem;
    width: 4px;
    border-radius: 2px;
}

.subsection-title.tahfidz {
    color: var(--primary-color);
}
.subsection-title.tahfidz::before {
    background-color: var(--primary-color);
}

.subsection-title.akademik {
    color: var(--accent-color);
}
.subsection-title.akademik::before {
    background-color: var(--accent-color);
}

.subsection-content {
    font-size: 1rem;
    color: var(--secondary-text);
    line-height: 1.8;
    padding-left: 1.2rem;
}

.subsection-content li {
    margin-bottom: 0.75rem;
}

/* =============================
   TABLE
============================= */
.table-wrapper {
    overflow-x: auto;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--light-gray);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table thead {
    background-color: var(--primary-color);
    color: white;
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.schedule-table tbody tr:hover {
    background-color: rgba(167, 14, 19, 0.04);
}

/* =============================
   EVALUATION
============================= */
.evaluation-item {
    padding: 1.5rem;
    border: 1px solid var(--light-gray);
    border-top: 4px solid var(--light-gray);
    border-radius: 1rem;
    background-color: var(--supporting-color);
}

.evaluation-item.tahfidz {
    border-top-color: var(--primary-color);
}

.evaluation-item.akademik {
    border-top-color: var(--accent-color);
}

.evaluation-desc {
    margin-top: 0.5rem;
    color: var(--secondary-text);
    line-height: 1.8;
}

/* =============================
   ACHIEVEMENT (gold = warna "prestasi/trofi")
============================= */
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background-color: var(--supporting-color);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.achievement-badge {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: rgba(244, 196, 48, 0.18);
    color: #b8861f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

.achievement-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #b8861f;
}

.achievement-desc {
    margin-top: 0.4rem;
    color: var(--secondary-text);
    line-height: 1.8;
}

/* =============================
   TOGGLE BUTTON
============================= */
.sidebar-toggle {
    display: none;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: var(--primary-color-hover);
}

/* =============================
   OVERLAY
============================= */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 998;
}

@media (max-width: 991px) {
    .akademik-content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-toggle {
        display: block;
    }

    .fixed-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 280px;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 9999;
        transition: left 0.3s ease;
        padding: 1rem;
        background: #fff;
    }

    .fixed-sidebar.active {
        left: 0;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .akademik-content-main {
        width: 100%;
    }

    body.sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 600px) {
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-title-akademik {
        font-size: 2rem;
    }

    .akademik-content-section {
        padding: 1.5rem;
    }
}
