
/* =====================================================
   GLOBAL
====================================================== */

:root {
    --navy: #0b1f3a;
    --navy-dark: #06152a;
    --blue: #145da0;
    --orange: #ff8a1f;
    --orange-dark: #e96f08;
    --yellow: #ffc857;
    --light: #f6f8fc;
    --text: #182333;
    --muted: #6c7585;
    --white: #ffffff;
    --border: #e8ecf2;

    --radius: 18px;
    --shadow: 0 15px 45px rgba(11, 31, 58, .10);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
}

section {
    scroll-margin-top: 80px;
}

.section-padding {
    padding: 100px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 50px;
    background: rgba(255, 138, 31, .10);
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.section-title {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    color: var(--navy);
}

.section-description {
    color: var(--muted);
    max-width: 650px;
    line-height: 1.8;
}

/* =====================================================
   BUTTON
====================================================== */

.btn-primary-custom {
    background: var(--orange);
    border: 2px solid var(--orange);
    color: #fff;
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 700;
    transition: .3s ease;
}

.btn-primary-custom:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid rgba(255,255,255,.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    transition: .3s ease;
}

.btn-outline-custom:hover {
    background: #fff;
    color: var(--navy);
}

/* =====================================================
   NAVBAR
====================================================== */

.navbar {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 25px rgba(0,0,0,.05);
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    position: relative;
}

.brand-logo::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--orange);
    border-radius: 50%;
    right: 6px;
    top: 6px;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}

.brand-name small {
    display: block;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    margin-top: 3px;
}

.navbar-nav .nav-link {
    color: #394457;
    font-size: 14px;
    font-weight: 600;
    margin: 0 7px;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: .3s;
}

.navbar-nav .nav-link:hover {
    color: var(--orange-dark);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* =====================================================
   HERO
====================================================== */

.hero {
    position: relative;
}

.hero .carousel-item {
    height: 720px;
    min-height: 620px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(6,21,42,.92) 0%,
            rgba(6,21,42,.72) 45%,
            rgba(6,21,42,.18) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 720px;
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    margin-bottom: 25px;
}

.hero-title span {
    color: var(--orange);
}

.hero-description {
    max-width: 600px;
    color: rgba(255,255,255,.82);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 32px;
}

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

.hero .carousel-indicators {
    justify-content: flex-start;
    margin-left: calc((100% - 1320px) / 2);
    bottom: 45px;
}

.hero .carousel-indicators button {
    width: 30px;
    height: 4px;
    border: 0;
    border-radius: 20px;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
    width: 60px;
}

/* =====================================================
   ABOUT
====================================================== */

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.about-stat {
    position: absolute;
    bottom: -30px;
    right: -25px;
    background: var(--navy);
    color: #fff;
    padding: 25px 30px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.about-stat strong {
    font-family: 'Poppins';
    font-size: 35px;
    display: block;
    color: var(--orange);
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.about-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    color: #505b6d;
}

.about-list i {
    color: var(--orange);
    font-size: 20px;
}

.vision-box {
    padding: 22px;
    background: var(--light);
    border-left: 4px solid var(--orange);
    border-radius: 12px;
}

/* =====================================================
   ACTIVITIES
====================================================== */

.activities-section {
    background: var(--light);
}

.activity-card {
    height: 100%;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: .35s ease;
    position: relative;
    overflow: hidden;
}

.activity-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    background: rgba(255,138,31,.07);
    border-radius: 50%;
    right: -30px;
    top: -30px;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.activity-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11,31,58,.08);
    color: var(--navy);
    border-radius: 15px;
    font-size: 25px;
    margin-bottom: 22px;
    transition: .3s;
}

.activity-card:hover .activity-icon {
    background: var(--orange);
    color: #fff;
}

.activity-card h4 {
    font-size: 19px;
    margin-bottom: 12px;
}

.activity-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.activity-link {
    color: var(--navy);
    font-weight: 700;
    font-size: 14px;
}

.activity-link i {
    transition: .3s;
}

.activity-link:hover i {
    margin-left: 5px;
}

/* =====================================================
   AGENDA
====================================================== */

.agenda-card {
    display: flex;
    gap: 22px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 15px;
    transition: .3s;
    background: #fff;
}

