:root {
  --gold: #ffc412;
}

/* --- 1. CORE LAYOUT & WRAPPER --- */
.page-layout-wrapper {
  display: flex;
  justify-content: center;
  /*background-color: #fdfcfb;*/
  margin-top: 20px;
  width: 100%;
  /* Changed to allow panels to wrap on mobile */
  flex-wrap: wrap;
  /* FULL WIDTH BACKGROUNDS APPLIED HERE */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
    url("images/123.webp");
  /* Snippets Bg */

  background-position:
    center 500px,
    center 260px;
  /* Adjust 800px based on where your snippets start */
  background-size:
    100% auto,
    100% auto;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed;
  /* Parallax effect */
}

.center-content {
  flex: 1 1 1000px;
  max-width: 1000px;
  width: 100%;
  margin: 0;
  background: transparent;
  z-index: 2;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.side-panel {
  flex: 1 1 250px;
  /* Allow panels to shrink but stay visible */
  min-width: 250px;
  position: relative;
  overflow: hidden;
  display: block;
  transition: all 0.3s ease;
}

.aspect-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* --- 2. HERO SECTION & BADGE --- */
.hero-image-container {
  position: relative;
  width: 100%;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: #000;
  display: block;
}

.anniversary-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 130px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transform: rotate(8deg);
  pointer-events: none;
  /* Animation Trigger */
  animation: badgePulse 3s ease-in-out infinite;
  transition: all 0.3s ease-out;
}

/* The Pulse Logic */
@keyframes badgePulse {
  0% {
    /* You must keep the 8deg here! */
    transform: scale(1);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  }

  50% {
    /* Keep the 8deg and add the scale */
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(255, 196, 18, 0.3));
  }

  100% {
    /* Back to original */
    transform: scale(1);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  }
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 20px 60px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
  color: #fff;
}

.hero-text {
  color: #ffc412 !important;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3.5rem) !important;
  line-height: 1.1;
  max-width: 600px;
}

.hero-subtext {
  color: #fff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* --- 3. CTA BUTTONS --- */
.hero-ctas {
  display: flex;
  align-items: center;
  /* Vertically centers both buttons to each other */
  justify-content: center;
  /* Horizontally centers them on the page */
  gap: 20px;
  /* Standardizes the space between them */
  flex-wrap: wrap;
  padding: 30px 20px;
  justify-content: center;
  background: transparent;
  position: relative;
  z-index: 2;
  margin-top: 15px;
}

@keyframes ctaPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 196, 18, 0.4);
  }

  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(255, 196, 18, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 196, 18, 0);
  }
}

.hero-ctas .ia-btn,
.hero-ctas .contact-btn {
  display: inline-block;
  align-items: center;
  justify-content: center;
  background-color: rgba(25, 25, 25, 0.95) !important;
  color: #ffc412 !important;
  border-radius: 50px !important;
  padding: 0 !important;
  height: 55px;
  width: 220px !important;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: none !important;
  margin-top: 15px;
  min-height: auto !important;

  /* 2. Apply the animation */
  /* Runs every 3 seconds to catch the eye periodically */
  animation: ctaPulse 3s infinite ease-in-out;
}

.hero-ctas .coach-card {
  margin-bottom: 0 !important; /* Force remove the bottom margin */
  padding-bottom: 0 !important;
}

/* 3. Pause the animation on hover so it doesn't fight the user's cursor */
.hero-ctas .ia-btn:hover,
.hero-ctas .contact-btn:hover {
  animation-play-state: paused;
  background-color: #000 !important;
  transform: scale(1.05);
  /* Slight growth on hover */
}

/* --- 4. OVERLAY CARDS (Side Panels) --- */
.overlay-card {
  position: absolute;
  left: 5%;
  width: 90%;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 20px;
  border-left: 5px solid #ffc412;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.left-panel .overlay-card {
  bottom: 5%;
}

.right-panel .overlay-card {
  bottom: 5%;
}

.map-container {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
}

/* --- 5. STACKED CAROUSEL SECTION --- */
.snippets-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 30px;
  background: transparent;
}

.carousel-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-header {
  text-align: center;
  font-weight: 800;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.8rem;
}

