/********** Template CSS **********/
:root {
    --primary: #355EFC;
    --secondary: #E93C05;
    --tertiary: #555555;
    --light: #DFE4FD;
    --dark: #011A41;
}

/* ========== Template1 identitas: premium, tegas, beda dari template2/3 ========== */
body.template1 {
    font-family: 'DM Sans', sans-serif;
}
.template1 h1, .template1 h2, .template1 h3, .template1 h4, .template1 h5, .template1 h6,
.template1 .display-1, .template1 .display-2, .template1 .display-3, .template1 .display-4, .template1 .display-5,
.template1 .navbar-brand, .template1 .hero-title, .template1 .fw-bold {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Navbar dark: gradient line bawah */
.template1 .navbar.sticky-top {
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.template1 .navbar.sticky-top::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 0 0 2px 2px;
}
/* Logo header: tampil asli (tanpa filter putih) */
.template1 .navbar .navbar-toggler { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.9); }
.template1 .navbar .navbar-toggler-icon { filter: invert(1); }

/* Background: full-screen pakai background-ornament.png di body; waves disembunyikan */
.template1-bg-waves {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
}
.template1-bg-waves .template1-waves-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay ornamental: di atas background image, di belakang teks (z-index 0) */
.template1-bg-ornaments {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.template1-bg-ornaments .template1-ornaments-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

/* Custom border wrapper for about image - only top-left and bottom-right */
.about-img-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}
.about-img-wrapper::before,
.about-img-wrapper::after {
    content: '';
    position: absolute;
    z-index: 2;
    pointer-events: none;
}
/* Top-left border */
.about-img-wrapper::before {
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-top: 8px solid var(--primary);
    border-left: 8px solid var(--primary);
    border-radius: 1rem 0 0 0;
}
/* Bottom-right border */
.about-img-wrapper::after {
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-bottom: 8px solid var(--secondary);
    border-right: 8px solid var(--secondary);
    border-radius: 0 0 1rem 0;
}
.about-img-wrapper img {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Section About beranda & tentang: teks setara dengan foto */
.template1-about-title {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    color: inherit;
}
.template1-about-description {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}
.template1-about-description p {
    margin-bottom: 0.6rem;
}
.template1-about-description p:last-child {
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .template1-about-title { font-size: 1.6rem; }
    .template1-about-description { font-size: 1rem; }
}
@media (min-width: 992px) {
    .template1-about-title { font-size: 1.75rem; }
}
.template1-about-section.container-xxl {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
@media (min-width: 768px) {
    .template1-about-section.container-xxl { padding-top: 1.5rem; padding-bottom: 1.5rem; }
}

/* --- Border/rounded form & kartu (selaras template3: input, kartu, tombol) --- */
.template1-form-wrap {
    border-radius: 1rem;
    overflow: hidden;
}

/* Form pendaftaran info: teks pakai primary dari konfigurasi template publik */
.template1 .template1-form-pendaftaran-info,
.template1 .template1-form-pendaftaran-info p,
.template1 .template1-form-pendaftaran-info li,
.template1 .template1-form-pendaftaran-info span,
.template1 .template1-form-pendaftaran-info div {
    color: var(--primary) !important;
}
.template1 .template1-form-pendaftaran-info strong,
.template1 .template1-form-pendaftaran-info b,
.template1 .template1-form-pendaftaran-info h1,
.template1 .template1-form-pendaftaran-info h2,
.template1 .template1-form-pendaftaran-info h3,
.template1 .template1-form-pendaftaran-info h4 {
    color: var(--primary) !important;
}
.template1 .form-control,
.template1 .form-control:focus {
    border-radius: 0.5rem;
}
.template1 .form-floating > .form-control,
.template1 .form-floating > .form-control:focus {
    border-radius: 0.5rem;
}
.template1 .form-floating > label {
    border-radius: 0.5rem;
}
.template1 .team-item.bg-light,
.feature .feature-box {
    border-radius: 1rem;
}
.project-item .project-title,
.project-item .project-img a {
    border-radius: 1rem;
}
.template1 .alert {
    border-radius: 0.75rem;
}

/* --- Halaman Tentang: statistik – background per card --- */
.about-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    color: #1e3a5f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.about-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.about-stat-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e3a5f;
    line-height: 1.4;
}
.visi-misi-section .visi-misi-card {
    border-radius: 0 1rem 1rem 0;
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s, transform 0.3s;
}
.visi-misi-section .visi-misi-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.visi-misi-split-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
.visi-misi-img-wrapper {
    overflow: hidden;
}
.visi-misi-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}
.visi-misi-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
}
.visi-misi-text p { margin-bottom: 0.75rem; }
.visi-misi-text p:last-child { margin-bottom: 0; }
.visi-misi-text ul { padding-left: 1.25rem; margin-bottom: 0; }
.visi-misi-text li { margin-bottom: 0.5rem; }
/* Template1 tentang: teks Visi & Misi putih di dalam section card gelap */
.template1 .visi-misi-single-card .visi-misi-title,
.template1 .visi-misi-single-card .visi-misi-text,
.template1 .visi-misi-single-card .visi-misi-text p,
.template1 .visi-misi-single-card .visi-misi-text li,
.template1 .visi-misi-single-card .visi-misi-text ul,
.template1 .visi-misi-single-card .visi-misi-text blockquote { color: #fff !important; }

/* Section Nilai-Nilai (About Us, di bawah Visi Misi) – judul putih bold */
.template1 .nilai-nilai-section .template1-nilai-nilai-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.02em;
}
.template1 .template1-nilai-nilai-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.template1 .template1-nilai-nilai-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.nilai-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary, var(--primary)));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.nilai-icon-wrap i {
    font-size: 1.25rem;
    color: #fff;
}
.template1 .template1-nilai-nilai-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary) !important;
    line-height: 1.3;
}
.template1 .template1-nilai-nilai-description {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #cbd5e1;
}

