/* ============================================
   HOMEPAGE - BUDAYA SEHAT REDESIGN V5
   Exact Match to Reference UI/UX
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

body {
    background-color: #f8fafc !important;
    font-family: 'Poppins', sans-serif;
    color: #334155;
    margin: 0;
    padding: 0;
}

.home-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 10px;
    margin-top: 25px;
    padding: 45px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 50%;
    z-index: 2;
}

.hero-content h1 {
    font-size: 31px;
    font-weight: 800;
    color: #064e3b;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.hero-content p {
    font-size: 15px;
    color: #047857;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: #059669;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.btn-hero-primary:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
    color: #fff !important;
}

.btn-hero-secondary {
    background: #fff;
    color: #059669 !important;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid #10b981;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    text-decoration: none !important;
}

.btn-hero-secondary:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    color: #059669 !important;
}

.hero-illustration {
    position: absolute;
    right: 260px;
    bottom: 0;
    z-index: 1;
}

.hero-illustration img {
    max-height: 260px;
    object-fit: contain;
}

/* Cek Status Gizi - Glassmorphic overlay inside hero */
.cek-gizi-card {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    width: 240px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.cek-gizi-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #064e3b;
}

.cek-gizi-card p {
    font-size: 13px;
    color: #065f46;
    line-height: 1.5;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.cek-gizi-img {
    position: absolute;
    bottom: -5px;
    right: -10px;
    width: 70px;
    height: auto;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

.btn-cek-gizi {
    display: inline-block;
    background: #059669;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
    width: fit-content;
}

.btn-cek-gizi:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    color: #fff !important;
}

/* === QUICK ACTIONS ROW === */
.quick-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 30px 0;
    padding: 20px 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s;
    text-decoration: none !important;
    color: inherit !important;
    flex: 1;
}

.quick-action-item:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}

.qa-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.qa-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.qa-icon.teal {
    background: #ccfbf1;
    color: #0d9488;
}

.qa-icon.amber {
    background: #fef3c7;
    color: #d97706;
}

.qa-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.qa-icon.pink {
    background: #fce7f3;
    color: #db2777;
}

.quick-action-item h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.quick-action-item p {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.3;
}

/* === MAIN 2-COLUMN LAYOUT === */
.main-layout-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.layout-left {
    flex: 1;
    min-width: 0;
}

.layout-right {
    width: 300px;
    flex-shrink: 0;
}

