* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

main {
  padding-top: 180px;
  transition: padding-top 0.5s ease;
}


body.scrolled main {
  padding-top: 80px;
}


body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  /* Light Beige/Cream background */
  color: #A46836;
}







#header {
  height: 180px;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background-color: #0081DC;
  transition: all 0.5s ease;
}

#nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  /* ✅ keeps nav from stretching too far */
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease-in-out;
  z-index: 1000;
}

#nav .menu a {
  position: relative;
  display: inline-block;
  padding: 10px;
  text-decoration: none;
  color: #FFFFFF;
  transition: color 0.3s ease;
}

#nav .menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 2px;
  background-color: #ffd092;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

#nav .menu a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

#nav .menu a.active {
  color: #ffd092;
  font-weight: bold;
}

.menu {
  display: flex;
  justify-content: space-between;
  list-style: none;
  width: 100%;
  max-width: 1000px;
  padding: 0;
  transition: all 0.5s ease-in-out 1.9s;
}

/* AFTER SCROLL */
body.scrolled #nav {
  position: fixed;
  top: 20px;
  transition: all 0.5s ease-in-out 0.2s;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
}

body.scrolled .menu {
  width: auto;
  justify-content: center;
  gap: 1.5rem;
}

#logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  font-size: 1rem;
  font-weight: lighter;
  padding: 1px 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-align: center;
}

.logo-img {
  height: 10rem;
  width: 10rem;
}

.logo-text {
  display: block;
  font-size: 1rem;
  margin-top: 0.2rem;
}

/* On scroll */
body.scrolled #logo {
  position: fixed;
  top: 10px;
  left: 20px;
  transform: scale(0.8) translate(-20%, -20%);
  font-size: 1.2rem;
  padding: 10px 15px;
  bottom: auto;
  z-index: 1000;
  transition: all 0.5s ease-in-out;

}




.menu li a {
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  color: white;
}

body.scrolled #header {
  height: 80px;
  padding: 0 1rem;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}








.join-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: white;
  color: #007bff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  z-index: 1002;
  transition: all 0.4s ease-in-out;
}

.join-btn:hover {
  background-color: #ffd092;
  color: #ffffff;
  border-radius: 5px;
  border-color: #0081DC;
}





.content-page {
  display: none;
}

.content-page.active {
  display: block;
}

.no-scroll {
  overflow: hidden;
}

/* Add a media query for small screens, typically 768px and below */
@media (max-width: 768px) {
    /* Main header adjustments */
    #header {
        height: auto;
        flex-direction: row; /* Keep the logo and menu on the same line initially */
        justify-content: space-between;
        align-items: center;
        padding: 1rem; /* Adjust padding for mobile */
    }

    body.scrolled #header {
        height: 80px;
    }

    /* Hide the full menu and show a hamburger icon */
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #0081DC;
        position: absolute;
        top: 80px; /* Position below the header */
        left: 0;
        padding: 1rem 0;
    }

    /* When the menu is open, make it visible */
    .menu.open {
        display: flex;
    }

    #logo {
        position: static; /* Remove fixed positioning */
        transform: none; /* Remove transformations */
        padding: 0;
        bottom: auto;
        left: auto;
        flex-direction: row;
        gap: 10px;
    }
    
    .logo-text {
        display: none; /* Hide the text on mobile for a cleaner look */
    }

    /* Style for a hamburger menu icon */
    .hamburger-menu {
        display: block;
        cursor: pointer;
        font-size: 2rem;
        color: white;
        z-index: 1001;
    }

    .join-btn {
        display: none; /* Hide the button on small screens or move it into the menu */
    }
}




.hero {
  padding-top: 180px;
  position: relative;
  background: url(./images/sample/first.avif) no-repeat center center/cover;
  height: 100vh;
  overflow-y: auto;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

body.scrolled .hero {
  padding-top: 80px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  /* Adjust opacity for brightness */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.primary {
  background-color: white;
  color: #007bff;
}

.primary:hover {
  background-color: #e6f0ff;
}

.secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}








.features-section-whole {
  background: linear-gradient(to bottom, #EECEA9, #FFFFFf);
  padding: 70px 20px;
}

.features-section {
  max-width: 1000px;
  margin: 10px auto;
  padding: 10px;
  overflow-y: auto;

}


.feature-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(12px);
  border: 2px solid #e7b072;
  /* Light Beige/Cream border */
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 22px rgba(0, 188, 212, 0.2);
  border-color: #bbe1f5;

}

.feature-icon {
  width: 32px;
  height: 32px;
  stroke: #0081DC;
  stroke-width: 2;
  fill: none;
  margin-top: 4px;
  flex-shrink: 0;
}


.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #003e88;
}

