/*
Theme Name: Giant Education
Theme URI: https://giant.edu.np
Author: Giant Education
Author URI: https://giant.edu.np
Description: Official WordPress theme for Giant Education Consultancy - Education Beyond Boundaries
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: giant-education
Tags: education, consultancy, responsive, custom-menu, featured-images, translation-ready
*/

/* ============================================
   CSS VARIABLES — colors matched to Giant Education logo
   Blue:      #2568bc  (royal blue from the logo — confirmed by client)
   Red:       #d9232d  (vivid red from logo stripes & "EDUCATION" text)
   Dark blue: #1c4f96  (slightly deeper shade for top-bar / footer)
   ============================================ */
:root {
  --blue:       #2568bc;
  --red:        #d9232d;
  --dark-blue:  #1c4f96;
  --light-gray: #f4f7fb;
  --text-dark:  #1a1a2e;
  --text-gray:  #4a5568;
  --text-light: #718096;
  --white:      #ffffff;
  --border:     #e2e8f0;

  /* Typography */
  --font-body:    'Nunito Sans', 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;

  /* Font sizes — fluid scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */

  /* Spacing */
  --transition:   all 0.3s ease;
  --shadow:       0 2px 14px rgba(37,104,188,0.10);
  --shadow-hover: 0 6px 24px rgba(37,104,188,0.18);
  --radius:       6px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 1rem; /* base for rem calculations */
}

body {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.75;
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--red); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

/* Heading scale — Poppins, bold and readable */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, var(--text-3xl));
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, var(--text-xl));
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dark);
}

h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
}

h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
  margin-bottom: 1.1rem;
  color: var(--text-dark);
  line-height: 1.9;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
}

strong { color: var(--text-dark); font-weight: 600; }

/* Utility container */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 60px;
}

@media (max-width: 991px) {
  .container { padding: 0 30px; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
}

.section-padding { padding: 75px 0; }

/* Section title component */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-dark);
  margin-bottom: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 26px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: #b81c21;
  border-color: #b81c21;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217,35,45,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.8);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--dark-blue);
  color: rgba(255,255,255,0.85);
  padding: 8px 0;
  font-size: 0.8rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-left a,
.top-bar-right a {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
}

.top-bar-left a:hover,
.top-bar-right a:hover { color: var(--white); }

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item i { color: var(--red); font-size: 0.85rem; }

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

.social-icon {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover { background: var(--red); }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(37,104,188,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.site-logo img { height: 65px; width: auto; }

/* ── Nav wrapper ── */
.main-navigation {
  display: flex;
  align-items: center;
}

/* ── Top-level <ul> ── */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

/* ── Every <li> needs position:relative for dropdowns ── */
.nav-menu li {
  position: relative;
}

/* ── Top-level links ── */
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.25s ease;
  text-decoration: none;
}

/* Active / hover state */
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a,
.nav-menu > li.current_page_item > a,
.nav-menu > li.current_page_ancestor > a {
  color: var(--blue);
}

/* Animated underline on top-level */
.nav-menu > li > a::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current-menu-ancestor > a::after,
.nav-menu > li.current_page_item > a::after {
  transform: scaleX(1);
}

/* Dropdown caret icon */
.nav-arrow {
  font-size: 9px;
  line-height: 1;
  color: var(--text-gray);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.nav-menu > li:hover > a .nav-arrow {
  transform: rotate(180deg);
  color: var(--blue);
}

/* ── DROPDOWN: first level ── */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--white);
  border-top: 3px solid var(--blue);
  box-shadow: 0 6px 30px rgba(37,104,188,0.15);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
}

/* Show dropdown on hover */
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown links */
.nav-menu .sub-menu a {
  display: block;
  padding: 9px 20px;
  color: var(--text-dark);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  text-decoration: none;
}

.nav-menu .sub-menu li:last-child > a { border-bottom: none; }

.nav-menu .sub-menu a:hover,
.nav-menu .sub-menu li.current-menu-item > a {
  background: var(--light-gray);
  color: var(--blue);
  padding-left: 26px;
}

