/* Reset asas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff, #e3f2fd, #dee2e6);
    background-attachment: fixed;
}

/* TITLE */
.section-title {
    font-size: 26px;
    font-weight: 700;
    font-family: Geneva, sans-serif;
    color: #111;
    text-align: center;
    margin-top: 30px;
    letter-spacing: 0.5px;
}

/* SEARCH BAR */
.search-bar {
    justify-content: center;
    margin: 25px 0 35px; /* bagi ruang atas & bawah */
    position: relative;
    display: flex;
}

/* IMPORTANT: ikut width card */
.search-bar input {
    width: 1020px; /* sama macam .pakej-row width */
    padding: 12px 15px 12px 42px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.search-bar input:focus {
    border-color: #19516B;
    box-shadow: 0 4px 15px rgba(25, 81, 107, 0.2);
}

/* ICON DALAM INPUT */
.search-icon {
    position: absolute;
    left: 22%;
    transform: translateX(-115px); /* adjust ikut width input */
    top: 50%;
    transform: translate(-115px, -50%);
    font-size: 14px;
    opacity: 0.6;
}

.pakej-table-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.empty-state {
    width: 100%;
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 15px;
}

.pakej-row {
    width: 250px; /* control lebar card */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pakej-img-box {
    width: 100%;
    height: 180px; /* 🔥 tinggi gambar (boleh adjust 180–220px) */
    overflow: hidden;
    border-radius: 12px;
}

.pakej-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* buang gap bawah image */
}

.pakej-main-info {
    width: 100%;
}

.pakej-main-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
    text-transform: uppercase;
}

.pakej-desc {
    font-size: 0.9rem;
    color: #000000;
    text-align: center;
}

.pakej-action {
    width: 100%;
    margin-top: 10px;
}

.btn-lihat {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
}

.main-footer {
    background-color: #9E1F25; /* Warna gelap */
    padding: 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px; /* Jarak antara kolom */
    padding: 40px;
}

.footer-column {
    flex: 1; /* INI KUNCINYA: Memberi ruang seimbang kepada setiap kolom */
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: left;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.footer-column p, .footer-column li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: white;
    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);
}

@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;
    }

    .pakej-table-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .pakej-row {
        width: 100%; /* penting! buang fixed 250px */
    }

    .pakej-img-box {
        height: 160px;
    }
}