/* Body */
body {
  background-color: #f3f4f6; /* bg-gray-100 */
  color: #1f2937;            /* text-gray-800 */
  margin: 0;
  font-family: system-ui, sans-serif;
}

/* Header */
#main-header {
  background: linear-gradient(to right, #032c8a, #113eb0); /* from-blue-950 to-blue-900 */
  color: white;
  padding: 1.5rem;                   /* p-6 = 24px */
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06); /* shadow-md */
}

/* Logo container */
#logo-container {
  display: flex;
  align-items: center;
  gap: 2rem;                         /* gap-8 = 32px */
}

/* Logo image */
#logo {
  height: 6rem;                       /* h-24 = 96px */
  width: auto;
  display: block;
}

/* Gym title */
#logo-container h1 {
  font-size: 1.875rem;                /* text-3xl = 30px */
  font-weight: 700;                   /* font-bold */
  margin: 0;
}






#hero {
  background-image: url('background.webp');
  background-position: center;
  background-size: cover;
  position: relative;
  color: white;
}

#hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem; /* gap-10 */
  padding: 0 2.5rem; /* pt-32 pb-10 px-10 */
  padding-top: 12rem;
  padding-bottom: 5rem;
}

@media(min-width: 768px) {
  #hero-content {
    flex-direction: row;
    align-items: flex-start;
  }
}

#hero-text {
  flex: 2;
  text-align: center;
}

@media(min-width: 768px) {
  #hero-text {
    text-align: left;
  }
}

#hero-text h2 {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700;   /* font-bold */
  margin-bottom: 1.5rem;
}

#hero-text p {
  font-size: 1.125rem; /* text-lg */
  line-height: 1.75rem;
  color: #bfdbfe;      /* text-blue-200 */
  margin-top: 1rem;
}

#hero-logo {
  flex: 1;
  display: flex;
  justify-content: center;
}

#hero-logo img {
  width: 18rem; /* w-72 */
  height: auto;
  margin-top: -5rem; /* md:-mt-20 */
}

@media(max-width: 768px) {
  #hero-logo img {
    margin-top: 0;
  }
}




#why-us {
  color: white;
  padding: 0 2.5rem;
  padding-bottom: 2.5rem;
  padding-top: 10rem;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* center content horizontally */
}

/* Title */
#why-us h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

/* Center the grid */
#why-us .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-content: center; /* centers grid */
  align-items: center;
  margin: 0 auto; /* ensures centering */
}

@media(min-width: 1136px) {
  #why-us .cards {
    grid-template-columns: repeat(3, minmax(350px, 320px));
  }
}

/* Cards itself */
.card {
  background-color: #0f172a;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);

  width: 100%;
  max-width: 320px;

  margin-left: auto;  /* center */
  margin-right: auto; /* center */
}


.card:hover {
  box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  color: #bfdbfe;
  font-size: 1rem;
}




/* CTA section: background + sizing + centering */
#cta-section {
  position: relative;      /* allows z-index to work */
  z-index: 50;             /* ensures it sits above other elements */
  top: 0;                  /* aligns it at the top */
  margin: 0;               /* remove extra space */
  height: 200px;           /* keep your desired height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-position: center;
  background-size: cover;
  color: #fff;
  padding-bottom: 6rem;  /* adds space inside the section */
  padding-top: 6rem;  /* adds space inside the section */
}


/* Inner translucent panel */
.cta-inner {
  background: rgba(0,0,0,0.6);      /* bg-black bg-opacity-60 */
  padding: 2.5rem;                  /* p-10 -> 2.5rem */
  border-radius: 2rem;              /* rounded-xl */
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 900px;
  width: calc(100% - 2rem);
  box-sizing: border-box;
}

/* Keep your animation — you mentioned you already have it */
/* @keyframes flyInFancy { ... } */
/* .animate-flyInFancy { animation: flyInFancy 1.4s ease-out forwards; } */

/* Title */
.cta-inner h2 {
  font-size: 2.25rem;     /* text-4xl */
  font-weight: 700;       /* font-bold */
  margin: 0 0 1rem 0;     /* mb-4 */
  color: #ffffff;
  line-height: 1.1;
}

/* Paragraph */
.cta-inner p {
  margin: 0 0 1.5rem 0;   /* mb-6 */
  font-size: 1.125rem;    /* text-lg */
  color: #ffffff;
  opacity: 0.95;
  max-width: 60ch;
}

