@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

/* Global Styles & Variables */
:root {
    --primary-blue: #007bff;
    --dark-blue: #004d99;
    --light-blue-bg: #e6f2ff; /* Digunakan untuk latar belakang section atau aksen */
    --glass-bg: rgba(255, 255, 255, 0.85); /* Lebih opaque untuk konten di dalamnya lebih jelas */
    --glass-border: rgba(209, 213, 219, 0.4); /* Border lebih terlihat sedikit */
    --card-shadow: 0 8px 25px rgba(0, 77, 153, 0.12); /* Shadow sedikit lebih jelas */
    --text-dark: #2c3e50;
    --text-muted-modern: #5a7a99;
    --border-radius-md: 15px;
    --border-radius-lg: 20px;
    --border-radius-pill: 50px;
}

body {
    font-family: "Poppins", Helvetica, sans-serif !important; /* Ensure Poppins is consistently applied */
    overflow-x: hidden !important; /* Important to prevent horizontal scroll from some libraries */
    background-color: #f0f4f8; /* Latar belakang utama halaman dengan nuansa biru sangat muda */
    color: var(--text-dark) !important;
}

/* Hero Section (Optional, based on your usage) */
#hero {
    width: 100%;
    position: relative;
    background-size: cover;
    /* height: calc(100vh - 56px); /* Uncomment if you want hero to take full viewport height minus navbar */
}

.cont-gambar-jumbo {
    max-height: calc(100vh - 56px); /* Adjust as needed */
    object-fit: cover; /* Ensure image covers the area */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Carousel Styles (if used outside Owl Carousel) */
/* These might be redundant if you only use Owl Carousel */
.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item.active {
    transform: translateX(0);
}

.carousel-item.prev {
    transform: translateX(-100%);
}

.carousel-item.next {
    transform: translateX(100%);
}

/* Promo Section (Specific adjustments) */
#promo {
    max-height: 500px; /* Adjust as needed */
    overflow: hidden; /* Hide overflowing parts of the image */
}

/* Card Styles (General and Specific) */
/* Ini akan menjadi gaya dasar untuk semua elemen dengan kelas .card */
.card {
    border-radius: var(--border-radius-md); /* Default radius untuk Bootstrap cards */
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem; /* Memberi jarak antar card jika bertumpuk */
}

/* Kelas spesifik untuk card tertentu akan mewarisi gaya dari .card di atas */
/* Anda bisa menambahkan override atau style tambahan di sini jika perlu */
.container-packages,
.article-card,
.profile-card-wrapper {
    /* Contoh: Jika ingin tinggi yang sama untuk semua card dalam satu baris grid */
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Efek hover untuk semua card */
.card:hover,
.container-packages:hover,
.article-card:hover,
.profile-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 77, 153, 0.18); /* Shadow lebih kuat saat hover */
}

/* Gambar di dalam card */
.card-img-top, /* Untuk gambar di dalam .card Bootstrap standar */
.container-packages img.image-travel,
.article-card img, /* Pastikan ini menargetkan gambar yang benar di dalam .article-card */
.profile-card-wrapper img.profile-card-image {
    border-top-left-radius: calc(var(--border-radius-md) - 1px); /* Sesuaikan jika ada border pada card */
    border-top-right-radius: calc(var(--border-radius-md) - 1px); /* Sesuaikan jika ada border pada card */
    object-fit: cover;
    width: 100%;
    /* max-height bisa diatur per jenis card jika perlu */
}

/* Override radius gambar jika card parentnya memiliki radius lebih besar (seperti card utama di show-post) */
.card[style*="border-radius: var(--border-radius-lg)"] .card-img-top {
     border-top-left-radius: calc(var(--border-radius-lg) - 1px); /* Sesuaikan jika ada border */
     border-top-right-radius: calc(var(--border-radius-lg) - 1px); /* Sesuaikan jika ada border */
}


/* Card Body Styles */
.card-body, /* Untuk card-body Bootstrap standar */
.container-packages .card-body,
.article-card .card-body,
.profile-card-wrapper .card-body {
    flex-grow: 1; /* Membuat card body mengisi sisa ruang vertikal */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Mendorong konten (terutama tombol) agar merata */
    padding: 1rem; /* Padding default untuk card body */
}

/* Specific card body padding if needed */
.card-body.p-4 { /* Jika Anda menggunakan kelas p-4 dari Bootstrap */
    padding: 1.5rem !important; /* Override jika perlu, atau sesuaikan dengan kebutuhan */
}


/* Specific Styles for Package Cards */
.title-package {
    height: 49px; /* Tinggi tetap untuk judul */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Batasi judul hingga 2 baris */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis; /* Tambahkan elipsis untuk teks yang terpotong */
    margin-bottom: 0.75rem; /* Jarak bawah judul */
}

.container-packages:hover .title-package {
    height: auto; /* Biarkan judul mengembang saat dihover jika perlu */
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
}

.container-packages .price-section {
    background-color: rgba(223, 235, 255, 0.6); /* Light blue accent */
    color: var(--dark-blue);
    border-radius: 8px; /* Rounded inner section */
    padding: 0.5rem 0.75rem;
    margin-top: auto; /* Mendorong price section ke bawah jika card-body flex */
}

/* Specific Styles for Article Cards */
.article-card img { /* Target gambar di dalam .article-card */
    max-height: 200px; /* Tinggi spesifik untuk thumbnail artikel */
}

