/* ============================================================
   Responsive styles — media queries extracted from styles.css
   Load AFTER styles.css so these overrides win the cascade.

   max-width (desktop-first) => breakpoints are ordered DESCENDING
   (largest first). Base/component styles come before the queries.
   ============================================================ */

/* Side drawer (mobile / tablet menu) */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(320px, 85%);
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #0a0f17;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

body.drawer-open {
  overflow: hidden;
}

body.drawer-open .drawer-overlay {
  opacity: 1;
  visibility: visible;
}

body.drawer-open .drawer {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.drawer-logo img {
  height: 48px;
  width: auto;
}

.drawer-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf6;
  cursor: pointer;
}

.drawer-close svg {
  width: 20px;
  height: 20px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
}

.drawer-nav a {
  padding: 14px 4px;
  font-family: var(--font-heading);
  font-size: 16px;
  color: #c4ccd9;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.15s ease;
}

.drawer-nav a:hover,
.drawer-nav a.active {
  color: var(--color-primary);
}

/* Mobile bottom navigation bar (base — overridden in the 1024px query below) */
.mobile-nav {
  display: none;
}

/* ============================================================
   Media queries — descending (largest max-width first)
   ============================================================ */

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .site-header {
    width: calc(100% - 32px);
    padding-inline: 1.5rem;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding-block: 16px;
  }
.single-tribe_events .tribe-events-single .tribe-events-event-meta {
    gap: 1rem;
}
}

