/* ======================================================
  KEDAH TREASURES — TRAVEL MAGAZINE THEME (NEW DESIGN)
  Clean, minimal, floating navigation + 6-photo grid
  ====================================================== */

 /* Tema: Tropical Breeze (Pantai & Lautan) */
/* Tema: Vibrant Culture (Rancak & Budaya) */
/* ======================================================
  KEDAH TREASURES — TRAVEL MAGAZINE THEME (NEW DESIGN)
  Clean, minimal, floating navigation + 6-photo grid
  ====================================================== */

/* 🌈 TEMA BARU: JOYFUL FIESTA (CERIA & PENUH WARNA) 🌈 */
:root {
    --primary: #1E90FF;   /* Biru Langit Terang */
    --secondary: #FF1493; /* Merah Jambu Gelap (Deep Pink) */
    --dark: #1A1A1A;      /* Hitam Pejal */
    --light: #1BCD;     /* Putih Hampir Murni */
    --white: #ffffff;
    --radius: 14px;
  }
  
  /* =======================
    GLOBAL STYLES
    ======================= */
  
  * {
      box-sizing: border-box;
  }
  
  /* PEMBETULAN UNTUK LEBAR PENUH SKRIN */
  html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      overflow-x: hidden; 
  }
  
  body {
      font-family: "Poppins", sans-serif;
      background: var(--light);
      color: var(--dark);
      line-height: 1.7;
  }
  
  .container {
      width: 100%;
      max-width: 1200px;
      margin: auto;
  
      padding-left: 15px;
      padding-right: 15px; 
  }
  
  
  .site-header {
      position: sticky;
      top: 0;
      z-index: 999;
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(8px);
      padding: 10px 0;
      box-shadow: 0 0 12px rgba(0,0,0,0.1);
  }
  
  /* Styling for the logo image */
  .site-logo {
      height: 100px; 
      width: auto; 
      display: block;
  }
  
  
  .header-inner {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
  }
  
  .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      justify-content: flex-start;
  }
  
  .nav-wrapper {
      display: flex;
      justify-content: center;
  }
  
  .main-nav ul {
      display: flex;
      gap: 26px;
      list-style: none;
      margin: 0;
      padding: 0;
  }
  
  .main-nav a {
      text-decoration: none;
      color: var(--primary); /* Menggunakan warna primary baru */
      font-weight: 600;
      font-size: 15px;
      padding: 6px 6px;
      transition: 0.2s;
  }
  
  .main-nav a:hover {
      color: var(--secondary); /* Menggunakan warna secondary baru */
  }
  
  /* Mobile view */
  @media (max-width: 850px) {
      .header-inner {
          grid-template-columns: 1fr;
          text-align: center;
          gap: 12px;
      }
  
      .main-nav ul {
          flex-wrap: wrap;
          justify-content: center;
          gap: 14px;
      }
  }
  
  
  nav.main-nav a {
      color: var(--primary); /* Menggunakan warna primary baru */
      text-decoration: none;
      padding: 8px 14px;
      font-weight: 600;
      border-radius: 10px;
      transition: 0.25s;
  }
  
  nav.main-nav a:hover {
      background: var(--primary); /* Menggunakan warna primary baru */
      color: white;
  }
  
  /* =======================
    HERO BANNER
    ======================= */
  
  .hero-banner {
      width: 100%;
      height: 380px;
      background: url("images/Scenic.jpg") center/cover no-repeat;
      border-radius: var(--radius);
      margin: 28px 0;
      position: relative;
      overflow: hidden;
  }
  
  .hero-banner-overlay {
      position: absolute;
      inset: 0;
      /* Diubah untuk padan dengan warna primary baru (1E90FF) */
      background: linear-gradient(
          180deg,
          rgba(30,144,255,0.25), 
          rgba(0,0,0,0.25)
      );
  }
  
  .hero-text {
      position: absolute;
      left: 30px;
      bottom: 30px;
      color: white;
      z-index: 5;
      max-width: 640px;
  }
  
  .hero-text h1 {
      margin: 0 0 8px 0;
      font-size: 36px;
  }
  
  .hero-text p {
      margin: 0;
      font-size: 16px;
  }
  
  /* =======================
    PHOTO GRID (6 PHOTOS)
    ======================= */
  
  .photo-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin: 24px 0;
  }
  
  .photo-grid img {
      width: 90%;
      height: 200px;
      object-fit: cover;
      border-radius: 20px;
      cursor: pointer;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      box-shadow: 0 18px 18px rgba(0,0,0,0.12);
  }
  
  .photo-grid img:hover {
      transform: translateY(-6px) scale(1.02);
      box-shadow: 0 14px 34px rgba(0,0,0,0.16);
  }
  
  /* =======================
    CARD + GRID LAYOUT
    ======================= */
  
  .card {
      background: white;
      border-radius: 12px;
      padding: 18px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.06);
      margin-bottom: 18px;
  }
  
  .grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
  }
  
  /* Responsive layout */
  @media (max-width: 980px) {
      .grid {
          grid-template-columns: 1fr;
      }
  
      .photo-grid {
          grid-template-columns: repeat(2, 1fr);
      }
  
      .hero-banner {
          height: 240px;
      }
  
      .hero-text h1 {
          font-size: 26px;
      }
  }
  
  /* =======================
    SLIDESHOW (OPTIONAL)
    ======================= */
  
  .slideshow-container {
      max-width: 100%;
      position: relative; 
      margin: 28px 0;
      border-radius: var(--radius);
      overflow: hidden;
  }
  .prev, .next {
      cursor: pointer;
      position: absolute; 
      top: 50%; 
      width: auto;
      padding: 16px;
      margin-top: -22px; 
      color: white;
      font-weight: bold;
      font-size: 18px;
      transition: 0.6s ease;
      border-radius: 0 3px 3px 0;
      user-select: none;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 10;
  }
  
  .next {
      right: 0; 
      border-radius: 3px 0 0 3px;
  }
  
  .slide {
      display: none; 
      position: relative;
  }
  
  .slideshow-container img {
      width: 100%;
      height: 400px; 
      object-fit: cover; 
  }
  
  .slide-text {
      color: #f2f2f2;
      font-size: 2em;
      font-weight: bold;
      padding: 8px 12px;
      position: absolute;
      bottom: 30%; 
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      text-align: center;
      background: rgba(0, 0, 0, 0.4); 
  }
  
  .controls {
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  
  /* =======================
    FORM STYLES
    ======================= */
  
  form .field {
      display: flex;
      flex-direction: column;
      margin-bottom: 12px;
  }
  
  input,
  select,
  textarea {
      padding: 12px;
      border-radius: 10px;
      border: 1px solid #ddd;
  }
  
  textarea {
      min-height: 120px;
  }
  
  .btn-primary {
      background: var(--primary); /* Menggunakan warna primary baru */
      color: white;
      border: none;
      padding: 12px 18px;
      border-radius: 10px;
      cursor: pointer;
      font-weight: 700;
  }
  
  .btn-primary:hover {
      background: #1178df; /* Warna primary sedikit gelap untuk hover */
  }
  
  /* =======================
    FOOTER
    ======================= */
  
  .footer {
      width: 100%;
      
      margin-top: 36px;
      background: var(--primary); /* Menggunakan warna primary baru */
      color: white;
      
      padding: 18px 0; 
      
      border-radius: 0; 
      
      text-align: center;
      position: relative;
      z-index: 10;
  }
  
  /* 💥 PEMBETULAN UTAMA FOOTER (untuk isi lebar penuh) 💥 */
  .footer .container {
      max-width: none; 
      width: 100%; 
      
      padding-left: 15px;
      padding-right: 15px;
      
      margin: 0; 
  }
  
  
  /* =======================
    FIXED AUDIO PLAYER (Menetapkan kedudukan seragam)
    ======================= */
  #fixed-audio {
      position: fixed; 
      bottom: 15px; 
      left: 15px;  
      z-index: 1000;
      width: 250px; 
  }
  
  /* =======================
    LIGHTBOX
    ======================= */
  
  .lightbox {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,0.7)
  }