/* Specific Styles for Profile Cards */
.profile-carousel-item {
    padding: 5px; /* Ruang di sekitar gambar profil dalam carousel */
}

.profile-card-image {
    display: block;
    height: 300px; /* Tinggi spesifik untuk gambar profil */
    object-fit: cover;
    aspect-ratio: 1 / 1; /* Menjaga rasio persegi */
    /* Styling rounded dan shadow akan diambil dari .profile-card-wrapper jika dibungkus */
    /* Jika tidak dibungkus, tambahkan di sini: */
    /* border-radius: var(--border-radius-md); */
    /* box-shadow: var(--card-shadow); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Bullet Icons for Lists (Includes, Excludes, Terms) */
.bullet-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0; /* Mencegah penyusutan dalam flex container */
}

/* Bullet Icons for Itinerary */
.bullet-icon-itinerary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    z-index: 3;
    height: 25px;
    font-size: 14px;
    font-weight: bold;
    background-color: #28a745; /* Warna hijau */
    color: white;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0; /* Mencegah penyusutan */
}

.bullet-wrapper {
    position: relative;
}

.bullet-wrapper::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%; /* Mulai garis di bawah bullet */
    width: 2px;
    height: calc(100% + 12px); /* Perpanjang garis ke bawah */
    background-color: #28a745; /* Warna hijau */
    transform: translateX(-50%);
    z-index: 1;
}

.itinerary-item:last-child .bullet-wrapper::after {
    display: none; /* Sembunyikan garis untuk item terakhir */
}

/* Font Size Helpers */
.fs-7 {
    font-size: 0.9rem;
}

.fs-8 {
    font-size: 0.8rem;
}

/* Specific Term Detail Paragraph Margin */
.terms-detail p {
    margin-bottom: 0.1rem;
}

/* Modern Button Styles */
.btn-modern {
    border-radius: var(--border-radius-pill); /* Bentuk pil */
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95em;
    text-decoration: none; /* Hapus garis bawah dari link */
    display: inline-flex; /* Gunakan flex untuk menengahkan konten */
    align-items: center;
    justify-content: center;
}

.btn-modern:hover {
    transform: translateY(-2px); /* Efek angkat sedikit */
    filter: brightness(90%); /* Sedikit lebih gelap saat hover */
    color: inherit; /* Mencegah perubahan warna teks kecuali ditentukan */
}

/* Specific Button Colors (Override Bootstrap defaults) */
.btn.btn-primary.btn-modern {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.btn.btn-primary.btn-modern:hover {
    background-color: var(--dark-blue);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
    color: white;
}

.btn.btn-outline-primary.btn-modern {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    background-color: transparent;
}

.btn.btn-outline-primary.btn-modern:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn.btn-success.btn-modern { /* Tombol WhatsApp */
    background-color: #25D366;
    color: white;
}
.btn.btn-success.btn-modern:hover {
    background-color: #1da851; /* Hijau lebih gelap */
    color: white;
}

.btn.btn-warning.btn-modern { /* Tombol Booking/Login */
    background-color: #ffc107;
    color: #212529; /* Teks gelap untuk kontras */
}
.btn.btn-warning.btn-modern:hover {
    background-color: #e0a800; /* Kuning lebih gelap */
    color: #212529;
}

.btn.btn-danger.btn-modern { /* Tombol Sold Out */
    background-color: #dc3545;
    color: white;
}
.btn.btn-danger.btn-modern:hover {
    background-color: #c82333; /* Merah lebih gelap */
    color: white;
}


/* Section Styling */
.section-title-modern {
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-subtitle-modern {
    color: var(--text-muted-modern);
    margin-bottom: 2rem;
    max-width: 700px;
}

.glassy-section-bg {
  background-color: rgba(240, 245, 255, 0.7); /* Biru sangat muda semi-transparan */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px 15px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 20px rgba(0, 77, 153, 0.08);
}

/* Owl Carousel Dots */
.owl-theme .owl-dots .owl-dot span {
    background: #d1e3ff; /* Biru muda untuk dots */
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--primary-blue); /* Aksen biru untuk dot aktif */
}

/* Navbar Modern Styling */
.navbar-modern {
    background-color: rgba(255, 255, 255, 0.85); /* Putih semi-transparan untuk efek kaca */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 77, 153, 0.08); /* Shadow biru halus */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-modern .navbar-brand {
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-modern .nav-link {
    color: var(--text-muted-modern);
    font-weight: 500;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: color 0.3s ease;
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
    color: var(--primary-blue) !important;
}

.navbar-modern .navbar-toggler {
    border-color: rgba(0, 77, 153, 0.2);
}

/* Footer Modern Styling */
.footer-modern {
    background-color: var(--dark-blue); /* Biru tua sebagai background */
    color: #e0e0e0; /* Warna teks yang lebih lembut di atas background gelap */
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer-modern a, .footer-modern a svg {
    color: #ffffff; /* Link dan ikon SVG putih di footer */
    fill: #ffffff;
    transition: color 0.3s ease, fill 0.3s ease;
}

.footer-modern a:hover, .footer-modern a:hover svg {
    color: var(--light-blue-bg); /* Warna hover yang lebih terang */
    fill: var(--light-blue-bg);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .navbar-modern .nav-link {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .btn-modern {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .card-body {
        padding: 0.75rem;
    }
    .container-packages .price-section {
         padding: 0.4rem 0.6rem;
    }
}
