/* ==========================================================================
   1. VARIABEL & GLOBAL STYLES (Dukungan Helper & Komponen Kartu)
   ========================================================================== */
:root {
    --primary-pink: #FF85A1;
    --soft-pink: #FFE5EC;
    --dark-pink: #F72585;
    --primary-green: #2A9D8F;
    --soft-green: #E8F5E9;
    --dark-green: #1B4332;
    --bg-light: #FAFAFA;
    --text-main: #2B2D42;
    --text-muted: #6C757D;
    --white: #FFFFFF;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Helper Utilities (Bootstrap & Utility Layout) */
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.fw-bold { font-weight: 700 !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase !important; }
.rounded-pill { border-radius: 50rem !important; }
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding-right: 15px; padding-left: 15px; }

/* Global Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark-green);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-muted);
}

/* Komponen Kartu Artikel (Dipakai di Home & Halaman Artikel) */
.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.article-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-pink);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.article-content h3 {
    font-size: 1.1rem;
    color: var(--dark-green);
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.btn-secondary-card {
    display: inline-block;
    margin-top: auto;
    padding: 8px 18px;
    border: 1.5px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.btn-secondary-card:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 80px; 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.nav-container,
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; 
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    box-sizing: border-box;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-green); 
}

.logo span {
    color: var(--primary-pink);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--dark-green);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--primary-pink);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center; 
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-pink);
}

.btn-header {
    background: var(--primary-green);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-header:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px; 
    padding: 0 18px; 
    font-size: 0.95rem; 
    border-radius: 20px;
    border: none;
    cursor: pointer;
    white-space: nowrap; 
}

.profile-btn .caret {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background-color: #ffffff;
    min-width: 150px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 6px 0;
    z-index: 1000;
}

.profile-dropdown:hover .dropdown-menu {
    display: block;
}

.profile-dropdown:hover .caret {
    transform: rotate(180deg);
}

.dropdown-item {
    color: #2B2D42;
    padding: 10px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.dropdown-item.logout-item:hover {
    background-color: #FFE5E5;
    color: #D90429;
    border-radius: 8px;
}

/* ==========================================================================
   3. HALAMAN HOME (Hero, Services, Artikel Home Slider, & Hotline)
   ========================================================================== */

/* --- 3.1 Hero / CTA Section --- */
.hero {
    min-height: calc(100vh - 80px); 
    padding: 60px 0;
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--soft-green) 100%);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%; 
}

.badge {
    display: inline-block;
    background: var(--white);
    color: var(--dark-pink);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-green);
}

.hero-title span {
    color: var(--dark-pink);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(255, 133, 161, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--soft-green);
}

.hero-image {
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply; 
}

/* --- 3.2 Services Section --- */
.services-section {
    padding: 96px 0 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-green);
    transition: all 0.3s ease;
}

.service-card:nth-child(even) {
    border-top-color: var(--primary-pink);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.icon-green {
    background: var(--soft-green);
    color: var(--primary-green);
}

.icon-pink {
    background: var(--soft-pink);
    color: var(--primary-pink);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

/* --- 3.3 Artikel Slider (Komponen Artikel Khusus Halaman Home) --- */
.home-articles-bg {
    padding: 96px 0;
    background-color: var(--white);
}

.articles-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 40px; 
    overflow: visible !important;
}

.articles-slider-track {
    display: flex;
    gap: 24px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 12px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.articles-slider-track::-webkit-scrollbar {
    display: none;
}

.home-articles-bg .article-card {
    background: var(--bg-light);
    flex: 0 0 calc((100% - 48px) / 3);
    box-sizing: border-box;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-pink);
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 133, 161, 0.4);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--dark-pink);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 16px rgba(247, 37, 133, 0.5);
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* --- 3.4 Hotline Section (Komponen Panggilan Bantuan Home) --- */
.hotline-section {
    padding: 60px 0 96px;
}