.agenda-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.agenda-date {
    flex: 0 0 75px;
    height: 75px;
    border-radius: 14px;
    background: var(--navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.agenda-date strong {
    font-size: 27px;
    line-height: 1;
    color: var(--orange);
}

.agenda-date span {
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 5px;
}

.agenda-content {
    flex: 1;
}

.agenda-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.agenda-meta {
    color: var(--muted);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.agenda-meta i {
    color: var(--orange);
}

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.status-open {
    background: #e6f8ed;
    color: #168244;
}

.status-soon {
    background: #fff2df;
    color: #c86c00;
}

/* =====================================================
   GALLERY
====================================================== */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 280px;
    cursor: pointer;
}

.gallery-item.large {
    height: 575px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background: linear-gradient(
        transparent 35%,
        rgba(6,21,42,.85)
    );
    color: #fff;
    opacity: 0;
    transition: .3s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    margin: 0;
    font-size: 17px;
}

/* =====================================================
   ARTICLES
====================================================== */

.article-card {
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: .3s;
}

.article-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.article-image {
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-body {
    padding: 25px;
}

.article-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
}

.article-meta i {
    color: var(--orange);
}

.article-body h4 {
    font-size: 19px;
    line-height: 1.4;
}

.article-body p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.read-more {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

/* =====================================================
   CTA
====================================================== */

.cta-section {
    padding: 80px 0;
}

.cta-box {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            120deg,
            var(--navy),
            #123e68
        );
    border-radius: 25px;
    padding: 70px;
    color: #fff;
}

.cta-box::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,138,31,.12);
    right: -100px;
    top: -120px;
}

.cta-box h2 {
    font-size: clamp(30px, 4vw, 45px);
    max-width: 700px;
}

.cta-box p {
    color: rgba(255,255,255,.7);
    max-width: 650px;
    line-height: 1.8;
}

/* =====================================================
   FOOTER
====================================================== */

footer {
    background: var(--navy-dark);
    color: #fff;
    padding-top: 70px;
}

.footer-brand {
    font-size: 23px;
    font-family: 'Poppins';
    font-weight: 800;
}

.footer-description {
    color: rgba(255,255,255,.6);
    line-height: 1.8;
    max-width: 400px;
    margin-top: 15px;
}

.footer-title {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,.6);
    font-size: 14px;
    transition: .3s;
}

.footer-links a:hover {
    color: var(--orange);
    padding-left: 4px;
}

.footer-contact {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,.65);
    font-size: 14px;
}

.footer-contact i {
    color: var(--orange);
    font-size: 18px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: .3s;
}

.social-links a:hover {
    background: var(--orange);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 50px;
    padding: 20px 0;
    color: rgba(255,255,255,.45);
    font-size: 13px;
}

/* =====================================================
   BACK TO TOP
====================================================== */

#backToTop {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 12px;
    background: var(--orange);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(255,138,31,.3);
}

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