/* CTA button */
.btn-join {
  display: inline-block;
  padding: 0.75rem 1.5rem;           /* py-3 px-6 */
  background-color: #dc2626;         /* red-600 */
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.5rem;             /* rounded-lg */
  font-weight: 600;                  /* font-semibold */
  transition: background-color 0.15s ease, transform 0.12s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Hover */
.btn-join:hover,
.btn-join:focus {
  background-color: #b91c1c;         /* red-700 */
  transform: translateY(-2px);
  outline: none;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  #cta-section { height: auto; padding: 2rem 0; margin-bottom: 4rem; }
  .cta-inner { padding: 1.25rem; width: calc(100% - 1.5rem); }
  .cta-inner h2 { font-size: 1.5rem; }
  .cta-inner p { font-size: 1rem; }
  .btn-join { padding: 0.6rem 1.1rem; }
}





@keyframes flyInFancy {
  0% {
    opacity: 0;
    transform: translateX(-80px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateX(10px) scale(1.05);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

.animate-flyInFancy {
  animation: flyInFancy 1.4s ease-out forwards;
}


/* ------------------------------------------- */
/* GLOBAL FIXES */
/* ------------------------------------------- */
@media (max-width: 1170px) {
  html, body {
    overflow-x: hidden !important;
  }
}

/* ------------------------------------------- */
/* HEADER RESPONSIVE */
/* ------------------------------------------- */
@media (max-width: 1170px) {

  header {
    flex-direction: column !important;
    text-align: center;
    gap: 20px;
  }

  header > div:first-child {
    width: 100%;
    justify-content: center;
  }

  header img {
    height: 70px !important;
  }

  /* Navigation stacks vertically */
  header nav {
    flex-direction: column !important;
    width: 100%;
    gap: 8px !important;
    text-align: center;
  }

  /* Login / Signup / Language buttons stacked */
  header > div:last-child {
    flex-direction: column;
    width: 100%;
    gap: 10px !important;
    justify-content: center;
  }
}

/* ------------------------------------------- */
/* HERO SECTION FIX */
/* ------------------------------------------- */
@media (max-width: 768px) {

  #home {
    padding: 40px 20px !important;
    text-align: center !important;
  }

  #home .flex {
    flex-direction: column !important;
    text-align: center !important;
  }

  #home img {
    width: 150px !important;
    margin: 20px auto !important;
  }

  #home h2 {
    font-size: 26px !important;
  }

  #home p {
    font-size: 15px !important;
  }
}

/* ------------------------------------------- */
/* 3-COLUMN SECTIONS (Why us, classes, trainers) */
/* ------------------------------------------- */
@media (max-width: 900px) {
  .grid.md\:grid-cols-3,
  #why-us .grid,
  #classes .grid,
  #trainers .grid {
    grid-template-columns: 1fr !important;
  }
}

/* ------------------------------------------- */
/* “Push Your Limits” banner fix */
/* ------------------------------------------- */
@media (max-width: 900px) {
  section.bg-cover.bg-center.h-\[200px\] {
    height: auto !important;
    padding: 40px 20px !important;
  }
}


/* ===========================
   FOOTER
   =========================== */
#siteFooter {
  background: linear-gradient(to right, #032c8a, #113eb0);
  color: white;
  padding: 3rem 2.5rem;
  margin-top: 8rem;
  font-size: 0.875rem; /* text-sm */
}

#footerGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Desktop layout: 4 columns */
@media (min-width: 768px) {
  #footerGrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

/* Logo */
#footerLogo img {
  height: 14rem; /* h-56 */
  width: auto;
  margin-bottom: 1rem;
}

/* Footer headings */
#footerGrid h4 {
  font-weight: 700; /* font-bold */
  font-size: 1.125rem; /* text-lg */
  margin-bottom: 1rem;
}

/* Footer lists */
#footerGrid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footerGrid ul li {
  margin-bottom: 0.5rem; /* space-y-2 */
}

#footerGrid ul li a {
  color: white;
  text-decoration: none;
  transition: 0.2s;
}

#footerGrid ul li a:hover {
  text-decoration: underline;
}

/* Contact section paragraphs */
#footerContact p {
  margin-bottom: 0.5rem;
}

/* Rights / copyright */
#footerRights {
  text-align: center;
  color: #93c5fd; /* text-blue-300 */
  margin-top: 3rem;
  font-size: 0.875rem;
}

/* ===========================
   RESPONSIVE: MOBILE
   =========================== */
@media (max-width: 900px) {
  #footerGrid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 40px !important;
  }

  #footerLogo img {
    height: 140px !important;
    margin: 0 auto !important;
  }
}



/* ===========================
   COOKIE POPUP
   =========================== */
#cookie-popup {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  max-width: 700px;
  width: 90%;
}

#cookie-popup p {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: #333;
}

#cookie-popup .cookie-buttons {
  display: flex;
  gap: 10px;
}

#cookie-accept,
#cookie-decline {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

#cookie-accept {
  background: #007bff;
  color: white;
}

#cookie-decline {
  background: #e5e5e5;
  color: #333;
}

/* -------------------------------------------
   MOBILE FIX
------------------------------------------- */
@media (max-width: 768px) {
  #cookie-popup {
    width: 90% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}




