/* COLLOR */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=DM+Sans:wght@300;400;500;600&display=swap");

:root {
  --dark:     #0d1b2a;
  --dark2:    #162032;
  --navy:     #1a2f4b;
  --gold:     #D4A017;
  --gold2:    #e8b84b;
  --light:    #f4f7fb;
  --white:    #ffffff;
  --text:     #4a5568;
  --border:   #e2e8f0;
  --radius:   12px;
  --shadow:   0 8px 30px rgba(13,27,42,0.10);
  --trans:    all 0.3s ease;
}

/* ==========================================================================
   MOBILE OVERFLOW & RESPONSIVE FIXES
   ========================================================================== */

/* 1. Pengaman Global: Mencegah layar bisa digeser ke kanan sama sekali */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* ---- RESET BODY FONTS ---- */
body { font-family: 'DM Sans', sans-serif; color: var(--text); }
h1,h2,h3,h4,h5,h6 { font-family: 'Nunito', sans-serif; }

/* COLOR */
.text-gold{
    color: var(--gold)!important;
}

/* NAVBAR */
.custom-navbar{
    background-color: var(--dark);
}

/* Banner */
.hero-left{

}

.hero-left h1 {
    font-size: 62px; /* Ukuran default di PC */
    line-height: 1.1; 
    color: #fff; 
    font-weight: 800;
    margin-bottom: 22px;
}

.hero-left p {
    font-size: 17px; 
    color: rgba(255,255,255,0.65); 
    line-height: 1.7; 
    margin-bottom: 40px; 
    max-width: 480px;
}

.hero-section{
    background-color: var(--dark);

}

.hero-badge {
    display:inline-block; 
    background:rgba(212,160,23,0.15);
    color:var(--gold); 
    border:1px solid rgba(212,160,23,0.3);
    border-radius:50px; 
    padding:6px 18px; 
    font-size:13px; 
    font-weight:600;
    margin-bottom:28px; 
    letter-spacing:0.5px;
    white-space: normal !important; /* MEMBATALKAN NOWRAP BOOTSTRAP */
    text-align: center;
    max-width: 100%;
}

/* Mengatur teks list agar kecil, rapi, dan memiliki jarak renggang yang elegan */
.hero-services p {
    font-size: 11px !important;    /* Mengecilkan ukuran teks */
    letter-spacing: 1.5px;         /* Memberikan jarak antar huruf */
    font-weight: 600;              /* Membuat teks sedikit tebal agar tetap terbaca jelas */
    line-height: 1.8;              /* Jarak spasi vertikal antar baris */
    color: rgba(255, 255, 255, 0.5) !important; /* Warna abu-abu redup yang elegan */
}

