* {
font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Noto Color Emoji";
}

/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    color: var(--bs-white);
    border: none;
}

.btn.btn-primary:hover {
    background: var(--bs-dark);
    color: var(--bs-white);
}

.btn.btn-light {
    color: var(--bs-primary);
    border: none;
}

.btn.btn-light:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}

.btn.btn-dark {
    color: var(--bs-white);
    border: none;
}

.btn.btn-dark:hover {
    color: var(--bs-primary);
    background: var(--bs-light);
}


/*** Topbar Start ***/
.topbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
    color: var(--bs-primary);
}

.topbar .dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.topbar .dropdown .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light);
    padding-top: 10px;
    border: 0;
    transition: .5s;
    opacity: 1;
}

/*** Topbar End ***/


/*** Navbar Start ***/
.nav-bar {
    background: var(--bs-white);
    transition: 1s;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.nav-bar .navbar-light .navbar-brand img {
    max-height: 50px;
}

.navbar .navbar-nav .nav-item .nav-link {
    padding: 0;
}

.navbar .navbar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 15px;
}

.navbar-light .navbar-nav .nav-item:hover,
.navbar-light .navbar-nav .nav-item.active,
.navbar-light .navbar-nav .nav-item:hover .nav-link,
.navbar-light .navbar-nav .nav-item.active .nav-link {
    color: var(--bs-primary);
}

