/* Tentang Kami */

/* Grid utama: timeline & gambar+cards */
.about-section {
  padding: 4rem;
}
.about-section .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tablet & bawah (≤ 992px): kurangi padding */
@media (max-width: 992px) {
  .about-section {
    padding: 3rem 2rem;
  }
  .about-section .container {
    width: 95%;
  }
}


/* Mobile (≤ 576px): lebih ringkas lagi */
@media (max-width: 576px) {
  .about-section {
    padding: 2rem 1rem;
  }
  .about-section .container {
    width: 100%;
    padding: 0;
  }
  .about-intro h2 {
    font-size: 1.5rem;            /* perhalus ukuran judul */
  }
  .about-intro p {
    font-size: 0.95rem;
  }
}

/* Baris atas: dua kolom */
.about-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 3fr 3fr;
  gap: 1rem;
  align-items: start;
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Judul & deskripsi */
.about-intro h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin: 0 0 1rem;
}
.about-intro p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Timeline kiri */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--primary-color);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
/* Bulatan di garis */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px; /* (−border-left + half bullet) */
  top: 3px;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--background-color);
}
/* Tahun */
.timeline-item .year {
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
/* Isi event */
.timeline-item .desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Gambar kanan atas */
.about-image img {
  width: 100%;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Dua kartu Mission & Vision */
.about-cards {
  display: grid;
  gap: 2rem;
}
.about-cards .card {
  background: #9be4e22c;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.about-cards .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}
.about-cards .card-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary-color);
  margin-right: 0.5rem;
}
.about-cards .card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Core Values */
.core-values {
  text-align: center;
  margin: 4rem 0 2rem;
}
.core-values h3 {
  font-size: 1.75rem;
  color: var(--text-color);
  margin: 0;
}
.core-grid {
  display: grid;
  /* 4 kolom, tapi jika lebar sempit akan wrap */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;               /* jarak antar sel: 1rem */
  margin-top: 1.5rem;      /* jarak dari judul */
  justify-items: center;   /* center tiap item horizontal */
  align-items: start;      /* top align tiap item vertical */
}

/* Buat teks paragraf rata kiri & kanan */
.about-intro p,
.about-cards .card-text,
.stats-content .intro,
.stats-list .item-text p,
.core-text {
  text-align: justify;
  justify-items: center;   /* center tiap item horizontal */
  align-items: start;      /* top align tiap item vertical */
}


.core-card {
  background: var(--background-muted);
  border-radius: 0.5rem;
  padding: 1rem;           /* padding dalam kartu diperkecil */
  align-items: center;    /* center horizontally */
  text-align: center;      /* text inside centered */
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  width: 100%;             /* agar minmax(180px) berfungsi */
  max-width: 220px;        /* batasi lebar maksimum */
  margin: 0;               /* tanpa margin ekstra */
}
.core-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-color);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.core-icon img {
  width: 24px;
  height: 24px;
}
.core-card .core-title {
  font-size: 1.125rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.core-card .core-text1 {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* Responsive */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-cards {
    grid-template-columns: 1fr;
  }
}

/* Page header & breadcrumb */
.page-header {
  background: var(--background-muted);
  padding: 1rem 0;
}

.page-header .inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem;
  background: #7fc8c52c;
}

.page-header .inner h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-color);
}

.page-header .breadcrumb {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.page-header .breadcrumb a {
  color: var(--link-color);
  text-decoration: none;
}

.page-header .breadcrumb a:hover {
  color: var(--hover-color);
}

.page-header .breadcrumb .separator {
  margin: 0 0.5rem;
  color: var(--text-muted);
}

/* Responsive: kecilkan font di mobile */
@media (max-width: 640px) {
  .page-header .inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Highlight kata pertama (News) di judul page-header */
.page-header .inner h1 .text-primary {
  color: var(--primary-color);
}
.motto1 h1 .text-primary {
  color: var(--primary-color);
}
.motto h1 .text-primary {
  color: var(--primary-color);
}

.motto1 {
  margin-top: 20px;
  text-align: center;
}
/* Center teks dan batasi lebarnya */
.motto {
  margin-top: 20px;
  padding: 20px 10px;
  text-align: center;
  background: #9be4e22c;
}
.motto .motto-text {
  max-width: 420px;       /* sesuai lebar yang diinginkan */
  margin: 1rem auto 0;    /* 1rem top, auto kiri/kanan untuk center */
  line-height: 1.5;       /* sesuaikan jika perlu */
  color: var(--text-muted);
  font-size: 1rem;
  
}


.page-header .breadcrumb a,
.page-header .breadcrumb .separator {
  color: var(--primary-color);
}

/* Icon Font Awesome di core values */
.core-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-color);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-size: 24px;               /* ukuran icon */
  color: var(--primary-color);   /* warna primer */
}

/* 2) Hover effect untuk semua kartu */
.about-cards .card:hover,
.core-grid .core-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* 3) Keyframes untuk animasi masuk */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover: ubah background circle dan warna icon */
.core-card:hover .core-icon {
  background: var(--primary-color);
  transition: background 0.3s;
}
.core-card:hover .core-icon i {
  color: #fff;                /* icon jadi putih */
  transition: color 0.3s;
}


/* 4) Class utilitas untuk animasi */
.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