.carousel-container.small-carousel {
  position: relative;
  height: 230px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.carousel-container input {
  display: none;
}

.cards {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.cards label {
  position: absolute;
  width: 90%;
  left: 5%;
  top: 0;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(20px);
}

.review-card.mini {
  background: #ffffff !important;
  padding: 15px;
  border-radius: 8px;
  border-top: 4px solid #ffc412;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centers the stars/rating div */
  justify-content: center;
  min-height: 180px;
}

/* Ensure paragraph and headers inside the card are centered */
.review-card.mini p,
.review-card.mini h4,
.review-card.mini cite {
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.rating {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
}

#r1:checked ~ .cards #rev1,
#r2:checked ~ .cards #rev2,
#r3:checked ~ .cards #rev3,
#p1:checked ~ .cards #prod1,
#p2:checked ~ .cards #prod2,
#p3:checked ~ .cards #prod3,
#p4:checked ~ .cards #prod4,
#v1:checked ~ .cards #serv1,
#v2:checked ~ .cards #serv2,
#v3:checked ~ .cards #serv3 {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 10;
  pointer-events: auto;
}

.carousel-footer {
  text-align: center;
  margin-top: -30px;
  position: relative;
  z-index: 20;
}

.learn-more-btn {
  display: inline-block;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid #ffc412;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* --- 6. FOOTER --- */
footer.ia-footer {
  padding: 40px 0 30px;
}

/* --- 7. RESPONSIVE UPDATES --- */

/* For Tablets/Laptops (Transition to Stacking) */
@media (max-width: 1200px) {
  .page-layout-wrapper {
    flex-direction: column;
    background-attachment: scroll;
    /* Better performance on mobile */
    background-size: cover;
  }

  .side-panel {
    width: 100%;
    max-width: 1000px;
    /* Match center content width */
    margin: 0 auto;
    height: auto;
    min-height: auto;
    /* Remove fixed heights so content dictates size */
    order: 3;
    /* Move to bottom */
  }

  .left-panel {
    order: 2;
    /* Main content is 1, Blog is 2, Contact is 3 */
  }

  .overlay-card {
    position: relative !important;
    /* "Pop" out of the background */
    inset: auto !important;
    margin: 20px auto;
    width: 95%;
    background: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}

/* For Mobile Phones */
@media (max-width: 767px) {
  /* BADGE FIX */
  .anniversary-badge {
    right: auto;
    left: 15px;
    top: 18%;
    transform: translateY(-50%) rotate(0deg);
    width: 30% !important;
  }

  /* HERO ADJUSTMENTS */
  .hero-text-overlay {
    width: 65%;
    left: 35%;
    padding: 15px;
    background: none !important;
  }

  .hero-text {
    font-size: 5.5vw !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
  }

  .hero-subtext {
    font-size: 0.9rem;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 1);
    width: 100%;
  }

  /* SIDE PANEL MOBILE VISIBILITY */
  .side-panel {
    flex: 1 1 auto;
    min-height: 350px;
  }

  .overlay-card {
    background: #fff !important;
    /* Remove transparency for better readability on small screens */
    backdrop-filter: none;
    left: 5%;
    width: 100%;
    position: relative;
    /* Break out of absolute positioning to flow naturally */
    margin: 20px auto;
    bottom: auto !important;
    border-left: none;
    border-top: 5px solid #ffc412;
  }

  .aspect-img {
    position: absolute;
    z-index: 1;
    opacity: 0.3;
    /* Fade image so text stands out */
  }

  .carousel-container.small-carousel {
    height: 260px;
  }

  .hero-ctas {
    background-attachment: scroll !important;
  }

  .snippets-section {
    background-attachment: scroll !important;
  }

  /* CONTACT ROW ON MOBILE */
  .contact-mini-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .contact-item {
    flex: 1 1 140px;
    /* Two items per row on most phones */
    justify-content: center;
  }

  /* MAP ON MOBILE */
  .map-frame-wrapper {
    height: 200px;
  }

  .map-container {
    margin-top: 20px;
    text-align: center;
  }

  /* CAROUSEL TWEAKS */
  .carousel-container.small-carousel {
    height: 280px;
    /* Extra room for text */
  }

  .carousel-footer {
    margin-top: 0;
  }

  .hero-ctas {
    display: flex !important;
    flex-direction: column !important;
    /* Stack them */
    align-items: center !important;
    /* Force horizontal centering */
    justify-content: center !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 15px !important;
  }

  .hero-ctas .ia-btn,
  .hero-ctas .contact-btn {
    margin-left: auto !important;
    /* The "Magic" centering trick */
    margin-right: auto !important;
    /* The "Magic" centering trick */
    width: 220px !important;
    /* Keep your chosen width */
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* For Tiny Screens */
@media (max-width: 480px) {
  .contact-item {
    flex: 1 1 100%;
    /* Stack contact items vertically on very small screens */
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .ia-btn,
  .hero-ctas .container-btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== LOW KEY SUBSCRIPTION ===== */
.subscribe-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 30px 15px 10px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  /* Subtle divider */
}

.subscribe-content {
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.sub-form {
  display: flex;
  gap: 0;
  /* Keeps input and button joined */
  justify-content: center;
  overflow: hidden;
  border-radius: 50px;
  border: 1px solid var(--gold);
}

.sub-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-right: 1px solid var(--gold);
  padding: 12px 20px;
  color: white;
  font-family: "Raleway", sans-serif;
  font-size: 0.9rem;
  outline: none;
}

.sub-button {
  background: var(--gold) !important;
  color: #000 !important;
  border: none;
  padding: 0 25px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.sub-button:hover {
  opacity: 0.9;
}

/* Mobile Adjustment */
@media (max-width: 480px) {
  .sub-form {
    flex-direction: column;
    border: none;
    border-radius: 0;
    gap: 10px;
  }

  .sub-input,
  .sub-button {
    border-radius: 50px;
    border: 1px solid var(--gold);
    height: 45px;
  }
}

/* --- CONTACT SECTION STYLING --- */
.contact-mini-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* Balanced spacing */
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* PNG Icon scaled to 30% of a standard size (~24px to 28px) */
.mini-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* Link Styling: "Learn More / See More" Style */
.mini-btn {
  display: inline-block;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #ffc412;
  /* Signature gold underline */
  transition: all 0.3s ease;
  padding-bottom: 2px;
  line-height: 1;
}

.mini-btn:hover {
  color: #ffc412;
  border-bottom-color: #333;
}

/* --- MAP SECTION AT BOTTOM --- */
.map-container {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
}

.map-frame-wrapper {
  width: 100%;
  height: 150px;
  /* Compact height for the side panel */
  margin: 10px 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  background: #f0f0f0;
  /* Placeholder color while loading */
}

.map-address {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #444;
  font-weight: 500;
  margin-bottom: 8px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 767px) {
  .contact-mini-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }

  .contact-item {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .mini-btn {
    font-size: 0.75rem;
  }

  @media (max-width: 767px) {
    .map-frame-wrapper {
      height: 200px;
    }

    .map-container {
      margin-top: 20px;
    }
  }
}

/* --- VISITOR COUNTER STYLING --- */
/* ===== WRAPPER (PAGE FLOW, NOT FIXED) ===== */
.counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  max-width: 1200px;

  margin: 60px auto 20px auto;
  /* pushes it to bottom naturally */
  padding: 10px 20px;

  box-sizing: border-box;
}

/* ===== LABEL ===== */
.counter-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
  font-family: Arial, sans-serif;
}

/* ===== COUNTER ROW ===== */
#counter {
  display: flex;
  gap: 6px;
}

/* ===== DIGIT WINDOW ===== */
.digit {
  height: 42px;
  width: 26px;
  overflow: hidden;
  position: relative;

  border-radius: 6px;

  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ===== STRIP ===== */
.digit-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===== NUMBERS ===== */
.digit-strip div {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-family: "Courier New", monospace;
  font-weight: bold;

  color: white;
}

/* ===== FADE TOP/BOTTOM (premium odometer feel) ===== */
.digit::before,
.digit::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 8px;
  pointer-events: none;
  z-index: 2;
}

.digit::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}

.digit::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

/* ===== MOBILE FIX ===== */
@media (max-width: 600px) {
  .counter-box {
    align-items: center;
    margin: 40px auto 10px auto;
    padding: 10px;
  }

  .counter-label {
    font-size: 9px;
    text-align: center;
  }

  .digit {
    height: 36px;
    width: 22px;
  }

  .digit-strip div {
    height: 36px;
    font-size: 15px;
  }
}

/* 2. Apply it to your button */
#event-cta {
  /* ... keep your existing styles ... */
  animation: cta-pulse 2s infinite;
  /* Runs every 2 seconds forever */
  backface-visibility: hidden;
  /* Keeps the animation smooth */
}

/* 3. Your existing hover/active states */
#event-cta:hover {
  background-color: #1b5e20 !important;
  animation: none;
  /* Stops pulsing when the user hovers to click */
  transform: scale(1.05);
}

#event-cta:active {
  transform: scale(0.98);
}

