html,
body {
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: "Quicksand", sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: #0c0e5b;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/background.png");
  background-size: cover;
  background-attachment: scroll;
  opacity: 0.375;
  z-index: -1;
  pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0c0e5b;
  padding: 5px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

header a img {
  height: 40px;
  padding-top: 3px;
}

header li {
  display: inline-block;
  margin-left: 15px;
}

nav a {
  text-decoration: none;
  color: white;
}

nav a:hover {
  font-weight: bold;
}

.burger {
  display: none; /* Sembunyi di layar besar */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

.poster {
  height: 92vh;
  color: white;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("../images/posterBackground3.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex; /* tambahkan ini */
  justify-content: center; /* tengah horizontal */
  align-items: center; /* tengah vertikal */
  text-align: center;
}

.poster-content {
  text-align: center;
  padding: 0 20px;
  height: fit-content;
}

.poster-content p {
  margin: 10px;
}

.poster button {
  padding: 10px;
  border-radius: 15px;
  background-color: #fff200;
}

.poster button a {
  text-decoration: none;
  color: #0c0e5b;
}

.poster button a:hover {
  font-weight: bold;
}

.poster button a:visited {
  color: #0c0e5b;
}

main section {
  padding: 25px;
}

#welcomeMessage {
  text-align: center;
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: xx-large;
  padding: 100px 20px;
}

.benefit {
  background-color: #ffffff;
  height: auto;
  padding: 60px;
  text-align: center;
  box-shadow:
    0 15px 25px rgba(0, 0, 0, 0.15),
    0 -4px 8px rgba(0, 0, 0, 0.05),
    inset 0 3px 6px rgba(255, 255, 255, 0.6);
}

.benefit-container {
  padding-top: 40px;
  display: flex;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}

.benefit-card {
  width: 200px;
  height: 200px;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  border-radius: 50%;
  background-color: #171b85;

  color: white;
  padding: 10px;

  position: relative;
  overflow: hidden;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../images/linedWajahRobi.png");
  background-size: 95%;
  background-repeat: no-repeat;
  background-position: center;

  opacity: 0.5; /* ini yang membuat gambar tipis */

  z-index: 0;
}

.benefit-card p {
  position: relative;
  z-index: 1;
}

.benefit-card:hover {
  transform: scale(1.08);
  transition: 0.3s;
}

#programs {
  height: auto;
  padding: 60px;
  text-align: center;
}

#programs a {
  text-decoration: none;
  color: #0c0e5b;
}
.program-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 40px;
}

.program-item {
  position: relative;
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
}

.program-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.3s;
}

.program-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  color: white;
  font-weight: bold;
  font-size: 18px;
  text-align: center;

  padding: 10px;
  background: rgba(12, 14, 91, 0.6);
}

.program-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.skills {
  background-color: #ffffff;
  height: auto;
  padding: 60px;
  text-align: center;
  box-shadow:
    0 15px 25px rgba(0, 0, 0, 0.15),
    0 -4px 8px rgba(0, 0, 0, 0.05),
    inset 0 3px 6px rgba(255, 255, 255, 0.6);
}

.skills li {
  display: grid;
}

#partners {
  /* background-color: #ffffff; */
  /* border-radius: 25px; */

  padding: 40px;
  margin: 40px auto;

  /* box-shadow:
    0 15px 25px rgba(0, 0, 0, 0.15),
    inset 0 5px 5px rgba(255, 255, 255, 0.6); */

  text-align: center;
}

#partners h1 {
  margin-bottom: 50px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 40px;
  align-items: center;
}

.partners-grid img {
  max-width: 120px;
  margin: auto;
  /* filter: grayscale(100%); */
  transition: 0.3s;
}

/* .partners-grid img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
} */

#collaborations {
  background-color: #ffffff;
  height: auto;
  padding: 60px;
  text-align: center;
  box-shadow:
    0 15px 25px rgba(0, 0, 0, 0.15),
    0 -4px 8px rgba(0, 0, 0, 0.05),
    inset 0 3px 6px rgba(255, 255, 255, 0.6);
}

#collaborations h1 {
  margin-bottom: 25px;
}

.collaborations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.collaborations-grid img {
  max-width: 400px;
  margin: auto;
  /* transition: 0.3s; */
}

#franchise {
  height: auto;
  padding: 60px;
  justify-content: center; /* tengah horizontal */
  align-items: center;
}

.franchise-content {
  max-width: 60%;
  margin: auto;
  margin-bottom: 40px;
  float: left;
  text-align: center;
  justify-content: center; /* tengah horizontal */
  align-items: center;
}

.franchise-content p {
  margin: 20px 0px;
}