@media (max-width: 991px) {
    .navbar {
        padding: 20px 0;
    }

    .navbar .navbar-nav .nav-link {
        padding: 0;
    }

    .navbar .navbar-nav .nav-item {
        display: flex;
        padding: 20px;
        flex-direction: column;
        justify-content: start;
        align-items: start;
    }

    .navbar .navbar-nav .nav-btn {
        display: flex;
        justify-content: start;
    }

    .navbar .navbar-nav {
        width: 100%;
        display: flex;
        margin-top: 20px;
        padding-bottom: 20px;
        background: var(--bs-light);
        border-radius: 10px;
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 8px 15px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

.dropdown .dropdown-menu .dropdown-item:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

@media (min-width: 992px) {
    .navbar {
        padding: 20px 0;
    }

    .navbar .nav-btn {
        display: flex;
        align-items: center;
        justify-content: end;
    }

    .navbar .navbar-nav {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--bs-light);
        border-radius: 10px;
    }

    .navbar .navbar-nav .nav-btn {
        width: 100%;
        display: flex;
        margin-left: auto;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        margin-top: 20px;
        background: var(--bs-light);
        transition: .5s;
        opacity: 1;
    }
}

/*** Navbar End ***/


/*** Carousel Hero Header Start ***/

.header-carousel .header-carousel-item {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== Romantic Slide Background ===== */
/* ===== BASE ===== */
.header-carousel .couple-slide {
    background:
        radial-gradient(circle at center,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 0.5) 80%,
            rgba(0, 0, 0, 0.85) 100%),
        var(--bg-img);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== Backgrounds ===== */
.header-carousel .romantic-slide {
    --bg-img: url("../img/bg-romantic.webp");
}

.header-carousel .ff-couple-slide {
    --bg-img: url("../img/free-fire-couple.webp");
}

.header-carousel .ff-couple-BlueRed {
    --bg-img: url("../img/free-fire-couple-BlueRed.webp");
}

.header-carousel .ff-couple-TreasureHunt {
    --bg-img: url("../img/free-fire-couple-TreasureHunt.webp");
}

.header-carousel .ff-couple-treasureHuntGoofy {
    --bg-img: url("../img/free-fire-couple-treasureHuntGoofy.webp");
}

.header-carousel .ff-couple-bpassTreasure {
    --bg-img: url("../img/free-fire-couple-bpassTreasure.webp");
}

.header-carousel .ff-couple-dolphin {
    --bg-img: url("../img/free-fire-couple-dolphin.webp");
}

.header-carousel .ff-couple-White {
    --bg-img: url("../img/free-fire-couple-White.webp");
}

/* ===== Player FF Gaming Slide ===== */
/* ===== BASE STYLE ===== */
.header-carousel .ff-slide {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        radial-gradient(circle at 80% 30%, rgba(0, 195, 255, 0.4), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(153, 0, 255, 0.4), transparent 40%),
        radial-gradient(circle at center, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 100%),
        var(--bg-img);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== OVERLAY ===== */
.ff-slide {
    position: relative;
    z-index: 0;
    /* 🔥 penting */
}

.ff-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

/* ===== CAPITON  ===== */
.ff-slide .carousel-caption {
    position: relative;
    z-index: 2;
}

.ff-slide h1,
.ff-slide h4 {
    text-shadow:
        0 0 10px rgba(0, 195, 255, 0.7),
        0 0 20px rgba(153, 0, 255, 0.6);
}

/* ===== CAPITON layre ===== */

/* ===== BACKGROUNDS ===== */
.header-carousel .player-ff {
    --bg-img: url("../../img/free-fire.webp");
}

.header-carousel .ff-master-glory {
    --bg-img: url("../../img/free-fire-4master.webp");
}

.header-carousel .ff-title-glory {
    --bg-img: url("../../img/free-fire-titleGlory.webp");
}

.header-carousel .ff-chilling {
    --bg-img: url("../../img/free-fire-chilling.webp");
}


/* ===== FF TITLE ===== */
.ff-title-light {
    background: url("../../img/ff-text-light.webp") no-repeat left center;
    background-size: contain;

    /* Biar ukurannya ngikutin teks display-1 */
    width: 100%;
    max-width: 600px;
    /* bisa kamu adjust */
    height: 1em;
    /* 🔥 kunci: ikut font-size */

    display: inline-block;

    /* Hilangin teks asli (kalau ada fallback) */
    text-indent: -9999px;

    margin-left: 0;
}

.ff-title-dark {
    background: url("../../img/ff-text-dark.webp") no-repeat left center;
    background-size: contain;

    /* Biar ukurannya ngikutin teks display-1 */
    width: 100%;
    max-width: 600px;
    /* bisa kamu adjust */
    height: 1em;
    /* 🔥 kunci: ikut font-size */

    display: inline-block;

    /* Hilangin teks asli (kalau ada fallback) */
    text-indent: -9999px;

    margin-left: 0;
}

/* ===== Default Slide Background ===== */
.header-carousel .default-slide {
    background:
        linear-gradient(rgba(13, 110, 253, 0.7), rgba(13, 110, 253, 0.7)),
        url("../img/carousel-2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== Caption Overlay (lebih soft dari sebelumnya) ===== */
.header-carousel .header-carousel-item .carousel-caption {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    z-index: 2;
}

/* ===== Navigation Buttons ===== */
.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 60px;
    background: var(--bs-light);
    color: var(--bs-primary);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 3;
}

.header-carousel .owl-nav .owl-prev {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 30px;
}

.header-carousel .owl-nav .owl-next {
    bottom: 30px;
    right: 50%;
    transform: translateX(-50%);
    margin-right: 30px;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 0 0 80px 0 var(--bs-secondary);
    color: var(--bs-white);
}

/* ===== Responsive ===== */

@media (max-width: 991px) {

    .header-carousel .header-carousel-item {
        height: 900px;
    }

    .header-carousel .header-carousel-item .carousel-caption {
        padding-top: 45px;
    }
}

@media (max-width: 767px) {

    .header-carousel .header-carousel-item {
        height: 750px;
    }

    .header-carousel .owl-nav .owl-prev {
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        margin-left: -45px;
    }

    .header-carousel .owl-nav .owl-next {
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 45px;
    }
}

.header-carousel-item.frustrated-slide {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(50, 0, 0, 0.7)), url('images/frustration-bg.jpg') no-repeat center center;
    background-size: cover;
}

.header-carousel-item.inner-struggle {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 50, 0.7)), url('images/inner-struggle-bg.jpg') no-repeat center center;
    background-size: cover;
}

.header-carousel .carousel-caption h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.header-carousel .carousel-caption p {
    line-height: 1.6;
}

/*** Carousel Hero Header End ***/


/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    /* Menggunakan overlay slate-dark untuk meredam warna daun agar teks putih menyala */
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.5)), url(../img/bg-breadcrumb.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0 60px 0;
    transition: 0.5s;
}

