@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ===== NAVBAR ===== */
.header .container {
  padding-left: 0;
  padding-right: 0;
}

.header {
  position: fixed;
  background: transparent;
  background-color: transparent;
  padding: 10px 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  transition: background 0.3s ease;
}

.scrolled .header {
  background: rgba(10, 22, 40, 0.72);
  background-color: rgba(10, 22, 40, 0.72);
}

.navmenu > ul > li > a:not(.active) {
  text-shadow:
    0 0 6px rgba(255, 255, 255, 1),
    0 0 14px rgba(255, 255, 255, 0.85),
    0 0 28px rgba(255, 255, 255, 0.6);
}

.scrolled .header .navmenu > ul > li > a,
.scrolled .header .mobile-nav-toggle,
.scrolled .header .nav-search-btn {
  color: #fff;
}

.scrolled .header .navmenu > ul > li > a:not(.active) {
  text-shadow: none;
}

.navmenu .nav-search-li {
  display: inline-flex;
  align-items: center;
}

.navmenu .nav-search-li .nav-search-wrapper {
  margin-left: 0;
}

.nav-search-btn {
  border-radius: 6px;
  color: #000;
  font-size: 0.9rem;
  padding: 6px 8px;
}

.nav-search-btn:hover {
  background: #FFA040 !important;
  color: #1a1a1a !important;
}

.scrolled .header .navmenu > ul > li:hover > a,
.scrolled .header .navmenu > ul > li > a.active {
  color: #1a1a1a;
}

/* ===== HEBAHAN TERKINI / INISIATIF KEBUN DAPUR SLIDESHOW ===== */
.hebahan-swiper-outer,
.inisiatif-swiper-outer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hebahan-swiper-wrapper,
.inisiatif-swiper-wrapper {
  flex: 1;
  min-width: 0;
  padding-bottom: 36px;
}

.hebahan-slide-img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
}

.inisiatif-slide-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
}

/* Make all Inisiatif slides the same height */
.inisiatif-swiper-wrapper .swiper-wrapper {
  align-items: stretch;
}

.inisiatif-swiper-wrapper .swiper-slide {
  height: auto;
  display: flex;
}

/* Tajuk "Inisiatif Kebun Dapur" — brush script dwi-warna (navy + emas), ilham reka bentuk "Create Memories" */
#inisiatif-kebun-dapur h2 {
  font-size: clamp(2.9rem, 6.6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

/* Selaraskan kedudukan menegak accent line dengan teks brush yang lebih besar */
#inisiatif-kebun-dapur h2:before,
#inisiatif-kebun-dapur h2:after {
  margin-bottom: 0.55em;
}

/* Asas brush script untuk kedua-dua perkataan */
#inisiatif-kebun-dapur h2 .kd-script-navy,
#inisiatif-kebun-dapur h2 .kd-signature {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  line-height: 1;
  display: inline-block;
  vertical-align: -0.08em;
  padding: 0 0.04em;
}

/* "Inisiatif" — navy pekat (faux-bold: stroke warna sama, Great Vibes cuma ada weight 400) */
#inisiatif-kebun-dapur h2 .kd-script-navy {
  color: #16306e;
  -webkit-text-stroke: 1px #16306e;
}

/* "Kebun Dapur" — gradien biru laut (aqua cerah → biru laut pekat), interaktif */
#inisiatif-kebun-dapur h2 .kd-signature {
  font-size: 1.08em;
  background: linear-gradient(180deg, #38bdf8 0%, #0e7fc7 52%, #0b4a99 100%);
  background-size: 100% 200%;
  background-position: 50% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0e7fc7; /* fallback bila text-clip tak disokong */
  /* faux-bold: stroke biru laut pertengahan gradien supaya menebal tanpa nampak berongga */
  -webkit-text-stroke: 1px #0e7fc7;
  transition: background-position 0.6s ease, transform 0.35s ease, filter 0.35s ease;
}

#inisiatif-kebun-dapur h2 .kd-signature:hover {
  background-position: 50% 100%;
  transform: rotate(-1.5deg) scale(1.04);
  filter: drop-shadow(0 4px 10px rgba(14, 127, 199, 0.32));
}

@media (prefers-reduced-motion: reduce) {
  #inisiatif-kebun-dapur h2 .kd-signature {
    transition: none;
  }
  #inisiatif-kebun-dapur h2 .kd-signature:hover {
    transform: none;
  }
}

/* Mobile: tajuk script Great Vibes besar + garisan hiasan tepi (.section-title
   ::before/::after) = bertabur bila teks membalut 2 baris. Sembunyikan garisan
   tepi & kecilkan sedikit supaya tajuk kemas & tersusun di tengah. */
@media (max-width: 575.98px) {
  #inisiatif-kebun-dapur h2:before,
  #inisiatif-kebun-dapur h2:after {
    display: none;
  }
  #inisiatif-kebun-dapur h2 {
    font-size: clamp(2.4rem, 12vw, 3.3rem);
    line-height: 1.1;
  }
  /* Selaraskan saiz tajuk Siaran Terkini, Sebutharga & Hebahan Terkini di mobile */
  .featured-programs .section-title h2,
  .events .section-title h2,
  #hebahan-terkini h2 {
    font-size: 1.3rem;
  }
}

/* Selaraskan saiz tajuk Hebahan Terkini dengan Sebutharga/Tender di desktop */
#hebahan-terkini h2 {
  font-size: 2.5rem;
}

/* ---- Intro PREMIUM: eyebrow emas + pembeza berhias + chips faedah ---- */
#inisiatif-kebun-dapur .kd-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8860b;
  background: linear-gradient(135deg, #fff8e6, #fdf0cf);
  border: 1px solid #ecd9a8;
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.14);
}
#inisiatif-kebun-dapur .kd-eyebrow-pill i { color: #d4af37; font-size: 0.85rem; }