/* Template1 khas: page header kreatif – gradient aksen, garis judul, strip bawah (bukan cuma background) */
.template1 .template1-page-header {
    position: relative;
    border-radius: 0 0 2rem 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding-top: 1.5rem !important;
    padding-bottom: 1.25rem !important;
    overflow: hidden;
}
/* Gradient overlay kiri (primary soft) – kedalaman */
.template1 .template1-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, var(--primary) 0%, transparent 35%, transparent 100%);
    opacity: 0.12;
    pointer-events: none;
    border-radius: 0 0 2rem 2rem;
}
/* Saat background transparan (tanpa gambar): overlay opacity sama seperti template1-section-card bg-light (tembus background) */
.template1 .template1-page-header.template1-page-header--no-bg::before {
    background: linear-gradient(180deg, var(--primary), var(--secondary)) left 0 top 0 / 6px 100% no-repeat, rgba(30, 41, 59, 0.65);
    opacity: 1;
}
.template1 .template1-page-header.template1-page-header--no-bg {
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.template1 .template1-page-header.template1-page-header--no-bg h1,
.template1 .template1-page-header.template1-page-header--no-bg .breadcrumb-item:not(.active),
.template1 .template1-page-header.template1-page-header--no-bg .breadcrumb-item a {
    color: #e2e8f0 !important;
}
.template1 .template1-page-header.template1-page-header--no-bg .breadcrumb-item.active {
    background: var(--primary);
    color: #fff !important;
}
.template1 .template1-page-header .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}
/* Strip gradient bawah (primary → secondary) di atas rounded */
.template1 .template1-page-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 0 0 2rem 2rem;
    pointer-events: none;
}
.template1 .template1-page-header .container {
    position: relative;
    z-index: 1;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
/* Judul dengan aksen garis kiri (secondary) */
.template1 .template1-page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem !important;
    padding-left: 1rem;
    border-left: 4px solid var(--secondary);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff !important;
}
@media (min-width: 768px) {
    .template1 .template1-page-header h1 { font-size: 2.25rem; padding-left: 1.25rem; border-left-width: 5px; }
}
/* Judul page header dikecilkan (Tentang Kami, dll) */
.template1 .template1-page-header .template1-page-header-title {
    font-size: 1.35rem !important;
}
@media (min-width: 768px) {
    .template1 .template1-page-header .template1-page-header-title { font-size: 1.5rem !important; }
}
@media (min-width: 992px) {
    .template1 .template1-page-header .template1-page-header-title { font-size: 1.65rem !important; }
}
/* Breadcrumb: item aktif seperti chip */
.template1 .template1-page-header .breadcrumb-item.active {
    background: var(--primary);
    color: #fff !important;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
}
.template1 .template1-page-header .breadcrumb-item a {
    color: #fff !important;
}
.template1 .template1-page-header .breadcrumb-item:not(.active) {
    color: #fff !important;
}
.template1 .template1-page-header.mb-5 { margin-bottom: 1.5rem !important; }