.hotline-box {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.hotline-text h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.btn-call {
    background: var(--primary-pink);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.btn-call:hover {
    background: var(--dark-pink);
    transform: scale(1.05);
}

/* ==========================================================================
   4. HALAMAN DETEKSI (Kuesioner, Pertanyaan & Notifikasi Peringatan)
   ========================================================================== */
.detection-container {
    padding: 60px 0 96px;
}

.detection-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 40px;
    max-width: 850px;
    margin: 0 auto;
}

/* Alert Box jika pengguna belum mengisi semua soal */
.alert-box {
    display: none;
    background-color: #FFE5E5;
    color: #D90429;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid #F5C6CB;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Styling Dropdown Kustom Usia */
.custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    user-select: none;
}

.dropdown-selected {
    background-color: var(--white);
    border: 1.5px solid var(--primary-pink);
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

/* Panah Kecil Dropdown */
.dropdown-selected::after {
    content: '▾';
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dropdown-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 99;
    overflow: hidden;
}

/* Tampilkan Opsi Saat Dropdown Aktif */
.custom-dropdown.active .dropdown-options {
    display: block;
}

.dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--text-main);
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* WARNA HOVER MOUSE 100% PINK SOFT (WARNA BIRU NATIVE WINDOWS HILANG TOTAL) */
.dropdown-item:hover,
.dropdown-item.is-selected {
    background-color: var(--soft-pink) !important;
    color: var(--dark-pink) !important;
    font-weight: 600;
}

.question-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-pink);
    transition: all 0.3s ease;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.question-card:nth-child(even) {
    border-left-color: var(--primary-green);
}