#inisiatif-kebun-dapur .kd-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px auto 18px;
  max-width: 340px;
}
#inisiatif-kebun-dapur .kd-divider .line {
  height: 2px;
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #d4af37);
}
#inisiatif-kebun-dapur .kd-divider .line.r { background: linear-gradient(90deg, #d4af37, transparent); }
#inisiatif-kebun-dapur .kd-divider .kd-fish {
  width: 30px;
  height: 30px;
  color: #d4af37;
  filter: drop-shadow(0 2px 4px rgba(184, 134, 11, 0.3));
}

#inisiatif-kebun-dapur .inisiatif-subtitle {
  font-size: 1.08rem;
  line-height: 1.6;
  color: #44506a;
  max-width: 620px;
  margin: 0 auto 24px;
}

#inisiatif-kebun-dapur .kd-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
#inisiatif-kebun-dapur .kd-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #e7ecf4;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #16306e;
  box-shadow: 0 8px 22px rgba(21, 48, 110, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
#inisiatif-kebun-dapur .kd-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(21, 48, 110, 0.15);
  border-color: #d4af37;
}
#inisiatif-kebun-dapur .kd-chip i { font-size: 1.1rem; color: #0e7fc7; }

@media (max-width: 575.98px) {
  #inisiatif-kebun-dapur .inisiatif-subtitle { font-size: 1rem; }
  #inisiatif-kebun-dapur .kd-chips { gap: 8px; }
  #inisiatif-kebun-dapur .kd-chip { font-size: 0.82rem; padding: 8px 13px; gap: 6px; }
  .inisiatif-card { padding: 9px 9px 0; border-radius: 17px; }
  .inisiatif-card-img-link { border-radius: 12px; }
}

/* Inisiatif Kebun Dapur card layout */
.inisiatif-card {
  border-radius: 20px;            /* frame luar — penjuru bulat besar */
  padding: 12px 12px 0;           /* jurang putih ("mount") keliling gambar */
  border: 1.5px solid #e3eef5;    /* bingkai halus biru muda */
  box-shadow: 0 10px 30px rgba(24, 74, 108, 0.12), 0 3px 10px rgba(24, 74, 108, 0.06);
  background: #fff;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.inisiatif-card-img-link {
  display: block;
  overflow: hidden;
  border-radius: 14px;            /* frame dalam — penjuru lebih kecil dari luar */
}

.inisiatif-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.inisiatif-card-img-link:hover .inisiatif-card-img {
  transform: scale(1.04);
}

.inisiatif-card-body {
  padding: 16px 12px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.inisiatif-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3c5e;
  margin-bottom: 10px;
}

.inisiatif-card-desc {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
  text-align: justify;
}

.inisiatif-card-btn {
  display: inline-block;
  align-self: center;
  background: #e07b1a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.25s ease;
}

.inisiatif-card-btn:hover {
  background: #c4650e;
  color: #fff;
}

.hebahan-nav-btn,
.inisiatif-nav-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  color: #555;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hebahan-nav-btn:hover,
.inisiatif-nav-btn:hover {
  opacity: 1;
  background: #ff8c00;
}

.hebahan-nav-btn.swiper-button-disabled,
.inisiatif-nav-btn.swiper-button-disabled {
  opacity: 0.2;
  cursor: default;
}

/* =============================================
   Program Di Bawah Ko-Nelayan — Logo Slider
   ============================================= */
.program-dibawah-section {
  background: #fff;
  padding-bottom: 20px;
}

.pdb-swiper-outer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdb-swiper {
  flex: 1;
  min-width: 0;
  padding-bottom: 40px;
}

.pdb-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.pdb-logo-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  text-align: center;
}

.pdb-logo-card img {
  max-height: 110px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.pdb-logo-card:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}

.pdb-logo-card p {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F5996;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pdb-nav-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 89, 150, 0.12);
  color: #0F5996;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdb-nav-btn:hover {
  opacity: 1;
  background: #0F5996;
  color: #fff;
}

.pdb-nav-btn.swiper-button-disabled {
  opacity: 0.2;
  cursor: default;
}


.navmenu ul {
  display: flex;
  gap: 2px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navmenu li {
  display: inline-block;
  position: relative;
}

.navmenu a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: #000;
  text-decoration: none !important;
  transition: all .24s ease;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
  font-size: 0.95rem;
}

.navmenu li:hover > a,
.navmenu a.active {
  background: #FFA040;
  color: #1a1a1a;
  box-shadow: none;
  transform: none;
}

.navmenu .dropdown > a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navmenu .dropdown ul {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  display: none;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.navmenu li:hover > ul {
  display: block;
}

.navmenu .dropdown ul li {
  display: block;
  margin: 6px 0;
}
.navmenu .dropdown ul li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #222;
}

.navmenu .dropdown ul li a:hover {
  background: #FFA040;
  color: #1a1a1a;
}

/* Header brand drawer — sembunyi pada desktop (hanya muncul dalam drawer mobile).
   WAJIB di luar media query supaya li ini tak terpapar dalam menu mendatar.
   Guna `.navmenu li.nav-drawer-brand` supaya specificity (0,2,1) atasi
   `.navmenu li{display:inline-block}` (0,1,1) — kalau tidak brand bocor ke desktop. */
.navmenu li.nav-drawer-brand {
  display: none;
}

