/* Reset & base ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #333;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

section {
  padding: 3.5rem 0;
}

.section-alt {
  background-color: #f5f5f5;
}

.section-title {
  font-size: 1.8rem;
  margin: 0 0 0.75rem;
  color: #2e7d32;
}

.section-subtitle {
  margin: 0 0 2rem;
  color: #616161;
  max-width: 620px;
}

/* Topbar ----------------------------------------------------------------- */
.topbar {
  background-color: #e8f5e9;
  font-size: 0.85rem;
  color: #2e7d32;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-contact a {
  color: #2e7d32;
}

/* Navbar ----------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #1b5e20; /* Navbar */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
}

.navbar-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.navbar-brand .brand-title {
  font-weight: 600;
}

.navbar-brand .brand-subtitle {
  font-size: 0.8rem;
  opacity: 0.9;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-menu a {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.navbar-menu a.active {
  font-weight: 600;
}

.navbar-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background-color: #c8e6c9;
  transition: width 0.2s ease-out;
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  width: 40px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 999px;
}

.navbar-toggle.open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero slider under header ----------------------------------------------- */
.hero-slider-wrapper {
  background: linear-gradient(90deg, #c8e6c9, #e8f5e9);
  padding: 1.5rem 0 2.5rem;
}

.hero-slider {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  aspect-ratio: 16 / 4.5; /* memanjang seperti banner */
  background-color: #e8f5e9;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* supaya gambar tidak terpotong */
  background-color: #e8f5e9;
}

.hero-slide-active {
  opacity: 1;
}

.hero-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: rgba(27, 94, 32, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
}

.hero-slide-nav.prev {
  left: 12px;
}

.hero-slide-nav.next {
  right: 12px;
}

.hero-slide-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.hero-slide-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.hero-slide-dots .dot.active {
  background-color: #4caf50;
}

/* About layout ----------------------------------------------------------- */
.section-header {
  margin-bottom: 1.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #757575;
}

.breadcrumb a {
  color: #2e7d32;
}

.breadcrumb .current {
  color: #616161;
}

.page-title {
  margin: 0.75rem 0 0;
  font-size: 1.7rem;
  color: #2e7d32;
}

.layout-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: 2.5rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-block {
  background-color: #ffffff;
  padding: 1.1rem 1.2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.sidebar-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #2e7d32;
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.sidebar-menu li + li {
  margin-top: 0.3rem;
}

.sidebar-menu a {
  color: #424242;
}

.sidebar-menu li.active a {
  font-weight: 600;
  color: #2e7d32;
}

.sidebar-search {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #cfd8dc;
}

.sidebar-search input {
  flex: 1;
  border: none;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.sidebar-search button {
  border: none;
  background-color: #4caf50;
  color: #ffffff;
  padding: 0 0.9rem;
  cursor: pointer;
}

.sidebar-news {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}

.sidebar-news li + li {
  margin-top: 0.7rem;
}

.news-title {
  display: block;
}

.news-date {
  display: block;
  font-size: 0.78rem;
  color: #9e9e9e;
}

.content {
  background-color: #ffffff;
  border-radius: 0.6rem;
  padding: 1.5rem 1.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.content p {
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.content-contact-brief {
  margin-top: 1.2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
}

.contact-list li + li {
  margin-top: 0.3rem;
}

/* Buttons & cards -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  border: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.1s ease;
}

.btn-primary {
  background-color: #4caf50;
  color: #ffffff;
  border-color: #4caf50;
}

.btn-primary:hover {
  background-color: #2e7d32;
  border-color: #2e7d32;
  transform: translateY(-1px);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border-top: 3px solid #4caf50;
}

.card h3 {
  margin: 0 0 0.6rem;
  color: #2e7d32;
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.download-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.download-card h3 {
  margin: 0 0 0.6rem;
  color: #2e7d32;
}

.download-card p {
  margin: 0 0 0.9rem;
}

/* Gallery ---------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.gallery-item {
  border-radius: 0.75rem;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-height: 250px;
}

.gallery-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain; /* biar proporsi gambar asli terjaga */
}

.gallery-item embed {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
}

/* Video layout -------------------------------------------------------- */
.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.video-main {
  width: 100%;
}

.video-item {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  background-color: #000;
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  width: 100%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video playlist sidebar */
.video-playlist {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  max-height: 600px;
  display: flex;
  flex-direction: column;
}

.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

.playlist-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2e7d32;
}

.playlist-count {
  font-size: 0.85rem;
  color: #757575;
}

.playlist-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  flex: 1;
}

.playlist-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.playlist-item:hover {
  background-color: #f5f5f5;
}

.playlist-item.active {
  background-color: #e8f5e9;
}

.playlist-thumb {
  position: relative;
  width: 120px;
  min-width: 120px;
  height: 68px;
  border-radius: 0.4rem;
  overflow: hidden;
  background-color: #000;
}

.playlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.playlist-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.playlist-item-title {
  font-size: 0.9rem;
  color: #424242;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-item.active .playlist-item-title {
  color: #2e7d32;
  font-weight: 500;
}

/* Certifications --------------------------------------------------------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.cert-grid-single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

.cert-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border-top: 3px solid #4caf50;
}

.cert-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  object-fit: contain;
}

/* Contact section -------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info {
  background-color: #f5f5f5;
  border-radius: 0.75rem;
  padding: 1.4rem 1.6rem;
}

.contact-info h3 {
  margin-top: 0;
  color: #2e7d32;
}

.contact-apps {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.contact-apps h3 {
  margin-top: 0;
  color: #2e7d32;
}

.app-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

.app-icon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background-color: #f5f5f5;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
}

.app-icon:hover {
  background-color: #e8f5e9;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.app-badge {
  width: 34px;
  height: 34px;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

.app-badge svg {
  width: 20px;
  height: 20px;
}

.app-label {
  font-weight: 500;
}

.app-wa .app-badge {
  background-color: #25d366;
}

.app-mail .app-badge {
  background-color: #f44336;
}

.app-call .app-badge {
  background-color: #4caf50;
}

.app-shopee .app-badge {
  background-color: #ee4d2d;
}

/* Footer ----------------------------------------------------------------- */
.footer {
  background-color: #424242;
  color: #eeeeee;
  padding: 1.6rem 0;
  font-size: 0.86rem;
}

.footer-inner {
  text-align: center;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .layout-two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    order: 2;
  }

  .content {
    order: 1;
  }

  .cards-grid,
  .gallery-grid,
  .video-grid,
  .video-layout,
  .download-grid,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .navbar-menu {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background-color: #1b5e20;
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
  }

  .navbar-menu.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-toggle {
    display: inline-flex;
  }

  .navbar-logo img {
    width: 36px;
    height: 36px;
  }

  .navbar-brand .brand-title {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .navbar-inner {
    padding: 0.6rem 0;
  }

  .topbar {
    font-size: 0.75rem;
  }

  .topbar-inner {
    padding: 0.4rem 0;
  }

  .topbar-contact {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .hero-slider-wrapper {
    padding: 1rem 0 1.5rem;
  }

  .hero-slider {
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .content {
    padding: 1.5rem 1.6rem;
  }

  .sidebar-block {
    padding: 1.2rem;
  }

  .gallery-grid {
    gap: 1.5rem;
  }

  .gallery-item {
    min-height: 200px;
    padding: 0.4rem;
  }

  .gallery-item img {
    max-height: 300px;
  }

  .video-layout {
    gap: 1.5rem;
  }

  .video-playlist {
    max-height: 500px;
    padding: 1rem;
  }

  .playlist-thumb {
    width: 100px;
    min-width: 100px;
    height: 56px;
  }

  .cert-card {
    padding: 0.8rem 1rem;
  }

  .cert-card img {
    max-height: 350px;
  }
}

@media (max-width: 520px) {
  section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .navbar-brand .brand-title {
    font-size: 0.75rem;
  }

  .navbar-logo {
    gap: 0.5rem;
  }

  .navbar-logo img {
    width: 32px;
    height: 32px;
  }

  .topbar {
    font-size: 0.7rem;
  }

  .topbar-contact span {
    display: none;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .content {
    padding: 1.25rem 1.5rem;
  }

  .sidebar-block {
    padding: 1rem 1.2rem;
  }

  .gallery-grid {
    gap: 1.25rem;
  }

  .content p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .content h3 {
    font-size: 1.1rem;
  }

  .contact-list {
    font-size: 0.88rem;
  }

  .gallery-grid {
    gap: 1rem;
  }

  .gallery-item {
    min-height: 180px;
    padding: 0.3rem;
  }

  .gallery-item img {
    max-height: 250px;
  }

  .video-layout {
    gap: 1rem;
  }

  .video-playlist {
    max-height: 400px;
    padding: 0.875rem;
  }

  .playlist-title {
    font-size: 1rem;
  }

  .playlist-thumb {
    width: 80px;
    min-width: 80px;
    height: 45px;
  }

  .playlist-item-title {
    font-size: 0.85rem;
  }

  .cert-card {
    padding: 0.6rem 0.8rem;
  }

  .cert-card img {
    max-height: 300px;
  }

  .app-icon {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .app-badge {
    width: 30px;
    height: 30px;
  }

  .app-badge svg {
    width: 18px;
    height: 18px;
  }

  .hero-slider {
    aspect-ratio: 16 / 10;
  }

  .hero-slide-nav {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }

  .hero-slide-nav.prev {
    left: 8px;
  }

  .hero-slide-nav.next {
    right: 8px;
  }
}

