@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@300&display=swap');

/* ---------------- GLOBAL ---------------- */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ---------------- LAYOUT ---------------- */
.container {
  position: relative;
  min-height: 100vh;
}

.full-screen-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

/* Hide the GIF fallback by default */
.ios-fallback {
  display: none;
}

.content {
  padding: 20px;
  background-color: white;
  text-align: center;
}

/* ---------------- LOGO (NOW IN NAVBAR) ---------------- */
.navbar .logo {
  height: 80px;
  width: auto;
  margin-right: auto; /* pushes content to the right */
  border-radius: 10px;
}

@media (max-width: 600px) {
  .navbar .logo {
    height: 50px;
    border-radius: 10px;
  }
}

/* ---------------- BUTTONS ---------------- */
.buttons-container {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buttons-container button {
  background-color: #444;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 150px;
}

.buttons-container button:hover {
  background-color: #555;
}

@media (max-width: 600px) {
  .buttons-container button {
    width: 120px;
  }
}

@media (min-width: 768px) {
  .buttons-container button {
    width: 350px;
    height: 50px;
  }
  .buttons-container {
    padding-left: 50px;
  }
}

/* ---------------- FOOTER ---------------- */
footer {
  text-align: center;
  padding: 20px 0;
  background-color: #0a98ea;
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 20px;
}

/* ---------------- HOME, ABOUT, CONTACT ---------------- */
.home-container,
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

#about {
  background-color: white;
}


.home-container {
  background-color: #f0f0f0;
}

.main-header {
  font-size: 2em;
  color: #333;
  margin-top: 10px;     /* ⬅ reduce top spacing */
  margin-bottom: 20px;
  text-align: center;
}

.sub-header {
  font-size: 1.8rem;
  margin-top: 35px;
  margin-bottom: 5px !important;  /* ⬅ reduce space under h3 */
  color: #0a98ea;
  text-align: center;
}

@media (max-width: 768px) {
  .sub-header {
    font-size: 1.5rem;
  }
}

li {
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  li {
    font-size: 1.25rem;
  }
  ul {
    font-size: 1.2rem;
  }
  p {
    font-size: 1.2rem;
  }
}

/* ---------------- MAP ---------------- */
#map {
  height: 400px;
  width: 100%;
}

/* ---------------- CONTACT ---------------- */
#contact {
  padding: 25px 20px;
  background-color: #d2ebfa;
  color: black;
  text-align: center;
  font-family: 'Arial', sans-serif;
}

#contact h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: black;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 20px 20px; /* top=0, right=20, bottom=20, left=20 */
}

.contact-info-tile {
  background: white;
  border: 2px solid silver;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: left;
}

/* Mobile: reduce only the top padding */
@media (max-width: 768px) {
  .contact-info-tile {
    padding: 10px 20px 20px 20px; /* top=10px, rest unchanged */
  }
}

.contact-info-tile h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: black;
}

.contact-info-tile p {
  margin: 0 0 10px;
  line-height: 1.6;
  color: black;
}

.contact-info-tile a {
  color: black;
  text-decoration: underline;
  font-weight: bold;
}

.contact-info-tile a:hover {
  color: silver;
  text-decoration-color: silver;
}

@media (min-width: 768px) {
  .contact-card {
    flex-direction: row;
    justify-content: space-between;
  }
  .contact-info-tile {
    flex: 1;
    margin: 0 10px;
  }
}

.contact-detail {
  color: black;
  font-weight: bold;
}

/* ---------------- NAVBAR ---------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: #ffffff;
  color: black;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* logo far left */
  padding: 0 40px;
  box-sizing: border-box;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
border-bottom: 8px solid #0a98ea; /* ✅ thick blue line at the bottom */
}