.question-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.question-number {
    background: var(--soft-pink);
    color: var(--dark-pink);
    font-weight: 700;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.question-card:nth-child(even) .question-number {
    background: var(--soft-green);
    color: var(--dark-green);
}

.question-body {
    width: 100%;
}

.question-text {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 1rem;
}

.options-group {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.option-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    user-select: none;
}

.option-label.yes { color: var(--primary-green); }
.option-label.no { color: var(--text-muted); }

.option-label input[type="radio"] {
    accent-color: var(--primary-pink);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.submit-container {
    margin-top: 36px;
}

.btn-submit {
    width: 100%;
    background: var(--primary-pink) ;
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(247, 37, 133, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    background: var(--dark-pink) ;
    box-shadow: 0 6px 20px rgba(247, 37, 133, 0.4);
}

/* ==========================================================================
   5. HALAMAN RIWAYAT
   ========================================================================== */
.history-section {
    padding: 40px 0 80px;
}

.card-history,
.history-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.history-card {
    padding: 32px;
}

.card-history .card-body {
    padding: 1.5rem;
}

.history-card h3 {
    font-size: 1.3rem;
    color: var(--dark-green);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-section .btn-primary,
.container .btn-primary[href*="deteksi"] {
    background-color: var(--primary-pink) !important;
    color: var(--white) !important;
    border: none !important;
}

.history-section .btn-primary:hover,
.container .btn-primary[href*="deteksi"]:hover {
    background-color: var(--dark-pink) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

.history-header-gradient {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 1.25rem 1.5rem;
}

.badge-latest {
    background-color: var(--soft-pink);
    color: var(--dark-pink);
    font-weight: 700;
    font-size: 0.85rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.history-table,
.table-history {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.history-table th,
.table-history th {
    background-color: var(--soft-green);
    color: var(--dark-green);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 16px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(42, 157, 143, 0.2);
}

.history-table th:first-child,
.table-history th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.history-table th:last-child,
.table-history th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.history-table td,
.table-history td {
    padding: 18px 20px;
    font-size: 0.95rem;
    color: var(--text-main);
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

.history-table tr:last-child td,
.table-history tr:last-child td {
    border-bottom: none;
}

.history-table tbody tr,
.table-history tbody tr {
    transition: background-color 0.2s ease;
}

.history-table tbody tr:hover,
.table-history tbody tr:hover {
    background-color: rgba(42, 157, 143, 0.03);
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.normal {
    background-color: var(--soft-green);
    color: var(--primary-green);
    border: 1px solid rgba(42, 157, 143, 0.3);
}

.status-badge.warning {
    background-color: var(--soft-pink);
    color: var(--dark-pink);
    border: 1px solid rgba(247, 37, 133, 0.2);
}

.badge-disorder {
    display: inline-block;
    background-color: var(--soft-pink);
    color: var(--dark-pink);
    border: 1px solid rgba(247, 37, 133, 0.2);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ==========================================================================
   6. HALAMAN ARTIKEL UTAMA (Search, Filter, Grid & Paginasi)
   ========================================================================== */
.articles-section:not(.home-articles-bg) {
    padding: 60px 0 96px;
    background-color: transparent;
}

.filter-search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    background-color: var(--white);
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

.filter-box {
    min-width: 180px;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    background-color: var(--white);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    border-color: var(--primary-green);
}

.btn-primary-search {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-search:hover {
    background-color: var(--dark-green);
}

.btn-reset {
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.btn-reset:hover {
    color: var(--dark-pink);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 0;
    color: var(--text-muted);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    background-color: var(--white);
    transition: all 0.2s ease;
}

.page-link:hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
    background-color: var(--soft-pink);
}

.page-link.active {
    background-color: var(--primary-pink);
    color: var(--white);
    border-color: var(--primary-pink);
    box-shadow: 0 4px 10px rgba(255, 133, 161, 0.3);
}

.page-link.disabled {
    color: #CBD5E1;
    border-color: #E2E8F0;
    cursor: not-allowed;
    background-color: #F8FAFC;
}

/* ==========================================================================
   HALAMAN DETAIL ARTIKEL
   ========================================================================== */
.article-detail-card {
    border-radius: var(--radius, 16px);
    background: var(--white);
}

.article-cover-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.article-content p {
    margin-bottom: 1.4rem;
}

.article-content h2, 
.article-content h3 {
    color: var(--dark-green);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-summary {
    font-size: 1.05rem;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
footer {
    background: var(--dark-green);
    color: var(--white);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr auto auto;
    gap: 60px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 320px;
    text-align: left;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--soft-pink);
    margin-bottom: 16px;
}

.footer-brand p {
    color: #A3B18A;
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.footer-socials a {
    color: #A3B18A;
    font-size: 1.25rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    color: var(--primary-pink);
    transform: translateY(-2px);
}

.footer-column {
    text-align: left;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #A3B18A;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-pink);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: #A3B18A;
    font-size: 0.875rem;
}

/* ==========================================================================
   8. MEDIA QUERIES (RESPONSIF)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    
    .articles-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }

    .home-articles-bg .article-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }

    .hotline-box { flex-direction: column; text-align: center; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .menu-toggle { 
        display: block; 
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch; /* Memastikan isi menu memenuhi lebar menu mobile */
        position: absolute;
        top: 80px; /* Sesuai dengan tinggi navbar */
        left: 0;
        width: 100%; /* Memaksa menu selebar layar mobile */
        height: auto; /* Membatalkan height: 100% bawaan desktop */
        background-color: var(--white);
        padding: 24px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 16px;
        border-radius: 0 0 16px 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-sizing: border-box;
    }

    .nav-links.active { 
        display: flex; 
    }

    .nav-links li {
        width: 100%;
        height: auto;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    /* Merapikan tombol login/profil agar pas di dalam menu mobile */
    .btn-header,
    .profile-dropdown,
    .profile-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .filter-search-container { flex-direction: column; align-items: stretch; }
    .search-box, .filter-box, .btn-primary-search { width: 100%; }
}

@media (max-width: 576px) {
    .articles-grid { 
        grid-template-columns: 1fr; 
    }
    
    .home-articles-bg .article-card {
        flex: 0 0 100%;
    }

    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
}