/* =========================================================
   CUSTOM STYLE - Nuansa Pembelajaran & Kebermasyarakatan
   ========================================================= */

:root {
    --clr-primary: #2f6fed;
    --clr-primary-dark: #1c4fc7;
    --clr-secondary: #ffb703;
    --clr-success: #2ea043;
    --clr-soft: #f4f8ff;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #2b2b2b;
    background-color: #fff;
}

/* Cegah teks/URL panjang tanpa spasi mendorong lebar halaman (tanpa
   mengganggu overflow ancestor, supaya navbar sticky tetap normal) */
p, li, blockquote, .content-article * {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1, h2, h3, h4, h5, .brand-text {
    font-family: 'Fredoka', sans-serif;
}

/* Topbar */
.topbar {
    background: var(--clr-primary-dark);
    color: #fff;
}

/* Navbar */
.navbar .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.5rem 0.9rem !important;
}
.navbar .nav-link:hover {
    color: var(--clr-primary) !important;
}
.brand-text {
    color: var(--clr-primary-dark);
    font-size: 1.15rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
    color: #fff;
    padding: 90px 0 110px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    height: 120px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Hero Slider (carousel beranda) */
.hero-slider .carousel-item .slider-img {
    height: 480px;
    object-fit: cover;
    filter: brightness(0.75);
}
.hero-slider .carousel-caption {
    bottom: 15%;
    text-align: left;
    left: 8%;
    right: 8%;
    max-width: 650px;
}
.hero-slider .carousel-caption h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
@media (max-width: 768px) {
    .hero-slider .carousel-item .slider-img { height: 320px; }
    .hero-slider .carousel-caption h2 { font-size: 1.4rem; }
    .hero-slider .carousel-caption { bottom: 8%; }
}

/* Konten artikel berita (hasil WYSIWYG editor) */
.content-article { overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; }
.content-article img { max-width:100%; height:auto; border-radius:10px; margin:16px 0; }
.content-article h1, .content-article h2, .content-article h3 { font-family:'Fredoka',sans-serif; margin-top:1.4em; margin-bottom:.5em; overflow-wrap:break-word; }
.content-article blockquote { border-left:4px solid var(--clr-primary); background:var(--clr-soft); padding:12px 18px; margin:16px 0; border-radius:0 8px 8px 0; font-style:italic; color:#444; overflow-wrap:break-word; }
.content-article ul, .content-article ol { padding-left:1.4em; }
.content-article a { color:var(--clr-primary); text-decoration:underline; overflow-wrap:break-word; }
.content-article p { margin-bottom:1em; overflow-wrap:break-word; }

/* Jarak tepi layar lebih lega di mobile (default Bootstrap 12px terlalu mepet) */
@media (max-width: 576px) {
    .container { padding-left: 22px; padding-right: 22px; }
}

/* Section spacing */
.section {
    padding: 70px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 45px;
}
.section-title .badge-tag {
    background: var(--clr-soft);
    color: var(--clr-primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: .5px;
}
.section-title h2 {
    font-weight: 600;
    margin-top: 10px;
}

/* Cards */
.card-hover {
    transition: transform .25s ease, box-shadow .25s ease;
    border: none;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    border-radius: 16px;
    overflow: hidden;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

/* Program Kesetaraan badges */
.paket-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
}
.paket-a { background: linear-gradient(135deg,#2f6fed,#1c4fc7); }
.paket-b { background: linear-gradient(135deg,#ffb703,#fb8500); }
.paket-c { background: linear-gradient(135deg,#2ea043,#1b7a30); }

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--clr-soft);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* Footer */
.footer-link {
    color: #b7c0cc;
    text-decoration: none;
}
.footer-link:hover {
    color: #fff;
}

/* Buttons */
.btn-primary {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
}
.btn-primary:hover {
    background: var(--clr-primary-dark);
    border-color: var(--clr-primary-dark);
}
.btn-outline-primary {
    color: var(--clr-primary);
    border-color: var(--clr-primary);
}

/* Utility */
.text-primary-custom { color: var(--clr-primary); }
.bg-soft { background: var(--clr-soft); }