.navbar.with-shadow {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ---------------- SIDEBAR LINKS (BLUE STYLE) ---------------- */
.sidebar-link {
  display: block;
  color: #0a98ea; /* blue text */
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 6px 0;
}

.sidebar-link:hover {
  color: #0077cc;
  transform: scale(1.3); /* slightly larger on hover */
}


/* ---------------- MENU ICON ---------------- */
.menu-icon {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

.menu-icon.has-profile {
  width: 40px !important;
  height: 40px !important;
}

.menu-icon .bar {
  width: 30px;
  height: 6px;
  background-color: black;
  border-radius: 2px;
  margin: 4px 0;
}

.menu-icon .x-icon {
  font-size: 28px;
  color: black;
  display: none;
  user-select: none;
}

.menu-icon.open .bar {
  display: none;
}

.menu-icon.open .x-icon {
  display: block;
}

/* ---------------- SIDEBAR ---------------- */
.side-nav {
  position: fixed;
  top: 120px;
  right: 0;
  width: 100%;
  max-width: 310px;
  height: calc(100% - 120px);
  background-color: white;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 40;

  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px calc(2 * (8px + 32px));

  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.side-nav.open {
  transform: translateX(0);
}

html.sidebar-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

html.sidebar-open .navbar {
  padding-right: calc(40px + var(--scrollbar-width, 0px));
}

.side-nav hr.full-width-divider {
  width: calc(100% + 50px);
  margin-left: -10px;
  margin-right: -40px;
  margin-top: 8px;
  margin-bottom: 8px;
  border: none;
  border-top: 1px solid #ccc;
}

.side-nav > *:not(hr) {
  padding-left: 10px;
  padding-right: 10px;
}

.side-nav > button:first-of-type {
  margin-top: 18px;
}

/* ---------------- COMMUNITY BUTTONS ---------------- */
.community-btn {
  padding: 10px;
  margin: 0;
  font-weight: bold;
  border-radius: 5px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  color: #0F4D0F;
  border: 1px solid #0F4D0F;
}

.community-btn a {
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.community-btn:hover {
  background-color: #0F4D0F;
  color: white;
}

.community-btn.premium {
  background: white;
  color: #ebbf2d;
  border: 2px solid #ebbf2d;
}

.community-btn.premium:hover {
  background-color: gold;
  color: black;
}

.community-btn.email {
  background-color: #6a11cb;
}

.community-btn.phone {
  background-color: #ff416c;
}

.community-btn.linkedin {
  background-color: #0077B5;
  color: white;
}

.community-btn.instagram {
  background-color: #E4405F;
  color: white;
}

.community-btn:hover {
  opacity: 0.9;
}

/* ---------------- OVERLAY ---------------- */
.overlay {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100% - 64px);
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 30;
  display: none;
}

.overlay.active {
  display: block;
}

/* ---------------- MISC ---------------- */
.welcome-btn {
  background-color: #0F4D0F !important;
  color: white !important;
  border: 1px solid #0F4D0F !important;
  cursor: default;
  opacity: 0.9 !important;
}

.side-nav h3 {
  margin: 0 0 0.25rem 0;
  color: #444;
  font-size: 0.9rem;
  font-family: 'Noto Sans', Arial, sans-serif;
}

@media (max-width: 768px) {
  .side-nav h3 {
    font-size: 0.8rem !important;
  }
}

.profile-edit-btn {
  background-color: #0F4D0F !important;
  color: white !important;
  border: 1px solid #0F4D0F !important;
  padding: 10px !important;
  border-radius: 5px !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 0 !important;
}

.profile-edit-btn:hover {
  opacity: 0.9 !important;
}

/* ---------------- SIDENAV RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .side-nav {
    width: 80vw !important;
    right: -80vw;
  }
  .side-nav.open {
    right: 0 !important;
  }
}

@media (max-width: 480px) {
  .side-nav {
    width: 100vw !important;
    right: -100vw;
  }
  .side-nav.open {
    right: 0 !important;
  }
}

/* ---------------- CLEAN BLUE LINKS IN SIDEBAR ---------------- */
.side-nav a.sidebar-link {
  all: unset; /* remove all inherited button styles */
  display: block;
  color: #0a98ea; /* bright blue */
  font-weight: bold;
  font-size: 1.05rem;
  padding: 8px 0;
  margin: 4px 0;
  margin-left: 15px; /* ✅ 15px indentation */
  cursor: pointer;
  transition: all 0.25s ease; /* smooth grow/shift effect */
  transform-origin: left center; /* ✅ grows to the right */
}

/* ✅ Add 20px space above the first link */
.side-nav a.sidebar-link:first-of-type {
  margin-top: 30px;
}

/* ✅ Grow and expand to the right when hovered */
.side-nav a.sidebar-link:hover {
  color: #0077cc;
  transform: scale(1.3) translateX(6px);
}

.side-nav a.sidebar-link i {
  margin-left: 6px;
}

/* ✅ Fix right-side padding issue on mobile */
.students-container {
  text-align: center;
  display: flex;
  gap: 20px;
  padding: 20px 20px 0 20px; /* top = 20, left/right = 20, bottom = 0 */
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .students-container {
    padding-top: 0 !important;   /* remove top padding */
    padding-right: 20px;         /* keep existing values */
    padding-bottom: 0;
    padding-left: 20px;
  }
}

.student {
  flex: 1;
  text-align: center;
  /* min-height: 400px; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 0 10px; /* ⬅ top + left/right = 10px, bottom = 0 */
  background: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

/* ✅ Mobile fix: consistent horizontal padding */
@media (max-width: 768px) {
  .students-container {
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px; /* fixes right edge issue */
  }

  .student {
    width: 100%;
  }
}

/* ✅ Wider student images that fill the card space */
.student img {
  width: 100%;
  height: 100%; /* makes image fill more vertical space too */
  max-height: 350px; /* allows some extra height for wider images */
  object-fit: cover; /* ✅ fills the space by cropping edges slightly instead of leaving gaps */
  border-radius: 10px;
  display: block;
  background-color: white;
}

/* Mobile: Keep images' original aspect ratio and prevent height change */
@media (max-width: 768px) {
    .students-container {
        flex-direction: column; /* Stack images on mobile */
    }

    .student {
        width: 100%;
    }

    .student img {
        width: 100%; /* Make the image fill the container width */
        height: auto; /* Maintain the image's original height and aspect ratio */
    }
}

  /* ===== Promo Overlay Section (Transparent + Screen-Fitting) ===== */
.promo-overlay {
  position: absolute;
  top: 22%; /* slightly higher */
  left: 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
  color: white;
  padding: 40px 5%;
  background: none; /* ✅ fully transparent */
  box-sizing: border-box;
  overflow-wrap: break-word; /* ✅ ensure wrapping */
}

.promo-overlay h2 {
  font-size: 2.6rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 25px;
  text-shadow:
    0 4px 12px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(255, 255, 255, 0.7),
    0 0 10px rgba(0, 191, 255, 0.6);
  white-space: normal; /* ✅ allow wrapping */
  word-wrap: break-word;
  letter-spacing: 0.8px;
}

.promo-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 35px auto;
  text-align: center;        /* center the list as a whole */
  max-width: 90%;
}

.promo-overlay ul li {
  display: block;            /* <-- FIX: ensures each item is its own line */
  margin: 12px 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(255, 255, 255, 0.6);
  white-space: normal;
}

@media (max-width: 768px) {
  .promo-overlay ul li {
    margin: 18px 0; /* was 12px — increase for more spacing */
  }
}

.promo-overlay ul li::before {
  content: "\f00c";                  /* Font Awesome blue tick */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #0a98ea;
  font-size: 1.6rem;
  text-shadow: 0 0 12px rgba(10, 152, 234, 0.7);
  margin-right: 10px;
}

/* ===== Larger + thicker tick on desktop ===== */
@media (min-width: 769px) {
  .promo-overlay ul li::before {
    font-size: 1.9rem;     /* bigger tick */
    font-weight: 900;      /* thickest FA weight */
    margin-right: 14px;    /* extra spacing from text */
  }
}

/* ✅ Book Now button styling */
.promo-overlay .promo-btn {
  display: inline-block;
  margin-top: 25px;
  background-color: #ff0000;
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.3rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.promo-overlay .promo-btn:hover {
  background-color: #cc0000;
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(255, 0, 0, 1);
}

/* ✅ Responsive adjustments */
@media (max-width: 768px) {
  .promo-overlay {
    top: 14%;
    padding: 25px 8%;
  }

  .promo-overlay h2 {
    font-size: 2rem;
    white-space: normal;
  }

  .promo-overlay ul li {
    font-size: 1.3rem;
  }

  .promo-overlay .promo-btn {
    font-size: 1.2rem;
    padding: 13px 26px;
  }
}

.site-footer {
    font-size: 1.3rem;
    text-align: center;
    padding: 10px 0;
    color: white;
  }

  .site-footer a {
    color: #FFFFFF;
    text-decoration: underline;
    font-weight: bold;
    font-size: 1.3rem;
  }

  /* ✅ Smaller text on mobile screens */
  @media (max-width: 700px) {
    .site-footer {
      font-size: 1.1rem;
    }
    .site-footer a {
      font-size: 1.1rem;
    }
  }

/* ✅ Center all sub-headers and paragraphs */
.sub-header,
.about-container p {
  text-align: center;
}

/* Make all contact tiles allowed to shrink equally on desktop */
@media (min-width: 768px) {
  .contact-card {
    display: flex;
    gap: 20px;
  }

  .contact-info-tile {
    flex: 2 1 0;
    min-width: 0;                 /* <-- key: allow shrinking below content size */
  }

  /* Let long links wrap instead of forcing the tile wide */
  .contact-info-tile a,
  .contact-info-tile .contact-detail {
    overflow-wrap: anywhere;      /* wraps long emails/handles */
    word-break: break-word;
    white-space: normal;
  }
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black with transparency */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-content button {
    background-color: #0a98ea;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #0a98ea;
}

p {
  margin-bottom: 5px !important;
  padding-bottom: 5px !important;
}


/* Make the whole container narrower so the cards shrink in width */
.instructor-section {
    max-width: 1000px;
    margin: 0 auto;
}

.instructor-section .student {
    flex: 0 0 48%;
    padding: 10px 10px 0 10px !important;
    display: flex;
    flex-direction: column;
}

/* Image takes natural height — NO forced cropping */
.instructor-section .student img {
    width: 100%;
    height: auto !important;   /* ⬅️ natural height */
    object-fit: cover !important;  /* show full image */
    border-radius: 10px;
}

/* Caption sits below the natural-height image */
.instructor-section .student p {
    margin-top: 10px;
}

/* ---------------- MOBILE VERSION ---------------- */
@media (max-width: 768px) {
    .instructor-section .student {
        flex: 1 1 100%;      /* stack vertically */
    }

    .instructor-section .student img {
        width: 100%;
        height: auto !important;
        object-fit: cover;   /* optional: fill width better on mobile */
    }
}

@media (min-width: 769px) {
    .students-container.instructor-section, .instructor-section .student img {
        min-height: 500px !important;   /* ⬅️ adjust height here */
    }
}

/* default (desktop/tablet) */
.mobile-break { display: none; }

/* mobile only */
@media (max-width: 768px) {
  .mobile-break { display: inline; }

  /* keep the second line on ONE line */
  .mobile-line2 {
    white-space: nowrap;
    display: inline-block;
  }

  /* let the whole title scale down on very narrow screens */
  .promo-overlay h2,
  .promo-title {
    font-size: clamp(1.9rem, 6.9vw, 2.9rem);
    line-height: 1.2; /* a touch tighter helps fit */
  }
}

@media (min-width: 768px) {  /* Adjust breakpoint if needed */
    .sms-button .contact-detail {
        font-size: 1.2rem;
    }
}
