.about-hero-wrapper {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
              url("/assets/about-2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 300px; /* Tinggi diperbesar */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Efek shadow pada teks */
}

.about h1 {
  font-size: 60px; /* Ukuran font diperbesar */
  font-weight: 700;
  margin-bottom: 10px;
}

.about h2 {
  font-size: 30px; /* Ukuran font diperbesar */
  font-weight: 700;
}

/* Introduction Section */
.introduction-heading {
  color: #000061; /* Warna teks */
  font-weight: bold; /* Tebal font */
  font-size: 35px; /* Ukuran font */
  position: relative; /* Posisi relatif untuk pseudo-element */
  margin-bottom: 35px; /* Jarak bawah */
  text-align: left; /* Teks di kiri */
}

.introduction-section {
  margin-top: 40px; /* Margin atas diperbesar */
  margin-bottom: 40px; /* Margin bawah diperbesar */
  max-width: 1300px;
}

.square-img {
  width: 100%;
  height: auto;
  max-height: 430px; /* Tinggi gambar diperbesar */
  object-fit: cover;
  border-radius: 15px; /* Border radius */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Efek shadow */
}

.description h3 {
  color: #000061;
  font-weight: bold;
}

.description p {
  text-align: justify;
  line-height: 1.8; /* Jarak antar baris diperbesar */
  margin-bottom: 1.5rem; /* Jarak bawah diperbesar */
  font-size: 18px; /* Ukuran font diperbesar */
  padding-right: 50px;
}

/* History Section */
.history-section {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f9f9f9, #e0e0e0);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Timeline Container */
.timeline-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Timeline */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 20px 0;
}

/* Garis Horizontal */
.timeline::before {
  content: "";
  position: absolute;
  top: 160px;
  left: 0;
  right: 0;
  height: 6px;
  background: #000061;
  transform: translateY(-50%);
  z-index: 1;
}

/* Timeline Item */
.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

/* Lingkaran Timeline */
.timeline-circle {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #000061;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.timeline-circle span {
  color: white;
  font-weight: bold;
  font-size: 17px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Garis Kecil Vertikal */
.timeline-line {
  width: 6px;
  height: 40px;
  background: #000061;
  margin: 10px 0;
}

/* Deskripsi Timeline */
.timeline-description {
  padding: 15px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 150px;
}

.timeline-description p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: #333;
}

/* Penyesuaian Posisi Tahun dan Deskripsi */
.timeline-item:nth-child(odd) .timeline-circle {
  order: 1;
}

.timeline-item:nth-child(odd) .timeline-line {
  order: 2;
}

.timeline-item:nth-child(odd) .timeline-description {
  order: 3;
}

.timeline-item:nth-child(even) .timeline-circle {
  order: 3;
}

.timeline-item:nth-child(even) .timeline-line {
  order: 2;
}

.timeline-item:nth-child(even) .timeline-description {
  order: 1;
}

/* Atur jarak deskripsi untuk 2015 dan 2023 */
.timeline-item:nth-child(2) .timeline-description, /* 2015 */
.timeline-item:nth-child(4) .timeline-description { /* 2023 */
  margin-bottom: 25px;/* Jarak tambahan untuk deskripsi 2015 dan 2023 */
}

/* Atur jarak deskripsi untuk 2014, 2017, dan Now */
.timeline-item:nth-child(1) .timeline-description, /* 2014 */
.timeline-item:nth-child(3) .timeline-description, /* 2017 */
.timeline-item:nth-child(5) .timeline-description { /* Now */
  margin-top: 25px; /* Jarak default untuk deskripsi 2014, 2017, dan Now */
}

/* Vision and Mission Styling */
.vision-title,
.mission-title {
  color: #000061;
  font-weight: bold;
  font-size: 20px; /* Ukuran font diperbesar */
  margin-bottom: 10px; /* Jarak bawah */
}

.vision-subtitle,
.mission-subtitle {
  color: #000061;
  font-weight: bold;
  font-size: 40px; /* Ukuran font */
  margin-bottom: 20px; /* Jarak bawah */
}

/* Vision and Mission Container */
.container.my-7 {
  max-width: 1400px; /* Lebar maksimal container */
  padding-bottom: 1rem; /* Padding bawah diperbesar */
  padding-top: 2rem; /* Padding atas diperbesar */
}

/* Kolom Kiri */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Jarak antara Mission dan Vision */
  padding-right: 2rem; /* Padding kanan */
}

/* Kolom Kanan */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Jarak antara deskripsi Mission dan Vision */
}

/* Deskripsi Mission dan Vision */
.mission-description p,
.vision-description p {
  text-align: justify;
  line-height: 1.8; /* Jarak antar baris diperbesar */
  font-size: 18px; /* Ukuran font diperbesar */
  margin: 0; /* Hilangkan margin default */
}