@media (max-width: 1199px) {

  /* Disable desktop hover behavior on mobile */
  .navmenu li:hover > ul {
    display: none;
  }

  /* Sembunyi menu aras-atas bila drawer tertutup.
     WAJIB: `.navmenu ul{display:flex}` asas (luar media query, baris ~380)
     muat selepas main.css → tanpa baris ini menu terdedah walau tertutup. */
  .navmenu > ul {
    display: none;
  }

  /* Header brand hanya untuk drawer — sembunyi pada desktop (li dlm <ul> mendatar). */
  .nav-drawer-brand {
    display: none;
  }

  /* ============================================================
     DRAWER MOBILE — gaya rujukan: off-canvas KIRI, biru royal, ikon cyan,
     header jenama di atas. main.js togol `.mobile-nav-active` pada <body>;
     main.css jadikan `.mobile-nav-active .navmenu` overlay (backdrop) +
     `.navmenu > ul` panel. Tutup guna butang ✕ (main.js, semua halaman).
     ============================================================ */

  /* Backdrop gelap + fade-in */
  .mobile-nav-active .navmenu {
    background: rgba(8, 14, 30, 0.5);
    animation: konel-drawer-backdrop 0.3s ease both;
  }

  /* Panel drawer — lekat KIRI, biru royal, sudut kanan bulat (kesan "peek") */
  .mobile-nav-active .navmenu > ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    inset: 0 auto 0 0;          /* top/bottom:0; left:0; right:auto → lekat KIRI */
    width: 82%;
    max-width: 320px;
    height: 100%;
    margin: 0;
    padding: 0 0 16px;
    gap: 2px;
    background: #002366;
    border-radius: 0 22px 22px 0;
    box-shadow: 12px 0 42px rgba(0, 0, 0, 0.32);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    animation: konel-drawer-in 0.32s cubic-bezier(.4, 0, .2, 1) both;
  }

  @keyframes konel-drawer-in {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
  }
  @keyframes konel-drawer-backdrop {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* ---- Header jenama dalam drawer ---- */
  /* Specificity (0,3,1) atasi peraturan sembunyi `.navmenu li.nav-drawer-brand` (0,2,1). */
  .mobile-nav-active .navmenu li.nav-drawer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 26px 48px 18px 20px;   /* kanan 48px = elak tindih butang ✕ */
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }
  .nav-drawer-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  }
  .nav-drawer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
  }
  .nav-drawer-name {
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
  }
  .nav-drawer-tagline {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.66rem;
    margin-top: 3px;
  }

  /* ---- Pautan menu (putih, baris penuh) ---- */
  .mobile-nav-active .navmenu > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: auto;
    padding: 15px 22px;
    margin: 0;
    border-radius: 0;
    color: #fff !important;
    background: transparent !important;
    font-weight: 600;
    font-size: clamp(0.9rem, 4vw, 1.02rem) !important;
    text-transform: uppercase;      /* tajuk aras-atas: HURUF BESAR */
    letter-spacing: 0.4px;
    text-shadow: none !important;   /* matikan glow putih (silau dalam drawer) */
  }

  .mobile-nav-active .navmenu > ul > li > a:hover,
  .mobile-nav-active .navmenu > ul > li.dropdown.active > a {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
  }

  .mobile-nav-active .navmenu > ul > li > a.active {
    background: rgba(255, 255, 255, 0.14) !important;
    box-shadow: inset 4px 0 0 #36cdf2;   /* bar cyan halaman semasa */
  }

  /* ---- Ikon cyan (CSS ::before, dipetakan ikut susunan; li ke-1 = header) ---- */
  .mobile-nav-active .navmenu > ul > li > a::before {
    font-family: "bootstrap-icons";
    font-weight: normal;
    font-style: normal;
    font-size: 1.2rem;
    line-height: 1;
    color: #36cdf2;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
  }
  .mobile-nav-active .navmenu > ul > li:nth-child(2) > a::before { content: "\f423"; } /* Laman Utama */
  .mobile-nav-active .navmenu > ul > li:nth-child(3) > a::before { content: "\f1dd"; } /* Info Korporat */
  .mobile-nav-active .navmenu > ul > li:nth-child(4) > a::before { content: "\f4d0"; } /* Program & Inisiatif */
  .mobile-nav-active .navmenu > ul > li:nth-child(5) > a::before { content: "\f21f"; } /* Pusat Media */
  .mobile-nav-active .navmenu > ul > li:nth-child(6) > a::before { content: "\f3f9"; } /* Perkhidmatan */
  .mobile-nav-active .navmenu > ul > li:nth-child(7) > a::before { content: "\f5c1"; } /* Hubungi Kami */

  /* ---- Chevron dropdown ke kanan, telus ---- */
  .mobile-nav-active .navmenu > ul > li > a .toggle-dropdown {
    margin-left: auto;
    width: auto;
    height: auto;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
  }

  /* ---- Submenu accordion (latar biru gelap, teks putih, beret di bawah ikon) ---- */
  .mobile-nav-active .navmenu .dropdown ul {
    background: rgba(0, 0, 0, 0.16) !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 0 4px !important;
    width: 100% !important;
    padding: 4px 0 8px !important;
    align-items: stretch !important;   /* batalkan align-items:center warisan → item penuh lebar (kiri) */
  }
  .mobile-nav-active .navmenu .dropdown ul li a {
    display: flex;                      /* teks + chevron pada SATU baris */
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88) !important;
    padding: 11px 22px 11px 62px !important;
    font-size: 0.9rem !important;
    text-align: left !important;        /* submenu rata kiri, bukan tengah */
    text-transform: capitalize;         /* auto cap setiap perkataan */
  }
  .mobile-nav-active .navmenu .dropdown ul li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
  }
  /* Chevron submenu bersarang (.toggle-right) — telus, ditolak ke kanan, sebaris */
  .mobile-nav-active .navmenu .dropdown ul li a i {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.55);
    margin-left: auto;
    flex-shrink: 0;                     /* chevron tak mengecil bila teks panjang */
    width: auto;
    height: auto;
    font-size: 0.8rem;
  }

  /* ---- Item carian (bawah, dipisah garisan) ---- */
  .mobile-nav-active .navmenu > ul > li.nav-search-li {
    padding: 10px 22px 4px;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
  .mobile-nav-active .nav-search-btn {
    color: #fff !important;
    font-size: 1rem;
  }

  /* ---- Butang ✕ di tepi kanan drawer (cyan, gaya rujukan) ---- */
  .mobile-nav-active .mobile-nav-toggle {
    color: #36cdf2 !important;
    right: auto;
    left: calc(min(82vw, 320px) - 48px);
    top: 30px;
    font-size: 26px;
  }

  /* Hormati pengguna yang matikan animasi */
  @media (prefers-reduced-motion: reduce) {
    .mobile-nav-active .navmenu,
    .mobile-nav-active .navmenu > ul {
      animation: none;
    }
  }

  /* Mobile links */
  .navmenu a {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    color: #1a1a1a;
    background: transparent;
    text-decoration: none !important;
    font-family: inherit !important;
    /* Saiz font dinamik: mengecil di telefon kecil, membesar di telefon besar.
       clamp(min, ikut-lebar-skrin, max) — had bawah elak terlalu kecil. */
    font-size: clamp(0.72rem, 3.3vw, 0.95rem) !important;
  }

  /* Mobile link hover: match desktop orange */
  .navmenu a:hover,
  .navmenu .dropdown.active > a {
    background: #FFA040;
    color: #1a1a1a;
  }

/* Dropdown container */
.navmenu .dropdown ul {
  display: none;
  flex-direction: column;
  background: #f5f7fa;
  padding: 12px;
  border-radius: 12px;
  margin-left: 10px;
  width: calc(100% - 20px);
  position: static !important;
  box-shadow: none !important;
  border: 1px solid rgba(0,0,0,0.07);
}

/* Reveal dropdown when clicked */
.navmenu .dropdown.active > ul {
  display: flex;
}


  /* Dropdown link styling */
  .navmenu .dropdown ul li a {
    padding: 10px 16px;
    border-radius: 10px;
    color: #222 !important;
    background: transparent;
  }

  .navmenu .dropdown ul li a:hover {
    background: #FFA040 !important;
    color: #1a1a1a !important;
  }

  /* Make icon stay on the right */
  .navmenu .dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Remove desktop dropdown absolute positioning */
  .navmenu .dropdown ul {
    position: static !important;
    box-shadow: none !important;
  }

  /* Hamburger */
  .mobile-nav-toggle {
    font-size: 32px;
    cursor: pointer;
    display: block;
    color: #fff !important;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 9999;
  }
}


