/*
Theme Name: Rajaji National Park Travel
Theme URI: https://rajajinationalparktravel.com/
Author: Rajaji National Park Travel
Author URI: https://rajajinationalparktravel.com/
Description: Custom WordPress theme matching the design of rajajinationalparktravel.com — used for the /blog/ section so header, footer and overall look stay identical to the main site.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rajaji-travel
*/

:root {
  --forest-dark:  #1C2B1E;
  --forest:       #243B27;
  --forest-mid:   #2E5435;
  --moss:         #3D7A4A;
  --sage:         #6BAA76;
  --mint:         #9ECFA8;
  --gold:         #C8882A;
  --gold-light:   #E8A84A;
  --amber:        #F0C070;
  --cream:        #FDF8EE;
  --warm:         #F7F1E3;
  --sand:         #E8DEC8;
  --brown:        #5C4020;
  --ink:          #1A1410;
  --text:         #3A302A;
  --muted:        #7A6858;
  --border:       #DDD0B8;
  --white:        #FFFFFF;
  --green-wa:     #25D366;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  padding-bottom: 76px; /* space for sticky bar */
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ─── SKIP LINK (accessibility) ─────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--forest); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ─── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 190px; padding: 10px 0; }
.logo-lines { line-height: 1.2; }
.logo-main { display: block; font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--forest-dark); }
.logo-sub  { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links ul { list-style: none; display: flex; align-items: center; gap: 0; }
.nav-links a {
  text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 600;
  padding: 8px 11px; border-radius: 8px; transition: all .2s; white-space: nowrap;
  display: inline-block;
}
.nav-links a:hover { background: var(--warm); color: var(--forest); }
.nav-links a.active { color: var(--forest); background: var(--warm); }

/* dropdown (static "Safari Zones" nav-item-drop) */
.nav-item-drop { position: relative; display: inline-block; }
.nav-item-drop > a::after { content: '▾'; font-size: 10px; margin-left: 5px; opacity: .7; }
.nav-dropdown {
  list-style: none; display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.14); padding: 8px; min-width: 210px; z-index: 920;
  flex-direction: column;
}
.nav-item-drop:hover .nav-dropdown { display: flex; }
.nav-dropdown a { display: block; padding: 9px 12px; font-size: 13.5px; border-radius: 7px; white-space: nowrap; }
.nav-dropdown a::after { content: none; }

/* legacy WP dropdown support (submenu classes, kept for compatibility) */
.nav-links li.menu-item-has-children { position: relative; }
.nav-links li.menu-item-has-children > a::after { content: '▾'; font-size: 10px; margin-left: 5px; opacity: .7; }
.nav-links .sub-menu {
  list-style: none; display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.14); padding: 8px; min-width: 210px; z-index: 920;
}
.nav-links li.menu-item-has-children:hover .sub-menu { display: block; }
.nav-links .sub-menu a { display: block; padding: 9px 12px; font-size: 13.5px; border-radius: 7px; white-space: nowrap; }
.nav-links .sub-menu a::after { content: none; }

.nav-book,
.nav-links li.nav-book-item > a {
  background: var(--gold) !important; color: var(--white) !important;
  padding: 10px 22px !important; border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(200,136,42,.3);
}
.nav-book:hover,
.nav-links li.nav-book-item > a:hover { background: var(--brown) !important; box-shadow: 0 6px 18px rgba(92,64,32,.4) !important; }

.ham { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.ham span { display: block; width: 24px; height: 2px; background: var(--forest-dark); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* mobile drawer */
.mob-nav {
  display: none; position: fixed; inset: 0; z-index: 950;
  background: var(--forest-dark); flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 22px;
  padding: 90px 20px 100px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mob-nav.show { display: flex; }
.mob-nav ul { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mob-nav a { color: var(--white); font-size: 22px; font-family: 'Playfair Display', serif; text-decoration: none; font-weight: 700; text-align: center; }
.mob-nav .sub-menu { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.mob-nav .sub-menu a { font-size: 16px; color: var(--amber); }

.mob-nav.show ~ .sticky { display: none; }
.mob-close { position: fixed; top: 22px; right: 28px; z-index: 951; background: none; border: none; color: var(--white); font-size: 32px; cursor: pointer; }

/* ─── TRUST BAR ──────────────────────────────────── */
.trust-bar { background: var(--forest); padding: 16px 32px; }
.trust-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 36px;
}
.ti { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mint); font-weight: 600; }
.ti span { font-size: 18px; }

/* ─── SECTION DEFAULTS ──────────────────────────── */
section { padding: 90px 0; }

.sec-eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.sec-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold); }

.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.5vw, 46px); font-weight: 700;
  color: var(--forest-dark); line-height: 1.2; margin-bottom: 16px;
}
.sec-title em { font-style: italic; color: var(--gold); }
.sec-intro { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 640px; margin-bottom: 50px; }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--white);
  text-decoration: none; padding: 16px 30px; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 22px rgba(200,136,42,.4);
  transition: all .25s; border: none; cursor: pointer;
}
.btn-gold:hover { background: var(--brown); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(200,136,42,.5); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--forest-dark);
  border: 2px solid var(--border); border-radius: 10px;
  text-decoration: none; padding: 14px 26px;
  font-size: 15px; font-weight: 600; transition: all .25s;
}
.btn-outline:hover { background: var(--warm); border-color: var(--gold); }