/* Penyesuaian untuk memastikan sejajar */
.row.align-items-start {
  align-items: flex-start; /* Pastikan elemen sejajar dari atas */
}

.mission-heading,
.vision-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Sejajarkan teks ke kiri */
}

/* Tambahkan ini untuk memastikan tinggi container sama */
.mission-heading,
.vision-heading,
.mission-description,
.vision-description {
  min-height: 150px; /* Sesuaikan tinggi minimal */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Sejajarkan konten dari atas */
}

.mission-vision-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.left-title {
  flex: 0 0 30%;
  max-width: 30%;
}

.right-description {
  flex: 1 1 65%;
  max-width: 65%;
  font-size: 20px;
  text-align: justify;
}

/* Quote Section */
.quote-section {
  background-color: navy;
  color: white;
  padding: 50px 200px; /* Padding atas-bawah dan kiri-kanan */
  text-align: center; /* Pusatkan teks */
}

.quote-content {
  max-width: 800px; /* Lebar maksimal konten */
  margin: 0 auto; /* Pusatkan konten */
}

/* Container untuk Foto, Nama, dan Jabatan */
.author-container {
  display: flex;
  flex-direction: column; /* Tata letak vertikal */
  align-items: center; /* Pusatkan horizontal */
  margin-bottom: 20px; /* Jarak antara foto dan kutipan */
}

/* Foto Bulat */
.author-image {
  width: 120px; /* Lebar foto */
  height: 120px; /* Tinggi foto */
  border-radius: 50%; /* Membuat foto bulat */
  object-fit: cover; /* Pastikan foto terisi penuh */
  margin-bottom: 15px; /* Jarak antara foto dan teks */
  margin-top: -20px;
}

/* Nama dan Jabatan */
.author-info {
  text-align: center; /* Teks sejajar ke tengah */
}

.author-name {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.author-title {
  font-size: 20px;
  margin: 5px 0 0;
}

/* Kutipan */
.quote-text .quoteh2 {
  font-size: 18px; /* Ukuran font diperkecil */
  font-weight: normal; /* Ketebalan font normal */
  font-style: italic; /* Teks miring */
  line-height: 1.6; /* Jarak antar baris */
  margin-bottom: -20px;
}

/* Certificate Section */
#certificateCarousel .carousel-item img {
  width: 100%; /* Lebar gambar 100% dari container */
  height: auto; /* Menjaga rasio aspek */
  max-height: 500px; /* Tinggi maksimal gambar */
  object-fit: contain; /* Pastikan gambar tidak terpotong */
  margin: 0 auto; /* Pusatkan gambar */
  border-radius: 10px; /* Sudut melengkung */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Efek shadow */
  margin-top: 20px;
  margin-bottom: 20px;
}

.carousel-item img:hover {
  transform: scale(1.05); /* Sedikit zoom saat hover */
}

/* Memastikan row dan col di tengah */
.carousel-inner .row {
  display: flex;
  justify-content: center; /* Tengahkan secara horizontal */
  align-items: center; /* Tengahkan secara vertikal */
  gap: 30px; /* Jarak antar sertifikat */
}

/* Tombol Carousel */
.carousel-control-prev,
.carousel-control-next {
  width: 50px; /* Lebar tombol */
  height: 50px; /* Tinggi tombol */
  background-color: #000061; /* Warna biru */
  border-radius: 50%; /* Bentuk bulat */
  top: 50%; /* Posisi vertikal di tengah */
  transform: translateY(-50%); /* Geser ke atas setengah tinggi */
  opacity: 0.6; /* Sedikit transparan */
  transition: opacity 0.3s ease; /* Efek hover */
}

.carousel-control-prev {
  left: 50px; /* Posisi tombol previous lebih ke kiri */
}

.carousel-control-next {
  right: 50px; /* Posisi tombol next lebih ke kanan */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1; /* Tidak transparan saat hover */
}

/* Modal untuk Memperbesar Gambar */
.modal-content {
  background: transparent; /* Hilangkan latar belakang modal */
  border: none; /* Hilangkan border */
}

.modal-body img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Batasan Area Slide */
.carousel {
  padding: 0 150px; /* Beri padding kiri dan kanan agar tidak menutup tombol */
}