/* Desktop only: Montserrat SemiBold for navbar */
@media (min-width: 1200px) {
  .navmenu,
  .navmenu a,
  .navmenu li,
  .navmenu .dropdown > a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* SemiBold */
  }
}

.title-parallax {
   font-family: 'Comfortaa', sans-serif;
  font-size: 120px;
  font-weight: 800;
  position: absolute;
  top: 35%;                 
  left: 69%;
  transform: translateX(-50%) translateY(0);
  width: 100%;
  pointer-events: none;
  z-index: 1;               
}

.title-parallax .title-img {
  display: block;
  margin: 0 auto;
  width: 420px;        
  max-width: 80%;
  user-select: none;
  opacity: 0.98;
  transform-origin: center;
  will-change: transform;
}

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* CENTER THE TITLE */
.title-parallax {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;      /* Make sure it is above corals */
  text-align: center;
  pointer-events: none;
}

#parallax-title {
  margin: 0;
  font-size: 80px;
  font-weight: 900;
  color: white;
  letter-spacing: 4px;
}

/* ============================
   CORAL PARALLAX (scroll-based)
   ============================ */
.coral-parallax {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 2; /* Behind waves, in front of sea bg */
}

.coral {
  position: absolute;
  bottom: 0;
  width: 500px;       
  opacity: 0.95;
  /* transform: translateY(0); */
  transition: transform 0.1s linear;
}

/* Left coral */
.coral3 {
  left: 1%;
}

/* Right coral (mirrored) */
.coral1 {
  right: 1%;
  /* transform: scaleX(-1) translateY(0); */
}



/* Hero section with video background */
section.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  background: #000; /* fallback if video fails */
}

.video-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  z-index: -2;
}

.layer {
    position: absolute;
    width: auto;
    height: auto;
    pointer-events: none;
}

/* Trees = far back */
.tree1, .tree2 {
    z-index: 1;
    /* transform: translateZ(-1px) scale(2);  */
}

/* Rock = middle layer */
.rock1, .rock3 {
    z-index: 2;
    transform: translateZ(-0.3px) scale(1.3);
}

/* Corals = foreground */
.coral1, .coral3 {
    z-index: 3;
    transform: translateZ(0px);
}

/* Rock Parallax */

.rock1 {
    position: absolute;
    bottom: 0;
    width: 600px;        
    transform: translateZ(-0.3px) scale(1.3);
    z-index: 1 !important;
    pointer-events: none;
}

.rock2 {
    position: absolute;
    bottom: 0;
    right: 0;                      
    width: 600px;                  
    transform: translateZ(-0.3px) scale(1.3);
    z-index: 1 !important;       
    pointer-events: none;
}

.seaweed-right {
    position: absolute;
    bottom: 0;
    right: 0;                      
    width: 280px;                  
    /* transform: translateZ(-0.3px) scale(1.3); */
    z-index: 3 !important;       
    pointer-events: none;
    right: 1%;

}

.seaweed-left {
    position: absolute;
    bottom: 0;
    right: 0;                      
    width: 280px;                  
    transform: translateZ(-0.3px) scale(1.3) scaleX(-1);    
    z-index: 3 !important;       
    pointer-events: none;
    left: 1%;

}

/* SEAWEED (main) */
.seaweed-right, .seaweed-left {
    position: absolute;
    bottom: 0;
    width: 380px;
    z-index: 3;
    pointer-events: none;
    /* transform: translateZ(-0.3px) scale(1.3); */
}

.seaweed-right { right: 4; }
.seaweed-left { 
    left: 4;
    transform: translateZ(-0.3px) scale(1.3) scaleX(-1); /* flip */
}