/* 5) Delay bertahap untuk timelined items (opsional) */
.about-cards .card:nth-child(1),
.core-grid .core-card:nth-child(1) { animation-delay: 0.1s; }
.about-cards .card:nth-child(2),
.core-grid .core-card:nth-child(2) { animation-delay: 0.2s; }
.about-cards .card:nth-child(3),
.core-grid .core-card:nth-child(3) { animation-delay: 0.3s; }
.about-cards .card:nth-child(4),
.core-grid .core-card:nth-child(4) { animation-delay: 0.4s; }


/* Section wrapper */
.section-stats {
  background: var(--background-muted);
  padding: 4rem 0;
}
.section-stats .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid 2 kolom */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 50px;
  margin-bottom: 50px;
  align-items: center;
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* LEFT: Image + Card */
.stats-image-wrapper {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.stats-image-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Overlay Card */
.stats-card {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 240px;
}

/* Icon circle di card */
.stats-card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stats-card .card-icon i {
  color: #fff;
  font-size: 1.25rem;
}

/* Teks di card */
.stats-card .card-text {
  display: flex;
  flex-direction: column;
}
.stats-card .card-text .number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  line-height: 1;
}
.stats-card .card-text .label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* RIGHT: Konten teks */
.stats-content h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin: 0 0 1rem;
}
.stats-content p.intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Daftar fitur */
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.stats-item {
  display: flex;
  gap: 1rem;
  align-items: start;
}
.stats-item .icon-bg {
  width: 56px;
  height: 56px;
  background: var(--background-muted);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stats-item .icon-bg i {
  font-size: 1.5rem;
  color: var(--primary-color);
}
.stats-item .item-text {
  flex: 1;
}
.stats-item .item-text h4 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  color: var(--text-color);
}
.stats-item .item-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Responsif: stack di bawah 768px */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stats-image-wrapper {
    margin-bottom: 2rem;
  }
}

/* Container tunggal untuk peta */
.maps-grid {
  margin: 50px 0;                    /* jarak atas/bawah */
  background: #fff;                  /* putih */
  padding: 1rem;                     /* ruang dalam */
  border-radius: 0.5rem;             /* sudut membulat */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* bayangan halus */
}

/* Buat iframe memenuhi lebar container */
.maps-grid iframe {
  width: 100%;
  height: 450px;     /* atau sesuaikan */
  border: 0;
  display: block;
  border-radius: 0.5rem; /* opsional, agar sudut iframe sama */
}

.desc-scroll {
    max-height: 200px;     /* Tinggi maksimum, bisa diganti sesuai kebutuhan */
    overflow-y: auto;      /* Scroll muncul jika lebih dari max-height */
    padding-right: 8px;    /* Biar scroll nggak nutup tulisan */
}
.desc-scroll::-webkit-scrollbar {
    width: 6px;
    background: #F0F0F0;
    border-radius: 6px;
}
.desc-scroll::-webkit-scrollbar-thumb {
    background: var(--secondary-color); /* pakai warna tema kamu */
    border-radius: 6px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes zoomOut {
  from { opacity: 0; transform: scale(1.2);}
  to   { opacity: 1; transform: scale(1);}
}
@keyframes flipInY {
  from { opacity: 0; transform: perspective(400px) rotateY(60deg);}
  to   { opacity: 1; transform: perspective(400px) rotateY(0);}
}
@keyframes flipInX {
  from { opacity: 0; transform: perspective(400px) rotateX(60deg);}
  to   { opacity: 1; transform: perspective(400px) rotateX(0);}
}
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(.3);}
  50%  { opacity: 1; transform: scale(1.05);}
  70%  { transform: scale(.9);}
  100% { transform: scale(1);}
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-80px);}
  to   { opacity: 1; transform: none;}
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(80px);}
  to   { opacity: 1; transform: none;}
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(80px);}
  to   { opacity: 1; transform: none;}
}
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-80px);}
  to   { opacity: 1; transform: none;}
}
@keyframes blurIn {
  from { opacity:0; filter: blur(10px);}
  to   { opacity:1; filter: blur(0);}
}
@keyframes rotateIn {
  from { opacity: 0; transform: rotate(-360deg) scale(0.7);}
  to   { opacity: 1; transform: none;}
}

/* Default: hide dulu */
.animate-fadein,
.animate-fadeout,
.animate-zoomin,
.animate-zoomout,
.animate-flipiny,
.animate-flipinx,
.animate-bouncein,
.animate-slideinleft,
.animate-slideinright,
.animate-slideinup,
.animate-slideindown,
.animate-blurin,
.animate-rotatein
{
  opacity: 0;
}

.animate-fadein.active      { animation: fadeIn 1.2s both; opacity: 1;}
.animate-fadeout.active     { animation: fadeOut 1.2s both;}
.animate-zoomin.active      { animation: zoomIn 1.3s both; opacity: 1;}
.animate-zoomout.active     { animation: zoomOut 1.3s both; opacity: 1;}
.animate-flipiny.active     { animation: flipInY 1.3s both; opacity: 1;}
.animate-flipinx.active     { animation: flipInX 1.3s both; opacity: 1;}
.animate-bouncein.active    { animation: bounceIn 1.4s both; opacity: 1;}
.animate-slideinleft.active { animation: slideInLeft 1.2s both; opacity: 1;}
.animate-slideinright.active{ animation: slideInRight 1.2s both; opacity: 1;}
.animate-slideinup.active   { animation: slideInUp 1.2s both; opacity: 1;}
.animate-slideindown.active { animation: slideInDown 1.2s both; opacity: 1;}
.animate-blurin.active      { animation: blurIn 1.1s both; opacity: 1;}
.animate-rotatein.active    { animation: rotateIn 1.3s both; opacity: 1;}
