::-webkit-scrollbar {
  background: #b6b6b6;
  border-radius: 5px;
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: #4a5fd3;
  border-radius: 5px;
  width: 10px;
}

html,
body {
  overflow-x: hidden;
  width: 100%;

  font-family: "Poppins", sans-serif;
}

#hero {
  padding-top: 80px;
  height: 100vh;
}

#hero .container-fluid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

#hero .container-fluid .left {
  transform: scale(0.8);
  width: 530px;
  height: 430px;
  position: relative;
  right: 120px;
  margin-left: 50px;
}

.typing-container {
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  padding-right: 5px;
  color: #4a5fd3;
}
.typing-container::after {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.3s;
}
.hide-cursor::after {
  opacity: 0;
}

#hero .container-fluid .left h5 {
  width: 230px;
  height: 56px;
  padding: 16px 32px 16px 32px;
  gap: 4px;
  border-radius: 99px;
  -webkit-border-radius: 99px;
  -moz-border-radius: 99px;
  -ms-border-radius: 99px;
  -o-border-radius: 99px;
  background: #d0d6f9;
  font-size: 20px;
  font-weight: 500;
  color: #4a5fd3;
  max-width: 100%;
  max-height: 100%;
}

#hero .container-fluid .left h1 {
  font-size: 44px;
  font-weight: 700;
  margin-top: 16px;
}

#hero .container-fluid .left span {
  color: #4a5fd3;
}

#hero .container-fluid .left p {
  font-size: 16px;
  font-weight: 600px;
  color: #8b8b8b;
  margin-top: 32px;
}

#hero .container-fluid .left .left-down {
  margin-top: 64px;
}

#hero .container-fluid .left .left-down .btn {
  width: 235px;
  height: 56px;
  padding: 16px 32px 16px 32px;
  border-radius: 99px;
  background-color: #4a5fd3;
  -webkit-border-radius: 99px;
  -moz-border-radius: 99px;
  -ms-border-radius: 99px;
  -o-border-radius: 99px;
  font-size: 14px;
  color: white;
  font-weight: 600;
  margin-right: 48px;
}

#hero .container-fluid .left .left-down .btn svg {
  margin-left: 19px;
}

#hero .container-fluid .right {
  transform: scale(0.8);
  position: relative;
  top: 30px;
}

.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.floating-icons .icon {
  position: absolute;
  width: 35px;
  height: 35px;
  opacity: 0.7;
}

.floating-icons .book {
  top: 20%;
  left: -10%;
  animation: float 3s ease-in-out infinite;
}

.floating-icons .document {
  top: 25%;
  right: -8%;
  width: 40px;
  height: 40px;
  animation: float 4s ease-in-out infinite;
}

.floating-icons .handshake {
  top: 5%;
  width: 55px;
  height: 55px;
  left: 45%;
  animation: float 3.5s ease-in-out infinite;
}

.floating-icons .cart {
  bottom: 50%;
  left: -12%;
  animation: float 4.5s ease-in-out infinite;
}

.floating-icons .globe {
  bottom: 40%;
  right: -10%;
  animation: float 4s ease-in-out infinite;
}

.animate-right {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 1s ease;
}

.animate-right.show {
  opacity: 1;
  transform: translateX(0);
}

.animate-bottom {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.animate-bottom.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}
/* Animasi floating */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

#hero .container-fluid .right .kahim {
  width: 276px;
  height: 89px;
  padding: 16px 32px 16px 32px;
  gap: 16px;
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
  background-color: white;
  position: relative;
  left: -150px;
  top: -110px;
  box-shadow: 0px 8px 16px 0px #00000059;
}

#hero .container-fluid .right .kahim h4 {
  font-size: 24px;
  font-weight: 600;
}

#hero .container-fluid .right .kahim p {
  font-size: 14px;
  font-weight: 400;
  color: #8b8b8b;
}

#hero .container-fluid .right .wakahim {
  width: 276px;
  height: 89px;
  padding: 16px 32px 16px 32px;
  gap: 16px;
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
  background-color: white;
  position: relative;
  left: 300px;
  top: -330px;
  box-shadow: 0px 8px 16px 0px #00000059;
}

#hero .container-fluid .right .wakahim h4 {
  font-size: 24px;
  font-weight: 600;
}

#hero .container-fluid .right .wakahim p {
  font-size: 14px;
  font-weight: 400;
  color: #8b8b8b;
}

#video-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.8); */
  z-index: 1000;
  /* Center content vertically and horizontally */
  display: none;
  align-items: center;
  justify-content: center;
}

