* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

.section {
  padding: 60px 20px;
  margin: 0;
}

/* Hero Section - About Page Specific */
#hero-header {
  min-height: 100vh;
  background: url("../images/about_bg.webp") no-repeat center center !important;
  background-size: cover !important;
  background-attachment: fixed;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.65);
  padding: 2rem;
}

.hero-overlay h1 {
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-overlay p {
  color: white;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

/* General Typography */
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  /* text-transform: uppercase; */
  color: #333;
}

/* Training Section */
#training-mobile {
  display: none;
}

.training {
  background: #ffffff;
  padding: 30px 20px 0;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  align-items: center;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature.left {
  justify-self: end;
  /* text-align: right; */
}

.feature.right {
  justify-self: start;
  text-align: left;
}

.item {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.feature.left .item {
  flex-direction: row-reverse;
  align-items: flex-start;
}

.number-circle {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid #000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-weight: bold;
  font-size: 25px;
  background-color: white;
  color: black;
}

.text-block {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.text-block h3 {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #000;
}

.text-block p {
  color: #000;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}

.text-block p a {
  color: #2c2c8f;
  text-decoration: underline;
  font-weight: 500;
}

.section-training-h {
  color: #001776;
  margin: 0 0 5px 0;
  text-align: center;
}

.mobile-section-training-h{
  text-align: center;
}

.center-image {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
}

.center-image img {
  height: 180px;
  width: auto;
  border-radius: 18px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06);
}

/* Bottom Banner */
.bottom-banner {
  background-color: #d5e5f1;
  padding: 20px 20px;
  margin: 0;
}

.bottom-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.bottom-banner p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: #001776;
  text-align: justify;
  margin: 0;
}

/* Image Section */
.image-only {
  padding: 60px 20px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.image-only img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Team Section */
.team-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
  margin: 0;
}

.team-header-box {
  background-color: #e0ecf8;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  margin-left: -20px;
  margin-right: -20px;
}

.team-header-box h2 {
  color: #1a1a75;
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
}

.team-header-box p {
  color: #1a1a75;
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.6;
}

.team-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0 1rem 4rem;
  flex-wrap: wrap;
}

.card {
  background: #38215e;
  color: white;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trainer-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 6px solid gold;
  object-fit: cover;
  margin-bottom: 1.2rem;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0.5rem 0;
  line-height: 1.3;
}

.card p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.read-more-btn {
  margin-top: auto;
  padding: 0.6rem 1.3rem;
  border: 2px solid #e62739;
  color: white;
  background: none;
  border-radius: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.read-more-btn:hover {
  background: #e62739;
}

/* Testimonial Section */

.bottom-banner-client {
  background-color: #d5e5f1;
  padding: 10px 10px;
  margin: 0;
}

.bottom-wrapper-client {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.bottom-wrapper-client h2 {
  color: #001776;
  font-size: 2.5rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.testimonial-section {
  text-align: center;
  margin: 0;
  margin-bottom: 8px;
}

.testimonial-section img {
  max-width: 100%;
  height: auto;
}

.testimonial-icon {
  width: 30px;
  height: 30px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  color: #222;
  font-size: 1rem;
  line-height: 1.6;
  animation: fadeIn 0.3s ease-out;
}

.modal-content h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #1a1a75;
}

.modal-content ul {
  padding-left: 1.2rem;
}

.modal-content li {
  margin-bottom: 0.8rem;
}

.close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}

.close:hover {
  color: #e62739;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Register Section */
.register-section {
  background-color: #001776;
  padding: 40px 20px;
  text-align: center;
  margin: 0;
}

.register-section h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
}

.register-section p {
  color: #e0e0e0;
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.register-btn {
  background-color: #fff;
  color: #001776;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.carousel {
  width: 100%;
  overflow: hidden;
  background: #8797ff;
  background: -webkit-linear-gradient(
    0deg,
    rgba(135, 151, 255, 1) 0%,
    rgba(85, 85, 85, 1) 56%,
    rgba(33, 33, 33, 1) 100%
  );
  background: -moz-linear-gradient(
    0deg,
    rgba(135, 151, 255, 1) 0%,
    rgba(85, 85, 85, 1) 56%,
    rgba(33, 33, 33, 1) 100%
  );
  background: linear-gradient(
    0deg,
    rgba(135, 151, 255, 1) 0%,
    rgba(85, 85, 85, 1) 56%,
    rgba(33, 33, 33, 1) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#8797FF", endColorstr="#212121", GradientType=0);
  padding-top: 30px;
  padding-bottom: 30px;
}

/* container */
.carousel {
  overflow: hidden;
  width: 100%;
}

/* all images or video horizontal */
.images-and-video {
  display: flex;
  width: max-content;
  /* no auto align */
  flex-wrap: nowrap;
  /* animation: spin, animation duration:200s, constant speed:linear, repeat forever: infinite */
  animation: spin 70s linear infinite;
}

/* target to this child only */
.images-and-video > .video-loop {
  /* flex-grow, flex-shrink, flex-basis */
  flex: 0 0 500px; /* fixed width */
  height: 450px;
  /* padding-left: 25px;
  padding-bottom:20px; */
}

.images-and-video img,
.images-and-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes spin {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-75%);
  }
}

.slide {
  flex: 0 0 500px; /* fixed width */
  height: 450px; /* fixed height */
  margin-right: 25px;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps ratio but fills box */
  display: block;
}

.client-testimonial-mobile {
  display: none;
}


@media (max-width: 1400px) {
  #hero-header {
    min-height: 135vh !important;
    height: auto;
    background: url("../images/about_bg_mobile_small.webp") no-repeat center top !important;
    background-size: 100% auto !important;
    background-attachment: scroll !important;
    display: block !important;
  }
}

@media (max-width: 1400px) and (max-height: 1024px) {
  #hero-header {
    min-height: 165vh !important;
    height: auto;
    background: url("../images/about_bg_mobile_small.webp") no-repeat center top !important;
    background-size: 100% auto !important;
    background-attachment: scroll !important;
    display: block !important;
  }
}


