/* Reset asas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
.main-header {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* CONTAINER */
.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* LOGO */
.logo img {
    height: 60px;
}

/* HAMBURGER BUTTON */
.menu-toggle{
    display:none;
    font-size:28px;
    cursor:pointer;
}

/* RIGHT SIDE */
.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* MENU */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu ul li a {
    text-decoration: none;
    color: black;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}

/* Gaya untuk menu yang ACTIVE */
nav ul li a.active {
    color: #19516B;
    font-weight: bold;
}

.nav-menu ul li a:hover {
    color: #19516B;
}

/* BUTTON */
.btn-hubungi {
    background: #9E1F25;
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 35px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

/* Pastikan container utama adalah rujukan koordinat */
.hero-banner {
    width: 100%;
    height: 500px; /* Mengambil 80% tinggi layar */
    background-size: cover;
    background-position: center;
    position: relative;
}

.slides-container {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 1.0s ease-in-out;
}

.slide.active {
    display: flex;
}

/* Gambar Latar */
.slide-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Penting: supaya gambar tak stretch */
    z-index: -2;
}

/* Overlay Gelap */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Gelapkan gambar sikit */
    z-index: -1;
}

/* Content Teks */
.overlay-content {
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 900px;
    z-index: 10;
}

.overlay-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: inherit;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease;
    font-family: 'Playfair Display', serif;
}

.overlay-content h4 {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 30px;
    font-weight: 400;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
    font-family: 'Playfair Display', serif;
}

/* Button Styling */
.hero-btn {
    padding: 12px 28px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 15px;
}

.primary-btn {
    background: #9E1F25;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

/* Animasi Masuk */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Arrow Navigation */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid white;
    transition: 0.3s;
    z-index: 20;
}

.prev:hover, .next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev { left: 25px; }
.next { right: 25px; }

/* --- Susunan Kandungan (Container) --- */
section {
    background: linear-gradient(
  135deg,
  rgba(25, 81, 107, 0.9),
  rgba(158, 31, 37, 0.9)
);
    padding: 60px 20px;
    text-align: center;
}

.pakej-title {
    text-align: center; /* Ini yang akan bawa tulisan ke tengah */
    margin-bottom: 5px;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    font-family: 'Montserrat', sans-serif;     
}

.pakej-subtitle {
    text-align: center;
    margin-top: 0;      /* Pastikan tiada margin atas yang menolak h2 */
    margin-bottom: 40px; /* Kekalkan jarak 40px untuk bahagian bawah (kad pakej) */
    font-size: 15px;
    font-weight: 500;    /* Tukar ke 500 (Medium) supaya tidak terlalu tebal macam tajuk utama */
    color: white;         
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.5s;
}

.card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: rgba(0, 0, 0, 0.5); /* gelap transparent */
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    justify-content: center; /* center vertical */
    align-items: center;     /* center horizontal */

    opacity: 0;
    transition: 0.4s;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h3 {
    color: white;
    margin: 5px 0;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
}

.details {
    font-size: 0.9rem;
    color: white;
    margin: 5px 0;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
}

/* Gaya Butang */
.btn-details {
    display:inline-block;
    padding: 8px 28px;
    background: #9E1F25;
    color: white;
    border-radius: 35px;
    margin: 5px 0;
    font-size: 0.9rem;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
}

/* --- Bahagian Kenapa Pilih (Section) --- */
.kenapa-pilih-section {
    background: whitesmoke;
    padding: 60px 20px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 50px; /* Jarak sebelum kad-kad muncul */
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Open Sans', sans-serif;
}

/* --- Container untuk Kad-kad --- */
.why-cards-container {
    display: flex;         /* Susun sebaris di desktop */
    justify-content: center; /* Di tengah-tengah page */
    gap: 30px;            /* Jarak antara setiap kad */
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;       /* Supaya turun bawah di handphone */
}