.franchise-content button {
  padding: 15px;
  border-radius: 15px;
  background-color: #fff200;
  border: none;
  margin: 0 20px;
}

.franchise-content button a {
  text-decoration: none;
  color: #0c0e5b;
}

.franchise-content button a:hover {
  font-weight: bold;
}

.franchise-content button a:visited {
  color: #0c0e5b;
}

#franchise img {
  width: 35%;
  height: 300px;
  margin-left: 20px;
  border-radius: 15px;
}

#events {
  background-color: #ffffff;
  height: auto;
  padding: 60px;
  text-align: center;
  box-shadow:
    0 15px 25px rgba(0, 0, 0, 0.15),
    0 -4px 8px rgba(0, 0, 0, 0.05),
    inset 0 3px 6px rgba(255, 255, 255, 0.6);
}

#events a {
  text-decoration: none;
}

#events a:visited {
  color: #0c0e5b;
}

.slider {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.slider::-webkit-scrollbar {
  display: none;
}

/* Event Card */
.event-card {
  flex: 0 0 auto;
  width: 440px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* potong semua yang keluar */
  display: flex;
  flex-direction: column;
}

.image-wrapper {
  display: flex;
  justify-content: center;
}

.instagram-media {
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* Gambar wrapper */
.image-wrapper {
  width: 100%;
  height: 250px; /* tinggi tetap */
  overflow: hidden; /* crop otomatis */
  border-radius: 15px;
  margin: 0;
}

/* Gambar */
.image-wrapper img {
  display: block; /* hilangkan spasi bawah default inline */
  width: 100%; /* pastikan tidak lebih lebar wrapper */
  height: 100%; /* ikut tinggi wrapper */
  object-fit: cover; /* crop jika terlalu besar */
  object-position: center; /* fokus gambar di tengah */
  margin: 0;
  padding: 0;
}

.event-card h3 {
  margin: 5px 0;
  font-size: 18px;
}

.event-card p {
  color: gray;
  font-size: 14px;
}

/* Slide Buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  z-index: 10;
}

.slider-wrapper {
  position: relative;
}

.events-section,
.testimonial-section {
  position: relative;
  margin-bottom: 50px;
}

.slide-btn.left {
  left: 5px;
}

.slide-btn.right {
  right: 5px;
}

#testimonials {
  height: auto;
  text-align: center;
}

/* Testimonial Card */
.testimonial-card {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  width: 300px;
  background: #e9ecef;
  border-radius: 20px;
  padding: 15px;
  align-items: flex-start;
}

.testimonial-card .profile {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card .card-content p {
  font-style: italic;
  margin: 0 0 5px 0;
}

.testimonial-card h4 {
  margin: 0;
  font-weight: bold;
}

.testimonial-card span {
  font-size: 12px;
  color: gray;
}

#location {
  background-color: #ffffff;
  height: auto;
  padding: 60px;
  text-align: center;
  box-shadow:
    0 15px 25px rgba(0, 0, 0, 0.15),
    0 -4px 8px rgba(0, 0, 0, 0.05),
    inset 0 3px 6px rgba(255, 255, 255, 0.6);
}

.location-container {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  margin-top: 40px;
}
.location-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 25px;
}

.location-map iframe {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 10px;
}

.location-btn {
  display: inline-block;
  padding: 10px 16px;
  margin-right: 10px;
  margin-top: 10px;

  background: #fff200;
  color: #0c0e5b;
  text-decoration: none;

  border-radius: 12px;
  font-weight: bold;
}

.location-btn.secondary {
  background: #0c0e5b;
  color: white;
}

.branch-section {
  margin-top: 40px;
  padding: 20px 40px;
}

.branch-title {
  text-align: center;
  margin-bottom: 30px;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.branch-card {
  background: white;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.branch-card:hover {
  transform: translateY(-5px);
}

.branch-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.branch-card p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.branch-card span {
  font-weight: 600;
  font-size: 14px;
}

#aboutUs {
  height: auto;
  padding: 60px;
  text-align: center;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.about-text {
  max-width: 500px;
  text-align: left;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.about-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #fff200;
  color: #0c0e5b;
  text-decoration: none;
  font-weight: bold;
}

.about-image img {
  width: 400px;
  max-width: 100%;
  border-radius: 15px;
}
.partner-section {
  margin-top: 50px;
  padding: 0 40px;
}

.partner-title {
  text-align: center;
  margin-bottom: 30px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.partner-grid img {
  max-width: 140px;
  /* filter: grayscale(100%); */
  opacity: 0.8;
  transition: 0.3s;
}

.partner-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

.partner-cta{
text-align:center;
margin-top:50px;
}

.cta-buttons{
margin-top:20px;
display:flex;
gap:15px;
justify-content:center;
flex-wrap:wrap;
}

/* Styling for programs page */
.headerPage {
  text-align: center;
  padding-top: 40px;
}

.captionHeaderPage {
  text-align: center;
  padding: 10px;
  font-weight: 400;
  font-style: italic;
}

.card {
  background-color: #ffffff;
  height: auto;
  padding: 20px;
  margin: 40px;
  text-align: center;
  border-radius: 15px;
  box-sizing: border-box;
  box-shadow:
    0 15px 25px rgba(0, 0, 0, 0.15),
    0 -4px 8px rgba(0, 0, 0, 0.05),
    inset 0 3px 6px rgba(255, 255, 255, 0.6);
}
.program-info {
  display: flex;
  gap: 20px;
  margin: 10px 0 15px 0;
  font-weight: 600;
  flex-wrap: wrap;
}

.program-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px;
  padding: 0px 0;
}

.program-benefits {
  margin-top: 10px;
  padding-left: 20px;
}

.program-benefits li {
  margin: 4px 0;
}

.btn-program {
  display: inline-block;
  margin-top: 15px;
  background: #ff7a00;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
}
.card img {
  width: 100%;
  border-radius: 10px;
}

.content-card {
  text-align: left;
  padding: 20px;
}

.content-card h2 {
  margin-bottom: 15px;
}

.content-card button {
  margin-top: 10px;
  padding: 10px;
  border-radius: 15px;
  background-color: #fff200;
  border: none;
}

.content-card button a {
  text-decoration: none;
  color: #0c0e5b;
}

.content-card button a:hover {
  font-weight: bold;
}

.content-card button a:visited {
  color: #0c0e5b;
}

/* EVENTS PAGE */

.events-page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 40px;
}

.event-page-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);

  display: flex;
  flex-direction: column;

  transition: 0.3s;
}

