/* ============================================================
   Sistem Informasi Pariwisata Jayawijaya
   Main Stylesheet
   ============================================================ */

:root {
  --primary: #1a7a4c;
  --primary-dark: #0f5c38;
  --primary-light: #27a868;
  --primary-rgb: 26, 122, 76;
  --primary-dark-rgb: 15, 92, 56;
  --accent: #e8831a;
  --accent-light: #f5a623;
  --dark: #1c2a2e;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,.15), 0 4px 6px -4px rgba(0,0,0,.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all .3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 700;
}
.section-title p {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-title .line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ---------------- HEADER / NAVBAR ---------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
}
.logo-icon.has-logo {
  background: transparent;
  border-radius: 0;
}
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--dark); }
.logo-text span { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-menu a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--gray-100);
  color: var(--primary);
}
.nav-cta {
  background: var(--accent) !important;
  color: white !important;
}
.nav-cta:hover { background: var(--accent-light) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(var(--primary-dark-rgb), .85), rgba(var(--primary-rgb), .75)),
              url('https://coresg-normal.trae.ai/api/ide/v1/text_to_image?prompt=Baliem%20valley%20Jayawijaya%20Papua%20mountain%20landscape%20green%20misty%20aerial%20view%20stunning%20nature&image_size=landscape_16_9') center/cover no-repeat;
  color: white;
  overflow: hidden;
}
/* Hero slider */
.hero-slider {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .9s ease-in-out;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--primary-dark-rgb), .85), rgba(var(--primary-rgb), .75));
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: white;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}
.hero-nav:hover { background: rgba(255,255,255,.35); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.hero-dot.active { background: white; width: 32px; border-radius: 6px; }
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .9rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.3);
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent-light); }
.hero p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  opacity: .95;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: white; border: 2px solid white; }
.btn-outline:hover { background: white; color: var(--primary); }
.btn-dark { background: var(--primary); color: white; }
.btn-dark:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ---------------- CATEGORY CARDS ---------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: -70px;
  position: relative;
  z-index: 10;
}
.category-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.category-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}
.category-card h3 { font-size: 1.05rem; color: var(--dark); font-weight: 600; }
.category-card .count { font-size: .85rem; color: var(--gray-500); margin-top: 4px; }

/* ---------------- STATS ---------------- */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
}
.stats-section .section-title h2,
.stats-section .section-title p { color: white; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}
.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  transition: var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,.18); transform: translateY(-4px); }
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: 6px;
}
.stat-label { font-size: .95rem; opacity: .95; }

/* ---------------- DESTINATIONS ---------------- */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.destination-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.destination-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.destination-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.destination-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.destination-card:hover .destination-image img { transform: scale(1.08); }
.destination-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: white;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}
.destination-rating {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,.6);
  color: var(--accent-light);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}
.destination-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.destination-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.destination-body p {
  color: var(--gray-500);
  font-size: .92rem;
  margin-bottom: 14px;
  flex: 1;
}
.destination-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  font-size: .85rem;
  color: var(--gray-500);
}
.destination-meta i { color: var(--primary); margin-right: 5px; }
.destination-visitors { font-weight: 600; color: var(--accent); }

/* ---------------- BENEFITS ---------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.benefit-card {
  background: white;
  padding: 32px 26px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.benefit-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.7rem;
}
.benefit-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--dark); }
.benefit-card p { color: var(--gray-500); font-size: .95rem; }

/* ---------------- PARTNERS ---------------- */
.partners-section { background: var(--gray-100); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  align-items: center;
}
.partner-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 12px;
}
.partner-card h4 { font-size: .95rem; color: var(--dark); }

/* ---------------- FOOTER ---------------- */
.footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-text { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; opacity: .8; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: white; }
.footer h4 { color: white; margin-bottom: 18px; font-size: 1.05rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .92rem; opacity: .8; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-light); opacity: 1; padding-left: 5px; }
.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .92rem;
  opacity: .85;
}
.footer-contact i { color: var(--accent-light); margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: .88rem;
  opacity: .7;
}

/* ---------------- PAGE HEADER ---------------- */
.page-header {
  background: linear-gradient(135deg, rgba(var(--primary-dark-rgb), .9), rgba(var(--primary-rgb), .8)),
              url('https://coresg-normal.trae.ai/api/ide/v1/text_to_image?prompt=Jayawijaya%20Papua%20mountain%20landscape%20panorama%20misty%20forest&image_size=landscape_16_9') center/cover;
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}
.page-header h1 { font-size: 2.6rem; margin-bottom: 12px; }
.page-header p { font-size: 1.1rem; opacity: .9; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: .9rem;
  opacity: .85;
}
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb span { opacity: .6; }

