/* ================================================================
   LANDING CARDS (2 kartu besar -> redirect ke halaman guide)
================================================================ */
.guide-landing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.guide-landing-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
    border: 1.5px solid #e2e6ef;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 22, 36, 0.06);
    padding: 22px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.guide-landing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(15, 22, 36, 0.1);
    border-color: #c7cede;
}

.guide-landing-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.guide-landing-icon.aqhi-icon { background: #fef2f2; color: #dc2626; }
.guide-landing-icon.aqi-icon  { background: #f0fdf4; color: #16a34a; }

.guide-landing-body { flex: 1; min-width: 0; }

.guide-landing-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}
.guide-landing-tag.aqhi-tag { background: #fef2f2; color: #b91c1c; }
.guide-landing-tag.aqi-tag  { background: #f0fdf4; color: #15803d; }

.guide-landing-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #0f1624;
}

.guide-landing-desc {
    font-size: 12.5px;
    line-height: 1.6;
    color: #6b7383;
    margin-bottom: 14px;
}

.guide-landing-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #0f1624;
}
.guide-landing-card:hover .guide-landing-link i {
    transform: translateX(3px);
}
.guide-landing-link i { font-size: 11px; transition: transform 0.18s ease; }

@media (max-width: 768px) {
    .guide-landing-grid { grid-template-columns: 1fr; }
    .guide-page-header { flex-direction: column; align-items: flex-start; }
}

.guide-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #6b7383;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.15s;
}
.guide-back-link:hover { color: #0f1624; }
.guide-back-link i { font-size: 11px; }

/* ================================================================
   GUIDE PAGES - Full Stylesheet
   (Page Header, Section Wrap, Cards, Popup, Landing Cards, Responsive)
================================================================ */

/* ---------------- 1. PAGE HEADER ---------------- */
.guide-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.guide-page-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9aa3bb;
    margin-bottom: 4px;
}
.guide-page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f1624;
    line-height: 1.15;
}
.guide-page-sub {
    font-size: 12.5px;
    color: #9aa3bb;
    margin-top: 3px;
}

