/*
 * Desain custom khusus halaman Beranda (landing page publik) - sengaja lepas
 * dari gaya admin-dashboard NobleUI, dibangun sendiri biar terasa modern &
 * "ramah publik", bukan tampilan panel admin yang dibuka-buka pengunjung.
 * Cuma dipakai halaman ini (page-specific), bukan komponen global.
 */

:root {
    --beranda-primary: #6571ff;
    --beranda-primary-dark: #4c58e0;
    --beranda-k3: #f59e0b;
    --beranda-ps: #0ea5a4;
    --beranda-ink: #1b1f2e;
    --beranda-muted: #6b7280;
    --beranda-bg-soft: #f7f8fc;
}

.body-guest {
    background-color: #fff;
}

/*
 * Navbar guest dibikin "frosted glass" - cukup putih biar tetap jelas ada
 * batas dari konten hero, tapi gak pakai box-shadow keras (diganti border
 * tipis) biar transisinya tetap halus pas ketemu gradient hero di bawahnya.
 */
.navbar-guest {
    backdrop-filter: saturate(180%) blur(12px);
    background-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05) !important;
}

.footer-guest {
    background-color: var(--beranda-bg-soft);
}

/* ---------- Section heading umum ---------- */
.section-heading {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--beranda-primary);
    margin-bottom: 0.75rem;
}

.section-heading h2 {
    font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
    font-weight: 800;
    color: var(--beranda-ink);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-heading p {
    color: var(--beranda-muted);
    margin-bottom: 0;
}

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 6rem;
    background: var(--beranda-bg-soft);
}

.hero-decor {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(101, 113, 255, 0.16), transparent 55%),
        radial-gradient(circle at 88% 12%, rgba(14, 165, 164, 0.14), transparent 50%),
        radial-gradient(circle at 60% 95%, rgba(245, 158, 11, 0.10), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 20px -12px rgba(15, 23, 42, 0.18);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--beranda-primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--beranda-ink);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.text-gradient {
    background: linear-gradient(120deg, var(--beranda-primary), var(--beranda-ps));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--beranda-muted);
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-hero-primary {
    background: linear-gradient(120deg, var(--beranda-primary), var(--beranda-primary-dark));
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(101, 113, 255, 0.6);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(101, 113, 255, 0.7);
    color: #fff;
}

.btn-hero-outline {
    background: #fff;
    color: var(--beranda-ink);
    border: 1px solid #e5e8f1;
}

.btn-hero-outline:hover {
    transform: translateY(-2px);
    border-color: var(--beranda-primary);
    color: var(--beranda-primary);
}

.btn-hero-light {
    background: #fff;
    color: var(--beranda-primary);
    white-space: nowrap;
}

.btn-hero-light:hover {
    transform: translateY(-2px);
    color: var(--beranda-primary-dark);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-trust-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--beranda-ink);
}

.hero-trust-item span {
    font-size: 0.8rem;
    color: var(--beranda-muted);
}

/* Hero visual: kartu-kartu melayang, pengganti screenshot produk */
.hero-visual {
    position: relative;
    min-height: 360px;
}

.hero-visual-card {
    position: absolute;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px -20px rgba(15, 23, 42, 0.28);
    padding: 1.25rem 1.5rem;
}

.hero-visual-card-main {
    width: min(320px, 100%);
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
}

.hero-visual-title {
    font-weight: 700;
    color: var(--beranda-ink);
    margin-bottom: 0.15rem;
}

.hero-visual-sub {
    font-size: 0.78rem;
    color: var(--beranda-muted);
    margin-bottom: 0;
}

.hero-visual-card-float-1,
.hero-visual-card-float-2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--beranda-ink);
    animation: heroFloat 4s ease-in-out infinite;
}

.hero-visual-card-float-1 {
    bottom: 14%;
    left: 0;
    animation-delay: 0.3s;
}

.hero-visual-card-float-2 {
    bottom: 0;
    right: 0;
    animation-delay: 1.1s;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.badge-soft-success {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #e7f8ef;
    color: #1a9d5c;
}

/* ---------- Steps ("cara kerja") ---------- */
.steps-section {
    padding: 5rem 0;
}

.step-card {
    position: relative;
    height: 100%;
    padding: 2rem 1.75rem;
    border-radius: 1.25rem;
    background: var(--beranda-bg-soft);
    border: 1px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(101, 113, 255, 0.25);
    box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.25);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fff;
    color: var(--beranda-primary);
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.25rem;
}

.step-icon {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    color: var(--beranda-primary);
    margin-bottom: 1rem;
}

.step-card h5 {
    font-weight: 700;
    color: var(--beranda-ink);
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--beranda-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- Kategori: K3 vs Patient Safety ---------- */
.category-section {
    padding: 0 0 5rem;
}

.category-card {
    height: 100%;
    padding: 2.25rem;
    border-radius: 1.5rem;
    color: #fff;
}

.category-card-k3 {
    background: linear-gradient(140deg, #f59e0b, #d97706);
}

.category-card-ps {
    background: linear-gradient(140deg, #14b8a6, #0891b2);
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 1.25rem;
}

.category-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.category-card h4 {
    font-weight: 800;
    margin-bottom: 0.15rem;
}

.category-card h4 span {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.85;
}

.category-card p {
    opacity: 0.92;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-tags li {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    font-weight: 600;
}

/* ---------- Privasi ---------- */
.privacy-section {
    padding: 0 0 5rem;
}

.privacy-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1.5rem;
    background: var(--beranda-bg-soft);
}

.privacy-item {
    display: flex;
    gap: 0.85rem;
}

.privacy-dot {
    flex-shrink: 0;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    margin-top: 0.4rem;
}

.privacy-dot-success { background: #22c55e; }
.privacy-dot-warning { background: #f59e0b; }
.privacy-dot-danger { background: #ef4444; }

.privacy-item strong {
    display: block;
    color: var(--beranda-ink);
    margin-bottom: 0.15rem;
}

.privacy-item p {
    font-size: 0.85rem;
    color: var(--beranda-muted);
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .privacy-strip {
        grid-template-columns: 1fr;
    }
}

/* ---------- Artikel & lesson learned ---------- */
/* Kartu artikel (.article-card dst) sekarang komponen global, lihat
   public/assets/custom/css/components/article-card.css - dipakai juga
   oleh halaman Edukasi (index & detail), bukan cuma di Beranda. */
.articles-section {
    padding: 0 0 5rem;
}

/* ---------- CTA penutup ---------- */
.cta-section {
    padding-bottom: 5rem;
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 3rem;
    border-radius: 1.75rem;
    background: linear-gradient(120deg, var(--beranda-primary), #4338ca 65%, var(--beranda-ps));
    color: #fff;
}

.cta-banner h3 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-banner p {
    opacity: 0.92;
    margin-bottom: 0;
    max-width: 480px;
}

/* ---------- Reveal saat discroll ---------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsif ---------- */
@media (max-width: 991.98px) {
    .hero-visual {
        min-height: 0;
        margin-top: 2.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-visual-card {
        position: static;
        transform: none !important;
        width: min(340px, 100%);
    }

    .hero-visual-card-float-1,
    .hero-visual-card-float-2 {
        animation: none;
    }
}

@media (max-width: 575.98px) {
    .cta-banner {
        text-align: center;
        justify-content: center;
        padding: 2rem;
    }
}
