/********** Template CSS **********/
:root {
    --primary: #033b26;
    --secondary: #e6ff2b;
    --light: #EFFDF5;
    --dark: #2B3940;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    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;
}


/*** Button ***/
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    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;
    border-radius: 2px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.navbar-dark .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link,
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: 0;
    transition: .3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Ensure navbar stays above content and isn't covered on scroll */
.navbar {
    z-index: 1050;
}

/* Reserve space for fixed/sticky navbar when using in-page anchors and for fixed header */
body { scroll-padding-top: 80px; }

/* When header is fixed-top, add top padding so content isn't hidden behind it */
@supports (position: fixed) {
  body { padding-top: 75px; }
}

@media (max-width: 576px) {
  body { padding-top: 68px; }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: 100%;
        margin-top: 0;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-carousel .container,
.page-header .container {
    position: relative;
    padding: 45px 0 45px 35px;
    border-left: 15px solid var(--primary);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    /* Ensure rounding only on the left side */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Slightly rounded corners for header carousel buttons */
.header-carousel .btn {
    border-radius: 18px;
}

/* Gold-styled 'Panduan' button in the header carousel */
.header-carousel .btn.btn-secondary {
    background: linear-gradient(180deg, #ffd966 0%, #d4af37 100%);
    border-color: rgba(0,0,0,0.06);
    color: #1a1a1a;
}

.header-carousel .btn.btn-secondary:hover {
    background: linear-gradient(180deg, #ffe58a 0%, #e6b800 100%);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.header-carousel .btn:hover {
    box-shadow: 0 8px 26px rgba(3,59,38,0.12);
}

.header-carousel .container::before,
.header-carousel .container::after,
.page-header .container::before,
.page-header .container::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100px;
    height: 15px;
    background: var(--primary);
    /* Round the free/right end of the horizontal bar */
    border-top-left-radius: 0;
    border-top-right-radius: 12px;
}

.header-carousel .container::after,
.page-header .container::after {
    top: 100%;
    margin-top: -15px;
    /* Round the bottom bar's right end */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 12px;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(43, 57, 64, .5), rgba(43, 57, 64, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
.about-bg {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 100%);
    background-size: 5px 5px;
}


/*** Category ***/
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
    border: 1px solid rgba(0, 0, 0, .04);
    background: #ffffff;
    padding: 1rem;
    transition: box-shadow .35s ease, transform .35s ease;
    border-radius: 24px;
    overflow: hidden;
}

.cat-item:hover {
    border-color: rgba(0, 0, 0, .08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
    transform: translateY(-8px);
}

/* Perbesar ikon di dalam cat-item agar konsisten */
.cat-item i {
    font-size: 3rem; /* ukuran sama dengan fa-3x */
    display: block;
    margin-bottom: 1rem;
}



/*** Job Listing ***/
.nav-pills .nav-item .active {
    border-bottom: 2px solid var(--primary);
}

.job-item {
    border: 1px solid transparent;
    border-radius: 2px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.job-item:hover {
    border-color: rgba(0, 0, 0, .08);
    box-shadow: none;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .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-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--primary);
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--dark);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 2px;
    transition: .3s;
}

/* Semangat Berkompetisi - dark-green semi-transparent background */
.competition-section {
    background: rgba(3, 59, 38, 0.15); /* hijau tua dengan opacity agak pudar */
    padding: 2.25rem 0;
}
.competition-section .container {
    /* optionally add inner padding if needed */
}
.competition-section h1 {
    color: var(--dark);
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .competition-section { padding: 3rem 0; }
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 15px;
    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;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255,255,255,0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
/* Override Bootstrap primary color to project primary (#033b26) */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.link-primary { color: var(--primary) !important; }
.link-primary:hover, .link-primary:focus { color: var(--primary) !important; }
.btn-primary { color: #fff; background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary); border-color: var(--primary); }

/* Welcome modal */
#welcomeModal .modal-content { border-radius: 8px; }
#welcomeModal .modal-body img { max-width: 180px; display: block; margin: 0 auto 1rem; }
#welcomeModal .modal-title { font-weight: 700; }
#welcomeModal .modal-body p { margin-bottom: 1.5rem; }
@media (max-width: 576px) {
  #welcomeModal .modal-dialog { margin: 1rem; }
}

/* Social links under About */
.social-link { display: inline-flex; align-items: center; color: inherit; }
.social-link i, .social-link .tiktok-icon { font-size: 1.25rem; line-height: 1; }
.social-link img.tiktok-icon, .social-link .tiktok-icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; object-fit: contain; }
.social-link span { vertical-align: middle; }

.text-justify { text-align: justify !important; text-align-last: left; text-justify: inter-word; }
.btn-check:focus + .btn, .btn:focus { outline: 0; box-shadow: 0 0 0 .25rem rgba(3,59,38,0.25) !important; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { color: #000; background-color: var(--primary); border-color: var(--primary); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-range::-webkit-slider-thumb, .form-range::-moz-range-thumb { background-color: var(--primary); }
.page-item.active .page-link { color: #fff; background-color: var(--primary); border-color: var(--primary); }
.dropdown-item.active, .dropdown-item:active { color: #fff; background-color: var(--primary); }
.list-group-item.active { color: #fff; background-color: var(--primary); border-color: var(--primary); }
.progress-bar { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.nav-link { color: var(--primary) !important; }
.nav-link:hover, .nav-link:focus { color: var(--primary) !important; }

/* Responsive tweaks */
@media (max-width: 992px) {
  .navbar-light .navbar-brand { height: auto; }
  .navbar .navbar-brand img { max-width: 52px; max-height: 52px; }
  .header-carousel .owl-nav { right: 4%; }
  .header-carousel .owl-nav .owl-prev, .header-carousel .owl-nav .owl-next { width: 40px; height: 40px; font-size: 20px; }
}

@media (max-width: 768px) {
  .navbar .navbar-nav .nav-link { margin-right: 0; padding: 8px 0; font-size: 14px; }
  .header-carousel .owl-carousel-item { min-height: 350px; }
  .header-carousel .owl-carousel-item h1 { font-size: 28px; }
  .header-carousel .owl-carousel-item p { font-size: 13px !important; }
  .header-carousel .container { padding: 25px 0 25px 20px; }
  .cat-item { min-height: 160px; padding: 1rem; }
  .testimonial-carousel .owl-dot { width: 12px; height: 12px; border-width: 4px; }
}

@media (max-width: 480px) {
  /* Navbar */
  .navbar-light .navbar-brand { padding: 8px 12px; }
  .navbar .navbar-brand img { max-width: 40px; max-height: 40px; margin-right: 8px; }
  .navbar-light .navbar-nav .nav-link { padding: 8px 0; font-size: 13px; }
  /* Navbar title scaling to fit small devices */
  .navbar-brand h1 { font-size: clamp(15px, 4.5vw, 20px); font-weight:700; margin: 0; line-height: 1; }

  /* Carousel */
  .header-carousel .owl-carousel-item { min-height: 260px; }
  .header-carousel .owl-carousel-item h1 { font-size: 22px; }
  .header-carousel .owl-carousel-item p { font-size: 12px !important; }
  .header-carousel .owl-nav { right: 2%; }
  .header-carousel .owl-nav .owl-prev, .header-carousel .owl-nav .owl-next { width: 36px; height: 36px; }

  /* Intro block */
  .container .row.g-4.align-items-center .col-lg-3 { margin-bottom: 1rem; }
  .container .row.g-4.align-items-center .col-lg-3 img { max-width: 140px; }
  .container .row.g-4.align-items-center .col-lg-9 h2 { font-size: 20px; }
  .container .row.g-4.align-items-center .col-lg-9 p { font-size: 14px; }

  /* Category grid: make 2 columns stack to 1 */
  .row.g-4 .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
  .cat-item { min-height: 140px; padding: 0.9rem; }
  .cat-item i { font-size: 2.4rem; }

  /* Modal */
  #welcomeModal .modal-dialog { max-width: 92%; margin: 1rem auto; }
  #welcomeModal .modal-body img { max-width: 140px; }
  #welcomeModal .modal-body p { font-size: 14px; }
  #welcomeModal .btn { padding: 10px 18px; font-size: 14px; }

  /* Footer */
  .footer .btn.btn-social { width: 42px; height: 42px; }
  .footer .row > div { margin-bottom: 1rem; }

  /* Back to top */
  .back-to-top { right: 20px; bottom: 20px; }
}

/* Extra small devices - tighter title and logo */
@media (max-width: 375px) {
  .navbar-brand h1 { font-size: 15px; }
  .navbar .navbar-brand img { max-width: 34px; max-height: 34px; }
}

/* Prevent horizontal overflow on small screens */
html, body { overflow-x: hidden; }

/* Gallery images: consistent cropping and spacing */
.row.g-3 .col-md-3 img { height: 180px; object-fit: cover; }
@media (max-width: 480px) {
  .row.g-3 .col-md-3 img { height: 120px; }
}

/* Intro video: centered and responsive */
.video-wrapper { display:flex; justify-content:center; align-items:center; overflow: hidden; border-radius: 16px; }
.intro-video { width: 100%; max-width: 560px; height: auto; display: block; border-radius: 0; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.video-controls { display:flex; justify-content:center; gap:.5rem; margin-top:.5rem; }
.video-controls .btn { min-width: 68px; }
.logo-below-video { display:block; margin: 0 auto; max-width:200px; }
.logo-below-video.rounded-lg { border-radius: 18px !important; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
@media (max-width: 768px) {
  .intro-video { max-width: 420px; }
  .video-controls .btn { min-width: 60px; padding: .35rem .6rem; }
}
@media (max-width: 480px) {
  .intro-video { max-width: 320px; }
  .video-controls { flex-wrap:wrap; gap:.4rem; }
}

/* Follow Us tweaks */
.follow-us { margin-top:1rem; }
.follow-us .social-link { margin:0 .6rem; display:inline-flex; align-items:center; }
@media (max-width:480px) {
  .follow-us { display:flex; flex-direction:column; gap:.5rem; align-items:center; }
  .follow-us .social-link { margin:0; }
}

/* About text wider container */
/* Increase max-width on larger screens so About text doesn't appear narrow on desktop */
.about-text { width: 100%; max-width: 1400px; text-align: left; margin-left: auto; margin-right: auto; }
@media (max-width: 1200px) { .about-text { max-width: 1200px; } }
@media (max-width: 992px) { .about-text { max-width: 920px; padding: 0 1rem; } }
@media (max-width: 768px) { .about-text { max-width: 720px; padding: 0 1rem; } }
@media (max-width: 480px) { .about-text { padding: 0 .8rem; max-width: 100%; } }

/* Gallery images: equal height and crop */
.gallery-img { height: 200px; object-fit: cover; display:block; }
@media (max-width: 768px) { .gallery-img { height: 160px; } }
@media (max-width: 480px) { .gallery-img { height: 120px; } }

/* Back-to-top: rounded and subtle shadow */
.back-to-top { border-radius: 50% !important; box-shadow: 0 6px 18px rgba(3,59,38,0.18); }
.back-to-top i { font-size: 1rem; }

/* Entrance modal button rounding */
#enterSiteBtn { border-radius: 28px !important; padding: .6rem 1.2rem; }
#enterSiteBtn:focus { box-shadow: 0 6px 18px rgba(3,59,38,0.12); }

 