/* ── DROPDOWN: second level (nested) ── */
.nav-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-top: none;
  border-left: 3px solid var(--blue);
  border-radius: 0 4px 4px 4px;
}

/* Flip nested dropdown to the left when near screen edge */
@media (min-width: 768px) {
  .nav-menu .sub-menu li:hover > .sub-menu {
    left: 100%;
    right: auto;
  }
}

/* Items with children get a right-arrow indicator */
.nav-menu .sub-menu li.menu-item-has-children > a::after {
  content: ' ›';
  float: right;
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1;
}

/* ── Mobile hamburger button ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation */
.menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── MOBILE NAV (≤ 767px) ── */
@media (max-width: 767px) {
  .menu-toggle { display: flex; }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--blue);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 9998;
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-navigation.open { display: block; }

  /* Stack items vertically */
  .nav-menu,
  .nav-menu .sub-menu {
    flex-direction: column;
    width: 100%;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .nav-menu > li > a {
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    justify-content: space-between;
  }

  .nav-menu > li > a::after { display: none; }

  /* Mobile sub-menus: hidden by default, toggled by JS */
  .nav-menu .sub-menu {
    display: none;
    background: var(--light-gray);
    border-left: 4px solid var(--blue);
  }

  .nav-menu .sub-menu.mobile-open { display: block; }

  .nav-menu .sub-menu a {
    padding: 10px 20px 10px 28px;
    font-size: 0.85rem;
  }

  .nav-menu .sub-menu .sub-menu a { padding-left: 40px; }

  /* Mobile caret — points down/up */
  .mobile-toggle-arrow {
    display: inline-block;
    font-size: 11px;
    color: var(--text-gray);
    transition: transform 0.25s ease;
    pointer-events: none;
  }

  .nav-menu li.mobile-open > a .mobile-toggle-arrow { transform: rotate(180deg); }
}


/* ============================================
   HERO SLIDER — image only, fully responsive
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--dark-blue); /* shown while image loads */
  line-height: 0;               /* remove inline-block gap under img */
}

/* The Swiper container itself */
.heroSwiper {
  width: 100%;
}

/* Each slide is just as tall as the image — no fixed height */
.heroSwiper .swiper-slide {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* The full-width slide image */
.hero-slide-img {
  display: block;
  width: 100%;
  height: auto;          /* natural aspect ratio */
  max-height: 750px;     /* cap on very large screens */
  min-height: 220px;     /* floor on tiny screens */
  object-fit: cover;
  object-position: center center;
}

/* Optional click-through link wraps the image */
.hero-slide-link {
  display: block;
  width: 100%;
  line-height: 0;
}

/* Prev / Next arrows — Font Awesome icons */
.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next,
.destinationsSwiper .swiper-button-prev,
.destinationsSwiper .swiper-button-next,
.testimonialsSwiper .swiper-button-prev,
.testimonialsSwiper .swiper-button-next {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide Swiper's built-in text arrow completely */
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none !important;
  content: '' !important;
}

/* Inject Font Awesome chevron via background icon on the button itself */
.swiper-button-prev::before,
.swiper-button-next::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 16px;
  color: currentColor;
  line-height: 1;
}

.swiper-button-prev::before { content: '\f053'; } /* fa-chevron-left  */
.swiper-button-next::before { content: '\f054'; } /* fa-chevron-right */

.heroSwiper .swiper-button-prev:hover,
.heroSwiper .swiper-button-next:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Destinations / Testimonials arrows — darker style since bg is white */
.destinationsSwiper .swiper-button-prev,
.destinationsSwiper .swiper-button-next,
.testimonialsSwiper .swiper-button-prev,
.testimonialsSwiper .swiper-button-next {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow);
}

.destinationsSwiper .swiper-button-prev:hover,
.destinationsSwiper .swiper-button-next:hover,
.testimonialsSwiper .swiper-button-prev:hover,
.testimonialsSwiper .swiper-button-next:hover {
  background: var(--red);
  border-color: var(--red);
}