/* Template1 khas: ribbon gradient di atas footer + strip + kolom dengan pembatas vertikal */
.template1-footer-main {
    position: relative;
    border-top: none;
}
.template1-footer-main::before {
    content: '';
    display: block;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 100%;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}
.template1-footer-strip { background: rgba(0, 0, 0, 0.35); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.template1-footer-strip-name {
    font-weight: 700;
    color: var(--secondary) !important;
    font-size: 1.15rem;
}
.template1-footer-columns .template1-footer-col { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.template1-footer-columns .template1-footer-col:first-child { border-left: none; }
@media (max-width: 991.98px) {
    .template1-footer-columns .template1-footer-col { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1rem; }
    .template1-footer-columns .template1-footer-col:first-child { border-top: none; padding-top: 0; }
}

/* Section card style: dark theme (Corpox Startup) */
.template1 .template1-section-card {
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.template1 .template1-section-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 1.5rem 0 0 1.5rem;
    z-index: 0;
}
.template1 .template1-section-card.bg-light { background: rgba(30, 41, 59, 0.6) !important; }
.template1 .template1-section-card,
.template1 .template1-section-card .display-5,
.template1 .template1-section-card h1,
.template1 .template1-section-card h3,
.template1 .template1-section-card h5,
.template1 .template1-section-card p,
.template1 .template1-section-card .mb-4 { color: #e2e8f0 !important; }
.template1 .template1-section-card .text-muted { color: #94a3b8 !important; }
.template1 .template1-section-card .nav-link { color: #e2e8f0 !important; border-color: rgba(255,255,255,0.12) !important; background: rgba(255,255,255,0.03) !important; }
.template1 .template1-section-card .nav-link.active { background: rgba(255,255,255,0.08) !important; border-color: var(--primary) !important; color: var(--primary) !important; }
.template1 .template1-section-card .nav-link:hover { border-color: rgba(255,255,255,0.2) !important; color: #fff !important; }
.template1 .template1-section-card .breadcrumb-item,
.template1 .template1-section-card .breadcrumb-item a { color: #fff !important; }
.template1 .template1-section-card .breadcrumb-item.active { background: var(--primary); color: #fff !important; }
.template1 .template1-section-card .breadcrumb-item a:hover { color: rgba(255,255,255,0.9) !important; }
/* Label pill section (dark theme): outline primary */
.template1 .d-inline-block.border.rounded.text-primary.fw-semi-bold {
    border-color: var(--primary) !important;
    background: transparent !important;
    color: var(--primary) !important;
}
/* Startup-style hero overline (DIGITAL STARTUP AGENCY) */
.template1 .hero-startup-overline {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary) !important;
    margin-bottom: 0.75rem;
}
/* Dark theme: main sections background */
.template1 .container-xxl.py-5 { background: transparent; }
.template1 .container .text-muted { color: #94a3b8 !important; }
.template1 .container h1,
.template1 .container h2,
.template1 .container .display-5 { color: #f1f5f9 !important; }
.template1 .container p:not(.text-primary):not(.hero-description) { color: #cbd5e1; }
.template1 a.text-decoration-none.text-dark { color: #e2e8f0 !important; }
.template1 .team-item.bg-light {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.template1 .team-item .text-center p,
.template1 .team-item h5 { color: #e2e8f0 !important; }
.template1 .team-item .text-muted { color: #94a3b8 !important; }
/* Section Klien: background abu-abu hanya di bawah judul (area carousel logo) */
.template1 .template1-client-section {
    width: 100%;
}
/* Full width, rounded tiap sudut, opacity lebih */
.template1 .template1-client-carousel-wrap {
    background: rgba(100, 116, 139, 0.42) !important;
    width: 100%;
    padding: 1.75rem 0;
    border-radius: 1.25rem;
}
.template1 .client-item { color: #94a3b8; }

/* Jadwal pelatihan carousel - rapi dalam container, slide seperti logo klien */
.template1 .jadwal-pelatihan-carousel-wrap {
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0;
}
.template1 .jadwal-pelatihan-carousel .owl-stage-outer { overflow: hidden; }
.template1 .jadwal-pelatihan-carousel .jadwal-item { padding: 0 0.25rem; }
.template1 .jadwal-pelatihan-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    margin: 0;
}
.template1 .jadwal-pelatihan-carousel .owl-nav .owl-prev,
.template1 .jadwal-pelatihan-carousel .owl-nav .owl-next {
    position: absolute;
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9) !important;
    color: #333 !important;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.template1 .jadwal-pelatihan-carousel .owl-nav .owl-prev { left: -10px; }
.template1 .jadwal-pelatihan-carousel .owl-nav .owl-next { right: -10px; }
.template1 .jadwal-pelatihan-carousel .owl-dots {
    margin-top: 1rem;
    text-align: center;
}
.template1 .jadwal-pelatihan-carousel .owl-dots .owl-dot span {
    background: rgba(255,255,255,0.5);
    width: 10px;
    height: 10px;
    margin: 0 4px;
}
.template1 .jadwal-pelatihan-carousel .owl-dots .owl-dot.active span { background: #fff; }

/* Silabus card uniform sizing */
.silabus-card-link {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.silabus-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.silabus-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
}
.silabus-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Kartu silabus kategori (template1 saja): meta tanggal/lokasi tidak satu baris */
.template1-silabus-kategori-card .template1-silabus-meta {
    line-height: 1.45;
}
.template1-silabus-kategori-card .template1-silabus-meta .fa-fw {
    text-align: center;
}
/* Strip status kartu silabus: wash dari --bs-secondary (konfigurasi warna template publik) */
.silabus-card-status-strip {
    background-color: #eef2f6;
    background-color: color-mix(in srgb, var(--bs-secondary, #6c757d) 22%, #ffffff);
}

/* Kategori/silabus cards dark */
.template1 a.bg-white.shadow-sm.text-dark {
    background: rgba(30, 41, 59, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0 !important;
}
.template1 a.bg-white.shadow-sm.text-dark .bg-white.border-top { background: rgba(15, 23, 42, 0.8) !important; border-color: rgba(255,255,255,0.08) !important; color: #e2e8f0 !important; }
.template1 a.bg-white.shadow-sm.text-dark h5 { color: #f1f5f9 !important; }
/* Sticky bottom bar for silabus detail */
.silabus-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: linear-gradient(135deg, var(--primary, #0d6efd) 0%, color-mix(in srgb, var(--primary, #0d6efd) 80%, #000) 100%);
    padding: 0.75rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}
.silabus-sticky-title {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50vw;
}
.silabus-sticky-btn {
    border-radius: 2rem;
    font-size: 0.9rem;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .silabus-sticky-title { max-width: 60vw; font-size: 0.85rem; }
    .silabus-sticky-bar .badge { font-size: 0.7rem; }
    .silabus-sticky-btn { font-size: 0.8rem; padding: 0.4rem 1rem !important; }
}

.template1 .silabus-card-link.text-dark {
    background: rgba(30, 41, 59, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0 !important;
}
.template1 .silabus-card-link.text-dark h5 { color: #f1f5f9 !important; }
.template1 .silabus-card-link.text-dark .text-muted { color: #94a3b8 !important; }
/* Isi kartu putih: judul & deskripsi harus gelap (override section-card h5 + link h5) */
.template1 .template1-section-card .silabus-card-link.text-dark .bg-white h5.silabus-card-title,
.template1 .template1-section-card .silabus-card-link.text-dark .bg-white .silabus-card-title,
.template1 .silabus-card-link.text-dark .bg-white h5.silabus-card-title {
    color: #0f172a !important;
}
.template1 .template1-section-card .silabus-card-link.text-dark .bg-white .silabus-card-desc,
.template1 .template1-section-card .silabus-card-link.text-dark .bg-white .text-muted,
.template1 .silabus-card-link.text-dark .bg-white .silabus-card-desc,
.template1 .silabus-card-link.text-dark .bg-white .text-muted,
.template1 .silabus-card-link.text-dark .bg-white small.text-muted {
    color: #475569 !important;
}
.template1 .silabus-card-link.text-dark .bg-white .silabus-card-status-strip .text-muted {
    color: #64748b !important;
}
/* Outline-primary: di template1 dark jadi solid primary + teks putih agar kelihatan */
.template1 .btn-outline-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.template1 .btn-outline-primary:hover {
    background: var(--template-primary-hover, var(--primary)) !important;
    border-color: var(--template-primary-hover, var(--primary)) !important;
    color: #fff !important;
    opacity: 0.92;
}
.template1 .form-control,
.template1 .form-select { background: rgba(30, 41, 59, 0.8); border-color: rgba(255,255,255,0.15); color: #e2e8f0; }
.template1 .form-control::placeholder { color: #64748b; }
.template1 .form-control:focus,
.template1 .form-select:focus { background: rgba(30, 41, 59, 0.9); border-color: var(--primary); color: #e2e8f0; }
/* Page header inner: teks pakai primary dari konfigurasi template publik */
.template1 .template1-page-header h1,
.template1 .template1-page-header .breadcrumb-item,
.template1 .template1-page-header .breadcrumb-item a,
.template1 .page-header.template1-page-header h1,
.template1 .page-header.template1-page-header .breadcrumb-item,
.template1 .page-header.template1-page-header .breadcrumb-item a {
    color: var(--primary) !important;
}
.template1 .template1-page-header .breadcrumb-item a:hover {
    color: var(--template-primary-hover, var(--primary)) !important;
    opacity: 0.9;
}
.template1 .page-header:not(.template1-page-header) h1,
.template1 .page-header:not(.template1-page-header) .breadcrumb-item,
.template1 .page-header:not(.template1-page-header) .breadcrumb-item a {
    color: var(--primary) !important;
}
/* Judul section beranda/inner: garis dekoratif bawah (double-line accent) */
.template1 .template1-section-card .display-5.mb-5,

/* Hero caption: kotak tegas dengan stripe gradient kiri (signature template1) */
.template1 .hero-caption .container .row > .col-lg-8 {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 1.25rem;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}
.template1 .hero-caption .container .row > .col-lg-8::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 1.25rem 0 0 1.25rem;
}
/* Ribbon lurus di bawah hero (garis horizontal, tidak miring) */
#header-carousel {
    position: relative;
}
#header-carousel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
@media (max-width: 767px) {
    #header-carousel::after { height: 20px; }
}

.back-to-top {
    position: fixed !important;
    display: none;
    right: 30px;
    bottom: 30px;
    left: auto !important;
    z-index: 99;
}
.template1 .back-to-top .btn {
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.template1 .back-to-top .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** 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 {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.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;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.template1 .navbar {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.navbar {
    background-color: #ffffff !important;
    opacity: 1 !important;
}

.navbar.sticky-top {
    background-color: #ffffff !important;
    opacity: 1 !important;
}

.navbar.bg-white {
    background-color: #ffffff !important;
    opacity: 1 !important;
}

/* Logo header template1 */
.template1 .navbar-brand .template1-header-logo {
    max-height: 100px;
    object-fit: contain;
}
@media (max-width: 991.98px) {
    .template1 .navbar-brand .template1-header-logo {
        max-height: 64px;
    }
}

.top-bar {
    min-height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(53, 94, 252, .07);
}
.template1 .top-bar .btn-sm-square {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
}
.template1 .top-bar .btn-sm-square i,
.template1 .top-bar .btn-sm-square svg {
    font-size: 0.7rem;
}

.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 {
    padding: 12px 15px;
    color: var(--tertiary);
    font-weight: 500;
    outline: none;
}

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

/* Tanda aktif link: garis bawah pakai warna secondary */
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
    position: relative;
}
.navbar .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--secondary);
    border-radius: 1px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

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

@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;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

/* Hero text di slideshow: ukuran lebih kecil + warna jelas di atas background foto */
#header-carousel .carousel-caption {
    position: absolute;
    z-index: 2;
}
#header-carousel .hero-caption {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 0 20px rgba(0,0,0,0.4);
}
#header-carousel .hero-caption::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}
#header-carousel .hero-caption .container {
    position: relative;
    z-index: 1;
}
#header-carousel .hero-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 10px rgba(0,0,0,0.7);
}
#header-carousel .hero-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.6);
}
#header-carousel .hero-subtitle {
    color: #fff !important;
    border-color: rgba(255,255,255,0.8) !important;
    background-color: rgba(0,0,0,0.35);
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
@media (min-width: 576px) {
    #header-carousel .hero-title {
        font-size: 2.25rem;
    }
    #header-carousel .hero-description {
        font-size: 1rem;
    }
}
@media (min-width: 992px) {
    #header-carousel .hero-title {
        font-size: 2.75rem;
    }
    #header-carousel .hero-description {
        font-size: 1.1rem;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

.carousel-control-prev-icon {
    border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
    border-radius: 3rem 0 0 3rem;
}

/* Slide gambar ukuran paten: aspect-ratio tetap, gambar selalu cover konsisten (zoom in/out tidak mengubah crop) */
#header-carousel .carousel-inner {
    position: relative;
}
#header-carousel .carousel-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    min-height: 280px;
}
#header-carousel .carousel-item img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* Slider responsive mobile: tinggi cukup agar teks & tombol tidak terpotong */
@media (max-width: 991px) {
    #header-carousel .carousel-item {
        min-height: 70vh;
        aspect-ratio: auto;
    }
    #header-carousel .hero-caption .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #header-carousel .hero-title {
        font-size: 1.5rem !important;
    }
    #header-carousel .hero-description {
        font-size: 0.875rem !important;
    }
    #header-carousel .hero-caption .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        min-height: 65vh;
        max-height: none;
    }
    #header-carousel .carousel-caption {
        align-items: flex-end;
        padding-bottom: 2rem;
    }
    #header-carousel .hero-caption .row {
        margin-bottom: 0;
    }
    /* Tombol wrap/stack di mobile agar tidak terpotong */
    #header-carousel .hero-caption .col-lg-8 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    #header-carousel .hero-caption .btn + .btn {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
}
@media (max-width: 575px) {
    #header-carousel .carousel-item {
        min-height: 60vh;
    }
    #header-carousel .hero-title {
        font-size: 1.35rem !important;
    }
    #header-carousel .hero-caption .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/header.jpg) top left no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--tertiary);
}


/*** Facts ***/
.facts {
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
}


/*** Callback ***/
.callback {
    position: relative;
}

.callback::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
    z-index: -1;
}


/*** Feature ***/
.feature .feature-box,
.feature .feature-box * {
    transition: .5s;
}

.feature .feature-box:hover {
    background: var(--primary);
    border-color: var(--primary) !important;
}

.feature .feature-box:hover * {
    color: #FFFFFF !important;
}


/*** Service ***/
.service .nav .nav-link {
    transition: .5s;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary);
}

.service .nav .nav-link.active h5 {
    color: #FFFFFF !important;
}

.service .nav .nav-link.active h5 i {
    color: #FFFFFF !important;
}


/*** Project ***/
.project-item,
.project-item .project-img {
    position: relative;
}

.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover .project-img a {
    opacity: 1;
}

.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: .5s;
}

.project-item:hover .project-title {
    background: var(--primary);
    border-color: var(--primary);
}

.project-item .project-title h4 {
    transition: .5s;
}

.project-item:hover .project-title h4 {
    color: #FFFFFF;
}

.project-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    padding: 4rem 0;
}

.team-item img {
    position: relative;
    z-index: 2;
}

.team-item .team-text {
    position: absolute;
    top: 0;
    right: 3rem;
    bottom: 0;
    left: 3rem;
    padding: 15px;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-text {
    background: var(--primary);
    border-color: var(--primary);
}

.team-item .team-text h4 {
    transition: .5s;
}

.team-item:hover .team-text h4 {
    color: #FFFFFF;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item:hover .team-social .btn {
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Testimonial ***/
.testimonial-item {
    position: relative;
    text-align: center;
    padding-top: 30px;
}

.testimonial-item .testimonial-text {
    position: relative;
    text-align: center;
}

.testimonial-item .testimonial-text .btn-square {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-item .testimonial-text::before {
    position: absolute;
    content: "";
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: var(--light) transparent transparent transparent;
}

.testimonial-item .testimonial-text::after {
    position: absolute;
    content: "";
    bottom: -59px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: #FFFFFF transparent transparent transparent;
}

.testimonial-carousel .owl-item img {
    margin: 0 auto;
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--light);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 6px;
    left: 6px;
    border-radius: 16px;
    background: var(--light);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    border-color: var(--primary);
}

.testimonial-carousel .owl-dot.active::after {
    background: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #000B1C;
}

.copyright a {
    color: var(--light);
}

.copyright a:hover {
    color: var(--primary);
}