/* SEAWEED1 (new slower layer) */
.seaweed1-right, .seaweed1-left {
    position: absolute;
    bottom: 0;
    width: 220px;        
    z-index: 3;           
    pointer-events: none;
    transform: translateZ(-0.3px) scale(1.2);
}

.seaweed1-right { right: -2%; }
.seaweed1-left { 
    left: -2%;
    transform: translateZ(-0.3px) scale(1.2) scaleX(-1); /* flipped */
}


/* For About section and anything below */
section.about {
  position: relative;
  background: white;
  padding: 110px;
  z-index: 5;
  min-height: auto; 
}


body {
  overflow-x: hidden;
  overflow-y: scroll;
}


.tree-parallax {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 1; 
}

.tree1 {
  position: absolute;
  bottom: 0;
  width: 800px; 
  opacity: 0.95;
  left: 68%;
  
}

.tree2 {
  position: absolute;
  bottom: 0;
  width: 800px; 
  opacity: 0.95;
}

.tree2 { right: 68%; left: auto; }  /* moved to right */

.tree-parallax {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0; /* make sure it's behind waves */
}

.tree {
  position: absolute;
  bottom: 0;
  width: 1080px; /* adjust size */
  transform-origin: bottom center; /* pivot from the base */
  animation: sway 17s ease-in-out infinite;
}

/* Position each tree */
.tree1 {
  left: 68%;
  animation-delay: 0s; /* no delay */
}

.tree2 {
  right: 68%;
  animation-delay: 1.5s; /* offset so they sway differently */
}

/* Keyframes for natural wind-like sway */
@keyframes sway {
  0%   { transform: rotate(0deg) translateX(0); }
  10%  { transform: rotate(1.5deg) translateX(2px); }
  25%  { transform: rotate(-1.2deg) translateX(-1.5px); }
  40%  { transform: rotate(0.8deg) translateX(1px); }
  60%  { transform: rotate(-0.7deg) translateX(-0.8px); }
  75%  { transform: rotate(1deg) translateX(1.2px); }
  90%  { transform: rotate(-0.5deg) translateX(-0.5px); }
  100% { transform: rotate(0deg) translateX(0); }
}



/* Waves Parallax */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: url(assets/img/parallax/wave.png);
  background-size: 1000px 80px;
  animation: animate 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1s);
  z-index: 3;
}

@keyframes animate {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Digital wave canvas overlay — sits in front of .wave elements */
#digital-wave-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 6;
  pointer-events: none;
}


/* Animated Bubbles Parallax */
.bubbles {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0 !important;
}

.bubbles span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.1) 40%,
    rgba(173, 216, 230, 0.05) 70%,
    transparent 100%
  );
  box-shadow: inset -3px -3px 10px rgba(255, 255, 255, 0.4),
              inset 3px 3px 15px rgba(173, 216, 230, 0.2);
  filter: blur(0.3px);
  opacity: 0.9;
  animation: rise 15s linear infinite;
  animation-fill-mode: both;
}

.bubbles span.fast {
  animation-duration: 4s;
}

.bubbles span.faster {
  animation-duration: 2.7s;
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  40% {
    opacity: 0.9;
    transform: translateY(-25vh) scale(1.05);
  }
  70% {
    transform: translateY(-50vh) scale(1.02);
    opacity: 0;
  }
  /* hold invisible at the midpoint — jump back to start is hidden */
  100% {
    transform: translateY(-50vh) scale(1.02);
    opacity: 0;
  }
}

/* All the bubbles random placement */
.bubbles span:nth-child(1)  { left: 5%;  bottom: 10%; width: 20px; height: 20px; animation-delay: 0s; }
.bubbles span:nth-child(2)  { left: 12%; bottom: 30%; width: 28px; height: 28px; animation-delay: -1s; }
.bubbles span:nth-child(3)  { left: 20%; bottom: 60%; width: 18px; height: 18px; animation-delay: -2s; }
.bubbles span:nth-child(4)  { left: 28%; bottom: 40%; width: 35px; height: 35px; animation-delay: -3s; }
.bubbles span:nth-child(5)  { left: 30%; bottom: 70%; width: 15px; height: 15px; animation-delay: -4s; }
.bubbles span:nth-child(6)  { left: 70%; bottom: 20%; width: 25px; height: 25px; animation-delay: -1s; }
.bubbles span:nth-child(7)  { left: 75%; bottom: 45%; width: 40px; height: 40px; animation-delay: -2s; }
.bubbles span:nth-child(8)  { left: 82%; bottom: 65%; width: 18px; height: 18px; animation-delay: -3s; }
.bubbles span:nth-child(9)  { left: 90%; bottom: 30%; width: 30px; height: 30px; animation-delay: -4s; }
.bubbles span:nth-child(10) { left: 95%; bottom: 80%; width: 22px; height: 22px; animation-delay: -5s; }

.bubbles span:nth-child(11) { left: 8%;  bottom: 50%; width: 26px; height: 26px; animation-delay: -2.2s; }
.bubbles span:nth-child(12) { left: 15%; bottom: 75%; width: 14px; height: 14px; animation-delay: -3.5s; }
.bubbles span:nth-child(13) { left: 22%; bottom: 20%; width: 32px; height: 32px; animation-delay: -4.7s; }
.bubbles span:nth-child(14) { left: 77%; bottom: 10%; width: 16px; height: 16px; animation-delay: -1.8s; }
.bubbles span:nth-child(15) { left: 85%; bottom: 50%; width: 24px; height: 24px; animation-delay: -3.9s; }
.bubbles span:nth-child(16) { left: 92%; bottom: 15%; width: 30px; height: 30px; animation-delay: -3.6s; }
.bubbles span:nth-child(17) { left: 68%; bottom: 60%; width: 18px; height: 18px; animation-delay: -4.1s; }
.bubbles span:nth-child(18) { left: 73%; bottom: 75%; width: 22px; height: 22px; animation-delay: -5.3s; }
.bubbles span:nth-child(19) { left: 10%; bottom: 85%; width: 15px; height: 15px; animation-delay: -1.2s; }
.bubbles span:nth-child(20) { left: 80%; bottom: 90%; width: 28px; height: 28px; animation-delay: -2.9s; }

