/* ===================================
   GLOBAL STYLES & VARIABLES
   =================================== */

:root {
  --bg-card: #ffffff;
  /* Colors - Eco-Friendly Theme */
  --primary: #466c44; /* Darker sage green for buttons/text */
  --primary-light: #a6c096; /* Lighter green for backgrounds */
  --primary-dark: #2a4a28;
  --secondary: #d6e2cf; /* Very pale green for large elements */
  --secondary-light: #eff4eb; /* Pale background for sections */
  --accent: #5e8f5a; 
  --accent-light: #8cb987;
  
  /* Neutrals */
  --white: #ffffff;
  --off-white: #fafcf8;
  --light-gray: #e9ecef;
  --gray: #7a8278; /* Slightly green tinted gray */
  --dark-gray: #2c362a; /* Darker, slightly green tinted */
  --black: #000000;
  
  /* Semantic Colors */
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Outfit', 'Segoe UI', sans-serif; /* Using a cleaner sans-serif for headings */
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem; /* Increased for pill shapes */
  --radius-pill: 50px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(70, 108, 68, 0.05);
  --shadow-md: 0 4px 12px rgba(70, 108, 68, 0.1);
  --shadow-lg: 0 10px 30px rgba(70, 108, 68, 0.15);
  --shadow-xl: 0 20px 40px rgba(70, 108, 68, 0.2);
  
  /* Transitions */
  --transition: all 0.8s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--bg-card);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1200px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.8s ease;
}

.navbar.scrolled {
  position: fixed;
  top: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem 0.5rem 2rem; /* Adjusted for the pill shape */
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1;
}

.brand-text span {
  font-weight: 400;
  margin-left: 2px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: space-between;
  margin-left: var(--spacing-xl);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--dark-gray);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--bg-card);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
  border-radius: 12px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.05);
  z-index: 100;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border-left: 1px solid rgba(0,0,0,0.05);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 5px);
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  border-bottom: none;
  margin-bottom: 2px;
}

.dropdown-menu li:last-child {
  margin-bottom: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: var(--dark-gray);
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding-left: 20px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Navbar Expanding Search */
.nav-search-container {
  display: flex;
  align-items: center;
  position: relative;
  background: transparent;
  border-radius: var(--radius-pill);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  margin-right: -10px; /* Slight offset to keep it balanced */
}

.nav-search-container.active {
  background: var(--off-white);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.nav-search-input {
  width: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--dark-gray);
  outline: none;
  font-size: 0.95rem;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s;
  opacity: 0;
}

.nav-search-container.active .nav-search-input {
  width: 180px;
  padding: 8px 10px 8px 15px;
  opacity: 1;
}

.nav-search-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  transition: color 0.3s;
}

.nav-search-icon:hover {
  color: var(--primary);
}





.btn-daftar {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius-pill);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-daftar:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 80px; /* Offset for navbar */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Solid fallback color before JS loads the dynamic image */
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: var(--white);
  padding: var(--spacing-xxl) 0;
  width: 100%;
}