/* Identitas PT */ 
.ve-logo-text { font-family:'Nunito',sans-serif; font-size:20px; color:#fff; font-weight:600; }
.ve-logo-text strong { color: var(--gold); font-weight:900; }
.text-gold {color: var(--gold)}

/* MENU WRAPPER */
.nav-pill-custom{
    /* background: rgba(255,255,255,0.04); */
    padding: 8px;
    border-radius: 16px;
    gap: 10px;
}

/* LINK */
.nav-custom-link{
    color: #d9d9d9;
    font-weight: 600;
    padding: 12px 20px !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* HOVER */
.nav-custom-link:hover{
    background-color: rgba(255,255,255,0.08);
    color: white;
}

/* ACTIVE */
.active-nav{
    background-color: #1f342c;
    color: var(--gold) !important;
}

/* BUTTON */

/* ---- BUTTON GOLD RESPONSIVE ---- */

.btn-gold:hover{
    background:var(--gold2); 
    transform:translateY(-2px); 
    box-shadow:0 8px 25px rgba(212,160,23,0.4); 
    color:var(--dark);
}

.btn-gold {
    display: inline-block; 
    background: var(--gold); 
    color: var(--dark);
    padding: 14px 32px; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 15px;
    text-decoration: none; 
    transition: var(--trans);
}

/* HERO KANAN */

/* 1. Atur container luar agar tetap mempertahankan rasio aspek kotak (16:16) */
.hero-carousel-frame {
  aspect-ratio: 16 / 16;
  background-color: var(--dark);
  position: relative;
}

/* 2. Pastikan setiap slide carousel memiliki tinggi 100% mengikuti tinggi frame-nya */
.hero-carousel-frame .carousel-item {
  height: 100%;
}

/* 3. Wrapper khusus untuk menengahkan gambar secara horizontal & vertikal */
.carousel-img-wrapper {
  display: flex;
  align-items: center;     /* Menengahkan gambar secara vertikal */
  justify-content: center;   /* Menengahkan gambar secara horizontal */
  width: 100%;
  height: 100%;
}

/* 4. Atur gambar agar pas (fit) secara proporsional tanpa terpotong paksa */
.hero-carousel-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;     /* Memastikan gambar penuh terlihat utuh baik portrait/landscape */
  display: block;
}

/* ==========================================================================
   SERVICE SECTION & CARDS (FIXED)
   ========================================================================== */

/* 1. Background Section */
.service-section {
    background-color: var(--light);
}

/* 2. Base Styling untuk Card */
.service-card {
    background-color: var(--white) !important; /* Paksa agar background selalu putih */
    border-radius: 16px !important; /* Membuat sudut tumpul yang halus */
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.05) !important; /* Shadow tipis bawaan */
    position: relative;
    overflow: hidden; /* Wajib: Agar garis kuning tidak keluar dari border-radius card */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

/* 3. Box Icon Gelap */
.service-icon-box {
    width: 55px;
    height: 55px;
    background-color: var(--navy); /* FIX: Menggunakan --navy yang benar */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Warna icon di dalam box */
.service-icon-box i {
    color: var(--gold); /* FIX: Menggunakan --gold yang benar */
}

/* 4. Efek Hover Mengambang (Float Up) */
.service-card:hover {
    transform: translateY(-10px) !important; /* Card naik 10px ke atas */
    box-shadow: 0 20px 40px rgba(13, 27, 42, 0.12) !important; /* Shadow menjadi lebih tebal */
}

/* 5. Membuat Progress Line Kuning di Bagian Bawah */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* Mulai dari lebar 0 (tidak terlihat) */
    height: 4px; /* Ketebalan garis */
    background-color: var(--gold); /* FIX: Menggunakan --gold yang benar */
    transition: width 0.4s ease-in-out; /* Efek transisi melebar */
}

/* 6. Efek Hover Melebarkan Progress Line dari Kiri ke Kanan */
.service-card:hover::after {
    width: 100% !important; /* Melebar penuh 100% ketika di-hover */
}

/* ==========================================================================
   UPCOMING TRAINING SECTION
   ========================================================================== */

/* Container Poster */
.poster-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Efek pada Container Poster */
.poster-container:hover {
    transform: scale(1.02); /* Sedikit membesar */
    box-shadow: 0 10px 25px rgba(13, 27, 42, 0.15) !important;
}

/* Base Image */
.training-poster {
    width: 100%;
    height: auto;
    display: block;
}

/* Lapisan Gelap & Icon Zoom saat Hover */
.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 27, 42, 0.5); /* Gelap transparan */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Awalnya tidak terlihat */
    transition: opacity 0.3s ease;
}

.poster-container:hover .poster-overlay {
    opacity: 1; /* Muncul saat di-hover */
}

/* Membatasi tinggi maksimal gambar pop-up di layar komputer agar tidak terlalu besar */
.max-popup-img {
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.custom-footer {
    background-color: var(--dark) !important; /* Latar belakang navy gelap utama */
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Batas atas tipis yang elegan */
    font-size: 0.95rem;
}

/* Slogan perusahaan */
.footer-slogan {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6) !important;
    max-width: 320px;
}

/* Pengaturan judul kolom footer */
.footer-title {
    font-size: 14px;
    letter-spacing: 1.5px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

/* Aksen garis emas tipis di bawah judul */
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--gold);
}

/* Styling Link Menu & Informasi Kontak */
.footer-links a,
.footer-contact-info a,
.footer-contact-info span {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px;
    transition: var(--trans);
}

/* Efek Hover berubah menjadi emas */
.footer-links a:hover,
.footer-contact-info a:hover {
    color: var(--gold) !important;
    padding-left: 4px; /* Sedikit bergeser ke kanan untuk efek interaktif */
}

/* Copyright & Link Legalitas */
.footer-bottom p,
.footer-legal-links a {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 12px;
    transition: var(--trans);
}

.footer-legal-links a:hover {
    color: var(--gold) !important;
}

/* ---- RESPONSIVE HERO (KUNCI UTAMA HP) ---- */
@media (max-width: 991.98px) {
    .hero-left h1 {
        font-size: 34px !important; /* Ukuran pas untuk layar HP */
        margin-bottom: 15px;
    }
    
    .hero-left p {
        font-size: 15px !important;
        margin-bottom: 30px;
    }
    
    .hero-carousel-frame {
        aspect-ratio: 16 / 12 !important; /* Agar tinggi carousel tidak terlalu memakan layar HP */
    }
}

/* 4. Sesuaikan Padding Tombol Emas di HP */
@media (max-width: 575.98px) {
    .btn-gold {
        padding: 10px 20px !important; /* Padding sedikit lebih ramping di HP */
        font-size: 14px !important;
        flex: 1 1 auto; /* Membuat lebar tombol seimbang */
    }
}