/* ---------------- FILTER BAR ---------------- */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 14px;
}
.search-box {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--gray-300);
  border-radius: 50px;
  font-size: .95rem;
  outline: none;
  transition: var(--transition);
}
.search-box input:focus { border-color: var(--primary); }
.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}

/* ---------------- DETAIL PAGE ---------------- */
.detail-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%);
}
.detail-hero-content {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  color: white;
}
.detail-hero-content .badge {
  display: inline-block;
  background: var(--accent);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .85rem;
  margin-bottom: 12px;
}
.detail-hero-content h1 { font-size: 2.4rem; margin-bottom: 8px; }
.detail-hero-content .meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .95rem;
  opacity: .9;
}
.detail-hero-content .meta i { margin-right: 6px; color: var(--accent-light); }

.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.detail-content h3 {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
}
.detail-content p {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 16px;
}
.info-box {
  background: white;
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.info-box h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--dark);
}
.info-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.info-item:last-child { border-bottom: none; }
.info-icon {
  width: 42px;
  height: 42px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.info-text h4 { font-size: .85rem; color: var(--gray-500); font-weight: 500; margin-bottom: 3px; }
.info-text p { font-size: .95rem; color: var(--dark); font-weight: 500; }

/* ---------------- CONTACT PAGE ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}
.contact-info-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-info-card h3 { margin-bottom: 20px; color: var(--dark); }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-item i {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item h4 { font-size: .9rem; color: var(--gray-500); margin-bottom: 3px; }
.contact-item p { color: var(--dark); font-weight: 500; }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-container iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--gray-700);
  font-size: .92rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  font-size: .95rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: .92rem;
}
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ---------------- ADMIN ---------------- */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--dark);
  color: white;
  padding: 24px 0;
}
.admin-sidebar h2 {
  padding: 0 24px 20px;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar a {
  display: block;
  padding: 12px 24px;
  color: #cbd5e1;
  transition: var(--transition);
  font-size: .92rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: var(--primary);
  color: white;
}
.admin-sidebar a i { margin-right: 10px; }
.admin-main {
  background: var(--gray-50);
  padding: 30px;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.admin-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.admin-card h3 { margin-bottom: 18px; color: var(--dark); }

table {
  width: 100%;
  border-collapse: collapse;
}
table th, table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  font-size: .92rem;
}
table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
}
table tr:hover { background: var(--gray-50); }
.btn-sm {
  padding: 6px 14px;
  font-size: .82rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-edit { background: #dbeafe; color: #1e40af; }
.btn-edit:hover { background: #bfdbfe; }
.btn-delete { background: #fee2e2; color: #991b1b; }
.btn-delete:hover { background: #fecaca; }

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 20px;
}
.login-box {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
}
.login-box h2 {
  text-align: center;
  color: var(--dark);
  margin-bottom: 8px;
}
.login-box .sub {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 28px;
  font-size: .92rem;
}

/* ---------------- ABOUT PAGE ---------------- */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-text h2 { font-size: 2rem; color: var(--dark); margin-bottom: 18px; }
.about-text p { color: var(--gray-700); margin-bottom: 16px; line-height: 1.8; }

/* ---------------- NEWS ---------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .news-image img { transform: scale(1.08); }
.news-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: white;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}
.news-featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: white;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.news-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-date {
  font-size: .82rem;
  color: var(--gray-500);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-date i { color: var(--primary); }
.news-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--dark);
  line-height: 1.4;
}
.news-body h3 a:hover { color: var(--primary); }
.news-body p {
  color: var(--gray-500);
  font-size: .92rem;
  margin-bottom: 14px;
  flex: 1;
}
.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  font-size: .85rem;
}
.news-author { color: var(--gray-700); font-weight: 500; }
.news-views { color: var(--accent); font-weight: 600; }
.news-views i { margin-right: 4px; }

.news-featured-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}
.news-featured-main {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.news-featured-main:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-featured-main .news-image { height: 340px; }
.news-featured-main .news-body { padding: 24px; }
.news-featured-main .news-body h3 { font-size: 1.5rem; }
.news-featured-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.news-side-item {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  transition: var(--transition);
  height: 140px;
}
.news-side-item:hover { transform: translateX(-4px); box-shadow: var(--shadow-lg); }
.news-side-item .news-image { width: 160px; height: auto; flex-shrink: 0; }
.news-side-item .news-body { padding: 14px; }
.news-side-item .news-body h3 { font-size: .98rem; margin-bottom: 6px; }
.news-side-item .news-body p { font-size: .82rem; margin-bottom: 8px; }

.news-detail-content {
  max-width: 800px;
  margin: 0 auto;
}
.news-detail-content h1 {
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.news-detail-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 28px;
  color: var(--gray-500);
  font-size: .9rem;
}
.news-detail-meta i { color: var(--primary); margin-right: 5px; }
.news-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.news-detail-image img { width: 100%; height: auto; }
.news-detail-body p {
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 18px;
  font-size: 1.02rem;
  text-align: justify;
}
.news-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}
.news-share span { font-weight: 600; color: var(--dark); }
.news-share a {
  width: 38px;
  height: 38px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  transition: var(--transition);
}
.news-share a:hover { background: var(--primary); color: white; }

/* ---------------- BACK TO TOP ---------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---------------- WHATSAPP FLOAT ---------------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .45);
  transition: var(--transition);
  animation: waPulse 2.5s infinite;
}
.whatsapp-float:hover {
  background: #128C7E;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, .55);
}
@keyframes waPulse {
  0%   { box-shadow: 0 4px 16px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .5); }
  70%  { box-shadow: 0 4px 16px rgba(37, 211, 102, .45), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 16px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 768px) {
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; left: 20px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    display: flex;
    overflow-x: auto;
    padding: 12px;
  }
  .admin-sidebar h2 { display: none; }
  .admin-sidebar a { white-space: nowrap; border-radius: 8px; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title h2 { font-size: 1.7rem; }
  .hero { min-height: 480px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }

  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { width: 100%; }

  .categories-grid { margin-top: -50px; }
  .stat-number { font-size: 2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-hero { height: 320px; }
  .detail-hero-content h1 { font-size: 1.7rem; }
  .page-header h1 { font-size: 2rem; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: 100%; }

  .news-featured-layout { grid-template-columns: 1fr; }
  .news-featured-main .news-image { height: 220px; }
  .news-side-item { height: auto; }
  .news-side-item .news-image { width: 120px; }
  .news-detail-content h1 { font-size: 1.6rem; }

  table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .destinations-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-side-item .news-image { width: 100px; }
  .login-box { padding: 28px 22px; }
}

/* ---------------- RICH TEXT EDITOR ---------------- */
.editor-wrapper {
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  overflow: hidden;
  background: white;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-300);
  align-items: center;
}
.editor-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--gray-300);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.editor-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.editor-btn:active {
  transform: scale(0.95);
}
.editor-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.editor-format {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  background: white;
  color: var(--dark);
  cursor: pointer;
  font-size: 0.85rem;
}
.editor-sep {
  width: 1px;
  height: 24px;
  background: var(--gray-300);
  margin: 0 4px;
}
.editor-content {
  min-height: 320px;
  padding: 16px 20px;
  outline: none;
  line-height: 1.7;
  font-size: 1rem;
  color: var(--dark);
}
.editor-content:empty::before {
  content: attr(data-placeholder);
  color: var(--gray-400);
  pointer-events: none;
}
.editor-content h1 { font-size: 1.8rem; margin: 16px 0 12px; font-weight: 700; color: var(--dark); }
.editor-content h2 { font-size: 1.5rem; margin: 14px 0 10px; font-weight: 700; color: var(--dark); }
.editor-content h3 { font-size: 1.25rem; margin: 12px 0 8px; font-weight: 600; color: var(--dark); }
.editor-content p { margin: 0 0 12px; }
.editor-content ul, .editor-content ol { margin: 0 0 12px; padding-left: 28px; }
.editor-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 8px 16px;
  margin: 12px 0;
  background: var(--gray-100);
  font-style: italic;
  color: var(--gray-600);
}
.editor-content img { max-width: 100%; height: auto; border-radius: 8px; }
.editor-content a { color: var(--primary); text-decoration: underline; }

/* News detail body - render HTML content properly */
.news-detail-body h1 { font-size: 1.6rem; margin: 20px 0 12px; }
.news-detail-body h2 { font-size: 1.35rem; margin: 18px 0 10px; }
.news-detail-body h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.news-detail-body p { margin: 0 0 14px; line-height: 1.8; }
.news-detail-body ul, .news-detail-body ol { margin: 0 0 16px; padding-left: 28px; line-height: 1.8; }
.news-detail-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 10px 18px;
  margin: 16px 0;
  background: var(--gray-100);
  font-style: italic;
  color: var(--gray-600);
  border-radius: 0 8px 8px 0;
}
.news-detail-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 16px 0; }
.news-detail-body a { color: var(--primary); text-decoration: underline; }