/* Updated Modal Styling for Height & Responsiveness */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto; /* Allows background to scroll if modal is taller than screen */
}

.modal-content {
  background-color: #fff;
  margin: 9% auto; /* Reduced margin to allow for more height */
  padding: 15px;
  width: 95%; /* Slightly wider on small screens */
  max-width: 800px; /* Increased width for better form layout */
  height: auto; /* Takes up 80% of the screen height */
  max-height: 95vh; /* Prevents going off screen */
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-close-x {
  position: absolute;
  right: 35px;
  top: 10px;
  font-size: 30px;
  cursor: pointer;
  color: #333;
  z-index: 100001;
}

/* 1. Mobile Default (Stacked & Centered) */
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin: 20px auto;
  text-align: center; /* Centers text inside the container */
}

/* 2. Desktop (Side-by-Side & Centered) */
@media (min-width: 768px) {
  .hero-ctas {
    flex-direction: row;
    gap: 20px;
  }

  .hero-ctas .coach-card {
    margin: 0 !important;
    width: auto !important;
    display: flex;
    justify-content: center;
  }
}

/* 3. Button Text Centering Fix */
.hero-ctas .contact-btn {
  display: inline-flex; /* Uses flex to center text vertically/horizontally */
  align-items: center;
  justify-content: center;
  text-align: center; /* Ensures text is centered */
  margin: 0 !important;
  white-space: nowrap;
  min-width: 200px; /* Optional: ensures buttons are same width */
}

