:root {
  --brand-primary: #2856c9;      /* blue */
  --brand-primary-dark: #1c3f97;
  --brand-purple: #4b2e83;       /* purple */
  --brand-purple-dark: #35205c;
  --brand-accent: #f6b51a;       /* gold, from the logo arrow */
  --brand-light: #f5f4fb;
  --brand-wash: #eef1fc;         /* soft light wash used for hero/page-header bands */
  --ink: #2c2a3a;
  --ink-muted: #5f5a72;
  --radius-lg: 0;
}

/* Square corners everywhere: neutralize Bootstrap's own rounding
   (buttons, pills, rounded-3/4 utilities, alerts, badges, form
   controls) in one place instead of stripping classes from every
   template. */
.btn, .form-control, .form-select, .alert, .badge, .navbar-toggler,
.rounded-pill, .rounded-3, .rounded-4, .rounded-circle {
  border-radius: 0 !important;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, .navbar-brand, .fw-heading {
  font-family: 'Poppins', 'Inter', sans-serif;
}

/* Header titles sized down ~35% from Bootstrap's defaults (h1: 2.5rem,
   h2: 2rem) across the whole site. */
h1 { font-size: 1.625rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.4875rem; }

a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-purple); }

.top-strip {
  background: var(--brand-wash);
  color: var(--ink-muted);
  border-bottom: 1px solid #e7e3f5;
}
.top-strip a { color: var(--brand-purple); }
.top-strip a:hover { color: var(--brand-primary); }

.brand-logo { height: 42px; width: auto; display: block; }
.logo-badge {
  display: inline-flex; align-items: center;
  background: #ffffff;
  padding: 8px 14px;
}

.main-navbar .nav-link {
  font-weight: 500;
  color: #423a55;
  margin: 0 6px;
}
.main-navbar .nav-link.active,
.main-navbar .nav-link:hover {
  color: var(--brand-primary);
}

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--brand-purple);
  border-color: var(--brand-purple);
}
.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-outline-primary:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-accent {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #3a2c00;
  font-weight: 600;
}
.btn-accent:hover { background-color: #dda012; border-color: #dda012; color: #3a2c00; }

.text-primary-brand { color: var(--brand-primary) !important; }
.text-purple-brand { color: var(--brand-purple) !important; }
.bg-brand-light { background-color: var(--brand-light); }

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--brand-wash) 0%, #e8edfb 50%, #eaf3fb 100%);
  color: var(--ink);
  padding: 80px 0 140px;
  position: relative;
  overflow: hidden;
}
.hero h1 { font-size: 1.69rem; font-weight: 700; color: var(--brand-purple-dark); }
.hero .lead { color: var(--ink-muted); }
.hero-stats {
  background: #ffffff;
  border: 1px solid #e5e1f5;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(75,46,131,0.08);
}
.hero-stats .stat-num { font-size: 1.6rem; font-weight: 700; color: var(--brand-purple); }
.hero-stats .small { color: var(--ink-muted); }

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 2;
}
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* Hero background slider (optional; only rendered when slides are uploaded) */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  /* Just enough of a wash on the left (where the text sits) for legibility;
     the rest of the photo is left fully visible. */
  background: linear-gradient(90deg, rgba(15,8,32,0.6) 0%, rgba(15,8,32,0.38) 42%, rgba(15,8,32,0.08) 68%, rgba(15,8,32,0) 100%);
}
.hero > .container { position: relative; z-index: 2; }