@media (max-width: 1300px) {
  #hero-header {
    min-height: 125vh !important;
    height: auto;
    background: url("../images/about_bg_mobile_small.webp") no-repeat center top !important;
    background-size: 100% auto !important;
    background-attachment: scroll !important;
    display: block !important;
  }
}


@media (max-width: 1200px) {
  #hero-header {
    min-height: 125vh !important;
    height: auto;
    background: url("../images/about_bg_mobile_small.webp") no-repeat center top !important;
    background-size: 100% auto !important;
    background-attachment: scroll !important;
    display: block !important;
  }
}

@media (max-width: 1100px) {
  #hero-header {
    min-height: 110vh !important;
  }

  .images-and-video > .video-loop {
    flex: 0 0 120px; /* fixed width */
    height: 300px;
  }
}

@media (max-width: 1000px) {
  #hero-header {
    min-height: 100vh !important;
  }
}

@media(max-width: 912px) and (max-height:1368px){
  #hero-header {
    min-height: 80vh !important;
  }
}

@media (max-width: 900px) {
  #hero-header {
    min-height: 100vh;
  }
}

@media (max-width: 820px) {
  #hero-header {
    min-height: 90vh !important;
  }

  .images-and-video > .video-loop {
    flex: 0 0 120px; /* fixed width */
    height: 250px;
  }
}

@media (max-width: 768px) {
  #hero-header {
    min-height: 80vh !important;
  }

  .images-and-video > .video-loop {
    flex: 0 0 120px; /* fixed width */
    height: 230px;
  }
}


@media(max-width: 768px) and (max-height:1024px){
  #hero-header {
    min-height: 90vh !important;
  }
}


