/** Homepage Blog Cards — venturebeyond theme
 *  Scoped to homepage sections only.
 *  Safe to add — cannot affect other pages or post types.
 *
 *  Sections covered:
 *  - Hero (mobile overrides)
 *  - Blog Cards (.sec-latest-news)
 *  - FAQ Accordion (.sec-faq)
 *  - Custom Program CTA (.sec-custom-expedition)
 *  - Enquire / Contact Form (.sec-enquire)
 *  - Expedition Cards (.home-exp-card)
 *  - Jump Nav (.sec-jump-nav)
 *  - Page Summary (.sec-page-summary)
 */


/* =========================================================
   HERO — Mobile Overrides
   Desktop: full-height viewport, 3-slide Swiper carousel,
   160px title. Mobile: single static image, scaled title,
   reduced padding, hidden decorative elements.
   ========================================================= */

@media (max-width: 768px) {

  /* Show only the first hero slide on mobile — hides slides 2 & 3 */
  .bg-img-swiper .swiper-slide:not(:first-child) {
    display: none !important;
  }

  /* Reduce hero height on mobile — 100vh is too tall */
  .sec-hero {
    height: 85vh;
    min-height: 500px;
  }

  /* Scale down the massive 160px title */
  .sec-hero .title {
    font-size: 72px !important;
    line-height: 0.9em;
  }

  /* Push hero content down to clear the fixed header on mobile.
     Header = topbar (~80px stacked) + header-main (~87px) = ~167px total.
     Using padding-top on .inner so content clears the header cleanly.
     min-height override: reset the 560px desktop value — mobile title is 72px
     so the desktop reservation would create excessive blank space. */
  .sec-hero .inner {
    padding-top: 260px !important;
    padding-bottom: 40px !important;
    min-height: 0 !important;
  }

  /* Scale down subtitle — reset margin-top since .inner now handles clearance */
  .sec-hero .subtitle {
    font-size: 24px !important;
    margin-top: 0 !important;
  }

  /* Hide decorative background text on mobile */
  .sec-hero .title-cover {
    display: none;
  }

  /* Hide spinning compass on mobile */
  .sec-hero .spinner {
    display: none;
  }

  /* Stack buttons vertically on mobile */
  .sec-hero .btn-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .sec-hero .btn-group .link-underline {
    margin-left: 0;
  }

  /* Simplify hero gradient on mobile — straight down instead of left */
  .sec-hero .bg-img::before {
    background-image: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
  }

  /* Hide additional text on small screens to reduce clutter */
  .sec-hero .text-additional {
    display: none;
  }
}


/* =========================================================
   BLOG CARDS — .sec-latest-news
   ========================================================= */

/* Fix View More button overlapping heading text */
.sec-latest-news .heading {
  position: relative !important;
  margin-bottom: 40px !important;
}

.sec-latest-news .heading .btn {
  position: static !important;
  display: inline-block !important;
  margin-top: 16px !important;
  clear: both !important;
}

/* Section spacing */
.sec-latest-news {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
  background-color: #f6f6f6;
  position: relative;
}

.sec-latest-news::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/pattern-bg1.png') center center;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.sec-latest-news .container {
  position: relative;
  z-index: 1;
}

/* Three column grid — desktop */
.latest-news-slides {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  width: 100% !important;
}