#main-nav {
  display: flex;
  flex-direction: column;
  font-size: 1.125rem; /* text-lg */
  gap: 0.5rem;
}

@media (min-width: 768px) {
  #main-nav {
    flex-direction: row;
    gap: 1.5rem; /* space between links */
  }
}

#main-nav a {
  text-decoration: none;
  color: inherit;
  padding-bottom: 0.25rem;
}

#main-nav a:hover {
  text-decoration: underline;
}

#main-nav a.active {
  font-weight: bold;
  border-bottom: 2px solid #dc2626; /* Tailwind red-600 */
}





/* Container layout */
#header-actions {
  display: flex;
  align-items: center;
  gap: 1rem; /* space between items */
  width: auto;
}

/* Dropdown parent */
.dropdown {
  position: relative; /* required for absolute positioning of dropdown */
  display: inline-block;
}

/* Language Button */
#langBtn {
  display: flex;
  align-items: center;
  gap: 0.5rem;           /* space between icon and text */
  padding: 0.5rem 0.75rem;
  border: 1px solid white;
  border-radius: 0.25rem;
  font-weight: 600;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

#langBtn:hover {
  background: white;
  color: #1e40af; /* blue-900 */
}

/* Dropdown menu */
#langMenu {
  display: none;           /* hidden by default */
  position: absolute;
  top: 100%;               /* directly below the button */
  left: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  z-index: 10;
  width: 100%;             /* match button width */
  flex-direction: column;
  align-items: center;     /* center links horizontally */
}

/* Show dropdown on hover */
.dropdown:hover #langMenu {
  display: flex;
}

/* Dropdown links */
#langMenu a {
  display: block;
  width: 100%;            /* full width for hover area */
  text-align: center;     /* center text */
  padding: 0.25rem 0;
  color: black;
  text-decoration: none;
}

#langMenu a:hover {
  background: #f0f0f0;
}

/* Login button */
.btn-outline {
  padding: 0.5rem 1rem;
  border: 1px solid white;
  border-radius: 0.25rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: white;
  color: #1e40af; /* blue-900 */
}

/* Sign Up button */
.btn-red {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 600;
  background-color: #dc2626; /* red-600 */
  color: white;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-red:hover {
  background-color: #b91c1c; /* red-700 */
}








/* ===========================
   CLASSES SECTION
   =========================== */
#classes {
  padding: 8rem 2.5rem 3rem;
  text-align: center;
  color: white;
}

#classes h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Your existing layout */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Force 1 card per row on screens smaller than 1170px */
@media (max-width: 1170px) {
  .class-grid {
    grid-template-columns: 1fr !important;
        justify-items: center; /* Center the card */
  }

  #classCard {
    max-width: 400px; /* Prevent stretching */
    width: 100%;      /* Make it responsive */
  }
}

#card_why {
  width: 350px;
  height: 182px;
}

.class-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: 0.2s;
  text-align: left;   /* CENTER TITLE + TEXT */
}

#classCardtitle {
  text-align: center;   /* CENTER TITLE + TEXT */
}

.class-card:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.class-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: black;
}

.class-card p {
  color: #555;
}


/* ===========================
   MOTIVATION SECTION
   =========================== */
#motivation {
  padding: 5rem 2rem;
  text-align: center;
  color: #dbeafe;
}

.motivation-container {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

#motivation h4 {
  font-size: 1.75rem;
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
}


/* ===========================
   TRAINERS SECTION
   =========================== */
#trainers {
  padding: 3rem 2rem;
  text-align: center;
  color: white;
}

#trainers h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Your existing layout */
.trainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Force 1 card per row on screens smaller than 1170px */
@media (max-width: 1170px) {
  .trainer-grid {
    grid-template-columns: 1fr !important;
        justify-items: center; /* Center the card */
  }

  #classCard {
    max-width: 400px; /* Prevent stretching */
    width: 100%;      /* Make it responsive */
  }
}


.trainer-card {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.trainer-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 1rem;
  display: block;
  margin: 0 auto 1rem auto; /* centers the image */
}

.trainer-card h4 {
  font-size: 1.25rem;
  color: black;
  font-weight: 700;
}

.trainer-card p {
  color: #666;
}


/* ===========================
   TRAINER QUOTES
   =========================== */
#trainer-quotes {
  text-align: center;
  margin-bottom: 8rem;
  padding: 0 2rem;
}

/* Your existing layout */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Force 1 card per row on screens smaller than 1170px */
@media (max-width: 1170px) {
  .quotes-grid {
    grid-template-columns: 1fr !important;
        justify-items: center; /* Center the card */
  }

  #classCard {
    max-width: 400px; /* Prevent stretching */
    width: 100%;      /* Make it responsive */
  }
}


.quote-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.quote {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

.quote-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #222;
}









