/********** Template CSS Updated **********/

/* =========================================
   1. BASE & VARIABLES
   ========================================= */
:root {
    --primary: #009CFF;
    --secondary: #777777;
    --light: #F8F8F8;
    --dark: #252525;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: #666;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
}

/* =========================================
   2. ARTICLE CONTENT STYLING
   ========================================= */
.article-content {
    font-family: 'Work Sans', sans-serif;
    /* font-family: 'Georgia', 'Times New Roman', serif; */
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2c3e50;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* Dropcap */
.article-content p:first-of-type::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    padding-right: 8px;
    font-weight: bold;
    color: var(--primary);
}

/* Gambar dalam artikel */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Blockquote */
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 10px 10px 0;
}

/* Share Buttons */
.share-buttons .btn {
    width: 35px;
    height: 35px;
    padding: 0;
    line-height: 33px;
    text-align: center;
    transition: all 0.3s;
}

.share-buttons .btn:hover {
    transform: translateY(-3px);
}

/* =========================================
   3. MAIN HEADER CAROUSEL (UPDATED)
   ========================================= */
/* Container Carousel Full Screen */
#header-carousel .carousel-item {
    position: relative;
    height: 50vh; /* Full Height Layar */
    min-height: 600px; 
    background-color: #000;
}

/* Gambar Anti-Pecah & Anti-Gepeng (1920x1080 Friendly) */
#header-carousel .carousel-item img.hero-img,
#header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover; 
    object-position: center;
}

/* Overlay Gelap Gradasi */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

/* Caption Teks */
#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent; /* Hapus background kotak lama */
    z-index: 2;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.6);
}

/* Tombol Navigasi Kiri/Kanan */
#header-carousel .carousel-control-prev, 
#header-carousel .carousel-control-next {
    width: 8%;
    z-index: 3;
}

#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/* Indikator Thumbnail (Bawah) */
#header-carousel .carousel-indicators {
    bottom: 40px;
    z-index: 3;
}

#header-carousel .carousel-indicators [data-bs-target] {
    width: 80px;
    height: 50px;
    text-indent: 0;
    margin: 0 5px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    overflow: hidden;
    background: transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
}

#header-carousel .carousel-indicators .active {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.1);
}

#header-carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative; /* Reset position for thumbnail */
}

/* Responsive Header untuk Mobile */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        height: 70vh; 
        min-height: 400px;
    }
    #header-carousel .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: none;
        background-color: rgba(255,255,255,0.6);
    }
    #header-carousel .carousel-indicators [data-bs-target] img {
        display: none;
    }
    #header-carousel .carousel-indicators .active {
        background-color: var(--primary);
        width: 25px;
        border-radius: 10px;
    }
}

/* Page Header (Untuk halaman lain selain Home) */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}
.breadcrumb-item+.breadcrumb-item::before { color: var(--secondary); }
.page-header .breadcrumb-item+.breadcrumb-item::before { color: var(--light); }


/* =========================================
   4. NAVBAR & BUTTONS
   ========================================= */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.custom-layout .navbar-brand {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 50px;
    height: auto;
}

.custom-background {
    background-color: rgba(128, 0, 128, 0.5);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link { margin-right: 0; padding: 8px 0; }
    .navbar .navbar-nav { margin-top: 8px; border-top: 1px solid rgba(256, 256, 256, .1); }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block; visibility: hidden; top: 100%;
        transform: rotateX(-75deg); transform-origin: 0% 0%;
        transition: .5s; opacity: 0;
    }
    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg); visibility: visible;
        transition: .5s; opacity: 1;
    }
}

/* Buttons */
.btn { font-weight: 500; transition: .5s; }
.btn.btn-primary { color: #FFFFFF; }
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }
.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0; display: flex; align-items: center;
    justify-content: center; font-weight: normal;
}

/* Back to Top */
.back-to-top {
    position: fixed; display: none; right: 30px; bottom: 30px; z-index: 99;
}

/* Spinner */
#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;
}


/* =========================================
   5. GENERAL COMPONENTS
   ========================================= */
/* Section Title */
.section-title {
    position: relative; display: inline-block; text-transform: uppercase;
}
.section-title::before {
    position: absolute; content: ""; width: calc(100% + 80px); height: 2px;
    top: 4px; left: -40px; background: var(--primary); z-index: -1;
}
.section-title::after {
    position: absolute; content: ""; width: calc(100% + 120px); height: 2px;
    bottom: 4px; left: -60px; background: var(--primary); z-index: -1;
}
.section-title.text-start::before { width: calc(100% + 40px); left: 0; }
.section-title.text-start::after { width: calc(100% + 60px); left: 0; }

/* Img Border */
.img-border { position: relative; height: 100%; min-height: 400px; }
.img-border::before {
    position: absolute; content: ""; top: 0; left: 0; right: 3rem; bottom: 3rem;
    border: 5px solid var(--primary); border-radius: 6px;
}
.img-border img {
    position: absolute; top: 3rem; left: 3rem;
    width: calc(100% - 3rem); height: calc(100% - 3rem);
    object-fit: cover; border-radius: 6px;
}

/* Facts & Services */
.fact-item { transition: .5s; }
.fact-item:hover {
    margin-top: -10px; background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border: 1px solid transparent; transition: .5s;
}
.service-item:hover {
    margin-top: -10px; box-shadow: none; border: 1px solid #DEE2E6;
}

/* Feature */
.progress { height: 5px; }
.progress .progress-bar { width: 0px; transition: 3s; }


/* =========================================
   6. PROJECT & TEAM ITEMS (OPTIMIZED)
   ========================================= */