.bg-breadcrumb .breadcrumb {
    position: relative;
    gap: 5px; /* Memberi sedikit jarak antar item breadcrumb */
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Efek hover standar agar navigasi terasa hidup */
.bg-breadcrumb .breadcrumb .breadcrumb-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Memastikan teks aktif tetap terlihat jelas dan tidak ter-overwrite warna biru bawaan bootstrap */
.bg-breadcrumb .breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Samakan dengan yang kemarin, tapi tambahkan baris baru di bawahnya */
.bg-breadcrumb .breadcrumb {
    position: relative;
    gap: 8px; /* Beri jarak tipis antar elemen agar separator / tidak menempel */
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a:hover {
    color: #ffffff;
}

/* --- KUNCI EFEK PILL AKTIF --- */
.bg-breadcrumb .breadcrumb .breadcrumb-item.active {
    color: #ffffff !important; /* Teks di dalam pill jadi putih solid */
    background: rgba(255, 255, 255, 0.15); /* Latar belakang pill tipis */
    backdrop-filter: blur(4px); /* Efek kaca buram */
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 14px; /* Ruang di dalam pill */
    border-radius: 50px; /* Membuat bentuk kapsul/pill sempurna */
    border: 1px solid rgba(255, 255, 255, 0.25); /* Garis tepi tipis agar makin kontras */
    font-size: 0.9rem;
    font-weight: 500;
}

/* Opsional: Menghilangkan tanda garis miring (/) bawaan Bootstrap sebelum elemen pill */
.bg-breadcrumb .breadcrumb .breadcrumb-item.active::before {
    color: rgba(255, 255, 255, 0.4) !important;
    padding-right: 8px;
}

/*** Single Page Hero Header End ***/


/*** project Start ***/
.project .project-item {
    border-radius: 10px;
}

.project .project-item .project-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.project .project-item .project-img img {
    transition: 0.5s;
}

.project .project-item:hover .project-img img {
    transform: scale(1.1);
}

.project .project-item .project-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(1, 95, 201, .2);
    transition: 0.5s;
    z-index: 1;
}

.project .project-item:hover .project-img::after {
    height: 100%;
}

.project .project-item .project-img .project-icon {
    position: absolute;
    width: 70px;
    bottom: 0;
    right: 25px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: var(--bs-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 9;
}

.project .project-item .project-img .project-icon i {
    color: var(--bs-primary);
    transition: 0.5s;
}

.project .project-item:hover .project-img .project-icon i {
    transform: rotateX(360deg);
    color: var(--bs-white);
}

.project .project-item:hover .project-img .project-icon {
    bottom: 0;
    color: var(--bs-white);
    background: var(--bs-primary);
}

.project .project-content {
    position: relative;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-light);
}

.project .project-item .project-content .project-content-inner {
    position: relative;
    z-index: 9;
}

.project .project-item .project-content .project-content-inner .h4,
.project .project-item .project-content .project-content-inner p {
    transition: 0.5s;
}

.project .project-item:hover .project-content .project-content-inner .h4,
.project .project-item:hover .project-content .project-content-inner p {
    color: var(--bs-white);
}

.project .project-item:hover .project-content .project-content-inner .btn.btn-primary {
    color: var(--bs-primary);
    background: var(--bs-white);
}

.project .project-item:hover .project-content .project-content-inner .btn.btn-primary:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}

.project .project-item:hover .project-content .project-content-inner .h4:hover {
    color: var(--bs-dark);
}

.project .project-item .project-content::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-primary);
    transition: 0.5s;
    z-index: 1;
}

.project .project-item:hover .project-content::after {
    height: 100%;
}

/*** project End ***/


/*** Blog Start ***/
.blog .blog-item {
    border-radius: 10px;
    transition: 0.5s;
}

.blog .blog-item:hover {
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
}

.blog .blog-item:hover .blog-content {
    background: var(--bs-light);
}

.blog .blog-item .blog-img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: relative;
    overflow: hidden;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.2);
}

.blog .blog-item .blog-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(1, 95, 201, .2);
    transition: 0.5s;
    z-index: 1;
}

.blog .blog-item:hover .blog-img::after {
    height: 100%;
}

.blog .blog-item .blog-img .blog-categiry {
    position: absolute;
    bottom: 0;
    right: 0;
    border-top-left-radius: 10px;
    display: inline-flex;
    color: var(--bs-white);
    background: var(--bs-primary);
    z-index: 9;
}