@media (max-width: 991.98px) {

    .section-padding {
        padding: 75px 0;
    }

    .hero .carousel-item {
        height: 680px;
    }

    .navbar-nav {
        padding-top: 15px;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .hero .carousel-indicators {
        margin-left: 12px;
    }

    .about-stat {
        right: 15px;
    }

    .cta-box {
        padding: 50px 35px;
    }
}

@media (max-width: 767.98px) {

    .section-padding {
        padding: 65px 0;
    }

    .hero .carousel-item {
        height: 700px;
        min-height: 650px;
    }

    .hero .carousel-item::before {
        background:
            linear-gradient(
                90deg,
                rgba(6,21,42,.93),
                rgba(6,21,42,.65)
            );
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 15px;
    }

    .about-image img {
        height: 400px;
    }

    .about-stat {
        bottom: -20px;
        right: 15px;
        padding: 18px 22px;
    }

    .about-stat strong {
        font-size: 28px;
    }

    .agenda-card {
        gap: 15px;
    }

    .agenda-date {
        flex: 0 0 62px;
        height: 62px;
    }

    .agenda-date strong {
        font-size: 22px;
    }

    .agenda-meta {
        flex-direction: column;
        gap: 5px;
    }

    .gallery-item,
    .gallery-item.large {
        height: 250px;
    }

    .cta-box {
        padding: 40px 25px;
        border-radius: 18px;
    }
}


/* =====================================================
   TAMBAHAN FIVEZY (PHP version)
====================================================== */
.hero-title { font-family: 'Poppins', sans-serif; font-weight: 700; }
.hero .carousel-item { height: min(720px, 100svh); min-height: 560px; overflow: hidden; background: var(--navy-dark); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-fallback { background: linear-gradient(120deg, var(--navy-dark), #123e68); }
.hero .carousel-indicators { margin-left: max(12px, calc((100% - 1320px) / 2)); }
.brand-img { height: 44px; width: auto; max-width: 160px; object-fit: contain; }
.about-image img { aspect-ratio: 6/5; }

/* Kegiatan highlight */
.highlight-card { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; height: 100%; box-shadow: var(--shadow); }
.highlight-card .hl-img { aspect-ratio: 16/9; background: var(--navy); }
.highlight-card .hl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.highlight-card .hl-body { padding: 26px; }
.badge-live { display: inline-flex; align-items: center; gap: 7px; background: #fff2df; color: #c86c00; font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 50px; }
.badge-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* Usaha */
.biz-card { height: 100%; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: .3s; }
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.biz-card .biz-img { aspect-ratio: 4/3; background: var(--light); overflow: hidden; }
.biz-card .biz-img img { width: 100%; height: 100%; object-fit: cover; }
.biz-card .biz-body { padding: 22px; }
.biz-card h4 { font-size: 18px; }
.biz-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Agenda */
.status-done { background: #eef0f4; color: #6c7585; }
.agenda-card.is-past { opacity: .75; }
.nav-pills-custom .nav-link { color: var(--navy); font-weight: 700; border-radius: 50px; padding: 9px 22px; }
.nav-pills-custom .nav-link.active { background: var(--orange); color: #fff; }

/* Galeri masonry */
.masonry { column-count: 4; column-gap: 14px; }
.masonry-item { break-inside: avoid; margin-bottom: 14px; position: relative; overflow: hidden; border-radius: 15px; cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0; background: var(--light); }
.masonry-item img { width: 100%; height: auto; display: block; transition: .5s ease; }
.masonry-item:hover img { transform: scale(1.06); }
.masonry-item .gallery-overlay { text-align: left; }
.masonry-item:hover .gallery-overlay, .masonry-item:focus-visible .gallery-overlay { opacity: 1; }
#lightbox .modal-content { background: transparent; border: 0; }
#lightbox img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 12px; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); z-index: 2000; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }

/* Sponsor marquee */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 35s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.marquee-group a, .marquee-group span { display: flex; align-items: center; }
.marquee-group img { height: 56px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .3s; }
.marquee-group img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .badge-live::before { animation: none; } }

/* Artikel */
.article-content { font-size: 17px; line-height: 1.9; max-width: 760px; margin: 0 auto; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 14px 0; }
.article-content h2, .article-content h3 { margin-top: 1.8em; color: var(--navy); }
.article-content blockquote { border-left: 4px solid var(--orange); padding: 6px 18px; color: var(--muted); background: var(--light); border-radius: 0 10px 10px 0; }
.article-content .ql-align-center { text-align: center; } .article-content .ql-align-right { text-align: right; } .article-content .ql-align-justify { text-align: justify; }
.page-hero { background: linear-gradient(120deg, var(--navy-dark), #123e68); color: #fff; padding: 70px 0 60px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); }
.page-hero a { color: var(--yellow); }

/* Kontak */
.contact-box { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-info-item i { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: rgba(255,138,31,.12); color: var(--orange-dark); display: flex; align-items: center; justify-content: center; }
.map-wrap { border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; background: var(--light); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-control:focus, .form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 .2rem rgba(255,138,31,.2); }

@media (max-width: 1199.98px) { .masonry { column-count: 3; } }
@media (max-width: 767.98px) {
  .masonry { column-count: 2; column-gap: 10px; }
  .masonry-item { margin-bottom: 10px; border-radius: 12px; }
  .hero .carousel-item { min-height: 600px; }
  .contact-box { padding: 22px; }
  .marquee-group { gap: 36px; padding-right: 36px; }
  .marquee-group img { height: 44px; }
}

/* Urutan lapisan hero: media < overlay < teks */
.hero .carousel-item::before { z-index: 1; }
.hero-media { z-index: 0; }
.hero .carousel-control-prev, .hero .carousel-control-next { z-index: 3; }
.hero .carousel-indicators { z-index: 3; }
.gallery-overlay strong { font-size: 15px; font-family: 'Poppins', sans-serif; }

/* Cegah float carousel membuat tinggi hero runtuh (seksi di bawahnya tertimpa) */
.hero { display: flow-root; overflow: hidden; }
.hero .carousel, .hero .carousel-inner { position: relative; }