/* Mobile Styles */
@media (max-width: 767.98px) {
  body {
    font-size: 16px; /* Ukuran font default */
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: 1.5rem; /* Ukuran font heading lebih kecil */
  }
  
  .introduction-heading {
    text-align: center; /* Pusatkan judul */
    margin-bottom: 20px; /* Jarak bawah */
    margin-top: -10px;
  }

  .introduction-section .row {
    flex-direction: column; /* Tata letak kolom */
  }

  .introduction-section .description p {
    padding-right: 0; /* Hilangkan padding kanan */
    font-size: 15px;
  }

  .introduction-section .square-img {
    margin-bottom: 10px; /* Jarak bawah gambar */
  }

  .history-section {
    padding: 20px; /* Padding untuk container history */
  }

  .timeline {
    flex-direction: column; /* Tata letak vertikal */
    align-items: flex-start; /* Sejajarkan ke kiri */
    padding-right: 10px;
  }

  /* Hapus garis vertikal panjang */
  .timeline::before {
    display: none;
  }

  .timeline-item {
    display: flex;
    align-items: center; /* Sejajarkan circle dan deskripsi */
    margin-bottom: 30px; /* Jarak antar item */
    position: relative; /* Untuk posisi circle dan garis */
    width: 100%; /* Lebar penuh */
  }

  .timeline-circle {
    width: 55px; /* Ukuran circle */
    height: 55px;
    border-radius: 50%; /* Bentuk bulat */
    background: #000061; /* Warna circle */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Pastikan circle di atas garis */
    position: absolute; /* Posisi absolut untuk circle */
    left: 0%; /* Posisi circle di kiri */
    top: 50%; /* Pusatkan vertikal */
    transform: translateY(-50%); /* Pusatkan vertikal */
  }

  .timeline-circle span {
    color: white; /* Warna teks di circle */
    font-weight: bold;
    font-size: 15px; /* Ukuran teks */
  }

  /* Garis pendek di antara circle */
  .timeline-line {
    width: 4px; /* Lebar garis */
    height: 20px; /* Tinggi garis pendek */
    background: #000061; /* Warna garis */
    position: absolute;
    left: 8%; /* Posisi garis */
    top: 100%; /* Mulai dari bawah circle */
    transform: translateX(-50%); /* Pusatkan horizontal */
    z-index: 1;
  }

  /* Hilangkan garis di bawah item terakhir */
  .timeline-item:last-child .timeline-line {
    display: none;
  }

  .timeline-description {
    margin-left: 100px; /* Jarak antara circle dan deskripsi */
    padding: 10px 20px; /* Padding atas-bawah dan kiri-kanan */
    background: #f9f9f9; /* Warna latar deskripsi */
    border-radius: 8px; /* Sudut melengkung */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Efek shadow */
    width: calc(100% - 100px); /* Lebar deskripsi */
    text-align: left; /* Teks sejajar ke kiri */
  }

  .timeline-description p {
    margin: 0; /* Hilangkan margin default */
    font-size: 14px; /* Ukuran teks */
    color: #000000; /* Warna teks */
  }

  .left-title,
  .right-description {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .mission-vision-item {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
  }

  .left-title {
    text-align: left;
  }

  .mission-title .vision-title {
    font-size: 15px;
  }

  .mission-subtitle .vision-subtitle {
    font-size: 20px;
  }

  .right-description {
    font-size: 15px;
  }

  .container.my-7 {
    padding-bottom: 2rem; /* Padding bawah diperbesar */
    padding-top: 2rem; /* Padding atas diperbesar */
  }

  .quote-section {
    margin-top: -30px;
    padding: 50px 20px; /* Kurangi padding kiri dan kanan */
  }

  .quote-text .quoteh2 {
    font-size: 15px; /* Ukuran font lebih kecil */
  }

  .certificate-section h2 {
    font-size: 25px; /* Ukuran font diperbesar */
    margin-bottom: 20px; /* Jarak bawah */
  }

  #certificateCarousel .carousel-item img {
    width: 100%; /* Gambar memenuhi lebar container */
    max-height: 400px; /* Tinggi gambar diperbesar */
    object-fit: contain; /* Pastikan gambar tidak terpotong */
    margin: 0 auto; /* Pusatkan gambar */
    border-radius: 10px; /* Sudut melengkung */
    padding: 0; /* Hilangkan padding */
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px; /* Lebar tombol */
    height: 40px; /* Tinggi tombol */
    background-color: #000061; /* Warna biru */
    border-radius: 50%; /* Bentuk bulat */
    top: 50%; /* Posisi vertikal di tengah */
    transform: translateY(-50%); /* Geser ke atas setengah tinggi */
    opacity: 0.8; /* Sedikit transparan */
  }

  .carousel-control-prev {
    left: 10px; /* Posisi tombol previous lebih ke kiri */
  }

  .carousel-control-next {
    right: 10px; /* Posisi tombol next lebih ke kanan */
  }

  .carousel {
    padding: 0; /* Hilangkan padding kiri dan kanan */
  }

  .carousel-inner {
    padding: 0; /* Hilangkan padding di dalam carousel */
  }

  .carousel-item {
    padding: 0; /* Hilangkan padding di setiap item carousel */
  }
}