.blog .blog-item .blog-content {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-white);
}

.blog .blog-item .blog-content a.btn {
    color: var(--bs-dark);
}

.blog .blog-item:hover .blog-content a.btn:hover {
    color: var(--bs-primary);
}

/*** Blog End ***/


/*** Team Start ***/
.team .team-item {
    display: flex;
    flex-direction: column;
    /* pastikan konten vertikal */
    height: 100%;
    /* stretch untuk sama tinggi row */
}

.team .team-item .team-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    flex-shrink: 0;
    /* biar gambar ga ngecil */
}

.team .team-item .team-img img {
    transition: 0.5s;
    width: 100%;
    height: auto;
    display: block;
}

.team .team-item:hover .team-img img {
    transform: scale(1.1);
}

.team .team-item .team-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: 0.5s;
}

.team .team-item:hover .team-img::after {
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
}

.team .team-item .team-img .team-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    margin-bottom: -100%;
    transition: 0.5s;
    z-index: 9;
}

.team .team-item:hover .team-img .team-icon {
    margin-bottom: 0;
}

.team .team-item .team-title {
    color: var(--bs-white);
    /*background: var(--bs-primary);*/
    background: #1f2937;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: 0.5s;
    flex-grow: 1;
    /* biar title ikut stretch tinggi */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1rem;
    box-sizing: border-box;
}

.team .team-item .team-title h4 {
    color: var(--bs-white);
    margin-bottom: 0.5rem;
}

.team .team-item .team-title p {
    margin-bottom: 0.25rem;
}

.team .team-item:hover .team-title {
    /*background: var(--bs-dark);*/
    background:#344256;
}


/* Stretch semua card di satu row */
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    /* kunci biar semua col di row sama tinggi */
}

/*** Team End ***/


/*** Footer Start ***/
.footer {
    background: var(--bs-dark);
}

.footer .footer-item {
    display: flex;
    flex-direction: column;
}

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary);
}


.footer .footer-item .footer-instagram {
    position: relative;
    overflow: hidden;
}

.footer .footer-item .footer-instagram img {
    transition: 0.5s;
}

.footer .footer-item .footer-instagram:hover img {
    transform: scale(1.2);
}

.footer .footer-item .footer-instagram .footer-search-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    opacity: 0;
}

.footer .footer-item .footer-instagram:hover .footer-search-icon {
    opacity: 1;
    background: rgba(0, 0, 0, .6);
}

.footer .footer-item .footer-btn a {
    background: var(--bs-light);
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-primary);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-white);
}

/*** Footer End ***/


/*** copyright Start ***/
.copyright {
    background: var(--bs-dark);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/*** copyright end ***/



/*** Education Start ***/

/* Timeline container */
.education-timeline {
    position: relative;
    margin: 0 auto;
    max-width: 900px;
}

/* Dot indicator */
.timeline-dot {
    width: 18px;
    height: 18px;
    background: #0d6efd;
    border-radius: 50%;
    position: absolute;
    left: -9px;
    top: 1.5rem;
}

/* Timeline items */
.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 50px;
}

/* Card style */
.timeline-card {
    background: rgb(254, 251, 251);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover effect */
.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Text style */
.timeline-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;

    display: inline-block;
    /* supaya bisa rounded */
    background-color: #0066fffc;
    /* biru lembut */
    color: #ffffff;
    /* teks biru pekat */
    padding: 5px 15px;
    /* space kiri kanan */
    border-radius: 50px;
    /* pill full */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* sedikit depth */
}

@media (max-width: 768px) {
    .timeline-card h3 {
        font-size: 1.2rem;
        /* lebih kecil dari desktop */
        padding: 4px 12px;
        /* sesuaikan biar pill tetap proporsional */
    }
}

.timeline-card h5 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #333;
}

.timeline-card p,
.timeline-card ul li {
    font-size: 0.95rem;
    color: #111;
    /* hitam pekat */
    line-height: 1.6;
}

.timeline-card ul {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
}

/* Rounded bullets for ul */
.timeline-card ul li {
    list-style: disc;
    margin-bottom: 0.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 25px;
    }

    .timeline-dot {
        left: -9px;
        top: 1rem;
    }
}