/* =======================
  GLOBAL STYLES
  ======================= */

* {
    box-sizing: border-box;
}

/* 💥 PEMBETULAN UTAMA UNTUK LEBAR PENUH 💥 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    /* Ini akan menghalang pelayar daripada menambah margin pelik dan skrol mendatar */
    overflow-x: hidden; 
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.7;
}

.container {
    /* Kekalkan 100% width, tetapi max_width mengehadkan kandungan di tengah */
    width: 100%;
    max-width: 1200px;
    margin: auto;

    padding-left: 15px;
    padding-right: 15px; 
}


.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    padding: 10px 0;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

/* Styling for the logo image */
.site-logo {
    /* Set a maximum height (adjust this value based on your header's height) */
    height: 100px; 
    width: auto; /* Maintain aspect ratio */
    display: block;
}


.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    padding: 6px 6px;
    transition: 0.2s;
}

.main-nav a:hover {
    color: var(--secondary);
}

/* Mobile view */
@media (max-width: 850px) {
    .header-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
}


nav.main-nav a {
    color: var(--primary);
    text-decoration: none;
    padding: 8px 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.25s;
}

nav.main-nav a:hover {
    background: var(--primary);
    color: white;
}

/* =======================
  HERO BANNER
  ======================= */

.hero-banner {
    width: 100%;
    height: 380px;
    background: url("images/Scenic.jpg") center/cover no-repeat;
    border-radius: var(--radius);
    margin: 28px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,95,168,0.25),
        rgba(0,0,0,0.25)
    );
}

