/* Layout Containers */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}


/* ==========================================================================
   Header & Navigation (Responsive System)
   ========================================================================== */

.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

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

/* Base Nav List */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--bob-green);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 8px 0;
  transition: color 0.25s ease;
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a {
  color: var(--bob-orange);
}

/* Active indicator underline for desktop */
@media (min-width: 992px) {
  .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--bob-orange);
    transition: width 0.3s ease;
    border-radius: 2px;
  }

  .nav-menu li a:hover::after,
  .nav-menu li.current-menu-item > a::after {
    width: 100%;
  }
}

/* Hamburger Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 30px;
  z-index: 1002;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 3.5px;
  background-color: var(--bob-green);
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Animated "X" Close Icon when Active */
.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background-color: var(--bob-orange);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background-color: var(--bob-orange);
}

/* Overlay Backdrop */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   Tablet & Mobile Breakpoint Styles (<= 991px)
   ========================================================================== */

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1001;
    padding: 80px 30px 40px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .main-navigation.active {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
  }

  .nav-menu li a {
    font-size: 1.15rem;
    display: block;
    width: 100%;
  }
}


/* ==========================================================================
   Programs Grid Layout (Strict 4-Column Desktop / 1-Column Mobile)
   ========================================================================== */

.programs-section {
  padding: 50px 0;
}

.programs-section h2 {
  font-size: 2.2rem;
  color: var(--bob-green, #006B38);
  margin-bottom: 30px;
  position: relative;
}
/* Container Grid Fix */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  align-items: stretch; /* Forces all cards in a row to match height */
}

/* Card Alignment Fix */
.program-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color, #E2E8E4);
  padding: 20px;
  margin: 0 !important; /* Prevents JS/GSAP from setting unequal inline top margins */
  
  /* Flexbox column structure */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Keeps titles & images pinned to top */
  
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Fixed Image Container */
.program-card .card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 16px;
  flex-shrink: 0; /* Prevents image from shrinking if text is long */
}

.program-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Title Alignment */
.program-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  color: var(--dark-color, #1F2D24);
  line-height: 1.3;
}

/* Paragraph Text Auto-Spacer */
.program-card p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex-grow: 1; /* Fills empty vertical space so buttons stay aligned at bottom */
}