.timeline-social {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.timeline-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.timeline-social .social-link:hover {
    background-color: #0d6efd;
    /* highlight warna biru */
    color: white;
    transform: scale(1.1);
}

.timeline-card.blog-item .blog-img img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    width: 100%;
    height: auto;
}

.blog-content ul li {
    word-break: break-word;
}

/*** Education End ***/



/* Custom styling simpel untuk bubble popover agar serasi dengan template */
.popover {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}
.popover-header {
    background-color: #16243d !important;
    color: #fff !important;
    font-weight: bold;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}
.popover-body {
    color: #16243d !important;
    font-size: 0.9rem;
}

/* Styling Bubble Popover Kustom */
/* Styling Bubble Popover Kustom */
.custom-popover-bubble {
    position: absolute;
    bottom: 140%; /* Sedikit dinaikkan biar gak mepet */
    left: 50%;
    transform: translateX(-50%);
    background-color: #16243d;
    color: #ffffff !important;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* Bayangan dipertebal biar pop-out */
    z-index: 99999 !important; /* Memaksa bubble berada di lapisan paling depan */
    font-weight: normal;
    text-align: left;
}

/* Segitiga kecil di bawah bubble */
.custom-popover-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #16243d transparent transparent transparent;
}



/* Lightbox Custom System */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999; /* Sangat tinggi agar mengalahkan komponen FAQ/Header */
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    /* Menghapus width: 70vw yang kaku */
    width: auto; 
    height: auto;
    
    /* Batasan maksimal: gambar portrait tidak akan meluber ke bawah, */
    /* dan gambar landscape tidak akan meluber ke samping */
    max-width: 70vw;  /* Tetap maksimal 70% dari lebar layar */
    max-height: 100vh; /* Maksimal 85% dari tinggi layar agar tidak memicu scroll */
    
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
}




/* =========================
   LYRICS SECTION
========================= */

.lyrics-wrapper{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.lyric-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    height:65vh;
    min-height:500px;
}

.lyric-header{
    padding:20px;
    border-bottom:1px solid #eee;
}

.lyric-header h5{
    margin-bottom:4px;
    color:#16243d;
    font-weight:700;
}

.lyric-header small{
    color:#777;
}

.lyric-content{
    flex:1;
    overflow-y:auto;
    padding:20px;
    line-height:1.9;
    color:#16243d;

    scrollbar-width:thin;
    
    white-space: pre-line;
}

.play-btn{
    border:none;
    background:#0d6efd;
    color:white;
    padding:14px;
    font-weight:600;
    transition:.3s;
}

.play-btn:hover{
    background:#0b5ed7;
}

/* Keadaan awal: sembunyikan container player */
.youtube-player-wrapper {
    display: none; 
}

/* Saat lagu diputar, class 'active' ditambahkan lewat JS untuk menampilkannya */
.youtube-player-wrapper.active {
    display: block !important; /* atau flex / grid sesuai layoutmu */
}

#youtubePlayer{
    width:100%;
    height:100%;
}

.youtube-player-wrapper iframe{
    width:100%;
    border:none;
    border-radius:20px;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:none;
    }
}

/* =========================
   MOBILE
========================= */

@media(max-width:991px){

    .lyrics-wrapper{
        display:flex;
        overflow-x:auto;
        gap:20px;
        scroll-snap-type:x mandatory;
        padding-bottom:10px;
    }

    .lyrics-wrapper::-webkit-scrollbar{
        display:none;
    }

    .lyric-card{
        min-width:90%;
        scroll-snap-align:center;
        height:60vh;
    }
}



.playlist-scroll{
    display:flex;
    gap:20px;
    overflow-x:auto;
    padding:10px 4px 20px;
    scroll-behavior:smooth;
    scroll-snap-type:x proximity;
}

.playlist-scroll::-webkit-scrollbar{
    height:8px;
}

.playlist-scroll::-webkit-scrollbar-thumb{
    background:#0d6efd;
    border-radius:20px;
}

.playlist-card{
    min-width:260px;
    max-width:260px;
    flex-shrink:0;
    scroll-snap-align:start;
}

#youtubePlayerContainer{
    display:none;
}

#youtubePlayerContainer.active{
    display:block;
}

.playlist-card.playing{
    border:2px solid #0d6efd;
    transform:translateY(-2px);
    transition:.2s;
}