/* ---------------- 2. SECTION WRAPPER & HEADER ---------------- */
.guide-section-wrap {
    background: #ffffff;
    border: 1.5px solid #e2e6ef;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 22, 36, 0.06);
    overflow: hidden;
    margin-bottom: 20px;
}
.guide-section-header {
    padding: 18px 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.guide-section-header-left { display: flex; align-items: center; gap: 10px; }
.guide-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.guide-section-icon.aqhi-icon { background: #fef2f2; color: #dc2626; }
.guide-section-icon.aqi-icon  { background: #f0fdf4; color: #16a34a; }
.guide-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f1624;
}
.guide-section-desc {
    font-size: 12px;
    color: #9aa3bb;
    margin-top: 1px;
}
.guide-section-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}
.guide-section-tag.aqhi-tag { background: #fef2f2; color: #b91c1c; }
.guide-section-tag.aqi-tag  { background: #f0fdf4; color: #15803d; }

/* ---------------- 3. CARD GRID ---------------- */
.guide-cards-grid {
    display: grid;
    gap: 10px;
    padding: 14px 16px 18px;
}
.guide-cols-4 { grid-template-columns: repeat(4, 1fr); }
.guide-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ---------------- 4. CARD (BASE + COLORS) ---------------- */
.guide-card {
    position: relative;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 14px 13px 12px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.guide-card:hover  { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(15, 22, 36, 0.1); }
.guide-card:active { transform: translateY(-1px); }

.guide-card-stripe {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 12px 12px 0 0;
}
.guide-card-range {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 9px;
    opacity: 0.7;
}
.guide-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 7px;
}
.guide-card-desc {
    font-size: 11px;
    line-height: 1.5;
    opacity: 0.8;
}
.guide-card-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.45;
}
.guide-card-hint i { font-size: 9px; }

/* AQHI colors */
.guide-aqhi-low   { background: #eff6ff; color: #1e3a8a; border-color: #93c5fd; }
.guide-aqhi-low   .guide-card-stripe { background: #3b82f6; }
.guide-aqhi-mod   { background: #fefce8; color: #854d0e; border-color: #fde047; }
.guide-aqhi-mod   .guide-card-stripe { background: #eab308; }
.guide-aqhi-high  { background: #fef2f2; color: #991b1b; border-color: #f87171; }
.guide-aqhi-high  .guide-card-stripe { background: #ef4444; }
.guide-aqhi-vhigh { background: #fef2f2; color: #450a0a; border-color: #7f1d1d; }
.guide-aqhi-vhigh .guide-card-stripe { background: #7f1d1d; }

/* AQI colors */
.guide-aqi-good    { background: #f0fdf4; color: #14532d; border-color: #bbf7d0; }
.guide-aqi-good    .guide-card-stripe { background: #22c55e; }
.guide-aqi-mod     { background: #fefce8; color: #713f12; border-color: #fde68a; }
.guide-aqi-mod     .guide-card-stripe { background: #eab308; }
.guide-aqi-sens    { background: #fff7ed; color: #7c2d12; border-color: #fed7aa; }
.guide-aqi-sens    .guide-card-stripe { background: #f97316; }
.guide-aqi-unhlth  { background: #fef2f2; color: #7f1d1d; border-color: #fecaca; }
.guide-aqi-unhlth  .guide-card-stripe { background: #ef4444; }
.guide-aqi-vunhlth { background: #faf5ff; color: #4a1d96; border-color: #e9d5ff; }
.guide-aqi-vunhlth .guide-card-stripe { background: #a855f7; }
.guide-aqi-haz     { background: #fef2f2; color: #450a0a; border-color: #fca5a5; }
.guide-aqi-haz     .guide-card-stripe { background: #7f1d1d; }

/* ---------------- 5. POPUP OVERLAY ---------------- */
.aqi-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1060;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 16px 24px;
    overflow-y: auto;
}
.aqi-overlay.active { display: flex; }

.aqi-popup {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.popup-head {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.popup-head-left { display: flex; align-items: center; gap: 12px; }
.popup-head-left .popup-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f1624;
}
.popup-dot {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}
.popup-range {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}
.aqi-popup-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}
.aqi-popup-close:hover { background: #f1f5f9; }

.popup-body { padding: 0 18px 18px; }
.popup-desc {
    font-size: 13px;
    color: #334155;
    line-height: 1.65;
    padding: 14px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}
.popup-pm {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* Popup color variants */
.popup-dot.dot-low     { background: #dbeafe; color: #1e3a8a; }
.popup-dot.dot-mod     { background: #fef9c3; color: #854d0e; }
.popup-dot.dot-high    { background: #fee2e2; color: #991b1b; }
.popup-dot.dot-vhigh   { background: #fecaca; color: #450a0a; }
.popup-dot.dot-good    { background: #dcfce7; color: #14532d; }
.popup-dot.dot-sens    { background: #ffedd5; color: #7c2d12; }
.popup-dot.dot-unhlth  { background: #fee2e2; color: #7f1d1d; }
.popup-dot.dot-vunhlth { background: #f3e8ff; color: #4a1d96; }
.popup-dot.dot-haz     { background: #fecaca; color: #450a0a; }

.popup-pm.pm-low      { background: #dbeafe; color: #1e3a8a; }
.popup-pm.pm-mod      { background: #fef9c3; color: #854d0e; }
.popup-pm.pm-high     { background: #fee2e2; color: #991b1b; }
.popup-pm.pm-vhigh    { background: #fecaca; color: #450a0a; }
.popup-pm.pm-good     { background: #dcfce7; color: #14532d; }
.popup-pm.pm-sens     { background: #ffedd5; color: #7c2d12; }
.popup-pm.pm-unhlth   { background: #fee2e2; color: #7f1d1d; }
.popup-pm.pm-vunhlth  { background: #f3e8ff; color: #4a1d96; }
.popup-pm.pm-haz      { background: #fecaca; color: #450a0a; }

/* ---------------- 6. DO & DON'T GRID ---------------- */
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dd-box  { border-radius: 10px; padding: 12px 14px; }
.dd-do   { background: #f0fdf4; }
.dd-dont { background: #fef2f2; }
.dd-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dd-do   .dd-title { color: #15803d; }
.dd-dont .dd-title { color: #b91c1c; }
.dd-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #334155;
    line-height: 1.5;
}
.dd-item:last-child { margin-bottom: 0; }
.dd-bullet   { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.bullet-do   { background: #22c55e; }
.bullet-dont { background: #ef4444; }

/* ---------------- 7. LANDING CARDS ---------------- */
.guide-landing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.guide-landing-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
    border: 1.5px solid #e2e6ef;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 22, 36, 0.06);
    padding: 22px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.guide-landing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(15, 22, 36, 0.1);
    border-color: #c7cede;
}
.guide-landing-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.guide-landing-icon.aqhi-icon { background: #fef2f2; color: #dc2626; }
.guide-landing-icon.aqi-icon  { background: #f0fdf4; color: #16a34a; }
.guide-landing-body { flex: 1; min-width: 0; }
.guide-landing-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}
.guide-landing-tag.aqhi-tag { background: #fef2f2; color: #b91c1c; }
.guide-landing-tag.aqi-tag  { background: #f0fdf4; color: #15803d; }
.guide-landing-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #0f1624;
}
.guide-landing-desc {
    font-size: 12.5px;
    line-height: 1.6;
    color: #6b7383;
    margin-bottom: 14px;
}
.guide-landing-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #0f1624;
}
.guide-landing-card:hover .guide-landing-link i { transform: translateX(3px); }
.guide-landing-link i { font-size: 11px; transition: transform 0.18s ease; }

/* ---------------- 8. BACK LINK ---------------- */
.guide-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #6b7383;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.15s;
}
.guide-back-link:hover { color: #0f1624; }
.guide-back-link i { font-size: 11px; }

/* ---------------- 9. RESPONSIVE ---------------- */
@media (max-width: 768px) {
    .guide-cols-4,
    .guide-cols-6   { grid-template-columns: repeat(2, 1fr); }
    .guide-page-header { flex-direction: column; align-items: flex-start; }
    .guide-landing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .guide-cols-4,
    .guide-cols-6   { grid-template-columns: 1fr 1fr; }
    .dd-grid { grid-template-columns: 1fr; }
}