.latest-news-slides article {
  background: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.latest-news-slides .new-item {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  text-decoration: none !important;
  color: inherit !important;
}

.latest-news-slides .new-image {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.latest-news-slides .new-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

.latest-news-slides .new-item:hover .new-image img {
  transform: scale(1.03) !important;
}

.latest-news-slides .new-time {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 2 !important;
  background: #00AADD !important;
  color: #fff !important;
  padding: 6px 10px !important;
  text-align: center !important;
  line-height: 1.2 !important;
  font-family: "Bebas Neue", sans-serif !important;
}

.latest-news-slides .new-time span:first-child {
  display: block !important;
  font-size: 22px !important;
}

.latest-news-slides .new-time span:last-child {
  display: block !important;
  font-size: 12px !important;
  letter-spacing: 0.05em !important;
}

.latest-news-slides .new-content {
  padding: 24px !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.latest-news-slides .new-content h4 {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  color: #111 !important;
  margin: 0 0 12px !important;
  font-weight: 400 !important;
}

.latest-news-slides .new-content p {
  font-family: "Merriweather", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #555 !important;
  margin: 0 !important;
  flex-grow: 1 !important;
}

/* Two columns on tablet */
@media (max-width: 1024px) {
  .latest-news-slides {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Single column on mobile */
@media (max-width: 640px) {
  .latest-news-slides {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .sec-latest-news {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}


/* =========================================================
   FAQ ACCORDION — Homepage
   ========================================================= */

.sec-faq {
  padding-top: 80px;
  padding-bottom: 80px;
}

.sec-faq h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  color: #111;
  margin: 0 0 40px;
  font-weight: 400;
}

.sec-faq .faqs-inner {
  max-width: 800px;
}

.sec-faq .accordion {
  border-bottom: 1px solid #e5e5e5;
}

.sec-faq .accordion summary.question {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  color: #00AADD;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.sec-faq .accordion summary.question::-webkit-details-marker {
  display: none;
}

.sec-faq .accordion .answer {
  font-family: "Merriweather", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  padding: 0 0 24px;
}

@media (max-width: 640px) {
  .sec-faq {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .sec-faq h2 {
    font-size: 36px;
  }
}


/* =========================================================
   CUSTOM PROGRAM CTA — Homepage
   ========================================================= */

.sec-custom-expedition {
  background: #00AADD;
  padding: 60px 0;
}

.sec-custom-expedition .custom-expedition-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.sec-custom-expedition .custom-expedition-content h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 42px;
  color: #fff;
  margin: 0 0 12px;
  font-weight: 400;
}

.sec-custom-expedition .custom-expedition-content p {
  font-family: "Merriweather", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 560px;
}

.sec-custom-expedition .btn-primary {
  flex-shrink: 0;
  background: #E8630A;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 18px;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  text-decoration: none;
  white-space: nowrap;
}

.sec-custom-expedition .btn-primary:hover {
  background: #c9530a;
}

@media (max-width: 768px) {
  .sec-custom-expedition .custom-expedition-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .sec-custom-expedition .custom-expedition-content h2 {
    font-size: 32px;
  }

  .sec-custom-expedition {
    padding: 40px 0;
  }
}


/* =========================================================
   ENQUIRE / CONTACT FORM — Homepage
   ========================================================= */

.sec-enquire {
  padding-top: 80px;
  padding-bottom: 80px;
}

.sec-enquire .enquire-form-wrap {
  max-width: 760px;
}

.sec-enquire h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  color: #111;
  margin: 0 0 16px;
  font-weight: 400;
}

.sec-enquire p {
  font-family: "Merriweather", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 32px;
}

.sec-enquire .enquire-form {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .sec-enquire {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .sec-enquire h2 {
    font-size: 36px;
  }
}


/* =========================================================
   EXPEDITION CARDS — Homepage hover overlay
   ========================================================= */

.sec-expeditions {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #f6f6f6;
}

.sec-expeditions .container {
  padding-bottom: 8px;
}

.sec-expeditions h2,
.sec-expeditions h3 {
  padding-left: 0;
}

/* Four column grid — desktop */
.home-expedition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  padding: 24px 0;
}

/* Card shell */
.home-exp-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111;
  cursor: pointer;
}

/* Background image */
.home-exp-card-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: transform 0.5s ease;
}

.home-exp-card:hover .home-exp-card-image {
  transform: scale(1.04);
}

.home-exp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Permanent dark gradient at bottom */
.home-exp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.20) 40%,
    rgba(0, 0, 0, 0.0) 65%
  );
  transition: opacity 0.35s ease;
}

.home-exp-card:hover::before {
  opacity: 0;
}

/* Always-visible title at card bottom */
.home-exp-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 24px 20px;
  transition: opacity 0.3s ease;
}

.home-exp-card:hover .home-exp-card-content {
  opacity: 0;
  pointer-events: none;
}