.hero-has-slides { color: #fff; }
.hero-has-slides h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.hero-has-slides .lead { color: #f1eefb; text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.hero-has-slides .section-title-badge { background: rgba(255,255,255,0.18); color: #fff; backdrop-filter: blur(3px); }
.hero-has-slides .hero-stats { background: rgba(20,12,40,0.35); border-color: rgba(255,255,255,0.25); box-shadow: none; backdrop-filter: blur(6px); }
.hero-has-slides .hero-stats .stat-num { color: #fff; }
.hero-has-slides .hero-stats .small { color: #f1eefb; }
.hero-has-slides .btn-outline-primary { color: #fff; border-color: rgba(255,255,255,0.7); }
.hero-has-slides .btn-outline-primary:hover { background: #fff; color: var(--brand-purple); border-color: #fff; }

.search-card {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(53,32,92,0.14);
  margin-top: -70px;
  position: relative;
  z-index: 5;
  background: #fff;
  border-top: 4px solid var(--brand-accent);
}

/* Cards */
.card { border: none; border-radius: var(--radius-lg); overflow: hidden; }
.shadow-card { box-shadow: 0 10px 30px rgba(53,32,92,0.08); }

.treatment-card, .destination-card, .hospital-card, .package-card, .blog-card, .doctor-card {
  --hover-y: 0px;
  transform: translateY(var(--hover-y));
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.treatment-card:hover, .destination-card:hover, .hospital-card:hover, .package-card:hover, .blog-card:hover, .doctor-card:hover {
  --hover-y: -6px;
  box-shadow: 0 18px 35px rgba(53,32,92,0.14);
}

.card-img-wrap { position: relative; height: 210px; overflow: hidden; background: #ece8f8; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-img-wrap.sm { height: 160px; }

.badge-featured {
  position: absolute; top: 12px; left: 12px;
  background: var(--brand-accent);
  color: #3a2c00; font-weight: 700; font-size: .72rem;
  padding: 5px 12px;
}

.badge-category {
  background: rgba(75,46,131,0.1);
  color: var(--brand-purple);
  font-weight: 600; font-size: .72rem;
  padding: 5px 12px;
}

.price-tag { color: var(--brand-purple); font-weight: 700; font-size: 1.25rem; }

.section-title-badge {
  display: inline-block;
  background: rgba(40,86,201,0.1);
  color: var(--brand-primary);
  font-weight: 600;
  padding: 6px 16px;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.icon-box {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(40,86,201,0.12), rgba(75,46,131,0.12));
  color: var(--brand-purple);
  font-size: 1.6rem;
}

.testimonial-card {
  border-left: 4px solid var(--brand-primary);
  background: var(--brand-light);
  border-radius: var(--radius-lg);
}
.testimonial-card .bi-star-fill, .testimonial-card .bi-star { color: var(--brand-accent); }

.avatar-circle {
  width: 54px; height: 54px;
  object-fit: cover; background: #ece8f8;
}

.partner-logo {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

.itinerary-day-badge {
  width: 84px;
  height: 44px;
  background: var(--brand-purple);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-bottom: .5rem;
}
.rich-editor-body {
  min-height: 180px;
  padding: .75rem 1rem;
  overflow-y: auto;
}
.rich-editor-body:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 .2rem rgba(90, 60, 200, .15);
}
.rich-editor-body ul, .rich-editor-body ol {
  padding-left: 1.5rem;
}

.rich-content ul, .rich-content ol {
  padding-left: 1.5rem;
  color: var(--ink-muted, #5c5a68);
}
.rich-content p {
  color: var(--ink-muted, #5c5a68);
}
.rich-content h4 {
  margin-top: 1.25rem;
}

.cta-banner {
  background: linear-gradient(120deg, var(--brand-purple) 0%, var(--brand-primary) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
}

.site-footer { background: var(--brand-purple-dark); color: #fff; }
.site-footer h6 { color: #fff; }
.site-footer p, .site-footer .text-light-emphasis { color: #d9d2ee !important; }
.site-footer .social-links a { color: #fff; }
.site-footer .social-links a:hover { color: var(--brand-accent); }
.site-footer hr { border-color: rgba(255,255,255,0.15); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #d9d2ee; }
.footer-links a:hover { color: #fff; }
.footer-credit-link { color: #fff; text-decoration: underline; }
.footer-credit-link:hover { color: var(--brand-accent); }

.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 1050;
  width: 56px; height: 56px;
  background: #25d366; color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

.page-header {
  background: linear-gradient(120deg, var(--brand-wash), #eaf2fb);
  color: var(--ink);
  padding: 60px 0;
  border-bottom: 1px solid #e7e3f5;
}
.page-header h1 { color: var(--brand-purple-dark); }

.page-header.has-banner {
  background-size: cover;
  background-position: center;
  border-bottom: none;
  color: #fff;
}
.page-header.has-banner h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
.page-header.has-banner .section-title-badge { background: rgba(255,255,255,0.18); color: #fff; }
.page-header.has-banner .breadcrumb-light a { color: #e6e2f7; }
.page-header.has-banner .breadcrumb-light .active { color: #fff; }

.breadcrumb-light a { color: var(--ink-muted); }
.breadcrumb-light .active { color: var(--brand-purple); }

.filter-sidebar { border-radius: var(--radius-lg); }

.form-control, .form-select {
  padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 .2rem rgba(40,86,201,0.15);
}

.step-num {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-primary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Admin panel */
.admin-sidebar {
  background: #ffffff;
  min-height: 100vh;
  color: var(--ink-muted);
  border-right: 1px solid #ece8f8;
}
.admin-sidebar a {
  color: var(--ink-muted); display: block; padding: 10px 18px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(75,46,131,0.08); color: var(--brand-purple);
}
.admin-sidebar hr { border-color: #ece8f8; }
.admin-topbar { background: #fff; border-bottom: 1px solid #ece8f8; }
.stat-card { border-radius: var(--radius-lg); border: 1px solid #ece8f8; }
.thumb-sm { width: 56px; height: 56px; object-fit: cover; }

/* ---------------------------------------------------------------------
   Scroll-reveal: lightweight, CSS-driven fade/slide-in as content enters
   the viewport. JS (main.js) only toggles the .in-view class via
   IntersectionObserver — if JS fails to load, .reveal elements are shown
   immediately by default (see base rule below), so content is never
   hidden without a working animation.
   --------------------------------------------------------------------- */
.reveal {
  --reveal-y: 0px;
  opacity: 1;
  transform: translateY(var(--reveal-y));
}
.js-reveal-ready .reveal {
  --reveal-y: 24px;
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
}
.js-reveal-ready .reveal.in-view {
  --reveal-y: 0px;
  opacity: 1;
}

/* Card grid items already lift on hover via --hover-y; compose that with
   the reveal offset instead of letting the two fight over `transform`. */
.treatment-card.reveal, .destination-card.reveal, .hospital-card.reveal,
.package-card.reveal, .blog-card.reveal, .doctor-card.reveal {
  transform: translateY(calc(var(--hover-y, 0px) + var(--reveal-y)));
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready .reveal {
    --reveal-y: 0px;
    opacity: 1;
    transition: none;
  }
}

@media (max-width: 991px) {
  .hero { padding: 60px 0 110px; }
  .search-card { margin-top: -40px; }
}