/* Button pinned to bottom */
.program-card .btn {
  align-self: flex-start;
  margin-top: auto; /* Guarantees button stays on the baseline */
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Programs Swiper Slider (3 Columns Desktop / 1 Column Mobile)
   ========================================================================== */

.programs-swiper {
  width: 100%;
  padding: 10px 5px 55px 5px !important; /* Space for box-shadows and pagination dots */
  position: relative;
}

.programs-swiper .swiper-slide {
  height: auto; /* Ensures equal height cards across slides */
  display: flex;
}

.programs-swiper .program-card {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color, #E2E8E4);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease ;
  box-sizing: border-box;
}

.programs-swiper .program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.programs-swiper .card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.programs-swiper .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.programs-swiper .program-card h3 {
  font-size: 1.25rem;
  margin: 0 0 10px 0;
  color: var(--bob-green, #006B38);
}

.programs-swiper .program-card h3 a {
  text-decoration: none;
  color: inherit;
}

.programs-swiper .program-card p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.programs-swiper .program-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Navigation Arrow Styling */
.programs-swiper .swiper-button-next {
    top: 35%;
}
.programs-swiper .swiper-button-prev { 
    top: 35%;
}
.programs-swiper .swiper-button-next,
.programs-swiper .swiper-button-prev {
  color: var(--bob-orange, #F38218);
  background: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.programs-swiper .swiper-button-next::after,
.programs-swiper .swiper-button-prev::after {
  font-size: 1.1rem;
  font-weight: bold;
}

.programs-swiper .swiper-button-next:hover,
.programs-swiper .swiper-button-prev:hover {
  background-color: var(--bob-orange, #F38218);
  color: #ffffff;
}

/* Pagination Dots */
.programs-swiper .swiper-pagination-bullet-active {
  background-color: var(--bob-orange, #F38218) !important;
  width: 20px;
  border-radius: 10px;
}


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablets (Max width 1024px) */
@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    gap: 20px;
  }
}

/* Mobile Devices (Max width 640px) */
@media (max-width: 640px) {
  .programs-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .program-card .card-image {
    height: 210px; /* Slightly taller image on single-column mobile view */
  }
}

/* Call to Action Button */
.btn {
  display: inline-block;
  padding: 10px 22px;
  background-color: var(--primary-color, #ff5722);
  color: #ffffff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #e0481d;
  transform: translateY(-2px);
}

/* Footer Layout */
.site-footer {
  background-color: var(--dark-color, #2c3e50);
  color: #ffffff;
  padding: 40px 0;
  text-align: center;
  margin-top: 60px;
}
/* Swiper Hero Section */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 520px;
  overflow: hidden;
}

.hero-swiper, 
.swiper-slide {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Gradient Overlay for Text Legibility */
.swiper-slide::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  /* background: linear-gradient(
    180deg, 
    rgba(0, 0, 0, 0.45) 0%, 
    rgba(0, 0, 0, 0.55) 50%, 
    rgba(0, 0, 0, 0.65) 100%
  ); */
  z-index: 1;
}

/* Slide Text Content Box */
.slide-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-align: center;
  max-width: 850px;
  padding: 0 24px;
}

.slide-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 28px;
  color: #f1f5f9;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Optional Call-to-Action Buttons inside Slide */
.slide-content .btn-hero {
  display: inline-block;
  background-color: #F37021; /* Brainobrain Orange */
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(243, 112, 33, 0.4);
}

.slide-content .btn-hero:hover {
  background-color: #00A651; /* Hover to Brainobrain Green */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

/* Custom Swiper Navigation Buttons (Arrows) */
.hero-slider-section .swiper-button-next,
.hero-slider-section .swiper-button-prev {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.3s ease;
  z-index: 10;
}

.hero-slider-section .swiper-button-next::after,
.hero-slider-section .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.hero-slider-section .swiper-button-next:hover,
.hero-slider-section .swiper-button-prev:hover {
  background-color: #F37021;
  border-color: #F37021;
  color: #ffffff;
  transform: scale(1.08);
}

.hero-slider-section .swiper-button-prev {
  left: 25px;
}

.hero-slider-section .swiper-button-next {
  right: 25px;
}

/* Custom Swiper Pagination Dots */
.hero-slider-section .swiper-pagination {
  bottom: 25px !important;
  z-index: 10;
}

.hero-slider-section .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  opacity: 1;
  margin: 0 6px !important;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.hero-slider-section .swiper-pagination-bullet-active {
  width: 32px; /* Active Pill Shape */
  background-color: #00A651; /* Brainobrain Green */
  border-radius: 6px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-slider-section {
    height: 55vh;
    min-height: 380px;
  }
  
  .hero-slider-section .swiper-button-next,
  .hero-slider-section .swiper-button-prev {
    display: none; /* Hide side arrows on small mobile screens */
  }
}

/* Grids */
 .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}


.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.gallery-item img:hover {
  opacity: 0.85;
}

/* FAQ Accordion UI */
.faq-search-box {
  margin: 30px 0;
}

.faq-search-box input {
  width: 100%;
  padding: 12px 18px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 6px;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-color, #2c3e50);
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .icon {
  transform: rotate(45deg);
}

.faq-question .icon {
  transition: transform 0.3s ease;
}

.answer-inner {
  padding-bottom: 18px;
  color: #555;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

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



/* Overlay Backdrop Fix */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  pointer-events: none; /* Prevents overlay from blocking clicks when invisible */
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto; /* Enables click events only when menu is toggled open */
}
/* Restrict background dark overlay ONLY to hero section, not program cards */
.hero-swiper .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* Ensure program cards stay above any slide backgrounds */
.programs-swiper .program-card {
  position: relative;
  z-index: 2;
  background: #ffffff !important; /* Forces solid white card background */
}

/* Remove background color and borders from Swiper slide containers */
.programs-swiper .swiper-slide {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  height: auto;
}

/* Ensure the cards fill the slide space cleanly */
.programs-swiper .program-card {
  width: 100%;
  background: #ffffff !important;
  box-sizing: border-box;
}

/* ==========================================================================
   Home Page Feature Details Section
   ========================================================================== */

.bob-features-section {
  padding: 50px 15px;
}

/* Intro Card */
.bob-intro-card {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 40px auto;
}

.bob-intro-card h2 {
  font-size: 2.2rem;
  color: var(--bob-green, #006B38);
  margin-bottom: 12px;
}

.bob-lead-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #333333;
  font-weight: 500;
}

/* Subtitles */
.bob-sub-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--dark-color, #1F2D24);
  margin-bottom: 25px;
}

/* Core Benefits Grid */
.bob-benefits-wrapper {
  margin-bottom: 50px;
}

.bob-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bob-benefit-item {
  background: #ffffff;
  border: 1px solid var(--border-color, #E2E8E4);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bob-benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.bob-icon {
  font-size: 1.3rem;
}

/* Info Cards Columns */
.bob-info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.bob-info-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border-color, #E2E8E4);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.bob-info-card.highlight-card {
  background: #F8FBF9;
  border-color: #D1E5D9;
}

.bob-info-card h3 {
  font-size: 1.35rem;
  color: var(--bob-green, #006B38);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Check list */
.bob-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bob-check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444444;
}

.bob-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bob-orange, #F38218);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Tag Pills Grid */
.bob-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bob-tag {
  background: #ffffff;
  border: 1px solid #C2E0CE;
  color: var(--bob-green, #006B38);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .bob-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bob-info-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bob-benefits-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   How It Works Page Styles
   ========================================================================== */

.hiw-hero {
  background: #F8FBF9;
  padding: 60px 0 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color, #E2E8E4);
}

.hiw-title {
  font-size: 2.5rem;
  color: var(--bob-green, #006B38);
  margin-bottom: 10px;
}

.hiw-subtitle {
  font-size: 1.25rem;
  color: #555555;
  font-weight: 500;
  margin-top: 15px;
}

.hiw-content-section {
  padding: 50px 15px;
}

/* Intro Card */
.hiw-intro-card {
  background: #ffffff;
  border-left: 5px solid var(--bob-orange, #F38218);
  border-radius: 8px;
  padding: 24px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  margin-bottom: 40px;
}

.hiw-intro-card p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333333;
  margin: 0;
}

/* Brain Hemispheres Comparison Grid */
.hiw-hemispheres-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

.hiw-brain-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border-color, #E2E8E4);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.hiw-brain-box.right-brain {
  background: #F8FBF9;
  border-color: #C2E0CE;
}

.hiw-brain-box h3 {
  font-size: 1.35rem;
  color: var(--bob-green, #006B38);
  margin: 0 0 5px 0;
}

.hiw-brain-box .box-desc {
  font-size: 0.9rem;
  color: #777777;
  margin-bottom: 20px;
  font-style: italic;
}

.hiw-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hiw-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #444444;
}

.hiw-list li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: var(--bob-orange, #F38218);
  font-size: 1.4rem;
  line-height: 1;
}

/* Balance Banner */
.hiw-balance-banner {
  background: linear-gradient(135deg, var(--bob-green, #006B38) 0%, #004D28 100%);
  color: #ffffff;
  padding: 25px 35px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 50px;
  box-shadow: 0 6px 20px rgba(0, 107, 56, 0.15);
}

.hiw-balance-banner p {
  margin: 0;
}

/* Method Pillars Grid */
.hiw-pillars-wrapper {
  margin-bottom: 50px;
}

.hiw-pillars-wrapper h2 {
  font-size: 1.8rem;
  color: var(--dark-color, #1F2D24);
  text-align: center;
  margin-bottom: 30px;
}

.hiw-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.hiw-pillar-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border-color, #E2E8E4);
  position: relative;
  overflow: hidden;
}

.hiw-pillar-card .pillar-number {
  position: absolute;
  top: -10px;
  right: 15px;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0, 107, 56, 0.06);
}

.hiw-pillar-card h3 {
  font-size: 1.3rem;
  color: var(--bob-green, #006B38);
  margin-bottom: 10px;
}

.hiw-pillar-card p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.6;
  margin: 0;
}

/* Learning Process Section */
.hiw-process-wrapper {
  margin-top: 40px;
}

.hiw-process-lead {
  text-align: center;
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 30px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .hiw-hemispheres-grid,
  .hiw-pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   About Us Page Styles
   ========================================================================== */

.about-hero {
  background: #F8FBF9;
  padding: 60px 0 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color, #E2E8E4);
}

.about-title {
  font-size: 2.5rem;
  color: var(--bob-green, #006B38);
  margin-bottom: 10px;
}

.about-hero-lead {
  font-size: 1.25rem;
  color: var(--bob-orange, #F38218);
  font-weight: 600;
  margin-top: 15px;
}

.about-content-section {
  padding: 50px 15px;
}

/* Intro Banner */
.about-intro-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 35px;
  border: 1px solid var(--border-color, #E2E8E4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  margin-bottom: 30px;
}

.about-intro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.about-intro-header h2 {
  font-size: 1.8rem;
  color: var(--bob-green, #006B38);
  margin: 0;
}

.iso-badge {
  background: #EAF5EE;
  color: var(--bob-green, #006B38);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid #C2E0CE;
}

.about-intro-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444444;
  margin: 0;
}

/* Stats Counter Grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color, #E2E8E4);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--bob-orange, #F38218);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #666666;
  font-weight: 500;
}

/* Local Presence Card */
.about-local-card {
  background: #F8FBF9;
  border-left: 5px solid var(--bob-green, #006B38);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.about-local-card h3 {
  font-size: 1.5rem;
  color: var(--bob-green, #006B38);
  margin-top: 0;
  margin-bottom: 15px;
}

.about-local-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 15px;
}

.about-local-card p:last-child {
  margin-bottom: 0;
}

/* Mission & Vision Grid */
.about-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.mv-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 35px;
  border: 1px solid var(--border-color, #E2E8E4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.mv-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.mv-card h3 {
  font-size: 1.6rem;
  color: var(--bob-green, #006B38);
  margin-bottom: 8px;
}

.mv-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bob-orange, #F38218);
  margin-bottom: 15px;
}

.mv-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555555;
  margin: 0;
}

/* Countries Tag Cloud */
.about-countries-wrapper {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border-color, #E2E8E4);
  text-align: center;
}

.about-countries-wrapper h3 {
  font-size: 1.3rem;
  color: var(--dark-color, #1F2D24);
  margin-bottom: 20px;
}

.countries-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.countries-tags span {
  background: #F1F5F2;
  color: #333333;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-mv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GTranslate Menu Item Alignment Fix
   ========================================================================== */

/* 1. Ensure the list item behaves like a flex child */
li.menu-item-gtranslate {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  margin-left: 15px; /* Adjust spacing from 'About Us' */
}

/* 2. Strip inline position: absolute from GTranslate wrapper */
li.menu-item-gtranslate div[id^="gtranslate_menu_wrapper"],
li.menu-item-gtranslate .gt_container-95hs2d,
li.menu-item-gtranslate #gt_float_wrapper {
  position: static !important; /* Forces layout back into normal flex flow */
  display: inline-flex !important;
  align-items: center !important;
  top: auto !important;
  bottom: auto !important;
}

/* 3. Style the language selector button to match nav menu height */
li.menu-item-gtranslate .gt-selected {
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important; /* Removes box background if preferred */
  border: 1px solid var(--border-color, #E2E8E4) !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  box-shadow: none !important;
}

/* 4. Align flag icon and text vertically */
li.menu-item-gtranslate .gt-current-lang {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 600 !important;
  color: var(--dark-color, #1F2D24) !important;
}

li.menu-item-gtranslate .gt-current-lang img {
  width: 20px !important;
  height: 14px !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  margin: 0 !important;
}

/* 5. Keep options dropdown positioned relative to button */
li.menu-item-gtranslate .gt_options {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  z-index: 9999 !important;
}


/* ==========================================================================
   Single Program 2-Column Responsive Layout
   ========================================================================== */

.single-program-container {
  padding: 50px 15px;
}

/* 2-Column Grid Layout */
.program-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Image Column Styling */
.program-media {
  width: 100%;
}

.program-featured-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Content Column Styling */
.program-intro-content .entry-title {
  font-size: 2.2rem;
  color: var(--bob-green, #006B38);
  margin-top: 0;
  margin-bottom: 10px;
}

.program-intro-content .entry-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333333;
}

.program-intro-content .entry-content p {
  margin-bottom: 1.2rem;
}

/* Mobile Responsiveness (Single Column Stack) */
@media (max-width: 768px) {
  .program-hero-grid {
    grid-template-columns: 1fr; /* Stacks to single column on mobile */
    gap: 25px;
  }

  .program-intro-content .entry-title {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   Homepage FAQ Section
   ========================================================================== */

.faq-section {
  padding: 60px 15px;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-subtitle {
  color: #666666;
  font-size: 1.05rem;
  margin-top: 10px;
}

/* Accordion Wrapper */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Accordion Item Card */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color, #E2E8E4);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--bob-green, #006B38);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* Question Header */
.faq-question {
  padding: 18px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color, #1F2D24);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Hides native summary marker */
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none; /* Hides Safari native marker */
}

/* Toggle Plus/Minus Icon */
.faq-icon {
  font-size: 1.4rem;
  color: var(--bob-orange, #F38218);
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg); /* Rotates + into x when open */
}

/* Answer Body */
.faq-answer {
  padding: 0 24px 20px 24px;
  color: #444444;
  font-size: 1rem;
  line-height: 1.6;
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
  border-top-color: #f0f0f0;
  padding-top: 15px;
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   Program Archive Styles
   ========================================================================== */

/* Archive Header */
.archive-header-banner {
  background: #F8FBF9;
  padding: 50px 0 35px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color, #E2E8E4);
  margin-bottom: 50px;
}

.archive-title {
  font-size: 2.4rem;
  color: var(--bob-green, #006B38);
  margin-bottom: 8px;
}

.archive-subtitle {
  font-size: 1.1rem;
  color: #555555;
  margin-top: 15px;
}

/* Programs Section & Grid */
.programs-archive-section {
  padding-bottom: 60px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* Individual Card */
.program-card {
  background: #ffffff;
  border: 1px solid var(--border-color, #E2E8E4);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Image Aspect Ratio Container */
.program-card .card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f4f4f4;
}

.program-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.program-card:hover .card-image img {
  transform: scale(1.05);
}

/* Card Body Content */
.program-card .card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-card .card-title {
  font-size: 1.35rem;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.program-card .card-title a {
  color: var(--dark-color, #1F2D24);
  text-decoration: none;
  transition: color 0.2s ease;
}

.program-card .card-title a:hover {
  color: var(--bob-green, #006B38);
}

.program-card .card-excerpt {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.program-card .card-excerpt p {
  margin: 0;
}

/* Program Button */
.btn-program {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: var(--bob-green, #006B38);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-program:hover {
  background: var(--bob-orange, #F38218);
  color: #ffffff;
}

/* Pagination Styling */
.archive-pagination {
  margin-top: 50px;
  text-align: center;
}

.archive-pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.archive-pagination .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-color, #E2E8E4);
  border-radius: 6px;
  color: #333333;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
  background: var(--bob-green, #006B38);
  color: #ffffff;
  border-color: var(--bob-green, #006B38);
}

.no-programs-found {
  text-align: center;
  padding: 40px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color, #E2E8E4);
}

/* Responsive Overrides */
@media (max-width: 640px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

/* Banner */
.contact-header-banner {
  background: #F8FBF9;
  padding: 50px 0 35px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color, #E2E8E4);
  margin-bottom: 50px;
}

.contact-header-banner .page-title {
  font-size: 2.4rem;
  color: var(--bob-green, #006B38);
  margin-bottom: 8px;
}

.contact-header-banner .page-subtitle {
  font-size: 1.1rem;
  color: #555555;
  margin-top: 15px;
}

/* 2-Column Grid Layout */
.contact-section {
  padding-bottom: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Left Column: Info Cards */
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--border-color, #E2E8E4);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.info-icon {
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  background: #E8F5E9;
  color: var(--bob-green, #006B38);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  color: var(--dark-color, #1F2D24);
}

.info-text p, 
.info-text a {
  margin: 0;
  color: #555555;
  font-size: 0.95rem;
  text-decoration: none;
}

.info-text a:hover {
  color: var(--bob-green, #006B38);
}

/* Contact Form Container */
.contact-form-wrapper {
  background: #ffffff;
  padding: 30px;
  border: 1px solid var(--border-color, #E2E8E4);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.contact-form-wrapper h2 {
  font-size: 1.5rem;
  color: var(--bob-green, #006B38);
  margin-top: 0;
  margin-bottom: 20px;
}

/* Right Column: Embedded Map */
.contact-map-col {
  height: 100%;
  min-height: 500px;
}

.map-wrapper {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color, #E2E8E4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

/* Responsive Grid (Stacks on Mobile) */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-map-col,
  .map-wrapper,
  .map-wrapper iframe {
    min-height: 350px;
  }
}

/* Contact Form Container */
.contact-form-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper h2 {
    color: #00A651; /* Brainobrain Green */
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Contact Form 7 Form Groups */
.wpcf7-form p {
    margin-bottom: 18px;
}

.wpcf7-form label {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
}

/* Input Fields & Textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    color: #222222;
    background-color: #f9f9fb;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

/* Focus States */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    border-color: #F37021; /* Brainobrain Orange */
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.15);
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit Button */
.wpcf7-form input[type="submit"] {
    display: inline-block;
    width: 100%;
    background-color: #F37021; /* Brainobrain Orange */
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #d95e14;
    transform: translateY(-1px);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Validation Alerts & Spinner */
.wpcf7-response-output {
    margin-top: 20px !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}

.wpcf7-not-valid-tip {
    color: #d9381e;
    font-size: 13px;
    margin-top: 4px;
}

.wpcf7 .wpcf7-spinner {
    display: block;
    margin: 10px auto 0;
}