/* ===== Base Styles ===== */
body {
  margin: 0;
  /* font-family: 'Open Sans'; */
  background-color: #111;
  color: #fff;
}

@media (min-width: 769px) {
  body {
    padding-top: 80px;
  }
}

header.navbar {
  background: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  position: fixed;
  top: 0;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 80px;
  width: 100%;
  left: 0;
  right: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

header.navbar * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

header.navbar .hamburger,
header.navbar a,
header.navbar button {
  pointer-events: auto;
  touch-action: manipulation;
}

.logo img {
  height: 150px;
  transition: transform 0.3s ease;
}

/* ===== Tagline ===== */
.logo p {
  position: absolute;
  bottom: 4px;
  left: 11%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.65rem;
  color: #fff;
  letter-spacing: 1px;
  font-weight: 300;
  white-space: nowrap;
}

/* ===== Nav Menu ===== */
.nav-center ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-center ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.3s;
}
.navbar a.active {
  color: #ffbf00;
  text-decoration: underline;
}

.nav-center ul li a:hover {
  color: #00c3ff;
}

/* ===== Call Button ===== */
.call-btn {
  background: #ffff;
  color: #000000;
  border: none;
  padding: 12px 25px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 217, 0, 0.3);
  text-decoration: none;
  display: inline-block;
}

.call-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 217, 0, 0.5);
}

/* ===== Hamburger Menu (Hidden by Default) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 10001;
  position: relative;
}
.hamburger span {
  height: 2px;
  width: 24px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Mobile View ===== */
@media (max-width: 768px) {
  body {
    padding-top: 50px;
  }

  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  * {
    max-width: 100vw !important;
  }

  header.navbar {
    flex-wrap: nowrap;
    padding: 15px 15px;
    height: 50px;
    justify-content: space-between;
    align-items: center;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .hamburger {
    display: flex;
    order: 1;
    flex-shrink: 0;
  }

  .logo {
    order: 2;
    position: absolute;
    left: 47%;
    transform: translateX(-50%);
    text-align: center;
  }

  .logo img {
    height: 150px !important;
  }

  .logo p,
  .logo + p {
    display: none !important;
  }

  .call-btn {
    order: 3;
    padding: 8px 14px !important;
    font-size: 10px !important;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto !important;
  }
} /* ✅ properly closed first media query */

/* ===== Mobile Navigation Panel ===== */
@media (max-width: 768px) {
  header.navbar {
    overflow: visible !important;
    z-index: 10000;
  }

  .nav-center {
    position: fixed;
    top: 50px;
    left: -100%;
    width: 150px;
    height: calc(100vh - 50px);
    background: #000;
    transition: left 0.3s ease;
    padding: 40px 20px;
    z-index: 20000;
    overflow-y: auto;
  }

  .nav-center.active {
    left: 0;
  }

  .nav-center ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
  }

  .nav-center ul li {
    width: 100%;
  }

  .nav-center ul li a {
    display: block;
    width: 100%;
    color: #f5f5f5;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .nav-center ul li a:hover {
    color: #ffd700;
    transform: translateX(4px);
  }

  .nav-center ul li a.active {
    color: #ffd700;
    font-weight: 500;
  }

  /* Make upcoming events button smaller and single line on mobile */
  .carousel-overlay {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    text-align: center !important;
  }

  .events-btn {
    padding: 8px 18px !important;
    font-size: 14px !important;
    display: inline-block !important;
  }

  /* Perfect fit for carousel images on mobile */
  .carousel-slide img {
    height: 50vh !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* Review boxes */
  .x-el-div[data-ux="Grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 15px !important;
  }

  .x-el-div[data-ux="GridCell"] {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .x-el-div[data-ux="ContentCard"] {
    max-width: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: #1a1a1a !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    padding-bottom: 20px !important;
  }

  .x-el-div[data-ux="ContentCardWrapperImage"] {
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
    margin-bottom: 15px !important;
  }

  .x-el-div[data-ux="ContentCardWrapperImage"] img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .x-el-h1[data-ux="SectionHeading"] {
    font-size: 2rem !important;
    margin-bottom: 30px !important;
    text-align: center !important;
    padding: 0 15px !important;
  }

  .x-el-h4[data-ux="ContentCardHeading"] {
    font-size: 1.5rem !important;
    margin: 0 15px 12px 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #fff !important;
  }

  .x-el[data-ux="ContentCardText"] {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin: 0 15px 20px 15px !important;
    color: #ddd !important;
    text-align: left !important;
  }

  .x-el-a[data-ux="ContentCardButton"] {
    margin: 0 15px 10px 15px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    width: calc(100% - 30px) !important;
    text-align: center !important;
    display: block !important;
  }
} /* ✅ properly closed second media query */

/* ===== Hamburger Animation ===== */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-6px);
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #000;
  box-sizing: border-box;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.carousel-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
  width: 100%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out; /* ✅ unified transition */
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  opacity: 1; /* ✅ no flicker */
  transition: none;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay Button */
.carousel-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
}

.events-btn {
  background: rgba(255, 217, 0, 0.95);
  color: #000;
  padding: 12px 28px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  display: inline-block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 3px solid #000;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.events-btn:hover {
  background: #ffed4e;
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 5;
}

.carousel-dots .dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dots .dot.active,
.carousel-dots .dot:hover {
  background: #ffd900;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel {
    height: auto !important;
    max-height: 60vh !important;
    overflow: hidden !important;
  }

  .carousel-track {
    height: auto !important;
  }

  .carousel-slide {
    height: auto !important;
  }

  .carousel-slide img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: contain !important; /* ✅ shows full image, no cropping or stretching */
    object-position: center center !important;
    display: block !important;
  }

  .events-btn {
    font-size: 14px;
    padding: 8px 18px;
  }

  .carousel-dots .dot {
    height: 10px;
    width: 10px;
  }
}


/* Landscape phones */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .carousel {
    height: 100vw;
  }

  .events-btn {
    font-size: 14px;
    padding: 8px 20px;
  }
} /* ✅ closed properly */

/* ===== FINAL FIX: Ensure About & Services banner images appear on mobile ===== */
@media (max-width: 768px) {
  section[data-ux*="ImageSection"],
  .x-el-div[data-ux*="Image"],
  .x-el-div[data-ux*="ImageSection"],
  .x-el-figure img,
  .x-el-img,
  img.x-el-img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  [class*="hidden"],
  [data-ux*="Hidden"],
  [style*="display: none"],
  .d-none {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  section[data-ux*="ImageSection"],
  .x-el-div[data-ux*="ImageSection"] {
    min-height: 250px !important;
    overflow: hidden !important;
  }
}