.event-page-card:hover {
  transform: translateY(-5px);
}

.event-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-info {
  padding: 20px;
  text-align: left;
}

.event-info h3 {
  margin-bottom: 8px;
}

.event-date {
  color: gray;
  font-size: 14px;
  margin-bottom: 15px;
}

.event-info button {
  padding: 10px 15px;
  border-radius: 12px;
  border: none;
  background: #fff200;
}

.event-info button a {
  text-decoration: none;
  color: #0c0e5b;
  font-weight: bold;
}

footer {
  background-color: #0c0e5b;
  padding: 60px 40px;
}

.footer-container {
  background: white;
  border-radius: 20px;
  padding: 40px;

  display: flex;
  gap: 40px;
}

.footer-logo {
  flex: 1.5;
  position: relative;
}

.footer-logo img {
  width: 180px;
}

.footer-logo p {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-10%);

  background: white;
  padding: 8px 12px;
  border-radius: 10px;

  font-size: 14px;
  text-align: center;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-container nav,
.footer-container section {
  flex: 1;
}

.footer-container ul {
  list-style: none;
  padding: 0;
}

.footer-container li {
  margin-bottom: 8px;
}

.footer-container a {
  text-decoration: none;
  color: #0c0e5b;
}

.contact-mobile {
  display: none;
}

.footer-location address {
  margin-top: 15px;
}

.footer-location p {
  margin-top: 10px;
}

main section a {
  text-decoration: none;
  color: #0c0e5b;
}

main section a:hover {
  font-weight: bold;
}

main section a:visited {
  color: #0c0e5b;
}

@media (max-width: 830px) {
  .burger {
    display: flex;
    z-index: 101;
  }
  header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0c0e5b;
    padding: 20px 0;
  }

  header nav.active {
    display: block;
  }

  header ul {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  header li {
    display: block;
    margin: 10px 40px;
  }

  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .benefit-container {
    gap: 40px;
  }

  .franchise-content {
    max-width: 100%;
    margin: auto;
    margin-bottom: 40px;
    float: none;
    text-align: center;
  }

  .franchise-content button {
    margin: 10px;
  }

  #franchise img {
    width: 100%;
    height: auto;
    margin-top: 20px;
    margin-left: 0px;
  }

  .event-card {
    flex: 0 0 auto;
    width: 300px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* potong semua yang keluar */
    display: flex;
    flex-direction: column;
  }

  .card img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    margin-bottom: 20px;
  }

  .location-container {
    flex-direction: column;
    text-align: center;
  }

  .location-info {
    text-align: center;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }
  .footer-container {
    display: none;
  }

  .location-main {
    grid-template-columns: 1fr;
  }

  .location-map iframe {
    height: 260px;
  }

  .location-info {
    text-align: center;
  }

  .contact-mobile {
    display: block;
    text-align: center;
    color: white;
    /* padding: 40px; */
  }
  .program-container {
    grid-template-columns: 1fr;
  }
}