@media (max-width: 633px) {
  .section {
    padding: 30px 15px;
    margin: 0;
  }

  #hero-header {
    min-height: 60vh !important;
  }

  /* #test {
    height: 1200px !important;
  background: red !important;
} */

  .hero-overlay {
    padding: 1rem;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .hero-overlay p {
    font-size: 1rem;
    margin: 0;
  }

  /* Typography Mobile */
  h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  /* Training Section Mobile */
  #training-dek {
    display: none;
  }

  #training-mobile {
    display: block;
  }

  .training {
    padding: 20px 10px 0;
  }

  .mobile-center-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    /* justify-self: center; */
  }

  .mobile-center-image img {
    width: 300px;
    height: 190px;
    border-radius: 18px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06);
  }

  .mobile-section-training-h {
    color: #001776;
    /* margin: 5px 0 5px 0; */
    font-size: 24px;
    padding: 10px;
  }

  .mobile-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* gap: 1.2rem; */
    align-items: center;
    justify-content: center;
  }

  .mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .mobile-number-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-weight: bold;
    font-size: 25px;
    background-color: white;
    color: black;
  }
  .mobile-text-block-h {
    font-size: 20px;
    margin: 0;
  }

  .mobile-text-block-p {
    font-size: 16px;
    margin: 0;
    margin-bottom: 14px;
  }

  /* Bottom Banner Mobile */
  .bottom-banner {
    padding: 20px 0;
    margin: 0;
  }

  .bottom-wrapper {
    padding: 0 15px;
  }

  #font-banner {
    font-size: 14px;
  }

  /* Image Section Mobile */
  .image-only {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 15px;
    margin: 0;
  }

  /* Team Section Mobile */
  .team-section {
    padding: 30px 15px;
    margin: 0;
  }

  .team-header-box {
    margin-left: -15px;
    margin-right: -15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .team-header-box h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .team-header-box p {
    font-size: 0.9rem;
    margin: 0;
  }

  .team-container {
    gap: 1.5rem;
    padding: 0 0 2rem;
  }

  .trainer-img {
    width: 140px;
    height: 140px;
    border-width: 4px;
  }

  .card {
    padding: 1.5rem 1rem;
    max-width: 280px;
  }

  .card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
  }

  .card p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .read-more-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  /* Testimonial Section Mobile */
  /* Testimonial Section */
  .bottom-banner-client {
    background-color: #d5e5f1;
    padding: 2px 2px;
    margin: 0;
  }

  .bottom-wrapper-client {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .bottom-wrapper-client h2 {
    color: #001776;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    text-align: center;
  }

  .testimonial-section {
    text-align: center;
    margin: 0;
  }

  .testimonial-section img {
    max-width: 100%;
    height: auto;
  }

  .testimonial-icon {
    width: 13px;
    height: 13px;
  }

  /* Modal Mobile */
  .modal-content {
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
  }

  .modal-content h3 {
    font-size: 1.2rem;
  }

  .modal-content {
    font-size: 0.9rem;
  }

  /* Register Section Mobile */
  .register-section {
    padding: 30px 15px;
    margin: 0;
  }

  .register-section h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .register-section p {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .register-btn {
    padding: 12px 25px;
    font-size: 14px;
  }

  .carousel {
    width: 100%;
    overflow: hidden;
    background: #8797ff;
    background: -webkit-linear-gradient(
      0deg,
      rgba(135, 151, 255, 1) 0%,
      rgba(85, 85, 85, 1) 56%,
      rgba(33, 33, 33, 1) 100%
    );
    background: -moz-linear-gradient(
      0deg,
      rgba(135, 151, 255, 1) 0%,
      rgba(85, 85, 85, 1) 56%,
      rgba(33, 33, 33, 1) 100%
    );
    background: linear-gradient(
      0deg,
      rgba(135, 151, 255, 1) 0%,
      rgba(85, 85, 85, 1) 56%,
      rgba(33, 33, 33, 1) 100%
    );
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#8797FF", endColorstr="#212121", GradientType=0);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .images-and-video > .video-loop {
    flex: 0 0 170px; /* fixed width */
    height: 170px;
  }

  .images-and-video img,
  .images-and-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .images-and-video::-webkit-scrollbar {
    display: none;
  }

  @keyframes spin {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-73%);
    }
  }
}