/* Desain Modal Peringatan (Mengunci Total) */
#adblock-modal {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 15, 15, 0.95);
    z-index: 999999;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}
.adblmodal-content {
    background: #212121;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    max-width: 450px;
    border: 1px solid #333;
}
.adblmodal-content h2 {
    color: #ff4e4e;
    margin-top: 0;
}
.adblmodal-content p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

/* Desain Pop-Up Ringan Custom Toast (Anti-Stuck Main Thread) */
#adblock-toast {
    display: none; /* Muncul via JS */
    position: fixed;
    bottom: 20px; 
    right: 20px;
    z-index: 999998;
    max-width: 350px;
    animation: slideInUp 0.4s ease-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.adbltoast-content {
    background: #282828;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #ffcc00;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: relative;
}
.adbltoast-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #ffcc00;
}
.adbltoast-content p {
    margin: 0;
    font-size: 12px;
    color: #ccc;
    line-height: 1.4;
}
.adbltoast-close {
    position: absolute;
    top: 8px; right: 12px;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}
.adbltoast-close:hover {
    color: #fff;
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}



/* ==========================================
   MEGA MENU HORIZONTAL SYSTEM (PAGES)
   ========================================== */

/* Pastikan posisi dropdown relative terhadap navbar-nav di layar desktop */
/* ==========================================
   MEGA MENU HORIZONTAL SYSTEM (PAGES)
   ========================================== */

@media (min-width: 992px) {
    .mega-dropdown-main {
        position: relative;
    }
    
    /* Container Lebar Utama */
    .mega-menu-container {
        width: 680px; /* Sedikit dilebarkan agar pas dengan layout outline */
        
        /* FIX GESER KANAN: Mengubah tumpuan left dan transform agar bergeser sejajar dengan Nav Bar */
        left: -115px !important; 
        transform: translateX(0) !important; /* Mematikan centering agar mulus sejajar dari kiri tombol 'Pages' ke kanan */
        
        border: 1px solid #dee2e6;
        border-radius: 12px;
        margin-top: 15px !important;
        background-color: #ffffff;
    }

    /* Flexbox layout baris lurus ke samping */
    .mega-menu-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 25px;
    }

    /* Masing-masing kolom tegak lurus ke bawah */
    .mega-col {
        flex: 1;
        min-width: 190px;
        display: flex;
        flex-direction: column;
        gap: 8px; /* Memberi jarak antar tombol list */
    }
}

/* Styling Judul Kategori Kepala Menu */
.mega-title {
    font-weight: 700;
    color: #0d6efd; 
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    margin-bottom: 4px;
    border-bottom: 2px solid #e9ecef;
}

/* FIX OUTLINE LIST ELEMEN (Membentuk Tombol Kotak Ringan) */
.mega-col .dropdown-item {
    display: block;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: #495057;
    background-color: #ffffff;
    
    /* Membuat border outline tipis */
    border: 1px solid #e2e8f0; 
    border-radius: 6px;
    
    transition: all 0.2s ease-in-out;
}

/* Efek Hover saat Kursor Menyentuh Tombol List */
.mega-col .dropdown-item:hover {
    background-color: #f1f5f9; /* Mengubah latar belakang tombol */
    color: #0d6efd;            /* Mengubah warna teks menjadi biru primer */
    border-color: #0d6efd;      /* Outline ikut berubah menjadi biru */
    padding-left: 18px;         /* Efek animasi bergeser sedikit ke kanan */
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.08); /* Glow tipis di tombol */
}

/* ==========================================
   TAMPILAN RESPONSIF MOBILE (< 992px)
   ========================================== */
@media (max-width: 991.98px) {
    .mega-menu-container {
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 10px 0 0 15px !important;
    }

    .mega-menu-row {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mega-col {
        gap: 6px;
    }

    .mega-title {
        padding-left: 0;
        margin-bottom: 5px;
    }

    /* Di mobile, hilangkan outline tombol agar tidak terlalu penuh di layar kecil */
    .mega-col .dropdown-item {
        border: none;
        padding: 6px 10px;
        background: transparent;
    }
    
    .mega-col .dropdown-item:hover {
        padding-left: 14px;
        background: transparent;
    }
}