/* Dot pagination */
.heroSwiper .swiper-pagination {
  bottom: 14px;
}

.heroSwiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: var(--transition);
}

.heroSwiper .swiper-pagination-bullet-active {
  background: var(--red);
  transform: scale(1.25);
}

/* No-slides notice (admin only) */
.hero-no-slides-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: linear-gradient(135deg, var(--dark-blue), var(--blue));
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-no-slides-notice a {
  color: #ffd700;
  font-weight: 600;
}

/* ── Responsive breakpoints ── */
@media (max-width: 1200px) {
  .hero-slide-img { max-height: 600px; }
}

@media (max-width: 768px) {
  .hero-slide-img { max-height: 400px; min-height: 180px; }
  .heroSwiper .swiper-button-prev,
  .heroSwiper .swiper-button-next { width: 34px; height: 34px; }
  .heroSwiper .swiper-button-prev::before,
  .heroSwiper .swiper-button-next::before { font-size: 13px; }
}

@media (max-width: 480px) {
  .hero-slide-img { max-height: 260px; }
  .heroSwiper .swiper-pagination { bottom: 8px; }
  .heroSwiper .swiper-pagination-bullet { width: 8px; height: 8px; }
}


/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome-section { padding: 70px 0; }

.welcome-section .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
}

.welcome-image {
  position: relative;
  text-align: center;
}

.welcome-image img {
  max-width: 100%;
  border-radius: 8px;
}

.welcome-content h2 {
  font-size: 28px;
  color: var(--red);
  margin-bottom: 18px;
  font-weight: 700;
}

.welcome-content p,
.welcome-content .welcome-text-wrap p {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.9;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  margin-bottom: 1.4rem;
}

.welcome-content .btn { margin-top: 20px; }

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  background: var(--blue);
  padding: 70px 0;
}

.services-section .section-title h2 { color: var(--white); }
.services-section .section-title h2::after { background: var(--red); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 35px 25px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--blue);
}

.service-icon i {
  font-size: 28px;
  color: var(--blue);
  transition: var(--transition);
}

.service-card:hover .service-icon i { color: var(--white); }

.service-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   STUDY DESTINATIONS (CAROUSEL)
   ============================================ */
.destinations-section { padding: 70px 0; background: var(--white); }

.destinations-carousel {
  position: relative;
  overflow: hidden;
}

.destinations-track {
  display: flex;
  transition: transform 0.5s ease;
}

