body {
margin: 0;
font-family: Arial, sans-serif;
background: #f5f5f5;
}

/* NAVBAR */
.navbar {
display: flex;
justify-content: space-between;
padding: 16px 32px;
background: #0e3b3b;
color: white;
}

.navbar a {
color: white;
margin-left: 20px;
text-decoration: none;
}

/* HERO */
.hero {
  height: 520px; /* increase a bit for better presence */
  background: url("assets/images/hero_image_01.jpg") center/cover no-repeat;
  position: relative;
}

/* Overlay MUST fill entire hero */
.overlay {
  position: absolute;
  inset: 0; /* top:0; left:0; right:0; bottom:0 */

  background: rgba(0, 0, 0, 0.55);

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 60px;
  color: white;
}

.search-form {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
max-width: 800px;
}

.search-form input,
.search-form button {
padding: 10px;
border: none;
border-radius: 4px;
}

.search-form button {
background: #0e3b3b;
color: white;
cursor: pointer;
}

/* FEATURED */
.featured {
padding: 150px;
padding-top: 40px;
}

.school-card {
display: flex;
background: white;
margin-bottom: 20px;
padding: 20px;
border-radius: 8px;
}

.image-placeholder {
width: 120px;
height: 120px;
background: #ccc;
margin-right: 20px;
}

.view-btn {
background: #0e3b3b;
color: white;
padding: 8px 16px;
border: none;
margin-top: 10px;
cursor: pointer;
}

.view-all {
display: block;
margin: 40px auto;
padding: 12px 24px;
background: #0e3b3b;
color: white;
border: none;
}

.form-group {
display: flex;
flex-direction: column;
}

.form-group label {
font-size: 14px;
margin-bottom: 4px;
color: white;
}

.form-group input,
.form-group select {
padding: 10px;
border-radius: 4px;
border: none;
}


/* Styiling for the individual schedule Page */

/* GYM SCHEDULE */

#schedule {
  margin-top: 24px;
}

.day-block {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.day-block h3 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #0e3b3b;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 8px;
}

.class-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.class-row:last-child {
  border-bottom: none;
}

.class-row span:first-child {
  font-weight: 700;
  color: #222;
}

.class-row span:last-child {
  background: #e9f3f3;
  color: #0e3b3b;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 14px;
}

.day-block p {
  margin: 0;
  color: #777;
  font-style: italic;
}

@media (max-width: 600px) {
  .class-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .class-row span:last-child {
    margin-top: 4px;
  }
}


/* Original Stiling for the All Schools Pages */

.all-schools-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.all-schools-header {
  margin-bottom: 30px;
}

.all-schools-header h1 {
  margin-bottom: 8px;
}

.schools-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.school-description {
  margin: 12px 0;
  color: #555;
  line-height: 1.5;
}

.school-socials {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.school-socials a {
  text-decoration: none;
  color: #0e3b3b;
  font-weight: 600;
}

.school-socials span {
  color: #777;
  font-size: 14px;
}


/* Updated stiling for the All Schools Pages */

.all-schools-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}

.school-filters {
  background: white;
  padding: 20px;
  border-radius: 10px;
  position: sticky;
  top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  gap: 8px;
}

.filter-group label {
  font-weight: 600;
}

.filter-group input,
.filter-group select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.school-filters .view-btn {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 800px) {
  .all-schools-layout {
    grid-template-columns: 1fr;
  }

  .school-filters {
    position: static;
  }
}

/* FOOTER Stiling */