/* Tablet & mobile: header shows only the centered logo */
@media (max-width: 1024px) {
  .header-inner {
    justify-content: center;
  }

  .main-nav,
  .header-contact {
    display: none;
  }

  /* Keep the header fixed & unchanged while scrolling (ignore is-stuck) */
  .site-header,
  .site-header.is-stuck {
    position: fixed;
    top: 16px;
    width: calc(100% - 32px);
    max-width: 100%;
    padding-inline: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(28, 28, 28, 0.5);
  }
	.site-footer{
		display:none;
	}
 /* Lift floating contact above the bottom nav bar */
  .floating-contact {
   bottom: 22%;
    right: 16px;
  }

  .floating-contact .fab {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 1024px) {
  body {
    padding-bottom: 76px;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    align-items: stretch;
    justify-content: space-around;
    padding: 8px;
    background: rgba(28, 28, 28, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 4px 2px;
    color: #e8edf6;
    text-decoration: none;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 11px;
    cursor: pointer;
  }

  .mnav-item:hover {
    text-decoration: none;
    color: #ffffff;
  }

  .mnav-icon {
    display: grid;
    place-items: center;
  }

  .mnav-icon svg {
    width: 22px;
    height: 22px;
  }

  .mnav-label {
    line-height: 1;
  }

  /* Elevated center action */
  .mnav-item--center .mnav-icon {
    width: 48px;
    height: 48px;
    margin-top: -22px;
    border-radius: 50%;
    background: linear-gradient(120deg, #2360a2 0%, #075aff 100%);
    border: 3px solid var(--color-bg);
    box-shadow: 0 6px 16px rgba(47, 123, 255, 0.4);
  }
}

/* About: 3 cols -> text full width + photo/cards row */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-info {
    grid-column: 1 / -1;
  }

  .about-photo {
    min-height: 360px;
  }
}

/* Stack hero into one column on tablets and below */
@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 100vh;
  }

  .hero-content {
    padding-block: 180px 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-left {
    width: 100%;
  }

  .hero h1 {
    font-size: 34px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
}

/* Courses: 2 cols -> 1 col */
@media (max-width: 900px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .trusted-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .trusted-photo img {
    margin-top: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 0;
  }

  .stat:nth-child(odd) {
    border-left: none;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .cinfo-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .getintouch-grid {
    grid-template-columns: 1fr;
  }

  .getintouch-map {
    min-height: 360px;
  }

  .getintouch-map iframe {
    min-height: 360px;
  }

  .gain-grid {
    grid-template-columns: 1fr;
  }

  /* Courses: header stacks, rows become date+title | points, button below */
  .programs-head {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .program-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .program-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .benefits-box {
    grid-template-columns: 1fr;
  }

  .story-box {
    grid-template-columns: 1fr;
  }

  .ctrust-box {
    grid-template-columns: 1fr;
  }

  /* Course benefits: portrait on top, content below */
  .cbenefits-grid {
    grid-template-columns: 1fr;
  }

  .cbenefits-photo img {
    min-height: 320px;
    max-height: 420px;
  }

  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-card {
    right: 16px;
  }

  /* Footer: 4 cols -> 2 cols */
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* How it works: stack steps vertically */
  .how-track {
    padding-block: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-inline: clamp(1rem, 4vw, 2rem);
  }

  .how-road {
    display: none;
  }

  .step,
  .step--up,
  .step--down {
    position: static;
    width: 100%;
    transform: none;
    margin: 0;
    left: auto;
    top: auto;
    bottom: auto;
    text-align: left;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(47, 123, 255, 0.5);
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .why-item + .why-item {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
  }

  .why-title {
    font-size: 32px;
  }
}

/* About banner responsive */
@media (max-width: 768px) {
  .hero--inner {
    height: auto;
    min-height: 520px;
  }

  .hero-banner {
    top: 2rem;
  }

  .hero-watermark {
    font-size: 64px;
    transform: translate(-50%, -150%);
  }

  .hero-banner-title {
    font-size: 34px;
  }
	.site-footer{
		display:none;
	}
	.traffic-light{
		display:none;
	}

  .maxi-button-bottom-right {

    bottom: 80px  !important;
   }

.single-tribe_events .tribe-events-single .tribe-events-event-meta {
    gap: 1rem;
}

}

/* About: stack everything */
@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 30px;
  }

  .trusted-title {
    font-size: 30px;
  }

  .stats-title {
    font-size: 28px;
  }

  .how-title {
    font-size: 30px;
  }

  .reviews-title {
    font-size: 30px;
  }

  .features-title {
    font-size: 30px;
  }

  .getintouch-title {
    font-size: 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gain-title {
    font-size: 30px;
  }

  .gain-cards {
    grid-template-columns: 1fr;
  }

  .programs-title {
    font-size: 30px;
  }

  .course-intro-title {
    font-size: 28px;
  }

  .program-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .program-btn {
    width: 100%;
    text-align: center;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .benefits-title {
    font-size: 30px;
  }

  .pathway-title {
    font-size: 30px;
  }

  .story-title {
    font-size: 30px;
  }

  .ctrust-title {
    font-size: 30px;
  }

  .ctrust-features {
    grid-template-columns: 1fr;
  }

  .cbenefits-title {
    font-size: 30px;
  }

  .cbenefits-row {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .btn-outline {
    width: 100%;
  }

  .faq-title {
    font-size: 30px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta-title {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 18px;
  }

  .header-contact {
    flex-direction: column;
    gap: 12px;
  }

  .faq-card {
    top: 77%;
  }

  .hero-content {
    padding-block: 220px 48px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .btn-primary {
    width: 100%;
  }

  .stat-card-body {
    max-width: 100%;
  }

  .stat-art {
    display: none;
  }

  .course-card {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: left;
  }

  .course-media {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  /* CTA gallery: fanned row -> 3 per row grid */
  .cta-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 340px;
    margin-inline: auto;
  }

  .cta-gallery img {
    width: 100%;
    margin: 0;
    transform: none !important;
  }
}

/* About banner responsive */
@media (max-width: 480px) {
  .hero--inner {
    min-height: 440px;
  }

  .hero-watermark {
    font-size: 44px;
  }

  .hero-banner-title {
    font-size: 26px;
  }
	.site-footer{
		display:none;
	}
	.traffic-light{
		display:none;
	}

	  .maxi-button-bottom-right {

    bottom: 80px !important;
   }

}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 22px;
  }
}