.feature-card p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}






.section-title {
  text-align: center;
  font-size: 2rem;
  color: #003e88;
  margin-bottom: 2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;

}



.section-line {
  display: inline-block;
  width: 40px;
  height: 3px;
  background-color: #00bcd4;
  flex: auto;
  margin: 0 10px;
  vertical-align: middle;
  max-width: 100px;
}


.section-a-title {
  text-align: center;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}






.courses-section {
  padding:60px 20px;
  background: linear-gradient(to bottom, #EC9019, #EECEA9);
  text-align: center;
 height: auto; /* The height will be determined by its content */
  min-height: 80vh; 
  width:100%; 
  display: block;
  flex-direction: column;
  overflow: hidden;
}

.courses-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.course-card {
  perspective: 1200px;
min-height: 260px;
width:100%;

}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.course-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  backface-visibility: hidden;
  border-left: 5px solid #025f85;
  transition: background 0.3s ease;
}

.card-front {
  background: linear-gradient(145deg, #ffffff, #ddf4ff);
  color: #003e88;
  font-size: 1.2rem;
  font-weight: bold;
  flex-direction: column;
}

.card-back {
  background: linear-gradient(145deg, #00bcd4, #029db2);
  color: white;
  transform: rotateY(180deg);
  font-size: 1rem;
  line-height: 1.5;
}

.card-front h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
  text-align: center;
}


.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}










.svg-wave-separator-top {
  position: relative;
  overflow: hidden;
  margin-top: -2px;
  /* Slight overlap to remove gaps */
  line-height: 0;
}

.svg-wave-separator-top svg {
  display: block;
  width: 100%;
  height: 120px;
}