/* ─── PAGE HEADER (blog/archive/page banner) ─────── */
.page-banner {
  background: linear-gradient(160deg, #1C2B1E 0%, #2E5435 55%, #1C2B1E 100%);
  padding: 150px 0 60px; text-align: center;
}
.page-banner .sec-eyebrow { justify-content: center; color: var(--mint); }
.page-banner .sec-eyebrow::before { background: var(--mint); }
.page-banner h1 {
  font-family: 'Playfair Display', serif; color: var(--white);
  font-size: clamp(32px, 4.5vw, 54px); font-weight: 900; line-height: 1.15; margin-bottom: 14px;
}
.page-banner h1 em { font-style: italic; color: var(--amber); }
.page-banner p { color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto; font-size: 16px; }
.breadcrumb { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.55); }
.breadcrumb a { color: var(--mint); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }

/* ─── BLOG GRID (archive / index / search) ───────── */
.blog-section { background: var(--cream); padding: 70px 0 90px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(0,0,0,.12); }
.blog-card-img { width: 100%; height: 210px; overflow: hidden; background: var(--forest-mid); position: relative; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-cat {
  position: absolute; top: 14px; left: 14px; background: var(--gold); color: #fff;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  padding: 5px 12px; border-radius: 20px;
}
.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.blog-card h2 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--forest-dark); line-height: 1.3; margin-bottom: 10px; }
.blog-card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.blog-card-more { font-size: 13px; font-weight: 700; color: var(--gold); }

.no-posts { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ─── PAGINATION ──────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 8px;
  text-decoration: none; font-size: 14px; font-weight: 700;
  background: var(--white); border: 1px solid var(--border); color: var(--forest-dark);
}
.pagination .current { background: var(--gold); border-color: var(--gold); color: #fff; }
.pagination a:hover { background: var(--warm); border-color: var(--gold); }

/* ─── SINGLE POST ─────────────────────────────────── */
.single-post-wrap { background: var(--white); padding: 60px 0 90px; }
.single-post-inner { max-width: 780px; margin: 0 auto; }
.post-thumb { border-radius: 18px; overflow: hidden; margin-bottom: 36px; }
.post-thumb img { width: 100%; height: auto; }
.post-content { font-size: 17px; line-height: 1.85; color: var(--text); }
.post-content h2 { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--forest-dark); margin: 40px 0 16px; line-height: 1.3; }
.post-content h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--forest-dark); margin: 32px 0 14px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 22px; }
.post-content li { margin-bottom: 8px; }
.post-content a { color: var(--moss); font-weight: 700; text-decoration: underline; }
.post-content blockquote {
  border-left: 4px solid var(--gold); background: var(--warm); padding: 18px 24px;
  border-radius: 0 10px 10px 0; margin: 28px 0; font-style: italic; color: var(--brown);
}
.post-content img { border-radius: 14px; margin: 24px 0; }
.post-content figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: -14px; margin-bottom: 24px; }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.post-content table th, .post-content table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.post-content table th { background: var(--warm); color: var(--forest-dark); }

.post-tags-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.post-tags-meta a {
  background: var(--warm); border: 1px solid var(--border); color: var(--forest-dark);
  font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; text-decoration: none;
}
.post-tags-meta a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.post-author-box {
  display: flex; gap: 18px; align-items: center; background: var(--warm);
  border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-top: 44px;
}
.post-author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.post-author-box strong { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--forest-dark); display: block; margin-bottom: 4px; }
.post-author-box p { font-size: 13px; color: var(--muted); }