.destination-card {
  min-width: calc(33.333% - 16px);
  margin-right: 24px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.destination-flag {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.destination-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.destination-card:hover .destination-flag img { transform: scale(1.05); }

.destination-info { padding: 20px; }

.destination-info h3 {
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.destination-info p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 14px;
}

.carousel-controls {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0 8px;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: var(--transition);
  font-size: 1rem;
}

.carousel-btn:hover { background: var(--red); }

.carousel-dots {
  text-align: center;
  margin-top: 24px;
}

.carousel-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  margin: 0 4px;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active { background: var(--blue); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section { padding: 70px 0; background: var(--light-gray); }

.testimonials-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonials-track { display: flex; transition: transform 0.5s ease; }

.testimonial-card {
  min-width: calc(50% - 12px);
  margin-right: 24px;
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--light-gray);
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--dark-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.78rem;
  color: var(--text-gray);
  font-style: italic;
}

.testimonial-text {
  font-size: 0.875rem;
  color: var(--text-gray);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.testimonial-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.testimonial-nav-btn:hover { background: var(--blue); color: var(--white); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark-blue);
  color: rgba(255,255,255,0.8);
  padding: 55px 0 0;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.5fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.footer-widget p { font-size: 0.85rem; line-height: 1.7; }

.footer-widget a {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}

.footer-widget a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.footer-contact-item i {
  color: var(--red);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.footer-contact-item span { font-size: 0.85rem; line-height: 1.5; }

.footer-fb-box {
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-fb-box img { width: 50px; border-radius: 4px; }

.footer-fb-box .fb-info { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.footer-fb-box .fb-info strong { display: block; color: var(--white); font-size: 0.85rem; }

.footer-fb-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #3b5998;
  color: var(--white);
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.footer-fb-follow:hover { background: #2d4373; color: var(--white); }

.footer-bottom {
  background: rgba(0,0,0,0.2);
  text-align: center;
  padding: 15px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.footer-bottom p,
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================
   FLAG IMAGES (CSS-based for demo)
   ============================================ */
.flag-au { background: linear-gradient(135deg, #00008B 0%, #00008B 40%, #CC0000 40%); }
.flag-nz { background: linear-gradient(to right, #00247D 60%, #CC0000 60%); }
.flag-uk { background: linear-gradient(135deg, #012169 0%, #012169 50%, #C8102E 50%); }
.flag-us { background: linear-gradient(to bottom, #B22234 0%, #B22234 8%, #fff 8%, #fff 15%, #B22234 15%, #B22234 23%, #fff 23%, #fff 30%, #B22234 30%, #B22234 38%, #fff 38%, #fff 46%, #B22234 46%, #B22234 54%); }

/* ============================================
   INNER PAGE STYLES — matches screenshot layout
   ============================================ */

/* Slim breadcrumb bar just below header (like the screenshots) */
.page-breadcrumb-bar {
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-gray);
}

.breadcrumb a {
  color: var(--text-gray);
}

.breadcrumb a:hover { color: var(--blue); }

.breadcrumb .sep {
  color: var(--text-gray);
  font-size: 11px;
}

.breadcrumb .current { color: var(--text-dark); font-weight: 500; }

/* Page title sits inside content, not a full-width colored hero */
.page-title-area {
  padding: 40px 0 10px;
}

.page-title-area h1 {
  font-size: 30px;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0;
}

.content-area { padding: 30px 0 70px; }

/* ── Keep a colored hero only for the front page hero slider ── */

/* ============================================
   WIDGETS
   ============================================ */
.widget { margin-bottom: 35px; }

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  padding: 12px 18px;
  margin-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.widget-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  padding: 18px;
  border-radius: 0 0 4px 4px;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.875rem;
}

.widget ul li:last-child { border-bottom: none; }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form { max-width: 600px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: var(--transition);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 60, 143, 0.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  box-shadow: var(--shadow);
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--blue); transform: translateY(-3px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: repeat(2, 1fr); }
  .welcome-section .container { grid-template-columns: 1fr; }
  .welcome-image { display: none; }
  .destination-card { min-width: calc(50% - 12px); }
  .testimonial-card { min-width: 100%; margin-right: 0; }
}

@media (max-width: 767px) {
  .top-bar-left { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; }
  .destination-card { min-width: 100%; margin-right: 0; }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.alignleft { float: left; margin: 0 20px 15px 0; }
.alignright { float: right; margin: 0 0 15px 20px; }
.aligncenter { display: block; margin: 0 auto 15px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.78rem; color: var(--text-gray); text-align: center; padding: 5px 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ============================================
   INNER PAGE — 2-column layout (content + sidebar)
   ============================================ */
.inner-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.inner-content {
  min-width: 0; /* prevent grid blowout */
}

.inner-content .entry-content {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--text-gray);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.inner-content .entry-content p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.85;
}

.inner-content .entry-content h2,
.inner-content .entry-content h3,
.inner-content .entry-content h4,
.full-width-content .entry-content h2,
.full-width-content .entry-content h3,
.full-width-content .entry-content h4 {
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
}

.inner-content .entry-content h2 {
  font-size: var(--text-2xl);
  color: var(--text-dark);
  margin: 1.8em 0 0.6em;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4em;
}

.inner-content .entry-content h3 {
  font-size: var(--text-xl);
  color: var(--text-dark);
  margin: 1.5em 0 0.5em;
  font-weight: 600;
}

.inner-content .entry-content h4 {
  font-size: var(--text-lg);
  color: var(--text-dark);
  margin: 1.3em 0 0.4em;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inner-content .entry-content ul,
.inner-content .entry-content ol {
  padding-left: 22px;
  margin-bottom: 1.2rem;
}

.inner-content .entry-content ul li { list-style: disc; margin-bottom: 0.4rem; }
.inner-content .entry-content ol li { list-style: decimal; margin-bottom: 0.4rem; }
.inner-content .entry-content strong { color: var(--text-dark); font-weight: 600; }

.inner-content .entry-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inner-content .entry-content blockquote {
  border-left: 4px solid var(--blue);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--light-gray);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-gray);
}

/* Full-width page: no sidebar, content spans full container */
.full-width-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;   /* container handles the side padding */
}

/* Full-width entry content — justified, proper spacing */
.full-width-content .entry-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-gray);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Post/page thumbnail */
.post-thumb-wrap {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-thumb-wrap img { width: 100%; height: auto; }

/* Post meta bar */
.post-meta-bar {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.post-meta-bar i { color: var(--blue); margin-right: 4px; }

.post-tags {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-light);
}

.post-tags i { color: var(--blue); margin-right: 6px; }

.post-nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.post-nav-links .btn { font-size: var(--text-sm); padding: 8px 18px; }

/* Sidebar */
.inner-sidebar .widget {
  margin-bottom: 28px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.inner-sidebar .widget-title {
  background: var(--blue);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 16px;
  margin: 0;
  letter-spacing: 0.4px;
}

.inner-sidebar .widget-body {
  background: var(--white);
  padding: 16px;
}

.inner-sidebar .widget ul li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.875rem;
}

.inner-sidebar .widget ul li:last-child { border-bottom: none; }
.inner-sidebar .widget ul li a { color: var(--text-dark); }
.inner-sidebar .widget ul li a:hover { color: var(--blue); padding-left: 4px; }

/* ============================================
   CONTACT PAGE — 2-column grid
   ============================================ */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 30px;
}

/* Form column */
.contact-form-col { }

.cf-field {
  margin-bottom: 18px;
}

.cf-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.cf-field input,
.cf-field textarea,
.cf-field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,104,188,0.12);
}

.cf-field textarea { resize: vertical; min-height: 140px; }

/* Send button — matches screenshot red button */
.contact-form-col .btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  padding: 9px 28px;
  font-size: 0.9rem;
  border-radius: 3px;
  margin-top: 4px;
}

.contact-form-col .btn-primary:hover {
  background: #b81c21;
  border-color: #b81c21;
  color: var(--white);
}

/* Office details column */
.contact-offices-col { }

.office-block {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.office-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.office-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.office-block p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.85;
  margin: 0;
}

.office-block a {
  color: var(--text-gray);
}

.office-block a:hover { color: var(--blue); }

/* ============================================
   INNER PAGE RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .inner-page-layout { grid-template-columns: 1fr; }
  .inner-sidebar { order: -1; }  /* sidebar above on mobile */
  .contact-page-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .page-title-area h1 { font-size: 24px; }
  .post-meta-bar { gap: 10px; }
}

/* ============================================
   SINGLE DESTINATION
   ============================================ */
.dest-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--light-gray);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
}

.dest-meta-item { display: flex; flex-direction: column; gap: 3px; }

.dest-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
}

.dest-meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.dest-apply-btn {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Feature image in sidebar — no border/padding, just the image */
.dest-feature-image {
  border: none !important;
  padding: 0 !important;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============================================
   TESTIMONIALS PAGE GRID
   ============================================ */
.testimonials-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding-bottom: 40px;
}

.testimonial-card-page {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
  position: relative;
}

.testimonial-card-page::after {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 70px;
  font-family: Georgia, serif;
  color: var(--light-gray);
  line-height: 1;
}

.testimonial-card-page .testimonial-text {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.8;
  font-style: italic;
}

@media (max-width: 768px) {
  .testimonials-page-grid { grid-template-columns: 1fr; }
}

/* reCAPTCHA v2 widget fit */
.g-recaptcha { transform-origin: left top; }

@media (max-width: 360px) {
  .g-recaptcha { transform: scale(0.85); }
}
