html { scroll-behavior: smooth; }

/* RESPONSIVE TUNING UNTUK TABLET & MOBILE */

/* --- TABLET (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Program image */
  .program-card img,
  .free-class-card img,
  .proofreading-card img {
    height: 200px !important;
  }


  /* NAVBAR mengecil */
  .navbar-small .navbar-brand img {
    height: 35px !important;
  }

  .navbar-small .navbar-brand {
    font-size: 0.9rem !important;
  }

  .navbar-small .nav-link {
    font-size: 0.85rem !important;
  }

  /* Hero Image lebih pendek */
  .hero-img {
    height: 260px !important;
  }

  /* Card Program lebih pendek */
  .card {
    border-radius: 18px !important;
  }

  /* Tombol overlay lebih kecil */
  .card a.btn {
    font-size: 0.8rem !important;
    padding: 6px 14px !important;
  }

  /* Heading lebih kecil */
  h3, h2 {
    font-size: 1.3rem !important;
  }

  p {
    font-size: 0.9rem !important;
  }
}

/* --- MOBILE (max-width: 576px) --- */
@media (max-width: 576px) {

    /* Gambar program */
  .program-card img {
    height: 160px !important;
  }

  .free-class-card img,
  .proofreading-card img {
    height: 160px !important;
  }

  /* Tombol overlay posisi lebih pas */
  .program-card .btn,
  .free-class-card .btn,
  .proofreading-card .btn {
    font-size: 0.75rem !important;
    padding: 5px 12px !important;
  }

  /* Navbar lebih kecil */
  .navbar-small {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }

  .navbar-small .navbar-brand img {
    height: 28px !important;
  }

  .navbar-small .navbar-brand {
    font-size: 0.8rem !important;
  }

  .navbar-small .nav-link {
    font-size: 0.75rem !important;
  }

  /* Hero Image lebih kecil */
  .hero-img {
    height: 200px !important;
  }

  /* Program card full + proporsional */
  .card {
    border-radius: 14px !important;
    border-color: transparent;
  }

  /* Tombol overlay makin kecil */
  .card a.btn {
    font-size: 0.75rem !important;
    padding: 5px 12px !important;
    margin-bottom: 8px !important;
  }

  /* Semua gambar card otomatis mengecil */
  /*.card img {
    height: 220px !important;
    object-fit: cover !important;
  }*/

  /* Heading lebih kecil */
  h3, h2 {
    font-size: 1.15rem !important;
  }

  p {
    font-size: 0.85rem !important;
  }

  /* Section spacing lebih kecil */
  section.container {
    padding-top: 25px !important;
    padding-bottom: 25px !important;
  }

  .video-note {
        font-size: 0.8rem;
        padding: 0 10px;
        line-height: 1.4;
  }


}

.video-wrapper {
    max-width: 640px;   /* batas maksimal di desktop */
    margin: 0 auto;
  }

.about-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.video-note {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* NAVBAR STYLE  */
  /* Warna Gradient pada Navbar  */
  .iec-gradient {
    background: linear-gradient(to right, #4ade80, #3b82f6);
  }
  /* Ukuran Navbar */
  .navbar-small {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  /* Ukuran Logo */
  .navbar-small .navbar-brand img {
    height: 45px !important;
  }
  /* Ukuran Nama Yayasan */
  .navbar-small .navbar-brand {
    font-size: 1rem !important;
  }
  /* Ukuran Padding Menu */
  .navbar-small .nav-link {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    font-size: 0.95rem !important;
  }
  /* Ukuran language selector */
  .navbar-small #lang-id,
  .navbar-small #lang-en {
    font-size: 0.9rem !important;
  }
  /*style tombol bahasa*/
  .lang-btn {
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s ease;
  }

  /* Bahasa aktif → font hitam */
  .lang-active {
    color: black !important;
  }

  /* Tidak aktif → font putih */
  .lang-inactive {
    color: white !important;
  } 

/* .lang-btn:hover {
    color: #000;
} */

/* GALERI */
.hero-img, .carousel-item img {
  height: 400px;
  object-fit: cover;
}


/* BACKGROUND BODY */
body {
  background-image: url('Background\ Body.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

/* SIDEBAR */
    #sidebarMenu {
      position: fixed;
      top: 63px;
      left: -280px;
      width: 280px;
      height: 100%;
      background: linear-gradient(to right, #4ade80, #3b82f6);
      color: #fff;
      transition: left .28s ease;
      z-index: 2100;
      padding-top: 70px; /* ukuran space antara navbar dan sidebar menu */
    }
    #sidebarMenu.active { left: 0; }

    /* Konten utama ikut bergeser */
    body.sidebar-open main {
      margin-left: 150px !important;
      transition: margin-left .28s ease;
    }

    #sidebarMenu.active { left: 0; }

    #sidebarMenu .sidebar-content { padding: 18px; }
    #sidebarMenu .sidebar-title { font-size:1.1rem; margin-bottom:1rem; color:#e6fffa; font-weight:700; }
    #sidebarMenu .sidebar-link {
      display:block;
      padding: 12px 10px;
      line-height: 0.5;
      color: #e6eef8;
      text-decoration:none;
      border-radius:6px;
      margin-bottom:6px;
      transition: background .15s, color .15s;
      font-weight:600;
    }
    #sidebarMenu .sidebar-link:hover {
      background: rgba(255,255,255,0.04);
      color: #4ade80;
      text-decoration:none;
    }

    /* Tombol Close didalam Sidebar (mobile-friendly) */
    #sidebarClose {
      position:absolute;
      top:12px;
      right:12px;
      background:transparent;
      border:none;
      color:#fff;
      font-size:1.25rem;
    }

    /* Ukuran Overlay ketika Sidebar dibuka */
    #sidebarDim {
      position: fixed;
      inset: 60px;
      height: 100%;
      z-index:2050;
      display:none;
    }
    #sidebarDim.active { display:block; }


    /* Scroling */
    #sidebarMenu {
      overflow-y: auto;      
      scrollbar-width: thin; 
    }
    #sidebarMenu::-webkit-scrollbar {
      width: 6px;            
    }
    #sidebarMenu::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.3);
      border-radius: 4px;
    }

    /*Menu Program didalam Sidebar */
    #sidebarMenu button.sidebar-link {
      background: none;
      border: none;
      color: #e6eef8;
      padding: 6px 10px;
      margin-bottom: 2px;
      display: block;
      width: 100%;
      text-align: left;
      cursor: pointer;
    }
    #sidebarMenu button.sidebar-link:hover {
      background: rgba(255,255,255,0.06);
      color:#4ade80;
    }


    /* Submenu Program */
    .sidebar-submenu {
      margin-left: 15px;
      margin-top: 5px;
      display: none;
      flex-direction: column;
    }

    .sidebar-sublink {
      display: block;
      padding: 5px 10px;
      margin-bottom: 2px;
      color: #e6eef8;
      text-decoration: none;
      border-radius: 4px;
      font-size: 0.95rem;
    }

    .sidebar-sublink:hover {
      background: rgba(255,255,255,0.05);
      color: #4ade80;
    }

    /* animasi smooth dropdown */
    .sidebar-submenu.show {
      display: flex;
      animation: dropdownFade 0.2s ease;
    }

    @keyframes dropdownFade {
      from { opacity: 0; transform: translateY(-5px); }
      to   { opacity: 1; transform: translateY(0); }
    }

.coloumn {
  column-gap: 0px;
}