.home-exp-card-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #fff !important;
  margin: 0 0 6px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.home-exp-card-price {
  font-family: "Merriweather", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

/* Hover overlay */
.home-exp-card-hover {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.home-exp-card:hover .home-exp-card-hover {
  opacity: 1;
}

.home-exp-card-hover-inner {
  text-align: center;
  max-width: 280px;
}

.home-exp-card-hover-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}

.home-exp-card-hover-desc {
  font-family: "Merriweather", sans-serif;
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 8px;
}

.home-exp-card-hover-price {
  font-family: "Merriweather", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 20px;
}

.home-exp-card-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-exp-btn-view {
  background: #E8630A;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  text-decoration: none;
}

.home-exp-btn-view:hover {
  background: #c9530a;
}

.home-exp-btn-enquire {
  background: transparent;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.home-exp-btn-enquire:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Accessible focus link */
.home-exp-card-full-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
}

.home-exp-card-full-link:focus-visible {
  opacity: 1;
  outline: 3px solid #E8630A;
  outline-offset: -3px;
}

/* Two columns on tablet */
@media (max-width: 1024px) {
  .home-expedition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Single column on mobile — wider aspect ratio */
@media (max-width: 640px) {
  .home-expedition-grid {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  .home-exp-card {
    aspect-ratio: 3 / 4;
  }

  /* On mobile hide hover overlay — card is fully tappable via full-link */
  .home-exp-card-hover {
    display: none;
  }

  /* Make the full-link cover the entire card and be tappable on mobile */
  .home-exp-card-full-link {
    pointer-events: auto !important;
    opacity: 1 !important;
    z-index: 6;
  }

  .sec-expeditions {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}


/* =========================================================
   JUMP NAV — Sticky blue bar
   ========================================================= */

.site-main .sec-jump-nav {
  background: #00AADD;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

.site-main .sec-jump-nav .container {
  overflow-x: auto;
  /* Hide scrollbar but keep functionality */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.site-main .sec-jump-nav .container::-webkit-scrollbar {
  display: none;
}

.site-main .jump-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.site-main .jump-links li a {
  display: block;
  padding: 16px 20px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s;
}

.site-main .jump-links li a:hover {
  background: rgba(0, 0, 0, 0.15);
}

.site-main .jump-links li a.jump-enquire {
  background: #E8630A;
}

.site-main .jump-links li a.jump-enquire:hover {
  background: #c9530a;
}

@media (max-width: 768px) {
  .site-main .jump-links li a {
    padding: 12px 12px;
    font-size: 13px;
  }
}


/* =========================================================
   PAGE SUMMARY — AI/AEO purpose statement
   ========================================================= */

.site-main .sec-page-summary {
  background: #f6f6f6;
  padding: 32px 0;
  border-bottom: 1px solid #e8e8e8;
}

.site-main .sec-page-summary .page-summary-inner p {
  font-family: "Merriweather", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: #444444;
  margin: 0;
  font-style: italic;
}

@media (max-width: 640px) {
  .site-main .sec-page-summary {
    padding: 24px 0;
  }

  .site-main .sec-page-summary .page-summary-inner p {
    font-size: 14px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   FOUNDERS SECTION — side-by-side two-column layout
   Scoped to homepage .sec-founders
═══════════════════════════════════════════════════════════════════ */

.sec-founders {
  background: #f6f6f6;
  padding: 80px 0;
  overflow: visible !important;
}

.sec-founders .wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.sec-founders .section-header {
  text-align: center !important;
  margin-bottom: 56px !important;
  display: block !important;
  width: 100% !important;
}

.sec-founders .section-header h3 {
  font-family: "Merriweather", sans-serif !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: #00AADD !important;
  margin: 0 0 10px !important;
  font-weight: 400 !important;
  display: block !important;
}

.sec-founders .section-header h2 {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: clamp(36px, 4vw, 56px) !important;
  line-height: 1 !important;
  color: #111111 !important;
  font-weight: 400 !important;
  margin: 0 !important;
  display: block !important;
}

/* Two cards side by side — each card stacks image above text */
.sec-founders .founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.sec-founders .founder-item,
.sec-founders .founder-item--reverse {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
}

/* Image — smaller with white border surround */
.sec-founders .media {
  width: 100%;
  flex-shrink: 0;
  padding: 24px 24px 0;
  background: #ffffff;
  box-sizing: border-box;
}

.sec-founders .image-1 {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.sec-founders .image-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Text content — sits below image with padding */
.sec-founders .content {
  padding: 24px 28px 28px;
}

.sec-founders .content h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  color: #00AADD;
  font-weight: 400;
  margin: 16px 0 4px;
  letter-spacing: 0.03em;
  text-align: left;
}

.sec-founders .content h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 16px;
  color: #111111;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
  text-transform: uppercase;
  text-align: left;
}

.sec-founders .content .text p {
  font-family: "Merriweather", sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: #444444;
  margin: 0 0 16px;
}

.sec-founders .content .text p:last-child {
  margin-bottom: 0;
}

/* CTA button */
.sec-founders .btn-group {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .sec-founders .founders-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .sec-founders {
    padding: 60px 0;
  }

  .sec-founders .founders-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}