.footer {
  margin-top: 60px;
  background: #0e3b3b;
  color: white;
  padding: 20px 0;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left {
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* MOBILE (footer styling) */

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.static-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  line-height: 1.6;
}

.static-page h1 {
  margin-bottom: 16px;
}

.hero {
  background-attachment: fixed;
}

/* ABOUT PAGE */

.about-page {
  background: #fff;
}

.about-intro,
.about-extra {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 60px;
}

.about-extra {
  padding-bottom: 10px;
}

.follow-us {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 60px 50px;
}

.about-intro h1 {
  font-size: 40px;
  margin-bottom: 40px;
}

.about-intro p,
.about-extra p {
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 15px;
}

/* COMMUNITY CTA */

.community-cta {
  min-height: 360px;
  background: url("assets/images/hero_image_01.jpg") center/cover no-repeat;
  position: relative;
  color: white;
}

.community-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.community-overlay {
  position: relative;
  z-index: 1;
  min-height: 360px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 40px 20px;
}

.community-overlay h2 {
  font-size: 38px;
  margin-bottom: 40px;
}

.community-stats {
  display: flex;
  gap: 120px;
  margin-bottom: 30px;
}

.community-stats div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.community-stats strong {
  font-size: 52px;
}

.community-stats span {
  font-size: 16px;
}

.community-overlay p {
  font-size: 20px;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #111;
  padding: 16px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
}

/* FOLLOW */

.follow-us h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.follow-icons {
  display: flex;
  gap: 24px;
}

.follow-icons a {
  font-size: 34px;
  text-decoration: none;
}

/* MOBILE */

@media (max-width: 768px) {
  .about-intro,
  .about-extra,
  .follow-us {
    max-width: 100%;
    padding: 30px 24px;
  }

  .about-extra {
    padding-bottom: 5px;
  }

  .follow-us {
    padding-top: 5px;
    padding-bottom: 40px;
  }

  .about-page .back-btn {
    margin: 35px 0 0 24px;
    font-size: 24px;
  }

  .about-intro h1 {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .about-intro p,
  .about-extra p {
    font-size: 16px;
  }

  .community-stats {
    flex-direction: column;
    gap: 30px;
  }

  .community-stats strong {
    font-size: 42px;
  }

  .community-overlay h2 {
    font-size: 30px;
  }

  .cta-button {
    font-size: 18px;
  }
}


/* This Section Aims to deploy and ensure responsiveness across devices */

/* ===============================
   GLOBAL RESPONSIVE SAFETY LAYER
   Add this at the END of stylesheet.css
================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* ===============================
   NAVBAR RESPONSIVE
================================= */

.navbar {
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  flex-wrap: wrap;
}

.navbar a {
  margin-left: 0;
  white-space: nowrap;
}

/* ===============================
   HERO RESPONSIVE
================================= */

.hero {
  min-height: clamp(520px, 75vh, 760px);
  height: auto;
  background-attachment: fixed;
}

.overlay {
  padding: clamp(24px, 6vw, 70px);
}

.overlay h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  max-width: 900px;
}

/* Search form adapts automatically */
.search-form {
  width: min(100%, 950px);
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
}

.search-form button {
  min-height: 48px;
}

/* Inputs and selects fill their cells */
.search-form input,
.search-form select,
.search-form button,
.form-group input,
.form-group select {
  width: 100%;
}

/* ===============================
   FEATURED / CARD RESPONSIVE
================================= */

.featured {
  padding: clamp(32px, 7vw, 90px) clamp(18px, 8vw, 150px);
}

.school-card {
  width: 100%;
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  align-items: flex-start;
}

.image-placeholder {
  flex: 0 0 clamp(100px, 18vw, 180px);
  width: clamp(100px, 18vw, 180px);
  height: clamp(100px, 18vw, 180px);
  margin-right: 0;
}

.school-info {
  min-width: 0;
  flex: 1;
}

.school-info h3,
.school-info p {
  overflow-wrap: anywhere;
}

/* ===============================
   ALL SCHOOLS / EVENTS RESPONSIVE
================================= */

.all-schools-container {
  width: min(100%, 1100px);
  padding: clamp(28px, 5vw, 50px) clamp(16px, 4vw, 24px);
}

.all-schools-layout {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px);
}

.school-filters {
  width: 100%;
}

.filter-group input,
.filter-group select {
  width: 100%;
}

/* ===============================
   GYM DETAIL PAGE RESPONSIVE
================================= */

.gym-container {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 60px) clamp(18px, 5vw, 60px);
}