.testimonials-section {
  position: relative;
  padding: 60px 20px;
  background: #f0fbff;
  text-align: center;
min-height: 50vh;
  overflow-y: auto;
  background: linear-gradient(to bottom, #032539, #025f85)
}

.testimonial-slider {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.testimonial-card {
  background: linear-gradient(145deg, #ffffff, #e6f2f9);
  padding: 2rem;
  text-decoration: none;
  border-radius: 15px;
  box-shadow:
    6px 6px 14px rgba(0, 0, 0, 0.1),
    -4px -4px 10px rgba(255, 255, 255, 0.6);
  font-style: italic;
  color: #333;
  transform: perspective(1000px);
  display: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 1s ease-in-out;
}

.testimonial-card h4 {
  margin-top: 1rem;
  color: #003e88;
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.testimonial-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}


.testimonial-dots .dot {
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonial-dots .dot.active {
  background-color: #00bcd4;
}







/* Basic Section Setup */
.fpage-section {
  padding-top: 250px;
  padding-bottom: 50px;
  background-color: #f3f4f6;
  min-height: 100vh;
}

/* Container */
.fcontainer {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

/* Headings */
.fsection-title {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.fsection-subtitle {
  color: #4b5563;
  margin-bottom: 3rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid Layout */
.ftestimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Testimonial Cards */
.ftestimonial-card {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: left;
}

.ftestimonial-text {
  color: #374151;
  font-style: italic;
}

.ftestimonial-author {
  margin-top: 1rem;
  font-weight: 600;
  color: #1f2937;
}

/* Back Button */
.back-to-home {
  margin-top: 2rem;
  text-align: center;
}

.back-to-home button {
  padding: 0.75rem 1.5rem;
  background-color: #2563eb;
  color: white;
  font-weight: 500;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.back-to-home button:hover {
  background-color: #1d4ed8;
}

/* Utility */
.thidden {
  display: none;
}














.about-section {
  padding: 60px 20px;
  background-color: #f7f7f7;
  text-align: center;
  background: linear-gradient(to bottom, #f0fbff, #EECEA9);

}

.about-content p {
  max-width: 800px;
  margin: 1rem auto;
  font-size: 1.1rem;
  color: #333;
}

.contact-section {
  background: linear-gradient(to bottom, #A46836, #EECEA9);
  padding: 80px 20px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: space-between;
}

.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  padding: 12px 20px;
  font-weight: bold;
  background: #EC9019;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #ffaa3a;
}


    /* Popup Modal Styles */
    .popup {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      visibility: hidden;
      opacity: 0;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .popup.active {
      visibility: visible;
      opacity: 1;
    }

    .popup-content {
      background: #fff;
      border-radius: 12px;
      padding: 30px;
      text-align: center;
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      animation: popupScale 0.3s ease forwards;
    }

    @keyframes popupScale {
      from { transform: scale(0.8); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    .popup-content h3 {
      color: #28a745;
      margin-bottom: 10px;
    }

    .popup-content p {
      color: #555;
      margin-bottom: 20px;
    }

    .popup-content button {
      background: #007bff;
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .popup-content button:hover {
      background: #0056b3;
    }



.map {
  flex: 1 1 400px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}











footer {
  background: linear-gradient(to right, #0056b3, #007bff);
  color: white;
  padding: 3rem 1.5rem;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
}

.footer-col {
  flex: 1 1 240px;
  min-width: 200px;
}

.footer-col h3,
.footer-col h4 {
  color: #ffdd57;
  /* golden-yellow or choose any accent */
  font-size: 1.4rem;
  margin-bottom: 1rem;
}


.footer-col p,
.footer-col li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #ffdd57;
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 20px;
  margin-top: 10px;
}

.social-icons a {
  width: 50px;
  height: 50px;
  border: 2px solid white;
  /* blue border */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background-color: white;
  color: #003b57;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

/* Make the span break the line */
.icon-break {
  flex-basis: 100%;
  height: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}


.social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  /* white icons */
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  font-size: 0.85rem;
}

.footer-col:last-child {
  text-align: center;
}

.footer-col {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.footer-col:nth-child(2) {
  animation-delay: 0.1s;
}

.footer-col:nth-child(3) {
  animation-delay: 0.2s;
}

.footer-col:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.gallery {
  display: flex;
  flex-direction: column;
  /* Stacks children vertically */
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  background: linear-gradient(to bottom, #f0fbff, #EECEA9);
}

.carousel {
  position: relative;
  width: 90vw;
  /* Responsive width */
  max-width: 900px;
  /* Limit max size */
  height: 40vh;
  /* Responsive height */
  max-height: 500px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.8s ease, opacity 0.8s ease, z-index 0.8s ease;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  -webkit-user-drag: none;
  /* Prevent dragging images */

  opacity: 0;
  /* default hidden */
  z-index: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  -webkit-user-drag: none;
  /* Prevent dragging images */
}

/* Center image */
.center {
  width: 50vw;
  /* Responsive width */
  max-width: 500px;
  height: 40vh;
  /* Responsive height */
  max-height: 350px;
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
}

/* Left and right images */
.left,
.right {
  width: 35vw;
  /* Responsive width */
  max-width: 350px;
  height: 30vh;
  /* Responsive height */
  max-height: 250px;
  z-index: 2;
}

.left {
  transform: translate(-150%, -50%) scale(0.85);
}

.right {
  transform: translate(50%, -50%) scale(0.85);
}

/* Hidden far left and far right images */
.hidden-left,
.hidden-right {
  width: 25vw;
  /* Responsive width */
  max-width: 300px;
  height: 20vh;
  /* Responsive height */
  max-height: 200px;
  z-index: 1;
}

.hidden-left {
  transform: translate(-250%, -50%) scale(0.8);
}

.hidden-right {
  transform: translate(150%, -50%) scale(0.8);
}

/* Default hidden and behind */
.offscreen {
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  /* Disable interaction */
}

/* All visible slides */
.center,
.left,
.right,
.hidden-left,
.hidden-right {
  opacity: 1;
  pointer-events: auto;
}

/* Navigation Arrows */
.arrow {
  
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.05);
  color: white;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 4;
  display: inline-block;
  width: 13vw;
  height: 25vh;
}

.arrow:active {
  transform: translateY(-50%) scale(0.9);
}

.arrow.left {
  left: 0.1rem;
}

.arrow.right {
  right: 0.1rem;
}

/* Lightbox styles */
        #lightbox {
            position: fixed;
            z-index: 100;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            display: none;
            justify-content: center;
            align-items: center;
        }

        #lightbox-img {
            max-width: 90%;
            max-height: 90%;
            border-radius: 12px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
        }

        .close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close:hover {
            color: #ccc;
        }










.gallery-iframe {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.gallery-iframe iframe {
  
    border: none;
}