/* --- Gaya KAD (why-card) --- */
.why-card {
    flex: 1 1 300px;      /* Cara pro: flex, maintain lebar sekitar 300px */
    max-width: 350px;     /* Hadkan lebar maksima kad */
    background: white;
    border-top: 4px solid #19516B;
    opacity: 0.9;
    padding: 40px 30px;
    border-radius: 20px;  /* Bucu bulat */
    text-align: center;
    /* --- INI SHADOW PREMIUM --- */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Lembut tetapi jelas */
    transition: all 0.3s ease; /* Untuk kesan hover */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-blue {
    color: #0D47A1;
}

.icon-gold {
    color: #D4AF37;
}

.icon-red {
    color: #C62828;
}

/* Gaya Content dalam Kad */
.why-card i {
    font-size: 3rem;      /* Besarkan icon */
    margin-bottom: 25px;
}

.why-card h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: black;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.why-card p {
    font-size: 0.95rem;
    color: black;
    line-height: 1.7;  /* Bagi perenggan 'breathable' */
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

.main-footer {
    background-color: #9E1F25;
    padding: 20px;
    color: #ffffff;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px; /* Jarak antara column */
    padding: 40px;
}

.footer-column {
    flex: 1; /* INI KUNCINYA: Memberi ruang seimbang kepada setiap column */
    text-align: left;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.footer-column p, .footer-column li {
    font-size: 0.9rem;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
}

/* Copyright Section */
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: white;
    font-family: 'Open Sans', sans-serif;
}

.contact-list li {
    display: flex;
    gap: 12px;           /* Jarak antara ikon dan teks */
    margin-bottom: 15px;
    align-items: flex-start; /* Kunci utama: Ikon akan sentiasa selari dengan baris pertama teks */
}

.contact-list li i {
    margin-top: 4px;     /* Laraskan sikit ke bawah supaya betul-betul center dengan baris pertama */
    color: #bdc3c7;      /* Warna emas mengikut tema Hubungi Kami anda */
    font-size: 1.1rem;   /* Saiz ikon yang seimbang */
    width: 20px;         /* Lebar tetap supaya teks di sebelah kiri selari secara menegak */
    text-align: center;
}

.contact-list li span {
    flex: 1;             /* Supaya teks mengambil baki ruang yang ada */
    line-height: 1.5;    /* Memberi ruang antara baris teks yang lebih selesa dibaca */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #bdc3c7;
    font-size: 1.2rem; /* Kecilkan sedikit saiz ikon supaya muat cantik dalam kotak */
    transition: all 0.3s ease;
    
    /* Tambahan untuk kotak */
    width: 45px;
    height: 45px;
    border: 1px solid #bdc3c7; /* Garisan kotak */
    display: flex;
    align-items: center;     /* Letak ikon di tengah (menegak) */
    justify-content: center;  /* Letak ikon di tengah (mendatar) */
    border-radius: 50%;      /* Lengkungan di bucu kotak (buang baris ini jika nak kotak tajam) */
    text-decoration: none;
}

/* 1. Facebook (Biru) */
.social-icons a:nth-child(1):hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: white;
    transform: translateY(-5px);
}

/* 2. Instagram (Gradient Purple/Pink) */
.social-icons a:nth-child(2):hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
    color: white;
    transform: translateY(-5px);
}

/* 3. TikTok (Hitam) */
.social-icons a:nth-child(3):hover {
    background-color: #000000;
    border-color: #000000;
    color: white;
    /* Efek shadow sikit untuk vibe TikTok */
    box-shadow: 2px 2px #ee1d52, -2px -2px #69c9d0;
    transform: translateY(-5px);
}

/* 4. WhatsApp (Hijau) */
.social-icons a:nth-child(4):hover {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
    transform: translateY(-5px);
}

/* Responsif: Kalau buka di phone, dia akan susun menegak */
@media (max-width: 768px) {
    .footer-column {
        text-align: left;   /* Semua content dalam kolom ikut kanan */
        margin-bottom: 20px; /* Supaya jarak bawah antar kolom mobile */
    }

    .footer-column h3 {
        text-align: left;   /* Tajuk ikut kanan */
    }

    .footer-column p,
    .footer-column li {
        text-align: left;   /* Semua teks ikut kanan */
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }

    h2{
        font-size:1.7rem;
    }
    
    h3{
        font-size:14px;
        margin-bottom:30px;
    }
    
    section .container{
        gap:15px;
    }
    
    .card-pakej{
        flex:1 1 100%;
        max-width:400px;
    }
    
    .pakej-img{
        height:200px;
    }
    
    .main-header{
        padding:10px 0;
    }
    
    .menu-toggle{
        display:block;
    }

    .header-right{
        position:absolute;
        top:80px;
        left:0;
        width:100%;
        background:white;
        flex-direction:column;
        align-items:center;
        gap:20px;
        padding:20px 0;
        border-bottom:1px solid #eee;

        opacity:0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .header-right.active{
        opacity:1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-menu ul{
        flex-direction:column;
        gap:15px;
        text-align:center;
    }

    .btn-hubungi{
        margin-top:10px;
    }

    .hero-banner {
        height: 350px;
    }

    .overlay-content h2 {
        font-size: 1.6rem;
    }
    
    .overlay-content h4 {
        font-size: 1rem;
    }

    .prev, .next {
        padding: 10px;
        font-size: 14px;
    }

    .why-card {
        padding: 25px 20px;
    }

    section {
        padding: 40px 15px;
    }

    .overlay-content {
        padding: 0 15px;
    }

    .card-pakej {
        margin: 0 auto;
    }

    .hero-btn {
        padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 35px);
        font-size: clamp(12px, 2.5vw, 16px);
    }

    .btn-details {
        display: block;
        width: fit-content;
        margin: 10px auto 0;
    }
}