.hero-text-wrapper {
  max-width: 600px;
  animation: fadeInLeft 1s ease backwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: var(--primary);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-start;
  flex-wrap: wrap;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===================================
   SEARCH COMPONENT
   =================================== */

.search-overlap-container {
  margin-top: -40px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.search-bar {
  background: var(--primary-light);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  padding: 10px 20px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 900px;
}

.search-input-group {
  flex: 1;
  padding: 0 15px;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--dark-gray);
  font-size: 1rem;
  padding: 10px 0;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-left: 15px;
}

.icon-link {
  color: var(--dark-gray);
  display: flex;
  align-items: center;
}

.icon-link:hover {
  color: var(--primary-dark);
}

.badge-icon {
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-search {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: var(--radius-pill);
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(70, 108, 68, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(70, 108, 68, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-large {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.1rem;
}

.btn-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all 0.8s ease;
}

.btn-link:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

/* ===================================
   SECTIONS
   =================================== */

.section {
  padding: var(--spacing-xxl) 0;
}

.section-header {
  text-align: left;
  margin-bottom: var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.section-header.center {
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.section-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--dark-gray);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
}

/* ===================================
   WELCOME SECTION
   =================================== */

.section-welcome {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.welcome-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.welcome-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 20px;
}

.welcome-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.welcome-badge {
  position: absolute;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
  z-index: 2;
}

.badge-top {
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  flex-direction: column;
  gap: 5px;
}

.badge-top span {
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-bottom {
  bottom: -20px;
  right: 20px;
  width: 70px;
  height: 70px;
  background: #e27d60; /* A contrasting earthy orange like in mockup */
}

.welcome-text-wrapper h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark-gray);
  margin-bottom: var(--spacing-md);
  font-weight: 800;
  line-height: 1.2;
}

.welcome-text-wrapper p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
}

.welcome-action {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

/* ===================================
   FEATURES SECTION
   =================================== */

.section-features {
  background: var(--secondary-light); /* Light pale green background */
  padding: var(--spacing-xxl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(70, 108, 68, 0.1);
}

.feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.feature-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.feature-content h3 {
  font-family: var(--font-heading);
  color: var(--dark-gray);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.feature-content p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all 0.8s ease;
  align-self: flex-start;
}

.btn-outline-primary:hover {
  background: var(--bg-card);
  color: var(--primary);
}

/* ===================================
   NEWS SECTION
   =================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 95, 63, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.news-card:hover::before {
  opacity: 1;
}

.news-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover img {
  transform: scale(1.08);
}

.news-card-content {
  padding: var(--spacing-lg);
  position: relative;
}

.news-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 6px var(--spacing-md);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
  box-shadow: 0 2px 10px rgba(45, 95, 63, 0.3);
}

.news-card h3 {
  font-size: 1.25rem;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.news-card:hover h3 {
  color: var(--primary);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--light-gray);
}

.news-excerpt {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===================================
   AGENDA SECTION
   =================================== */

.section-agenda {
  background: var(--off-white);
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.agenda-card {
  background: var(--bg-card);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
}

.agenda-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(10px);
}

.agenda-date {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 80px;
}

.agenda-date-day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.agenda-date-month {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
}

.agenda-content {
  flex: 1;
}

.agenda-content h3 {
  font-size: 1.3rem;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.agenda-meta {
  display: flex;
  gap: var(--spacing-md);
  color: var(--gray);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.agenda-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.agenda-status {
  padding: 4px var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.agenda-status.upcoming {
  background: var(--info);
  color: var(--white);
}

.agenda-status.ongoing {
  background: var(--success);
  color: var(--white);
}

/* ===================================
   CTA SECTION
   =================================== */

.section-cta {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

.cta-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xxl);
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.cta-content h2 {
  color: var(--dark-gray);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.cta-content p {
  color: var(--dark-gray);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  color: var(--accent);
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  display: inline-block;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-top: var(--spacing-md);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.8);
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  margin: var(--spacing-xs) 0;
  font-size: 0.9rem;
}

/* ===================================
   LOADING STATES
   =================================== */

.skeleton {
  background: linear-gradient(90deg, var(--light-gray) 25%, #f0f0f0 50%, var(--light-gray) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-image {
  width: 100%;
  height: 220px;
  margin-bottom: var(--spacing-md);
}

.skeleton-text {
  height: 20px;
  margin-bottom: var(--spacing-sm);
}

.skeleton-text.short {
  width: 60%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* Hide mobile top bar on desktop */
.mobile-top-bar { display: none; }


/* ==========================================================================
   RIGHT SIDEBAR
   ========================================================================== */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.right-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: 280px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 1060;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.right-sidebar.active {
  right: 0;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-header h3 {
  font-size: 1.2rem;
  color: var(--dark-gray);
  margin: 0;
}

.close-sidebar {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 5px;
}

.sidebar-content {
  padding: 20px;
  overflow-y: auto;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 15px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark-gray);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.sidebar-links a:hover {
  background: rgba(45, 95, 63, 0.05);
  color: var(--primary);
}

.sidebar-links svg {
  color: var(--primary);
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */
body.dark-mode {
  --bg-card: #1e1e1e;
  --off-white: #1e1e1e;
  background-color: #121212;
  color: var(--dark-gray);
}

body.dark-mode .card,
body.dark-mode .nav-menu-wrapper,
body.dark-mode .mobile-bottom-nav,
body.dark-mode .right-sidebar,
body.dark-mode .bottom-dropdown-menu,
body.dark-mode .navbar {
  background: var(--off-white) !important;
  color: var(--dark-gray);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .mobile-search-input {
  background: rgba(255, 255, 255, 0.05);
  color: var(--dark-gray);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .mobile-search-input:focus {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .btn-outline {
  border-color: var(--dark-gray);
  color: var(--dark-gray);
}

body.dark-mode .footer {
  background: #0a0a0a;
}

/* ==========================================================================
   CSS-ONLY INTERACTIVITY (Bypassing CSP)
   ========================================================================== */

/* 1. Sidebar Toggle */
#sidebar-toggle:checked ~ .right-sidebar {
  transform: translateX(0);
}

#sidebar-toggle:checked ~ .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

/* 2. Dark Mode Toggle (Using :has) */
body:has(#dark-mode-toggle:checked) {
  --bg-card: #1e1e1e;
  --off-white: #1e1e1e;
  --light-gray: #2d2d2d;
  --gray: #a0aab2;
  --dark-gray: #e0e0e0;
  --primary-light: #2a3a29;
  --secondary: #1a2a19;
  --secondary-light: #161e15;
  background-color: #121212;
  color: var(--dark-gray);
}

body:has(#dark-mode-toggle:checked) .card,
body:has(#dark-mode-toggle:checked) .nav-menu-wrapper,
body:has(#dark-mode-toggle:checked) .mobile-bottom-nav,
body:has(#dark-mode-toggle:checked) .right-sidebar,
body:has(#dark-mode-toggle:checked) .bottom-dropdown-menu,
body:has(#dark-mode-toggle:checked) .navbar {
  background: var(--off-white) !important;
  color: var(--dark-gray);
  border-color: rgba(255, 255, 255, 0.1);
}

body:has(#dark-mode-toggle:checked) .mobile-search-input {
  background: rgba(255, 255, 255, 0.05);
  color: var(--dark-gray);
  border-color: rgba(255, 255, 255, 0.1);
}

body:has(#dark-mode-toggle:checked) .mobile-search-input:focus {
  background: rgba(255, 255, 255, 0.1);
}

body:has(#dark-mode-toggle:checked) .btn-outline {
  border-color: var(--dark-gray);
  color: var(--dark-gray);
}

body:has(#dark-mode-toggle:checked) .footer {
  background: #0a0a0a;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* ==========================================================================
   LYRICS CARDS (Mars & Hymne)
   ========================================================================== */
.lyrics-card {
  background: white;
  padding: 50px 40px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.03);
}

.lyrics-text {
  color: var(--dark-gray);
  font-size: 1.15rem;
  line-height: 2;
  font-style: italic;
  white-space: pre-line;
}
body:has(#dark-mode-toggle:checked) .lyrics-card {
  background: var(--off-white) !important;
  border-color: rgba(255, 255, 255, 0.1);
}

body:has(#dark-mode-toggle:checked) .lyrics-text {
  color: var(--dark-gray);
}

/* Global Text Colors for Dark Mode to override inline styles */
body:has(#dark-mode-toggle:checked) h1,
body:has(#dark-mode-toggle:checked) h2,
body:has(#dark-mode-toggle:checked) h3,
body:has(#dark-mode-toggle:checked) h4,
body:has(#dark-mode-toggle:checked) h5,
body:has(#dark-mode-toggle:checked) h6 {
  color: #e0e0e0 !important;
}

body:has(#dark-mode-toggle:checked) p,
body:has(#dark-mode-toggle:checked) span,
body:has(#dark-mode-toggle:checked) div,
body:has(#dark-mode-toggle:checked) a {
  /* Only override if they are explicitly colored with dark variables in inline styles */
}

/* Make sure all SVG icons inside buttons and cards are visible */
body:has(#dark-mode-toggle:checked) .icon-btn svg,
body:has(#dark-mode-toggle:checked) .bottom-nav-item svg {
  stroke: #e0e0e0;
}

body:has(#dark-mode-toggle:checked) .card,
body:has(#dark-mode-toggle:checked) .news-card,
body:has(#dark-mode-toggle:checked) .form-control {
  background: var(--off-white) !important;
  color: var(--dark-gray) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   MODERN SIDEBAR REDESIGN
   ========================================================================== */

/* Expand sidebar width and structure */
.right-sidebar {
    width: 90% !important;
    max-width: 400px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

/* Watermark */
.sidebar-watermark {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    color: var(--primary);
}
.sidebar-watermark svg {
    width: 100%;
    height: 100%;
}

/* Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 25px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-brand img {
    height: 35px;
    width: auto;
    object-fit: contain;
}
.sidebar-brand span {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-dark);
    line-height: 1.1;
}
.sidebar-brand small {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--gray);
}
.close-sidebar {
    background: var(--secondary-light);
    color: var(--primary-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.8s ease;
    padding: 0 !important;
}
.close-sidebar:hover {
    background: #ffebee;
    color: #d32f2f;
}

/* Content Area */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    position: relative;
    z-index: 1;
}

/* Menu Grid */
.sidebar-menu-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-menu-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.8s ease;
    border: 1px solid transparent;
}
.sidebar-menu-card:hover {
    background: var(--secondary-light);
    border-color: rgba(0,0,0,0.02);
    transform: translateX(5px);
}

.smc-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.8s ease;
}
.sidebar-menu-card:hover .smc-icon {
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.smc-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.smc-text h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-gray);
    letter-spacing: 0.5px;
}
.smc-text p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer CTA */
.sidebar-footer {
    padding: 25px;
    border-top: 1px solid rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
    background: var(--bg-card);
}
.sidebar-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #111424; /* Very dark blue/black like the screenshot */
    color: #ffffff !important;
    padding: 18px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.8s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.sidebar-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    background: #1a1e36;
}

/* Dark Mode Support for Sidebar */
body:has(#dark-mode-toggle:checked) .sidebar-brand span { color: var(--dark-gray); }
body:has(#dark-mode-toggle:checked) .close-sidebar { background: rgba(255,255,255,0.05); color: var(--dark-gray); }
body:has(#dark-mode-toggle:checked) .sidebar-watermark { opacity: 0.01; color: var(--white); }
body:has(#dark-mode-toggle:checked) .sidebar-header,
body:has(#dark-mode-toggle:checked) .sidebar-footer { border-color: rgba(255,255,255,0.05); }
body:has(#dark-mode-toggle:checked) .sidebar-menu-card:hover { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.05); }
body:has(#dark-mode-toggle:checked) .smc-icon { background: rgba(255,255,255,0.05); color: var(--primary); }
body:has(#dark-mode-toggle:checked) .sidebar-menu-card:hover .smc-icon { background: rgba(255,255,255,0.1); }
body:has(#dark-mode-toggle:checked) .smc-text h4 { color: #ffffff !important; }
body:has(#dark-mode-toggle:checked) .sidebar-cta-btn { background: var(--primary); color: #ffffff !important; }

@media (max-width: 768px) {
  .nav-search-container.active .nav-search-input {
    width: 120px;
  }
}


/* Mobile bottom nav hidden by default on desktop */
.mobile-bottom-nav { display: none; }


/* Styling for dynamically injected Rich Text Content */
.dynamic-page-wrapper {
    max-width: 900px;
    margin: -80px auto 50px;
    background: var(--bg-card);
    padding: 60px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

body:has(#dark-mode-toggle:checked) .dynamic-page-wrapper {
    background: var(--dark-bg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

.rich-text-content {
    line-height: 1.8;
    color: var(--dark-gray);
    font-size: 1.15rem;
}

.rich-text-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.rich-text-content h1, 
.rich-text-content h2, 
.rich-text-content h3 {
    color: var(--primary-dark);
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 700;
}

.rich-text-content ul, 
.rich-text-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.rich-text-content li {
    margin-bottom: 10px;
}

.rich-text-content strong {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .dynamic-page-wrapper {
        padding: 30px 20px;
        margin: -40px auto 40px;
    }
    .rich-text-content {
        font-size: 1.05rem;
    }
}

/* Berita Layout Redesign */
.news-layout-wrapper {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 992px) {
  .news-layout-wrapper {
    grid-template-columns: 1fr;
  }
}

.horizontal-news-card {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  position: relative;
  transition: all 0.3s ease;
  padding: 15px;
  gap: 20px;
  align-items: center;
  cursor: pointer;
}

.horizontal-news-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.horizontal-news-card .badge-number {
  background: var(--accent);
  color: white;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.horizontal-news-card img {
  width: 250px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

  @media (max-width: 768px) {
    .horizontal-news-card {
      padding: 10px;
      gap: 12px;
      align-items: center;
    }
    .horizontal-news-card img {
      width: 120px;
      height: 90px;
      border-radius: 8px;
    }
    .horizontal-news-card .badge-number {
      font-size: 0.9rem;
      padding: 6px 10px;
    }
    .horizontal-news-content h3 {
      font-size: 0.9rem;
      margin-bottom: 5px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .horizontal-news-content p {
      display: none; /* Hide excerpt on mobile for sideways layout */
    }
    .horizontal-news-content .news-meta {
      margin-top: 5px !important;
      font-size: 0.75rem;
    }
    .horizontal-news-content .news-category {
      font-size: 0.65rem;
      padding: 2px 6px;
      margin-bottom: 4px !important;
    }
  }

.horizontal-news-content {
  flex-grow: 1;
}

.horizontal-news-content h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.horizontal-news-content p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

.news-sidebar-widget {
  background: var(--primary-dark);
  border-radius: var(--radius-xl);
  padding: 25px;
  color: white;
  position: sticky;
  top: 100px;
}

.news-sidebar-widget.yellow-header {
  background: var(--bg-card);
  border: 1px solid #eee;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-sidebar-widget.yellow-header .widget-header {
  background: var(--accent);
  color: white;
  padding: 20px 25px;
  margin-bottom: 0;
  border-radius: 0;
}

.news-sidebar-widget.yellow-header .widget-content {
  padding: 20px 25px;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 25px;
}

.widget-header-icon {
  background: var(--accent);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.news-sidebar-widget.yellow-header .widget-header-icon {
  background: rgba(255,255,255,0.2);
}

.widget-news-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: opacity 0.3s;
}

.widget-news-item:hover {
  opacity: 0.8;
}

.news-sidebar-widget.yellow-header .widget-news-item {
  border-bottom: 1px solid #eee;
  color: var(--dark-gray);
}

.widget-news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.widget-news-item img {
  width: 70px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.widget-news-item h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  line-height: 1.4;
  font-weight: 600;
}

.widget-news-item .date {
  font-size: 0.8rem;
  opacity: 0.7;
}

.widget-view-all {
  display: block;
  text-align: center;
  margin-top: 25px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.widget-view-all:hover {
  opacity: 1;
}

/* Detail Page Hero */
.news-detail-hero {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 30px;
}

.news-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-detail-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

.news-detail-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  z-index: 2;
  color: white;
}

.news-detail-hero-content h1 {
  color: white;
  font-size: 2.2rem;
  line-height: 1.3;
  margin-top: 15px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .news-detail-hero {
    height: 300px;
  }
  .news-detail-hero-content {
    padding: 20px;
  }
  .news-detail-hero-content h1 {
    font-size: 1.5rem;
  }
}


/* Mobile grid override for HP mode */
@media (max-width: 768px) {
  /* Make programs stacked 1 column on mobile to prevent squishing */
  .features-grid,
  #programGridAll {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  /* Make news-grid stacked on mobile */
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  /* Make news-card horizontal on mobile */
  .news-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 10px !important;
  }
  
  .news-card::before {
    display: none !important;
  }
  
  .news-card img {
    width: 120px !important;
    height: 100px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }
  
  .news-card-content {
    padding: 0 !important;
    flex-grow: 1 !important;
  }
  
  .news-category {
    font-size: 0.65rem !important;
    padding: 3px 6px !important;
    margin-bottom: 5px !important;
    display: inline-block !important;
  }
  
  .news-card h3 {
    font-size: 0.9rem !important;
    margin-bottom: 5px !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .news-excerpt {
    display: none !important;
  }
  
  .news-meta {
    font-size: 0.7rem !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 5px !important;
  }
  
  /* Programs mobile adjustments */
  .feature-card img {
    height: 180px !important; /* Larger image for 1 column */
  }
  
  .feature-content {
    padding: 15px !important;
  }
  
  .feature-card h3 {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
  }
  
  .feature-card p {
    display: block !important; /* Show excerpt again since it's 1 column */
    font-size: 0.9rem !important;
  }
}