/* === SECTION GLOBALS === */
.section-container {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.see-all-link {
    color: #059669;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.see-all-link:hover {
    color: #047857;
}

/* === REKOMENDASI MENU === */
.menu-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.menu-tab {
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.menu-tab:hover {
    border-color: #059669;
    color: #059669;
}

.menu-tab.active {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

/* Menu Carousel */
.menu-carousel-wrapper {
    position: relative;
}

.menu-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.menu-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
    color: #475569;
    transition: all 0.2s;
}

.carousel-arrow:hover {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

.carousel-arrow.left {
    left: -20px;
}

.carousel-arrow.right {
    right: -20px;
}

.menu-card {
    min-width: 180px;
    max-width: 180px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.menu-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.menu-body {
    padding: 14px;
}

.menu-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-portion {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.menu-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.menu-tag {
    font-size: 10px;
    color: #475569;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
}

.btn-resep {
    display: block;
    text-align: left;
    padding: 0;
    color: #059669;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    transition: color 0.2s;
}

.btn-resep:hover {
    color: #047857;
    text-decoration: underline !important;
}

/* === MODEL PASTI BADGE + CARDS === */
.pasti-badge-label {
    display: inline-block;
    background: #059669;
    color: #fff;
    padding: 6px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.model-pasti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pasti-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.pasti-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.pasti-card h4,
.pasti-card .pasti-subtitle,
.pasti-card p,
.btn-pasti {
    position: relative;
    z-index: 2;
}

.pasti-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
    text-decoration: none;
}

.pasti-card .pasti-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.pasti-card p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: auto;
}

.btn-pasti {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 16px;
    width: fit-content;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
}

.btn-pasti:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pasti-img {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 120px;
    height: 120px;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

/* Card Colors */
.pasti-card.modul {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.pasti-card.modul h4 {
    color: #166534;
}

.pasti-card.modul .btn-pasti {
    background: #15803d;
    color: #fff;
}

.pasti-card.video {
    background: #fff7ed;
    border-color: #ffedd5;
}

.pasti-card.video h4 {
    color: #c2410c;
}

.pasti-card.video .btn-pasti {
    background: #ea580c;
    color: #fff;
}

.pasti-card.buku {
    background: #f0f9ff;
    border-color: #e0f2fe;
}

.pasti-card.buku h4 {
    color: #075985;
}

.pasti-card.buku .btn-pasti {
    background: #0284c7;
    color: #fff;
}

.pasti-card.komik {
    background: #fefce8;
    border-color: #fef9c3;
}

.pasti-card.komik h4 {
    color: #a16207;
}

.pasti-card.komik .btn-pasti {
    background: #ca8a04;
    color: #fff;
}

@media (max-width: 1200px) {
    .model-pasti-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .model-pasti-grid {
        grid-template-columns: 1fr;
    }

    .pasti-img {
        width: 100px;
        height: 100px;
        opacity: 1;
        bottom: -5px;
        right: -5px;
    }

    .pasti-card p {
        padding-right: 40px;
    }
}

/* === RIGHT SIDEBAR - BANNER SLIDER === */
.sidebar-banner-section {
    margin-bottom: 20px;
}

.sidebar-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.sidebar-banner-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}

.sidebar-banner-header .see-all-link {
    font-size: 12px;
    white-space: nowrap;
    margin-top: 2px;
}

.promo-slider-container {
    background: #fff;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.promo-slide-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 0;
}

/* Butuh Bantuan Box */
.butuh-bantuan-box {
    background: #2498a0;
    border-radius: 10px;
    padding: 24px 20px;
    color: #fff;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(36, 152, 160, 0.25);
}

.butuh-bantuan-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    position: relative;
    z-index: 2;
}

.butuh-bantuan-box p {
    font-size: 13px;
    color: #e0f2f1;
    margin-bottom: 18px;
    line-height: 1.5;
    max-width: 65%;
    position: relative;
    z-index: 2;
    padding-right: 50px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
    z-index: 2;
    position: relative;
}

.btn-whatsapp:hover {
    background: #1ebc59;
    transform: translateY(-1px);
    color: #fff !important;
}

.btn-whatsapp i {
    font-size: 16px;
}

.bantuan-img {
    position: absolute;
    bottom: -15px;
    right: -10px;
    width: 140px;
    opacity: 1;
    z-index: 1;
}

/* === BOTTOM CARDS ROW === */
.bottom-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 16px;
    margin-top: 30px;
}

.bottom-card {
    border-radius: 10px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

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

.bottom-card h4,
.bottom-card .bottom-subtitle,
.bottom-card p,
.btn-bottom-card {
    position: relative;
    z-index: 2;
}

.bottom-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.bottom-card .bottom-subtitle {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 10px;
}

.bottom-card p {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 16px;
    padding-right: 60px;
}

.btn-bottom-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
    width: fit-content;
    margin-top: auto;
}

.btn-bottom-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.bottom-card.tips {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
}

.bottom-card.tips h4 {
    color: #166534;
}

.bottom-card.tips .btn-bottom-card {
    background: #15803d;
    color: #fff !important;
}

.bottom-card.tim {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border: 1px solid #fde68a;
}

.bottom-card.tim h4 {
    color: #92400e;
}

.bottom-card.tim .btn-bottom-card {
    background: #b45309;
    color: #fff !important;
}

.bottom-card.budaya {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
}

.bottom-card.budaya h4 {
    color: #075985;
    font-size: 20px;
}

.bottom-card.budaya p {
    color: #334155;
}

.bottom-card-icon {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 130px;
    height: auto;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.bottom-card-thumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.bottom-card-thumbs img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-avatar-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0fdf4;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1.5px solid #dcfce7;
}

/* === FOOTER === */
.custom-footer {
    background: #198754;
    border-top: none;
    padding: 14px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    color: #fff;
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}

.footer-left {
    flex: 1;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff !important;
    /* Specific brand colors will be applied to the icons */
}

.social-icon.instagram { color: #E4405F !important; }
.social-icon.youtube { color: #FF0000 !important; }
.social-icon.facebook { color: #1877F2 !important; }
.social-icon.twitter { color: #1DA1F2 !important; }
.social-icon.linkedin { color: #0A66C2 !important; }
.social-icon.website { color: #198754 !important; } /* Website icon matches footer green on white circle */

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0.9;
    background: #f8f9fa !important; /* Slightly off-white on hover */
}

/* ============================================
   HEADER STYLES (CLASS-BASED FOR RESPONSIVE)
   ============================================ */
.custom-header-wrapper {
    background: #fff;
    border-bottom: 1px solid #eee;
    font-family: 'Poppins', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo-img {
    height: 40px;
}

.header-logo-img-sm {
    height: 35px;
}

.header-logo-sep {
    border-left: 1px solid #ddd;
    height: 30px;
}

.header-search {
    flex: 1;
    max-width: 450px;
    margin: 0 30px;
    position: relative;
}

.header-search-input {
    width: 100%;
    padding: 10px 45px 10px 20px;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    font-size: 13px;
    outline: none;
    background: #f8fafc;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.header-search-input:focus {
    border-color: #10b981;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.header-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #10b981;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.header-search-btn:hover {
    background: #059669;
    transform: translateY(-50%) scale(1.05);
}

.header-search-icon {
    font-size: 13px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}



.header-profile-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-profile-name {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.header-profile-role {
    font-size: 10px;
    color: #666;
}

.header-hamburger {
    display: none;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.header-hamburger:hover {
    background: #f0fdf4;
    border-color: #198754;
    color: #198754;
}

.header-subnav {
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.header-subnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 20px;
}

.subnav-link {
    padding: 12px 0;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s;
}

.subnav-link.active {
    color: #198754;
    border-bottom: 2px solid #198754;
}

.subnav-link:hover {
    color: #198754;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* === TABLET LANDSCAPE (max 1100px) === */
@media (max-width: 1100px) {
    .model-pasti-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-cards-row {
        grid-template-columns: 1fr 1fr;
    }

    .cek-gizi-card {
        width: 200px;
        padding: 18px 16px;
    }

    .cek-gizi-card h3 {
        margin-right: 40px;
        font-size: 16px;
    }

    .hero-illustration {
        right: 220px;
    }
}

/* === TABLET PORTRAIT (max 992px) === */
@media (max-width: 992px) {
    .main-layout-grid {
        flex-direction: column;
    }

    .layout-right {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .hero-section {
        padding: 30px;
        flex-wrap: wrap;
        background-position: center !important;
    }

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-illustration {
        display: none;
    }

    .cek-gizi-card {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 20px;
        background: rgb(255, 255, 255);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Header: hide search on tablet, show hamburger */
    .header-search {
        max-width: 250px;
        margin: 0 10px;
    }
}

/* === MOBILE LARGE (max 768px) === */
@media (max-width: 768px) {
    .model-pasti-grid {
        grid-template-columns: 1fr;
    }

    .bottom-cards-row {
        grid-template-columns: 1fr;
    }

    .layout-right {
        grid-template-columns: 1fr;
    }

    .menu-card {
        min-width: 160px;
        max-width: 160px;
    }

    .carousel-arrow.left {
        left: -10px;
    }

    .carousel-arrow.right {
        right: -10px;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .promo-slide-img {
        height: 250px;
    }

    /* Header responsive */
    .header-hamburger {
        display: block;
    }

    .header-search {
        display: none;
    }

    .header-profile-info {
        display: none;
    }

    .header-logo-img {
        height: 32px;
    }

    .header-logo-img-sm {
        height: 28px;
    }

    .header-logo-sep {
        height: 24px;
    }

    .header-logos {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }

    .header-logo-img,
    .header-logo-img-sm {
        display: block !important;
        width: auto;
    }

    /* Subnav becomes mobile collapsible */
    .header-subnav-inner {
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .header-subnav-inner.mobile-open {
        max-height: 200px;
    }

    .subnav-link {
        padding: 14px 15px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 14px;
    }

    .subnav-link.active {
        border-bottom: 1px solid #f1f5f9;
        background: #f0fdf4;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-right {
        justify-content: center;
    }

    /* Section spacing */
    .section-title {
        font-size: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Menu tabs scroll */
    .menu-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .menu-tabs::-webkit-scrollbar {
        display: none;
    }

    .menu-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Butuh Bantuan */
    .butuh-bantuan-box p {
        max-width: 100%;
    }

    .bantuan-img {
        width: 80px;
    }
}

/* === MOBILE SMALL (max 480px) === */
@media (max-width: 480px) {
    .home-container {
        padding: 0 12px;
    }

    .hero-section {
        padding: 24px 16px;
        min-height: auto;
        margin-top: 15px;
        border-radius: 10px;
        background-position: center !important;
    }

    .hero-section::before {
        background: rgba(0, 0, 0, 0.35);
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .cek-gizi-card {
        padding: 24px 20px;
        border-radius: 12px;
        align-items: center;
        text-align: center;
        background: rgb(255, 255, 255);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .cek-gizi-card h3 {
        font-size: 16px;
    }

    .cek-gizi-card p {
        margin-bottom: 15px;
        padding-right: 60px;
    }

    .cek-gizi-img {
        width: 75px;
        bottom: -5px;
        right: -5px;
    }

    .btn-cek-gizi {
        width: 100%;
        text-align: center;
    }

    .pasti-card {
        min-height: 160px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-container {
        margin-bottom: 30px;
    }

    .menu-card {
        min-width: 150px;
        max-width: 150px;
    }

    .menu-img {
        height: 110px;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .carousel-arrow.left {
        left: -8px;
    }

    .carousel-arrow.right {
        right: -8px;
    }

    .bottom-card {
        padding: 20px;
    }

    .bottom-card p {
        padding-right: 50px;
    }

    .bottom-card-icon {
        width: 100px;
        bottom: -10px;
        right: -10px;
    }

    .bottom-card h4 {
        font-size: 16px;
    }

    .pasti-badge-label {
        font-size: 12px;
        padding: 5px 14px;
    }

    /* Header extra small */
    .header-top {
        padding: 8px 12px;
    }

    .header-logo-img {
        height: 28px;
    }

    .header-logo-img-sm {
        height: 24px;
    }

    .header-logos {
        display: flex !important;
        align-items: center;
        gap: 6px;
    }

    .header-logo-img,
    .header-logo-img-sm {
        display: block !important;
    }

    .header-logo-sep {
        height: 20px;
    }

    .header-avatar {
        width: 30px;
        height: 30px;
    }

    .main-layout-grid {
        margin-top: 20px;
        gap: 20px;
    }

    .promo-slide-img {
        height: 200px;
    }

    .butuh-bantuan-box {
        padding: 30px 20px;
    }

    .butuh-bantuan-box h4 {
        font-size: 16px;
    }

    .butuh-bantuan-box p {
        padding-right: 80px;
    }

    .bantuan-img {
        width: 130px;
        bottom: -5px;
        right: -5px;
    }

    .menu-detail-img img {
        height: 250px !important;
    }

    /* Hide header elements on mobile */
    .header-search,
    .header-profile,
    .header-subnav {
        display: none !important;
    }
}

/* === MOBILE SIDEBAR DRAWER (Global) === */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    backdrop-filter: blur(4px);
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #198754;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
}

.mobile-sidebar-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

/* User Profile in Sidebar */
.sidebar-user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f0fdf4;
    border-radius: 12px;
    margin-bottom: 20px;
}

.sidebar-user-avatar {
    width: 45px;
    height: 45px;
    background: #198754;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
}

.sidebar-user-name {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.sidebar-user-role {
    font-size: 11px;
    color: #64748b;
}

/* Search in Sidebar */
.sidebar-search {
    position: relative;
    margin-bottom: 25px;
}

.sidebar-search input {
    width: 100%;
    padding: 12px 45px 12px 18px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    background: #f8fafc;
}

.sidebar-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    padding: 10px;
}

.mobile-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: #334155;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.mobile-sidebar-link:hover,
.mobile-sidebar-link.active {
    background: #f0fdf4;
    color: #198754;
}

.mobile-sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Dropdown styling */
.sidebar-dropdown-content .mobile-sidebar-link {
    font-size: 13px;
    font-weight: 500;
    padding: 10px 15px;
}

/* Menu Detail Description Styling */
.menu-description h1,
.menu-description h2,
.menu-description h3,
.menu-description h4,
.menu-description h5 {
    color: #0f172a;
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 15px;
}

.menu-description h4,
.menu-description strong {
    font-size: 20px;
    display: block;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #198754;
}

.menu-description p {
    margin-bottom: 15px;
}

.menu-description ul,
.menu-description ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.menu-description li {
    margin-bottom: 8px;
}

/* Hide default bootsnav - replaced by custom header */
nav.navbar.bootsnav {
    display: none !important;
}