.bubbles span:nth-child(21) { left: 70%; bottom: 90%; width: 28px; height: 28px; animation-delay: -13.9s; }
.bubbles span:nth-child(22) { left: 60%; bottom: 90%; width: 22px; height: 22px; animation-delay: -12.9s; }
.bubbles span:nth-child(23) { left: 50%; bottom: 90%; width: 20px; height: 20px; animation-delay: -11.9s; }
.bubbles span:nth-child(24) { left: 20%; bottom: 90%; width: 28px; height: 28px; animation-delay: -13.9s; }
.bubbles span:nth-child(25) { left: 30%; bottom: 90%; width: 22px; height: 22px; animation-delay: -12.9s; }
.bubbles span:nth-child(26) { left: 40%; bottom: 90%; width: 20px; height: 20px; animation-delay: -11.9s; } */


{ @keyframes float {
  0%   { transform: translateY(0) translateX(0) scale(1); }
  25%  { transform: translateY(-6px) translateX(3px) scale(1.03); }
  50%  { transform: translateY(6px) translateX(-4px) scale(0.97); }
  75%  { transform: translateY(-5px) translateX(2px) scale(1.02); }
  100% { transform: translateY(0) translateX(0) scale(1); }
}
}

/* Fishes Parallax Section */
.fish {
  position: absolute;
  width: 80px;
  transform-origin: center center;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
}

/* Left → Right movement */
@keyframes swim-right {
  0% {
    left: -120px;
  }
  100% {
    left: 110%;
  }
}

/* Right → Left movement */
@keyframes swim-left {
  0% {
    left: 110%;
  }
  100% {
    left: -120px;
  }
}

/* Realistic body wave */
@keyframes body-wave {
  0%   { transform: translateY(0) rotate(0deg); }
  10%  { transform: translateY(1px) rotate(1deg); }
  25%  { transform: translateY(-1px) rotate(-1deg); }
  40%  { transform: translateY(1px) rotate(1deg); }
  50%  { transform: translateY(-1px) rotate(-1deg); }
  75%  { transform: translateY(1px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Left → Right group */
.fish:nth-child(1),
.fish:nth-child(2),
.fish:nth-child(3) {
  animation:
    swim-right linear infinite,
    body-wave 1s ease-in-out infinite;
  transform: scaleX(1); /* normal */
}

/* Right → Left group */
.fish:nth-child(4),
.fish:nth-child(5),
.fish:nth-child(6) {
  animation:
    swim-left linear infinite,
    body-wave 3s ease-in-out infinite;
  transform: scaleX(-1); /* flip horizontally */
}

/* Individual speeds and delays */
.fish:nth-child(1) { top: 20%; animation-duration: 20s, 1s; animation-delay: 0s, 0.2s; }
.fish:nth-child(2) { top: 35%; animation-duration: 45s, 1s; animation-delay: 0s, 0.3s; }
.fish:nth-child(3) { top: 50%; animation-duration: 60s, 1.1s; animation-delay: 0s, 0.1s; }
.fish:nth-child(4) { top: 70%; animation-duration: 50s, 1s; animation-delay: 0s, 0.4s; }
.fish:nth-child(5) { top: 25%; animation-duration: 45s, 0.9s; animation-delay: 0s, 0.2s; }
.fish:nth-child(6) { top: 40%; animation-duration: 70s, 1.2s; animation-delay: 0s, 0.5s; }

/* Waves Parallax */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: url(assets/img/parallax/wave.png);
  background-size: 1000px 80px;
  animation: animate 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1s);
  z-index: 3;
}


.wave#wave1
{
    z-index: 3;
    opacity: 1;
    background-position-x: 400px;
}
.wave#wave2
{
    z-index: 2;
    opacity: 0.5;
    background-position-x: 300px;
}
.wave#wave3
{
    z-index: 1;
    opacity: 0.2;
    background-position-x: 200px;
}
.wave#wave4
{
    z-index: 2;
    opacity: 0.7;
    background-position-x: 100px;
}

@keyframes animate
{
    0%,100%
    {
        transform: translateY(0px);
    }
    50%
    {
        transform: translateY(10px);
    }
}

.about.section {
  background: #fff;
  padding: 100px 0;
  position: relative;
  z-index: 999 !important; 
  margin-top: -5px; 
  padding-top: 100px;
}

.about h2 span {
  color: #00D4FF;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #E8F4FD;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #0F5996;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 575.98px) {
  .about .strategic-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px !important;
    width: 100%;
  }

  .about .strategic-stats .stat-box {
    min-width: 0;
    width: 100%;
    padding: 14px 8px;
    align-items: center;
  }

  .about .strategic-stats .stat-number {
    font-size: 1.75rem;
  }

  .about .strategic-stats .stat-label {
    font-size: 0.68rem;
    line-height: 1.2;
    letter-spacing: 0.7px;
    text-align: center;
  }
}

.value-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.value-card .card-icon {
  font-size: 2.5rem;
  color: #00D4FF;
  margin-bottom: 15px;
}

.image-stack {
  position: relative;
}

.image-stack-item {
  width: 80%;
  transition: all 0.3s ease;
}

/* Wisma = lapisan hadapan, absolute (tidak ambil ruang flow) */
.image-stack-item-top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

/* GM = dalam normal flow → menentukan tinggi container, jadi signature
   sentiasa duduk di bawah GM (tiada lagi tindih). Offset kanan-bawah
   kekalkan kesan overlap dengan Wisma. */