#video-container {
  position: relative;
  width: 60%;
  /* Reduced from 80% */
  max-width: 600px;
  /* Reduced from 800px */
  margin: 0 auto;
  padding: 15px;
  background: white;
  border-radius: 8px;
  /* Center the container */
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0px 8px 16px 0px #00000059;
}

#close-button {
  position: absolute;
  right: 0px;
  top: -8px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

#youtube-player {
  display: block;
  width: 100%;
  height: 400px;
  /* Fixed height */
  border: none;
}

.play-button {
  cursor: pointer;
  display: inline-block;
}

/* Added responsive adjustments */
@media (max-width: 768px) {
  #video-container {
    width: 90%;
  }

  #youtube-player {
    height: 300px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  #hero {
    height: auto;
    padding: 40px 0;
  }

  #hero .container-fluid {
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
  }

  #hero .container-fluid .left {
    transform: scale(1);
    width: 100%;
    height: auto;
    position: static;
    right: 0;
    margin-left: 0;
    text-align: center;
    order: 2;
    margin-top: 50px;
  }

  #hero .container-fluid .left h5 {
    width: auto;
    display: inline-block;
    margin: 0 auto;
    font-size: 16px;
    padding: 14px 32px 14px 32px;
  }

  #hero .container-fluid .left h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-top: 24px;
  }

  #hero .container-fluid .left .left-down {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  #hero .container-fluid .left .left-down .btn {
    margin-right: 0;
    width: 200px;
    padding: 12px 24px;
  }

  #hero .container-fluid .right {
    display: none; /* Sembunyikan bagian right di mobile */
  }

  /* Animasi floating icons di nonaktifkan */
  .floating-icons {
    display: none;
  }
}

/* VISION */
#vision {
  padding: 40px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

#vision .container-fluid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
  width: 90%;
  margin: 0 auto;
  flex-wrap: wrap;
}

#vision .container-fluid .vision-image {
  width: 100%;
  max-width: 598px;
  height: auto;
  border-radius: 30px 65px 30px 65px;
  background-color: #4a5fd3;
  position: relative;
}

#vision .container-fluid .vision-image img {
  position: relative;
  width: 100%;
  height: 100%;
  top: 15px;
  left: 15px;
  border-radius: 30px 65px 30px 65px;
  object-fit: cover;
}

#vision .container-fluid .vision-description {
  width: 100%;
  max-width: 450px;
  height: auto;
}

#vision .container-fluid .vision-description h2 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  color: #171717;
}

#vision .container-fluid .vision-description p {
  text-align: justify;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 400;
  color: #8b8b8b;
  margin-top: 20px;
}

#vision .container-fluid .vision-description .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  max-width: 200px;
  height: 52px;
  padding: 16px 32px;
  border-radius: 99px;
  background-color: #4a5fd3;
  font-size: 14px;
  color: white;
  font-weight: 600;
  margin-top: 25px;
  text-decoration: none;
}

#vision .container-fluid .vision-description svg {
  margin-left: 10px;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 992px) {
  #vision .container-fluid {
    gap: 30px;
  }
}

@media screen and (max-width: 768px) {
  #vision {
    padding: 30px 0;
  }

  #vision .container-fluid {
    flex-direction: column;
    text-align: center;
  }

  #vision .container-fluid .vision-description p {
    text-align: center;
  }

  #vision .container-fluid .vision-image {
    margin-left: -15px;
    max-width: 100%;
  }

  #vision .container-fluid .vision-image img {
    width: 100%;
    left: 15px;
  }
}

@media screen and (max-width: 480px) {
  #vision {
    padding: 20px 0;
  }

  #vision .container-fluid {
    width: 95%;
    gap: 20px;
  }

  #vision .container-fluid .vision-image {
    border-radius: 20px 40px 20px 40px;
  }

  #vision .container-fluid .vision-image img {
    border-radius: 20px 40px 20px 40px;
  }

  #vision .container-fluid .vision-description .btn {
    width: 100%;
    max-width: 100%;
  }
}
/* PROGRAM */
#program {
  padding: 60px 0;
  min-height: auto;
}

#program .container-fluid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin: 0 auto;
}

#program .container-fluid h2 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  margin-bottom: 40px;
}

#program .container-fluid .program-card {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  gap: 20px;
  justify-content: center;
}

#program .container-fluid .program-card .cardarea {
  width: 280px;
  height: 280px;
  border-radius: 32px;
  border: 4px solid #a9b6ff;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

#program .container-fluid .program-card .cardarea:before {
  content: attr(data-hover-text);
  position: absolute;
  bottom: -103%;
  left: -4px;
  width: 103%;
  height: 103%;
  background-color: #4a5fd3;
  border: 4px solid #4a5fd3;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 32px;
  padding: 20px;
  text-align: justify;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0px 16px 32px 0px #ff262640;
  transition: bottom 0.5s ease-in-out;
}