.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; border-top: 1px solid var(--border); padding-top: 30px; flex-wrap: wrap; }
.post-nav a { text-decoration: none; max-width: 47%; }
.post-nav .nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); font-weight: 700; display: block; margin-bottom: 6px; }
.post-nav .nav-title { font-size: 14px; color: var(--forest-dark); font-weight: 700; line-height: 1.4; }
.post-nav-next { margin-left: auto; text-align: right; }

/* ─── COMMENTS ────────────────────────────────────── */
.comments-area { margin-top: 60px; border-top: 1px solid var(--border); padding-top: 40px; }
.comments-title { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--forest-dark); margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment-body { background: var(--warm); border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; }
.comment-author { font-weight: 700; color: var(--forest-dark); font-size: 14px; }
.comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'Nunito Sans', sans-serif; font-size: 14px; margin-bottom: 14px; background: var(--cream);
}
.comment-form textarea { min-height: 130px; }
.comment-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

/* ─── SIDEBAR (optional widget area) ─────────────── */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }
.sidebar-widget { background: var(--warm); border: 1px solid var(--border); border-radius: 16px; padding: 26px; margin-bottom: 24px; }
.sidebar-widget h3 { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--forest-dark); margin-bottom: 16px; }
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li { margin-bottom: 10px; }
.sidebar-widget ul li a { font-size: 14px; color: var(--text); text-decoration: none; }
.sidebar-widget ul li a:hover { color: var(--moss); }

/* ─── CTA BAND (reused site-wide) ────────────────── */
.cta-bottom { background: var(--cream); padding: 0 0 90px; }
.cta-box {
  background: linear-gradient(150deg, var(--forest-dark), var(--forest-mid));
  border-radius: 24px; padding: 60px; text-align: center; position: relative; overflow: hidden;
}
.cta-box-inner { position: relative; z-index: 2; }
.cta-box h2 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: white; margin-bottom: 14px; }
.cta-box h2 em { font-style: italic; color: var(--amber); }
.cta-box p { color: rgba(255,255,255,.65); font-size: 16px; margin-bottom: 34px; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.cta-note { color: rgba(255,255,255,.4); font-size: 13px; }
.cta-note a { color: var(--mint); text-decoration: none; font-weight: 600; }

/* ─── FOOTER ─────────────────────────────────────── */
.footer { background: #0D1710; padding: 70px 0 30px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.fb-about p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.75; max-width: 300px; margin-top: 16px; }
.fb-contact { margin-top: 20px; }
.fb-contact a { display: flex; align-items: center; gap: 10px; color: var(--mint); text-decoration: none; font-size: 14px; font-weight: 700; margin-bottom: 8px; transition: color .2s; }
.fb-contact a:hover { color: var(--amber); }

.footer h4 { font-size: 11px; color: #6A8060; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul li a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer ul li a:hover { color: var(--mint); }
.footer-widget ul { list-style: none; }

.footer-bottom { border-top: 1px solid #162018; padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.75); }
.footer-bottom a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-bottom a:hover { color: var(--mint); }

/* ─── STICKY BAR ─────────────────────────────────── */
.sticky {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-top: 1.5px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,.1);
  padding: 10px 16px; display: flex; gap: 10px;
}
.sticky-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; border: none; cursor: pointer; border-radius: 12px;
  padding: 14px 20px; font-size: 15px; font-weight: 700;
  font-family: 'Nunito Sans', sans-serif; transition: all .25s;
}
.s-call { background: var(--forest); color: white; box-shadow: 0 4px 16px rgba(36,59,39,.3); }
.s-call:hover { background: var(--forest-mid); transform: translateY(-2px); }
.s-wa { background: linear-gradient(135deg, #25D366, #1aaa52); color: white; box-shadow: 0 4px 16px rgba(37,211,102,.3); }
.s-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.45); }
.sticky-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ─── WORDPRESS CORE DEFAULTS ─────────────────────── */
.alignleft { float: left; margin: 6px 24px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 24px; }
.aligncenter { display: block; margin: 20px auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute !important; left: -9999px; }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 24px 0; }
.gallery img { border-radius: 12px; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; }
  .logo img { width: 150px !important; }
  .nav-links { display: none; }
  .ham { display: block; }
  section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .page-banner { padding: 120px 0 44px; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .trust-inner { gap: 18px; }
  .cta-box { padding: 40px 24px; }
  .post-content { font-size: 16px; }
  .post-nav a { max-width: 100%; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons a { width: 100%; justify-content: center; }
  .sticky-btn { font-size: 13px; padding: 13px 10px; }
}