.gym-header {
  display: flex;
  gap: clamp(24px, 6vw, 80px);
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.gym-info {
  flex: 1 1 420px;
  min-width: 0;
}

.gym-image {
  flex: 0 1 clamp(140px, 24vw, 220px);
  width: clamp(140px, 24vw, 220px);
  height: clamp(140px, 24vw, 220px);
}

.back-btn {
  max-width: max-content;
}

/* ===============================
   ABOUT PAGE RESPONSIVE
================================= */

.about-intro,
.about-extra,
.follow-us {
  width: min(100%, 900px);
  padding-left: clamp(20px, 5vw, 60px);
  padding-right: clamp(20px, 5vw, 60px);
}

.about-intro h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.community-cta {
  min-height: clamp(420px, 55vh, 620px);
}

.community-overlay {
  min-height: inherit;
  padding: clamp(32px, 6vw, 60px) 20px;
}

.community-overlay h2 {
  font-size: clamp(30px, 5vw, 44px);
}

.community-stats {
  width: min(100%, 850px);
  display: flex;
  justify-content: center;
  gap: clamp(28px, 8vw, 120px);
  flex-wrap: wrap;
}

.community-stats strong {
  font-size: clamp(38px, 7vw, 58px);
}

.cta-button {
  font-size: clamp(18px, 3vw, 26px);
  padding: clamp(12px, 3vw, 18px) clamp(20px, 4vw, 34px);
}

/* ===============================
   FOOTER RESPONSIVE
================================= */

.footer-container {
  gap: 16px;
}

.footer-links {
  justify-content: center;
}

/* ===============================
   TABLET BREAKPOINT
================================= */

@media (max-width: 900px) {
  .navbar {
    padding: 16px 24px;
  }

  .all-schools-layout {
    grid-template-columns: 1fr;
  }

  .school-filters {
    position: static;
  }

  .school-card {
    align-items: flex-start;
  }
}

/* ===============================
   MOBILE BREAKPOINT
================================= */

@media (max-width: 600px) {
  .navbar {
    justify-content: center;
    text-align: center;
    padding: 16px;
  }

  .navbar .logo {
    width: 100%;
  }

  .navbar nav {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: auto;
  }
  
  .overlay {
    position: relative;
    min-height: 620px;
    justify-content: center;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .featured {
    padding: 32px 16px;
  }

  .school-card {
    flex-direction: column;
    padding: 18px;
  }

  .image-placeholder {
    width: 100%;
    height: 180px;
    flex-basis: auto;
  }

  .view-btn,
  .view-all,
  .search-form button {
    width: 100%;
  }

  .gym-header {
    flex-direction: column;
  }

  .gym-image {
    width: 100%;
    height: 220px;
    flex-basis: auto;
  }

  .class-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .community-stats {
    flex-direction: column;
    gap: 28px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===============================
   SMALL MOBILE
================================= */

@media (max-width: 380px) {
  .overlay h1 {
    font-size: 28px;
  }

  .school-card {
    padding: 14px;
  }

  .about-intro,
  .about-extra,
  .follow-us,
  .gym-container,
  .all-schools-container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Fix large gap on individual gym page mobile layout */

@media (max-width: 600px) {
  .gym-info {
    flex: 0 1 auto;
  }

  .gym-header {
    gap: 20px;
  }

  .schedule-intro {
    margin-top: 180px;
  }
}

/* Checkbox filter layout - corrected */

.filter-group > label:first-child {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Each day row */
.filter-group label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 14px;
  font-weight: 400;
  color: #222;

  padding: 4px 0;
  cursor: pointer;
}

/* Push checkbox to the right */
.filter-group label input[type="checkbox"] {
  margin-left: auto;
  width: 16px;
  height: 16px;
}

/* GYM PAGE CTA - same style as About CTA */

.cta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 360px;

  background: url("assets/images/hero_image_01.jpg") center/cover no-repeat;
  position: relative;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cta h2,
.cta p,
.cta button {
  position: relative;
  z-index: 1;
}

.cta {
  flex-direction: column;
  padding: 40px 20px;
}

.cta h2 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 20px;
}

.cta p {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
}

.cta button {
  background: white;
  color: #111;
  border: none;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
  cursor: pointer;
}

/* Remove gap between CTA and footer */

.cta {
  margin-bottom: 0;
}

.footer {
  margin-top: 0;
}

/* BACK BUTTON */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: none;
  border: none;

  font-size: 18px;
  font-weight: 600;
  color: #111;

  cursor: pointer;
  padding: 6px 0;

  transition: opacity 0.2s ease;
}

.back-btn:hover {
  opacity: 0.6;
}

/* CLASS FILTER */

.schedule-intro {
  margin-top: 20px;
}

.schedule-intro label {
  font-size: 14px;
  font-weight: 600;
  margin-right: 10px;
}

#class-filter {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;

  font-size: 14px;
  background: white;
  cursor: pointer;

  transition: border-color 0.2s ease;
}

#class-filter:focus {
  outline: none;
  border-color: #0e3b3b;
}

/* SHARE BUTTON */

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-top: 30px;

  background: #0e3b3b;
  color: white;
  border: none;

  padding: 14px 22px;
  border-radius: 12px;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: #145050;
}