#program .container-fluid .program-card .cardarea:nth-child(5):before {
  font-size: 12.5px;
  line-height: 1.4;
  padding: 15px;
}

#program .container-fluid .program-card .cardarea:hover:before {
  bottom: -4px;
}

#program .container-fluid .program-card .cardarea img,
#program .container-fluid .program-card .cardarea h4 {
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  margin-top: 40px;
  text-align: center; /* Add this line */
  width: 100%; /* Ensure the text takes full width */
}

#program .container-fluid .program-card .cardarea:hover img,
#program .container-fluid .program-card .cardarea:hover h4 {
  opacity: 0;
}

#program .container-fluid .program-card .cardarea img {
  width: 80px;
}

#program .container-fluid .program-card .cardarea h4 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 40px;
}

@media (max-width: 768px) {
  #program .container-fluid .program-card .cardarea {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  #program .container-fluid .program-card .cardarea h4 {
    margin-top: 30px; /* Slightly reduce top margin on mobile */
    padding: 0 10px; /* Add some padding on the sides */
  }
}

/* KALENDER KEGIATAN */
#kalender-kegiatan {
  padding: 60px 0;
  min-height: auto;
}

#kalender-kegiatan .container-fluid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin: 0 auto;
}

.header {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  width: 100%;
}

.header h2 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  color: #4a5fd3;
  margin-bottom: 50px;
}

.content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  width: 100%;
}

.image-section {
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLeft 0.8s ease 0.3s forwards;
  width: 100%;
  max-width: 600px;
  position: relative;
}

.image-section img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.schedule-section {
  opacity: 0;
  transform: translateX(20px);
  animation: fadeInRight 0.8s ease 0.3s forwards;
  position: relative;
  display: flex;
  gap: 2rem;
  justify-content: center;
  width: 100%;
  max-width: 550px;
}

.schedule-cards {
  width: 100%;
  position: relative;
  height: 400px;
  overflow: hidden;
  align-content: center;
  margin-bottom: 20px;
}

/* Add mask for top gradient */
.schedule-cards::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, transparent, white);
  pointer-events: none;
  z-index: 1;
}

/* Update bottom gradient */
.schedule-cards::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
  z-index: 1;
}

.cards-container {
  position: absolute;
  transition: transform 0.5s ease;
  padding-bottom: 20px;
  padding-top: 20px; /* Added padding to account for top gradient */
  width: 100%;
}

.schedule-card {
  background: #eee9e9;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  min-height: 93px;
  transition: all 0.3s ease, background-color 0.3s ease;
  width: 100%;
}

.schedule-card.active {
  background: #4a5fd3;
  color: white;
}

.schedule-card.active .date,
.schedule-card.active .event-title {
  color: white;
}

.schedule-card:last-child {
  margin-bottom: 0;
}

.schedule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.date {
  color: #3f51b5;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
  min-height: 60px;
  width: 120px;
  align-content: center;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  border-right: 2px solid white;
  padding-right: 5px;
  margin-right: 10px;
  position: relative;
}

.date span {
  font-size: 24px;
}

.event-title {
  color: #1a237e;
  font-size: 18px;
  font-weight: 600;
  width: auto;
}

.pagination {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #3f51b5;
  transform: scale(1.2);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Media Queries for Responsive Design */
@media (max-width: 1200px) {
  .content {
    gap: 20px;
  }

  .schedule-section {
    gap: 1rem;
  }
}

@media (max-width: 992px) {
  #program,
  #kalender-kegiatan {
    padding: 40px 0;
  }

  .header h2 {
    margin-bottom: 30px;
  }

  .date {
    width: 100px;
    font-size: 14px;
  }

  .date span {
    font-size: 20px;
  }

  .event-title {
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  .content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .image-section,
  .schedule-section {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    left: 0;
    right: 0;
    padding: 0;
  }
  .schedule-cards {
    width: 90%;
    margin: 0 auto;
  }

  #program .container-fluid .program-card .cardarea {
    width: 250px;
    height: 250px;
  }

  .pagination {
    flex-direction: row;
    margin-top: 15px;
    gap: 10px;
    justify-content: center;
  }

  .schedule-section {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .schedule-section {
    gap: 1rem;
  }

  .image-section img {
    max-width: 100%;
    margin: 0 auto;
  }

  .schedule-cards {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .schedule-cards {
    height: 350px;
    width: 100%;
  }

  .pagination {
    margin-top: 10px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}