.hero-text {
    position: absolute;
    left: 30px;
    bottom: 30px;
    color: white;
    z-index: 5;
    max-width: 640px;
}

.hero-text h1 {
    margin: 0 0 8px 0;
    font-size: 36px;
}

.hero-text p {
    margin: 0;
    font-size: 16px;
}

/* =======================
  PHOTO GRID (6 PHOTOS)
  ======================= */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.photo-grid img {
    width: 90%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 18px 18px rgba(0,0,0,0.12);
}

.photo-grid img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 34px rgba(0,0,0,0.16);
}

/* =======================
  CARD + GRID LAYOUT
  ======================= */

.card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    margin-bottom: 18px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Responsive layout */
@media (max-width: 980px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-banner {
        height: 240px;
    }

    .hero-text h1 {
        font-size: 26px;
    }
}

/* =======================
  SLIDESHOW (OPTIONAL)
  ======================= */

.slideshow-container {
    max-width: 100%;
    /* This makes all absolute children (.prev, .next) position relative to this container */
    position: relative; 
    margin: 28px 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.prev, .next {
    cursor: pointer;
    /* This is what fixes them relative to the slideshow-container */
    position: absolute; 
    top: 50%; /* Center vertically */
    width: auto;
    padding: 16px;
    margin-top: -22px; /* Adjust slightly up to perfectly center (half of the arrow's height) */
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.next {
    right: 0; /* Align to the right side */
    border-radius: 3px 0 0 3px;
}

.slide {
    display: none; /* Hide all slides by default */
    position: relative;
}

.slideshow-container img {
    width: 100%;
    /* You might want to fix the height and use object-fit to ensure all slides are the same size */
    height: 400px; /* Adjust this height as desired */
    object-fit: cover; /* Ensures image covers the area without distortion */
}

.slide-text {
    color: #f2f2f2;
    font-size: 2em;
    font-weight: bold;
    padding: 8px 12px;
    position: absolute;
    bottom: 30%; /* Position text higher up */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for readability */
}

.controls {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =======================
  FORM STYLES
  ======================= */

form .field {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

input,
select,
textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

textarea {
    min-height: 120px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.btn-primary:hover {
    background: #074a86;
}

/* =======================
  FOOTER
  ======================= */

.footer {
    /* Mesti mengisi lebar penuh skrin */
    width: 100%;
    
    margin-top: 36px;
    background: var(--primary);
    color: white;
    
    /* 💥 KEMBALIKAN KEPADA INI: HANYA padding atas dan bawah */
    padding: 18px 0; 
    
    /* Pastikan tiada border-radius yang membuat sudutnya melengkung */
    border-radius: 0; 
    
    text-align: center;
    position: relative;
    z-index: 10;
}

/* 💥 PERATURAN KRITIKAL UNTUK MENGATASI HAD .container 💥 */
.footer .container {
    /* Set semula had lebar */
    max-width: none; 
    width: 100%; 
    
    /* Gunakan padding untuk menjarakkan teks dari tepi footer */
    padding-left: 15px;
    padding-right: 15px;
    
    /* Pastikan margin auto dibuang */
    margin: 0; 
}


/* =======================
  FIXED AUDIO PLAYER (Menetapkan kedudukan seragam)
  ======================= */
#fixed-audio {
    /* 1. KUNCI: Tetapkan kedudukan relatif kepada skrin */
    position: fixed; 
    
    /* 2. Tetapkan jarak dari tepi bawah dan kiri */
    bottom: 15px; 
    left: 15px;  
    
    /* 3. Pastikan ia sentiasa berada di atas semua elemen lain */
    z-index: 1000;
    
    /* 4. Tetapkan lebar yang seragam */
    width: 250px; 
}

/* =======================
  LIGHTBOX
  ======================= */

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
    padding: 20px;
}

.lightbox img {
    max-width: 92%;
    max-height: 86%;
    border-radius: 10px;
}

/* =======================
  FADE-IN ANIMATION
  ======================= */

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: none;
}
/* --- Centering Text & Container Styles --- */
.center-text {
    text-align: center;
}


.primary-nav-buttons 

.button:hover,
.city-card:hover {
    background-color: #f8f8f8; /* Slightly darker background */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Larger shadow on hover */
    transform: translateY(-2px); /* Lifts the card slightly */
}

/* Active state for when the button is being clicked */
.button:active,
.city-card:active {
    transform: translateY(0); /* Pushes the card back down */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.button-grid {
    display: flex;
    /* Center the items horizontally */
    justify-content: center;
    /* Stack items vertically by default (mobile-first) */
    flex-direction: column; 
    /* Set a max width so they don't stretch across huge screens */
    max-width: 500px; 
    /* Center the block within its parent <section> */
    margin: 20px auto; 
    /* Add space between the cards/buttons */
    gap: 15px;
}

/* Styling for the anchor tags that act as buttons/cards */
.button, 
.city-card {
    /* Reset Link Styles */
    display: block; /* Makes the entire card clickable */
    text-decoration: none;
    color: #333; /* Dark text color */
    text-align: left; 

    /* Button/Card Appearance */
    background-color: #ffffff; /* White background */
    border: 1px solid #ddd; /* Light gray border for separation */
    border-radius: 8px; /* Rounded corners */
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Soft subtle shadow */

    /* Animation/Transition */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Specific content styling within the card */
.city-card h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #007bff; /* A distinct color for the title */
    font-size: 1.4em;
}

.city-card p {
    margin-bottom: 0;
    color: #666; /* Lighter color for the description */
}
/* Center the Video Box */
.video-box {
    /* Set a maximum width for the video container for better appearance on large screens */
    max-width: 800px;
    /* Center the block element (the video-box) within its parent section */
    margin-left: auto;
    margin-right: auto;
    /* Add some vertical space above and below the video box */
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Ensure the <video> element inside the box fills its container */
.video-box video {
    /* The 'max-width' on the video box will control the size */
    width: 100%;
    /* Ensures the video maintains its aspect ratio while filling the width */
    height: auto; 
    /* Optional: Ensure the border radius matches the card container if it has one */
    border-radius: inherit; 
    display: block; /* Important for preventing extra space below the video */

    
}