.image-stack-item-bottom {
  position: relative;
  margin-top: 60px;
  margin-left: 20%;
  z-index: 1;
}

.about .gm-signature-block {
  width: 80%;
  margin-top: 0.5rem;
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 575.98px) {
  .about .image-stack {
    display: grid;
    gap: 16px;
    height: auto !important;
    margin-top: 2rem;
  }

  .about .image-stack .image-stack-item {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .about .image-stack .image-stack-item:hover {
    transform: none;
  }

  .about .gm-signature-block {
    width: 100%;
    margin-top: 1rem;
    margin-left: 0;
    margin-right: 0;
    padding-top: 1rem;
  }
}

.program-image-wrapper {
  width: 100%;
  /* height: 200px; */
  min-height: 280px;
  max-height: 280px;
  overflow: hidden;
  border-radius: 8px;
}

.program-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-item .row {
  flex: 1;
  align-items: stretch;
}

.program-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Elak title h3 masuk bawah .program-badge (position:absolute, right:15px) */
.featured-programs .program-content h3 {
  padding-right: 110px;
  text-transform: capitalize;
}

/* Pagination Siaran Terkini */
.siaran-pg-hidden {
  display: none !important;
}

#siaran-pagination .page-link {
  color: #0F5996;
  border-color: #dee2e6;
  border-radius: 6px;
  min-width: 38px;
  text-align: center;
  font-weight: 500;
}

#siaran-pagination .page-item.active .page-link {
  background-color: #0F5996;
  border-color: #0F5996;
  color: #fff;
}

#siaran-pagination .page-item.disabled .page-link {
  color: #adb5bd;
}

#siaran-pagination .page-link:hover:not(.active) {
  background-color: #e8f0fb;
  border-color: #0F5996;
  color: #0F5996;
}

section.about,
section.featured-programs,
#featured-programs,
.section-bg-same {
  background: #ffffff !important;  
  margin: 0;                        
  text-decoration: none !important;
  padding-top: 60px;                
  padding-bottom: 60px;
}

.about.section {
  background: #ffffff !important;
  margin: 0;
}

.value-card,
.stat-box,
.program-item,
.card {
  background: #ffffff;
}

body, .site-wrapper, main {
  background-color: #ffffff;
}

a, 
a:hover, 
a:focus, 
a:visited {
  text-decoration: none !important;
}

/* ===============================
   SEMAK STATUS (ISOLATED)
   =============================== */



.semak-section {
  background: #efefef;
  padding: 90px 20px 80px; 
  position: relative;
  z-index: 10;
}

.semak-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Text */
.semak-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.semak-subtitle {
  font-size: 16px;
  margin-bottom: 40px;
}

/* Form layout */
.semak-form {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.semak-group {
  flex: 1;
  min-width: 250px;
}

.semak-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Inputs (scoped) */
.semak-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #000;
  font-size: 15px;
  outline: none;
}

.semak-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #000;
  font-size: 15px;
  outline: none;
}


/* Button */
.semak-btn {
  height: 50px;
  padding: 0 32px;
  border: none;
  border-radius: 30px;
  background: #0F5996;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
}

.semak-btn a {
  color: #fff;             
  /* text-decoration: none;
  display: block;
  width: 100%;
  height: 100%; */
}


.semak-btn:hover {
  background: #0A1628;
}

/* Mobile */
@media (max-width: 768px) {
  .semak-form {
    flex-direction: column;
    align-items: stretch;
  }

  .semak-btn {
    width: 100%;
  }
}

.facility-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;

  display: flex;
  align-items: flex-start;
  gap: 14px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.facility-item i {
  font-size: 26px;
  color: #0F5996;
  margin-top: 4px;
}

.facility-item h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.facility-item p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #555;
}

.facility-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.text-only .facility-item {
  align-items: center;
}

.text-only .facility-item p {
  margin: 0;
}

/* i-Akuakultur Table */

.had-pinjaman-table {
  width: 100%;
  max-width: 800px;
  border-collapse: collapse;
  border: 1px solid #000;
  font-size: 16px;
}

.had-pinjaman-table th,
.had-pinjaman-table td {
  border: 1px solid #000;
  padding: 14px 16px;
}

.had-pinjaman-table th {
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
}

.had-pinjaman-table td:first-child {
  text-align: left;
}

.had-pinjaman-table td:last-child {
  text-align: center;
  white-space: nowrap;
}

/* ============================
   HERO WELCOME TEXT
   ============================ */