/* Specific fix for the "Schedule a Demo" span */
.hero-ctas .coach-card .contact-btn {
  width: 100%;
  pointer-events: none;
}

.post-thumbnail {
  width: 100%;
  height: 180px; /* Adjust height as needed */
  overflow: hidden;
  margin-bottom: 15px;
  border-radius: 8px;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This crops the image to fill the box without stretching */
}

/* Container for social sharing */
.social-share-container {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.social-share-container span {
  font-size: 0.9rem;
  color: #666;
  margin-right: 5px;
}

/* Brand Colors for Icons */
.share-icon {
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.share-icon:hover {
  transform: scale(1.2);
}

.whatsapp {
  color: #25d366;
}
.facebook {
  color: #1877f2;
}
.twitter {
  color: #000000;
}
.linkedin {
  color: #0a66c2;
}

/* Read more link styling */
.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: var(--primary-gold);
}

/* Styling for the Featured Event Card */
.event-featured-card {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 text, 1/3 image */
    gap: 30px;
    background: #ffffff;
    border: 2px solid var(--gold); /* Border to make it stand out */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* Deeper shadow */
    margin: 20px 0;
    align-items: center;
    width: 100%; /* Spans full width of snippets container */
    position: relative; 
    overflow: visible;
}

/* Ensure the image within the card behaves */
.event-featured-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* New Upcoming Tag Styling */
.upcoming-tag {
    position: absolute;
    top: -12px;
    left: -12px;
    background-color: #ffc412;
    color: #000;
    padding: 5px 15px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: none;
    
    /* Animation */
    animation: pulse 2s infinite;
    transform-origin: center;
}

@keyframes pulse {
    0% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(-10deg) scale(1.05); }
    100% { transform: rotate(-10deg) scale(1); }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .event-featured-card {
        grid-template-columns: 1fr;
        padding: 20px;
        margin-top: 30px; /* Add extra margin so the tag doesn't get cut off by other elements */
    }
}


