/*
Theme Name: Nizam Travel Wisata V3
Theme URI: https://nizamtravelwisata.com
Author: Nizam
Author URI: https://nizamtravelwisata.com
Description: Tema WordPress travel responsif versi v3. Kontak WA 085361118289 dan Email nizamtravelingmedan@gmail.com.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: nizam-travel
*/

:root {
  --primary-color: #0f5132;
  --primary-light: #198754;
  --accent-color: #20c997;
  --bg-light: #f4f9f5;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --card-shadow: 0 10px 25px -5px rgba(15, 81, 50, 0.08);
  --radius: 12px;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

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

/* HEADER & NAVBAR */
header.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  position: relative;
}

.site-logo a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu ul {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-menu a {
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.3s;
}

.nav-menu a:hover { color: var(--primary-light); }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-contact {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(25, 135, 84, 0.35);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 5px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(rgba(15, 81, 50, 0.45), rgba(15, 81, 50, 0.6)), 
              url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2000&q=90') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 7rem 1.5rem 9rem;
}

.hero h1 { 
  font-size: 3rem; 
  font-weight: 700; 
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero p { 
  font-size: 1.25rem; 
  opacity: 0.95; 
  max-width: 650px; 
  margin: 0 auto 2rem;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* SEARCH BAR */
.search-box-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.search-box {
  background: var(--white);
  max-width: 800px;
  margin: -3.5rem auto 3rem;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 81, 50, 0.12);
}

.search-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.search-input {
  flex: 1;
  border: 1px solid #e2e8f0;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  outline: none;
  font-size: 0.95rem;
}

.btn-search {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* MAIN CONTENT */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.section-title p { color: var(--text-muted); }

/* GRID POSTS */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(15, 81, 50, 0.12);
}

.post-thumb-wrapper {
  height: 210px;
  width: 100%;
  overflow: hidden;
  background-color: #e2e8f0;
}

.post-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card:hover .post-thumb-wrapper img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-badge {
  align-self: flex-start;
  background: rgba(32, 201, 151, 0.15);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.post-title a:hover { color: var(--primary-light); }

.post-snippet {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

.btn-detail {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* SINGLE POST PAGE */
.single-container {
  max-width: 800px;
  margin: 3rem auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.single-header { margin-bottom: 2rem; }
.single-title { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 1rem; }
.single-meta { font-size: 0.9rem; color: var(--text-muted); display: flex; gap: 15px; }
.single-featured-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 2rem; }
.entry-content { font-size: 1.05rem; line-height: 1.8; color: #334155; }
.entry-content p { margin-bottom: 1.5rem; }

/* FOOTER */
footer.site-footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 4rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--accent-color);
}

.footer-col p, .footer-col li {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0.6rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* RESPONSIVE LAYOUT FOR MOBILE */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  .nav-menu {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    padding: 1.2rem 1.5rem;
    border-top: 1px solid #f1f5f9;
  }
  .nav-menu.active { display: block !important; }
  .nav-menu ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-menu ul li { width: 100%; border-bottom: 1px solid #f8fafc; padding-bottom: 0.6rem; }
  .hero h1 { font-size: 2rem; }
  .search-form { flex-direction: column; }
  .btn-search { width: 100%; justify-content: center; }
  .btn-contact span { display: none; }
}