.share-btn:active {
  transform: scale(0.98);
}

@media (max-width: 600px) {
  .gym-image {
    margin-bottom: 180px;
  }

  .schedule-intro {
    margin-top: 0;
  }
}

.icons,
.follow-icons,
.school-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icons a,
.follow-icons a,
.school-socials a {
  color: #0e3b3b;
  font-size: 24px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.icons a:hover,
.follow-icons a:hover,
.school-socials a:hover {
  opacity: 0.75;
  transform: scale(1.1);
}

.view-all {
  display: block;
  margin: 40px auto;
  padding: 12px 24px;
  background: #0e3b3b;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-all:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.admin-form {
  background: white;
  padding: 24px;
  border-radius: 12px;
  max-width: 520px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.success-message {
  margin-top: 16px;
  color: green;
  font-weight: 600;
}

.error-message {
  margin-top: 16px;
  color: #b00020;
  font-weight: 600;
}

.image-placeholder,
.gym-image {
  overflow: hidden;
}

.image-placeholder img,
.gym-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#load-more-schools {
  margin-top: 24px;
  cursor: pointer;
}

.admin-form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  resize: vertical;
  font-family: Arial, sans-serif;
}

/* ADMIN DASHBOARD */

.admin-dashboard {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.admin-dashboard h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.admin-dashboard > p {
  color: #555;
  margin-bottom: 30px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.admin-dashboard-card {
  display: block;
  background: white;
  padding: 24px;
  border-radius: 12px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-dashboard-card h2 {
  color: #0e3b3b;
  margin-bottom: 10px;
}

.admin-dashboard-card p {
  color: #555;
  line-height: 1.4;
}

.admin-dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.contact-page {
  max-width: 900px;
}

.form-embed-wrapper {
  width: 100%;
  margin-top: 30px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.form-embed-wrapper iframe {
  width: 100%;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .form-embed-wrapper iframe {
    height: 1100px;
  }
}

.delete-btn {
  margin-top: 16px;
  background: #b00020;
  color: white;
  border: none;
  padding: 14px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.delete-btn:hover {
  background: #8c0018;
}

/* Styiling for the Logo*/


.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .logo img {
    height: 60px;
  }
 
}

/* CONTACT PAGE RESPONSIVE */

.contact-page {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
}

.form-embed-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.google-form-iframe {
  width: 100%;
  max-width: 100%;
  height: 1100px;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .contact-page {
    margin: 24px auto;
    padding: 0 12px;
  }

  .google-form-iframe {
    height: 1250px;
  }
}

@media (max-width: 700px) {
  .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

.cta {
  position: relative;
}

.cta::before {
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #111;
  padding: 16px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.cta-button:hover {
  transform: translateY(-2px);
}