@media (max-width: 584px) {
  #hero-header {
    min-height: 80vh !important;
  }
}

@media(max-width:540px) and (max-height:720px){
  #hero-header {
    min-height: 90vh !important;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 20px 10px;
    margin: 0;
  }

  /* Extra small mobile hero adjustments */
  #hero-header {
    min-height: 15vh !important;
  }

  .hero-overlay {
    padding: 0.8rem;
  }

  .hero-overlay h1 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
  }

  .hero-overlay p {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  /* Training Section Mobile - Extra Small Screens */
  #training-dek {
    display: none;
  }

  #training-mobile {
    display: block;
  }

  .training {
    padding: 20px 10px 0;
  }

  .mobile-center-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    /* justify-self: center; */
  }

  .mobile-center-image img {
    width: 280px;
    height: 170px;
    border-radius: 18px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06);
  }

  .mobile-section-training-h {
    color: #001776;
    margin: 0 0 5px 0;
    font-size: 22px;
  }

  .mobile-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* gap: 1.2rem; */
    align-items: center;
    justify-content: center;
  }

  .mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .mobile-number-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-weight: bold;
    font-size: 25px;
    background-color: white;
    color: black;
  }
  .mobile-text-block-h {
    font-size: 14px;
    margin: 0;
  }

  .mobile-text-block-p {
    font-size: 11px;
    margin: 0;
    margin-bottom: 13px;
  }

  /* Bottom Banner Extra Small */
  .bottom-banner {
    padding: 15px 0;
  }

  .bottom-wrapper {
    padding: 0 10px;
  }

  .bottom-banner p {
    line-height: 1.4;
  }

  #font-banner {
    font-size: 9px;
  }

  /* Team Section Extra Small */
  .team-header-box {
    margin-left: -10px;
    margin-right: -10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .team-header-box h2 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
  }

  .team-header-box p {
    font-size: 0.85rem;
  }

  .team-container {
    padding: 0 0 1.5rem;
    gap: 1rem;
  }

  .trainer-img {
    width: 120px;
    height: 120px;
  }

  .card {
    padding: 1.2rem 0.8rem;
    max-width: 250px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.8rem;
  }

  /* Image Section Extra Small */
  .image-only {
    padding: 20px 10px;
  }

  /* Register Section Extra Small */
  .register-section {
    padding: 25px 10px;
  }

  .register-section h2 {
    font-size: 1.4rem;
  }

  .register-section p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .register-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  /* Modal Extra Small */
  .modal-content {
    margin: 5% auto;
    padding: 15px;
    width: 95%;
  }

  .modal-content h3 {
    font-size: 1.1rem;
  }

  .modal-content {
    font-size: 0.85rem;
  }


  .testimonial-section{
    padding:10px;
  }

  .client-testimonial-desktop {
    display: none;
  }

  .client-testimonial-mobile {
    display: block;
  }

  .carousel {
    width: 100%;
    overflow: hidden;
    background: #8797ff;
    background: -webkit-linear-gradient(
      0deg,
      rgba(135, 151, 255, 1) 0%,
      rgba(85, 85, 85, 1) 56%,
      rgba(33, 33, 33, 1) 100%
    );
    background: -moz-linear-gradient(
      0deg,
      rgba(135, 151, 255, 1) 0%,
      rgba(85, 85, 85, 1) 56%,
      rgba(33, 33, 33, 1) 100%
    );
    background: linear-gradient(
      0deg,
      rgba(135, 151, 255, 1) 0%,
      rgba(85, 85, 85, 1) 56%,
      rgba(33, 33, 33, 1) 100%
    );
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#8797FF", endColorstr="#212121", GradientType=0);
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .images-and-video > .video-loop {
    flex: 0 0 120px; /* fixed width */
    height: 110px;
  }

  .images-and-video img,
  .images-and-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

}
