@charset "UTF-8";

/* ==========================================================================
   1. GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
  --navy-main: #001D4A;
  --navy-dark: #000F26;
  --johor-crimson: #D90429;
  --johor-gold: #C5A059;
  --light-bg: #F4F6F9;
  
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

/* JANGAN letak overflow: hidden pada html/body supaya sticky header berfungsi */
html, body {
  font-family: var(--font-main);
  background-color: var(--light-bg);
  color: #1E293B;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Guna wrapper khas ini jika mahu halang scroll ke kanan tanpa rosakkan sticky */
main, .main-content {
  overflow-x: hidden;
  width: 100%;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (FIXED STICKY & COMFORTABLE MOBILE PADDING)
   ========================================================================== */
.site-header {
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999 !important; /* Memastikan header sentiasa berada di atas sekali */
}

.site-header .container-fluid {
  max-width: 100% !important;
}

.header-logo {
  max-height: 40px;
  width: auto;
  transition: all 0.2s ease;
}

.nav-link-item {
  color: #1E293B;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: var(--navy-main);
}

/* iOS Segmented Control Pill Style */
.ios-segmented-control {
  display: inline-flex;
  align-items: center;
  background-color: #e2e8f0;
  padding: 3px;
  border-radius: 30px;
  user-select: none;
}

.ios-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  line-height: 1;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.ios-pill-btn:hover {
  color: var(--navy-main);
}

.ios-pill-btn.active {
  background-color: #ffffff;
  color: var(--navy-main) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* --- Khas untuk Skrin Telefon Bimbit (Mobile Header Visual Fix) --- */
@media (max-width: 576px) {
  .site-header .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .header-logo {
    max-height: 34px !important; /* Besarkan sikit logo supaya tidak nampak terlalu kerdil */
  }

  .mobile-header-actions {
    gap: 8px !important; /* Longgarkan ruang antara butang di mobile */
  }

  .ios-segmented-control {
    padding: 3px !important;
  }

  .ios-pill-btn {
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
  }

  .btn-header-search {
    width: 36px !important;
    height: 36px !important;
  }

  .btn-mobile-toggle {
    font-size: 1.75rem !important;
    padding: 0 4px !important;
  }
}

/* ==========================================================================
   3. TYPOGRAPHY & UTILITY CLASSES
   ========================================================================== */
.font-heading { font-family: var(--font-heading); }
.tracking-widest { letter-spacing: 0.15em; }
.tracking-wider { letter-spacing: 0.08em; }
.fs-7 { font-size: 0.85rem; }
.fs-8 { font-size: 0.75rem; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hover-gold:hover { color: var(--johor-gold) !important; }
.hover-primary:hover { color: var(--navy-main) !important; }
.hover-white:hover { color: #ffffff !important; }

/* ==========================================================================
   4. BADGES & ACCENTS
   ========================================================================== */
.text-gold { color: var(--johor-gold) !important; }

.badge-crimson {
  background: var(--johor-crimson);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 30px;
}

.badge-accent-gold {
  background: rgba(197, 160, 89, 0.2);
  color: var(--johor-gold);
  border: 1px solid var(--johor-gold);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
}

.badge-live-video {
  background: rgba(217, 4, 41, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 30px;
}

.badge-category-mini {
  background: #E2E8F0;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-bento-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy-main);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ==========================================================================
   5. HERO & SHOWCASE GRID
   ========================================================================== */
.left-editorial-panel {
  background: linear-gradient(145deg, var(--navy-main), var(--navy-dark));
}

.johor-motto-box {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--johor-gold);
}

.hero-main-frame {
  min-height: 520px;
  background-color: var(--navy-dark);
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s ease;
}

.hero-main-frame:hover .hero-bg-img {
  transform: scale(1.03);
}

.hero-vignette-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 5, 16, 0.98) 0%, rgba(0, 10, 28, 0.85) 60%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 2;
}

.hero-title-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2.3rem);
  line-height: 1.25;
}

p.hero-lead-summary, 
.hero-vignette-overlay p,
.hero-content-wrapper p {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 5px #000000 !important;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
}

.btn-read-hero {
  color: var(--johor-gold);
  font-weight: 700;
  text-decoration: none;
}

.btn-read-hero:hover {
  color: #ffffff;
}

/* ==========================================================================
   6. BENTO CARDS & GALLERY
   ========================================================================== */
.bento-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}

.bento-img-container {
  height: 190px;
  overflow: hidden;
}

.video-cinema-section {
  background-color: #0f172a;
}

.cinema-thumb-wrapper {
  height: 180px;
  overflow: hidden;
}

.cinema-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--johor-crimson);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   7. SIDEBAR & ARTICLE PAGE
   ========================================================================== */
.sidebar-sticky {
  top: 95px !important;
  z-index: 1010 !important;
}

.sidebar-card-header {
  background-color: #001D4A !important;
  border-bottom: 2px solid var(--johor-gold) !important;
}

.maju-johor-banner-box {
  background: linear-gradient(145deg, #001D4A, #000F26) !important;
  border: 1px solid rgba(197, 160, 89, 0.4) !important;
}

.article-body-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   8. FOOTER SECTION
   ========================================================================== */
.site-footer {
  background-color: #030712;
  border-top: 2px solid var(--johor-gold);
}

.btn-outline-custom {
  border: 2px solid var(--navy-main);
  color: var(--navy-main);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline-custom:hover {
  background: var(--navy-main);
  color: #ffffff;
}