/* -- TEAM ITEMS -- */
.team-item {
    display: flex;
    flex-direction: column;
    min-height: 418px; /* Tinggi minimal */
    height: 100%;      /* Full height container */
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.team-item img {
    width: 200px !important;
    height: 200px;
    object-fit: cover;
    margin: 20px auto; /* Center image */
    border-radius: 50%; /* Opsional: Jika ingin bulat */
}

.team-text-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px 20px;
    text-align: center;
}

.team-item .team-social {
    position: absolute; width: 100%; height: 100%;
    top: 15px; left: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.9);
    transition: .5s; opacity: 0; z-index: 10;
}
.team-item:hover .team-social { top: 0; opacity: 1; }
.team-item .team-social .btn { margin: 0 3px; }


/* -- PROJECT ITEMS -- */
.project-item {
    width: 100%; /* Gunakan 100% dalam grid, kontrol lebar di HTML/Owl */
    max-width: 350px; /* Batasi agar tidak terlalu lebar */
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background-color: #f8f9fa;
    padding: 15px;
    margin: 15px auto; /* Center if single */
    position: relative;
}

.project-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Overlay link pada project */
.project-item a {
    position: absolute; width: 100%; height: 100%;
    top: 0; left: 0;
    display: flex; align-items: center; justify-content: center;
    color: #FFFFFF; background: rgba(0, 0, 0, .5);
    border-radius: 6px; opacity: 0; transition: .5s;
}
.project-item:hover a { opacity: 1; }


/* =========================================
   7. OWL CAROUSEL NAVIGATION & DOTS
   ========================================= */
.owl-carousel .project-item { margin: 15px; }
.owl-carousel .project-item span { font-size: 14px; color: #6c757d; }
.owl-carousel .project-item h6 { font-size: 16px; font-weight: bold; margin-top: 10px; }
.owl-carousel .btn-icon { margin-top: 10px; color: var(--primary); }

/* Dots Styling */
.project-carousel .owl-dots {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; margin-top: 20px;
}
.project-carousel .owl-dot {
    width: 35px; height: 35px; margin: 3px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #DEE2E6; border-radius: 35px; transition: .5s;
}
.project-carousel .owl-dot:hover,
.project-carousel .owl-dot.active {
    color: #FFFFFF; border-color: var(--primary); background: var(--primary);
}

/* Nav Arrow Styling (Circular White Buttons) */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    background: #fff !important;
    color: var(--primary) !important;
    width: 45px; height: 45px;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: absolute; top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem !important;
}
.owl-carousel .owl-nav button.owl-prev { left: -25px; }
.owl-carousel .owl-nav button.owl-next { right: -25px; }

/* Container Adjustment for Arrows */
.container-xxl.py-5 .container {
    position: relative; padding-left: 40px; padding-right: 40px;
}


/* =========================================
   8. TESTIMONIAL & FOOTER
   ========================================= */
/* Testimonial */
.testimonial-carousel .owl-item .testimonial-item img { width: 60px; height: 60px; }
.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * { transition: .5s; }

.testimonial-carousel .owl-item.center .testimonial-item { background: var(--primary) !important; }
.testimonial-carousel .owl-item.center .testimonial-item * { color: #FFFFFF !important; }

.testimonial-carousel .owl-nav { margin-top: 30px; display: flex; justify-content: center; }
.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px; width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #DEE2E6; border-radius: 50px; font-size: 18px; transition: .5s;
}
.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF; border-color: var(--primary); background: var(--primary);
}

/* Footer */
.footer .btn.btn-link {
    display: block; margin-bottom: 5px; padding: 0;
    text-align: left; color: var(--secondary);
    font-weight: normal; text-transform: capitalize; transition: .3s;
}
.footer .btn.btn-link::before {
    position: relative; content: "\f105";
    font-family: "Font Awesome 5 Free"; font-weight: 900;
    color: var(--secondary); margin-right: 10px;
}
.footer .btn.btn-link:hover {
    color: var(--primary); letter-spacing: 1px; box-shadow: none;
}
.footer .copyright {
    padding: 25px 0; font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}
.footer .copyright a { color: var(--light); }
.footer .copyright a:hover { color: var(--primary); }

/* Utility Helper */
.text-wrap { white-space: nowrap; overflow: hidden; max-width: 36ch; }




@media (max-width: 991.98px) {
    .img-border {
        min-height: 300px;
        margin-bottom: 30px; 
    }

    .img-border::before {
        right: 1.5rem; /* Kurangi ketebalan bingkai di HP */
        bottom: 1.5rem;
    }

    .img-border img {
        top: 1.5rem; /* Sesuaikan posisi gambar */
        left: 1.5rem;
        width: calc(100% - 1.5rem);
        height: calc(100% - 1.5rem);
    }
}

/* 2. Styling Teks Berita */
.display-6 {
    font-weight: 700; /* Judul lebih tebal */
    color: var(--dark);
    line-height: 1.3;
}

/* Warna teks paragraf dibuat sedikit lebih gelap agar mudah dibaca */
.text-body {
    color: #555 !important;
}

/* Efek Hover pada Tombol Baca Selengkapnya */
.btn-primary:hover {
    transform: translateY(-2px); /* Tombol naik sedikit saat di-hover */
    box-shadow: 0 5px 15px rgba(0, 156, 255, 0.3);
}

/* Animasi Halus untuk Gambar */
.img-border img {
    transition: transform 0.5s ease;
}

/* Efek Zoom in halus saat kursor diarahkan ke area gambar */
.img-border:hover img {
    transform: scale(1.02); 
}