.hero-welcome {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  text-align: center;
  pointer-events: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 90%;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

@media (max-width: 576px) {
  .hero-welcome {
    gap: 14px;
    padding: 0 1.75rem;
  }

  .hero-welcome-sub   { margin: 0; }
  .hero-welcome-title { margin: 0; }
  .hero-welcome-divider { margin: 0 auto; }
  .hero-welcome-tagline { margin: 0; letter-spacing: 3px; }
}

.hero-welcome-sub {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: 1px;
  text-shadow:
    0 0 12px rgba(30, 100, 180, 0.9),
    0 0 30px rgba(20, 70, 150, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-welcome-title {
  font-family: 'Lobster Two', cursive;
  font-style: italic;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: 3px;
  line-height: 1;
  text-shadow:
    0 0 15px rgba(30, 110, 190, 0.95),
    0 0 40px rgba(20, 80, 160, 0.8),
    0 0 80px rgba(10, 50, 130, 0.5),
    0 3px 8px rgba(0, 0, 0, 0.6);
}

.hero-welcome-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 55%;
  margin: 6px auto 0;
}

.hero-welcome-divider::before,
.hero-welcome-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
  box-shadow: 0 0 6px rgba(30, 100, 180, 0.7);
}

.hero-welcome-divider span {
  font-size: 1.3rem;
  color: #ffffff;
  opacity: 1;
  text-shadow:
    0 0 8px rgba(30, 110, 190, 1),
    0 0 20px rgba(20, 80, 165, 0.9),
    0 0 40px rgba(10, 55, 140, 0.7);
  flex-shrink: 0;
}

.hero-welcome-tagline {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(0.7rem, 1.8vw, 1.1rem);
  font-weight: 600;
  color: #ffffff;
  margin: 10px 0 0 0;
  letter-spacing: 6px;
  text-shadow:
    0 0 10px rgba(30, 100, 180, 0.8),
    0 0 25px rgba(20, 70, 150, 0.5),
    0 2px 5px rgba(0, 0, 0, 0.5);
}


/* Event-tag: kelas bermakna untuk section Sebutharga/Tender */
.events .event-card .event-tag.sebutharga {
  background-color: #e3f2fd;
  color: #0d47a1;
}

.events .event-card .event-tag.sewa {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.events .event-card .event-tag.keputusan {
  background-color: #ffebee;
  color: #c62828;
}

.events .event-card .event-tag.tender {
  background-color: #fff3e0;
  color: #e65100;
}


/* ============================
   INISIATIF KEBUN DAPUR — KAD OBJEKTIF
   (main.css cuma scope kad ".life-categories .category-card" bawah
   ".students-life"; halaman ini guna ".campus-facilities" jadi kad asal
   terpapar tanpa gaya — kad jadi teks biasa sahaja. Tambah scope sendiri
   di sini supaya design konsisten dgn katc.html/perikanan.html/pihs.html)
   ============================ */
.campus-facilities .life-categories .category-card {
  text-align: center;
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.campus-facilities .life-categories .category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.campus-facilities .life-categories .category-card:hover .icon-container {
  background-color: var(--accent-color);
}

.campus-facilities .life-categories .category-card:hover .icon-container i {
  color: var(--contrast-color);
}

.campus-facilities .life-categories .category-card .icon-container {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.campus-facilities .life-categories .category-card .icon-container i {
  font-size: 30px;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.campus-facilities .life-categories .category-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.campus-facilities .life-categories .category-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

@media (max-width: 768px) {
  .campus-facilities .life-categories .category-card {
    margin-bottom: 15px;
  }
}


/* ============================
   INISIATIF KEBUN DAPUR — LENCANA "DAERAH TUMPUAN"
   (gantikan teks polos dgn kad pill bermaklumat: ikon + label + nilai)
   ============================ */
.coverage-highlight {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background-color: var(--surface-color);
  border-radius: 50px;
  padding: 10px 28px 10px 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.coverage-highlight .coverage-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverage-highlight .coverage-icon i {
  font-size: 22px;
  color: var(--accent-color);
}

.coverage-highlight .coverage-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.3;
}

.coverage-highlight .coverage-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.coverage-highlight .coverage-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading-color);
}


/* ============================
   INISIATIF KEBUN DAPUR — CTA "BERMINAT MENYERTAI"
   (".cta-wrapper .cta-content" dlm main.css cuma skop bawah ".students-life";
   halaman ini guna ".campus-facilities" jadi CTA terpapar tanpa gaya kotak
   gradient. Tambah skop sendiri di sini, replika design template)
   ============================ */
.campus-facilities .cta-wrapper {
  margin-top: 80px;
}

.campus-facilities .cta-wrapper .cta-content {
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), purple 60%));
  border-radius: 15px;
  padding: 50px 40px;
  color: var(--contrast-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.campus-facilities .cta-wrapper .cta-content h3 {
  color: var(--contrast-color);
  margin-bottom: 15px;
  font-size: 2rem;
}

.campus-facilities .cta-wrapper .cta-content p {
  color: color-mix(in srgb, var(--contrast-color), transparent 20%);
  font-size: 1.1rem;
  margin-bottom: 0;
  max-width: 600px;
}

.campus-facilities .cta-wrapper .cta-content .cta-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.campus-facilities .cta-wrapper .cta-content .cta-buttons .btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.campus-facilities .cta-wrapper .cta-content .cta-buttons .btn.btn-primary {
  background-color: var(--contrast-color);
  color: var(--accent-color);
  border: none;
}

.campus-facilities .cta-wrapper .cta-content .cta-buttons .btn.btn-primary:hover {
  background-color: color-mix(in srgb, var(--contrast-color), transparent 10%);
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  .campus-facilities .cta-wrapper .cta-content .cta-buttons {
    justify-content: flex-start;
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .campus-facilities .cta-wrapper .cta-content .cta-buttons {
    flex-direction: column;
  }
}

/* =============================================
   Social Media Sidebar — terapung kanan
   ============================================= */
.social-sidebar {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.social-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  color: #fff;
  font-size: 1.7rem;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Facebook */
.social-sidebar a:nth-child(1) {
  background: #1877F2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}
.social-sidebar a:nth-child(1):hover {
  background: #166FE5;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.55);
}

/* YouTube */
.social-sidebar a:nth-child(2) {
  background: #FF0000;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
}
.social-sidebar a:nth-child(2):hover {
  background: #CC0000;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

/* TikTok */
.social-sidebar a:nth-child(3) {
  background: #010101;
  box-shadow: 0 4px 14px rgba(1, 1, 1, 0.4);
}
.social-sidebar a:nth-child(3):hover {
  background: #333333;
  box-shadow: 0 6px 20px rgba(1, 1, 1, 0.5);
}

.social-sidebar a:hover {
  transform: scale(1.12);
  color: #fff;
}

@media (max-width: 575.98px) {
  .social-sidebar {
    right: 10px;
    gap: 10px;
  }

  .social-sidebar a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0, 35, 102, 0.3);
  }
}

/* Failsafe AOS — dedah kandungan data-aos jika AOS gagal init (elak section
   "hilang" / tajuk tersangkut invisible). Diaktifkan oleh skrip failsafe dalam
   index.html hanya bila AOS benar-benar tidak berjalan; no-op semasa normal. */
html.aos-failsafe [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
