html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.gradient-text {
  background-image: linear-gradient(45deg, rgba(15, 188, 109, 1), white); /* Gradasi dari hijau ke putih */
  -webkit-background-clip: text; /* Memotong latar belakang sesuai bentuk teks */
  -webkit-text-fill-color: transparent; /* Membuat warna teks transparan */
  background-clip: text; /* Untuk browser modern */
  color: transparent; /* Fallback untuk browser yang tidak mendukung */
}

.nav-text-white {
  color: white;
}
.nav-text-white-left {
  color: white; /* nav-text-white */
  font-weight: bold; /* font-bold */
  font-size: 1.2em; /* text-[1.2em] */
}

.home-text-white {
  color: white;
}

.text-green {
  color: rgba(15, 188, 109, 1);
  font-family: "Satoshi-Bold", sans-serif;
  margin-top: 15px;
}

body {
  font-family: "Satoshi-Regular", sans-serif;
  background-color: #161616;
  overflow-x: hidden;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 55px 55px; /* ukuran grid kecil */
}
.circle {
  width: 1000px;
  height: 1000px;
  left: 50%;
  top: 50%; /* ganti dari bottom ke top */
  transform: translate(-50%, -50%); /* center X & Y */
  border-radius: 50%;
  background: radial-gradient(circle, #161616, #161616, #161616, rgba(15, 188, 109, 1));
  position: absolute;
  z-index: -1;
  opacity: 0.5;
}

.circle2 {
  width: 400px;
  height: 400px;
  top: -20px;
  left: -90px;
  border-radius: 50%;
  /* background-color: rgba(15, 188, 109, 0.3); */
  border: 10px solid rgba(15, 188, 109, 0.3);
  position: absolute;
  filter: blur(10px);
}
.border-bottom {
  border-bottom: 2px solid rgba(15, 188, 109, 1);
}

/* ------------------ HEADER START ------------------ */
#header {
  height: 70px;
  background-color: rgba(22, 22, 22, 1);
  /* backdrop-filter: blur(20px); */
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 5;
}
.header {
  display: flex;
  width: 80vw;
  justify-content: space-between;
  align-items: center;
}
#header a {
  text-decoration: none;
  z-index: 4;
}

/* ------------------ NAVBAR START ------------------ */
.navbar {
  display: flex;
  align-items: center;
  min-width: 50%;
}
.logo-navbar {
  height: 48px; /* setara dengan h-12 Tailwind = 3rem = 48px */
  width: auto; /* agar rasio gambar tetap terjaga */
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px; /* setara dengan Tailwind space-x-2 */
  text-decoration: none;
  color: white;
}
.nav-toggle {
  display: none;
}
#nav_list {
  display: flex;
  gap: 30px;
  min-width: 100%;
}
#header nav ul li {
  list-style: none;
}
.nav-link {
  text-decoration: none;
  margin: 0px 10px;
  padding: 5px 5px;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.nav-link:hover {
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}
.fas {
  margin: 5px 0px;
  transform: scale(0.7);
}
/* Style Dropdown */
.dropdown-menu {
  display: block; /* Tetap ditampilkan tapi dibuat transparan */
  position: absolute;
  background-color: #161616;
  border: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
  border-radius: 5px;
  opacity: 0; /* Awalnya transparan */
  transform: translateY(-10px); /* Mulai dari sedikit lebih atas */
  visibility: hidden; /* Supaya tidak bisa diklik saat tersembunyi */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Saat nav-item di-hover, dropdown muncul dengan animasi */
.nav-item:hover .dropdown-menu,
.dropdown:hover .dropdown-menu {
  opacity: 1; /* Muncul */
  transform: translateY(0); /* Turun ke posisi normal */
  visibility: visible; /* Bisa diklik */
}

.dropdown-menu li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 8px 15px;
  transition: background-color 0.3s ease;
}

/* Efek hover untuk item dropdown */
.dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
/* ------------------ NAVBAR END ------------------ */
/* ------------------ HEADER END ------------------ */

/* ------------------ MAIN START ------------------ */
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #161616;
  transition: opacity 0.5s ease;
}
.main.nav-open {
  opacity: 0.2;
}
.container {
  width: 60vw;
  margin: 50px 0px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
/* ------------------ MAIN END ------------------ */

/* ------------------ HOME START ------------------ */
/* #home layout diatur di sections/hero.html */
#home img {
  max-width: 100%;
}
/* ------------------ HOME END ------------------ */

/* ------------------ BERITA START ------------------ */
#berita {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 25px 0;
}
#berita div {
  text-align: center;
}
#berita .fade-in {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card_container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
a {
  text-decoration: none;
}
.card {
  max-width: 330px;
  border: 1px solid rgba(15, 188, 109, 0.05);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  transition: border 0.3s ease;
  background: linear-gradient(135deg, rgba(15, 188, 109, 0.3), rgba(22, 22, 22, 1), rgba(22, 22, 22, 1), rgba(15, 188, 109, 0.3));
  backdrop-filter: blur(10px);
}
.card:hover {
  border: 1px solid rgba(15, 188, 109, 0.5);
}
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
}
.text-limit {
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Batasi hanya 3 baris */
  -webkit-box-orient: vertical;
  line-clamp: 5;
  overflow: hidden;
}
/* ------------------ BERITA END ------------------ */

/* ------------------ EMAGZ START ------------------ */
.emagz {
  /* min-height: 680px; */
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 75vw;
  margin: 30px 0px;
}
.emagz .emagz-slide {
  width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.emagz .emagz-slide .container-gambar {
  display: flex;
  justify-content: center;
  align-items: center;
}
.emagz .emagz-slide .container-gambar .prev,
.next {
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 100px;
  padding-bottom: 100px;
  cursor: pointer;
}
.emagz .emagz-slide .container-gambar img {
  height: 600px;
  margin: 10px;
}
/* ------------------ EMAGZ END ------------------ */

/* ------------------ POTEK START ------------------ */
.potek {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  margin: 30px 0px 60px 0px;
}
.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.video-container iframe {
  width: 350px;
  height: 196.875px;
  max-width: 100%;
}
/* ------------------ POTEK END ------------------ */

/* ------------------ FOOTER START ------------------ */
footer {
  min-height: 15vh;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ------------------ FOOTER END ------------------ */

/* ------------------ ANIMASI SCROLL ------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.text-green {
  color: #0fbc6d;
}
/* ------------------ ANIMASI SCROLL ------------------ */

/* ------------------ NEWS DETAIL PAGE ------------------ */
.border {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
/* ------------------ NEWS DETAIL PAGE ------------------ */

@media screen and (min-width: 1000px) {
  .nav-drop {
    text-decoration: none;
    margin: 0px 10px;
    padding: 5px 5px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
  }
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  .dropdown-menu li a {
    margin: 7px 20px;
    display: block;
    color: white;
    text-decoration: none;
  }
  .container {
    width: 50vw;
    margin: 50px 0px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
  }
  .info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
  }
  .news-heading {
    font-size: 3em;
  }
  .news-paragraph {
    font-size: 1.2em;
    line-height: 1.55em;
  }
}
/* TAB */
@media screen and (min-width: 600px) and (max-width: 999px) {
  .nav-contain {
    top: -500px;
    left: 0px;
    position: absolute;
    opacity: 0;
    width: 100vw;
    transition: all 0.5s ease;
  }

  .nav-contain.nav-open {
    opacity: 1;
    top: 50px;
  }

  #nav_list {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: transparent;
    border: none;
  }

  .line,
  .linee,
  .lineee {
    background-color: white;
    width: 23px;
    height: 2px;
    transition: all 0.3s ease;
  }

  .line.nav-open {
    transform: translateY(6px) rotate(-45deg);
  }

  .linee.nav-open {
    opacity: 0;
  }

  .lineee.nav-open {
    transform: translateY(-6px) rotate(45deg);
  }

  .dropdown-menu {
    display: none; /* Awalnya disembunyikan */
    position: relative;
    background-color: #161616;
    border: 1px solid transparent;
    list-style: none;
    border-radius: 5px;
  }

  .dropdown-menu li a {
    margin: 3px 20px;
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    width: fit-content;
  }

  .dropdown-menu.show-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .circle {
    display: none;
  }
  #home {
    min-height: 65vh;
    justify-content: center;
  }

  #home div {
    max-width: 65vw;
  }
  #home img {
    order: -1;
    width: 60vw;
  }

  #berita {
    min-height: 40vh;
  }

  .emagz {
    justify-content: center;
    text-align: center;
    gap: 20px;
  }
  .emagz .fade-in {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  main aside {
    gap: 30px;
  }

  .container {
    width: 70vw;
    margin: 50px 0px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .container img {
    width: 100%;
    height: 230px;
    object-fit: cover;
  }
  .info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
  }
  .news-heading {
    font-size: 3em;
  }
  .news-paragraph {
    font-size: 1.2em;
    line-height: 1.55em;
  }
}

/* HANDPHONE */
@media screen and (max-width: 600px) {
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
  }

  #header {
    width: 100vw;
    height: 60px;
    justify-content: center;
  }

  #header a h2 {
    font-size: 1em;
  }

  .nav-contain {
    /* Sembunyikan ke atas pakai transform — lebih smooth dari top:-500px */
    position: absolute;
    left: 0;
    top: 100%;           /* tepat di bawah header */
    width: 100vw;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition:
      opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1),
      transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 998;
  }

  .nav-contain.nav-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  #nav_list {
    flex-direction: column;
    text-align: center;
    gap: 0;
    padding: 8px 0 16px;
    /* Glassmorphism premium */
    background: rgba(7, 9, 13, 0.96) !important;
    backdrop-filter: blur(28px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
    border-bottom: 1px solid rgba(15, 188, 109, 0.12) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
  }

  /* Setiap nav item slide masuk stagger */
  #nav_list > * {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-contain.nav-open #nav_list > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
  .nav-contain.nav-open #nav_list > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
  .nav-contain.nav-open #nav_list > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
  .nav-contain.nav-open #nav_list > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
  .nav-contain.nav-open #nav_list > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
  .nav-contain.nav-open #nav_list > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.30s; }

  /* Padding tiap link nav */
  #nav_list .nav-link,
  #nav_list > li > a,
  #nav_list > li {
    padding: 14px 20px !important;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease, color 0.2s ease !important;
  }

  #nav_list .nav-link:active,
  #nav_list > li > a:active {
    background: rgba(15, 188, 109, 0.08) !important;
    color: #0fbc6d !important;
  }
  .dropdown-menu {
    display: none; /* Awalnya disembunyikan */
    position: relative;
    background-color: #161616;
    border: 1px solid transparent;
    list-style: none;
    border-radius: 5px;
  }
  .dropdown-menu li a {
    margin: 3px 20px;
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    width: fit-content;
  }
  .dropdown-menu.show-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: transparent;
    border: none;
  }
  .line,
  .linee,
  .lineee {
    background-color: white;
    width: 23px;
    height: 2px;
    transition: all 0.3s ease;
  }
  .line.nav-open {
    transform: translateY(6px) rotate(-45deg);
  }
  .linee.nav-open {
    opacity: 0;
  }
  .lineee.nav-open {
    transform: translateY(-6px) rotate(45deg);
  }
  .circle {
    display: none;
  }
  .main {
    gap: 20px;
    background-color: #161616;
  }

  #home {
    justify-content: space-evenly;
    min-height: 70vh;
  }

  #home div {
    width: 80vw;
    display: flex;
    flex-direction: column;
  }

  .heading1 {
    font-size: 2.2em;
  }

  .paragraph {
    font-size: 1em;
  }

  #home img {
    order: -1;
    width: 60vw;
    /* width: 73px; */
  }

  /* ------------------ BERITA START ------------------ */
  #berita div {
    width: 85vw;
    display: flex;
    flex-direction: column;
  }
  .card {
    max-width: 100%;
  }
  /* ------------------ BERITA END ------------------ */

  /* ------------------ EMAGZ START ------------------ */
  .emagz {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    width: 100% !important;
    max-width: 100% !important;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .emagz .fade-in {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .emagz .teks-emagz a {
    display: none;
  }
  .emagz .emagz-slide .container-gambar .prev {
    padding-left: 30px;
  }
  .emagz .emagz-slide .container-gambar .next {
    padding-right: 30px;
  }
  .emagz .emagz-slide .container-gambar img {
    max-height: 65vh;
  }
  /* ------------------ EMAGZ END ------------------ */

  .potek .fade-in {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  footer {
    width: 100vw;
    margin-top: 30px;
    padding: 0 20px;
  }
  .news-heading {
    font-size: 2em;
  }
  .container {
    width: 90vw;
    margin: 0px 0px 30px 0px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .container img {
    position: relative;
    width: 100vw;
    display: flex;
    align-self: center;
    height: 500px;
    object-fit: cover;
  }
  .news-heading {
    display: flex;
    align-items: center;
    align-self: center;
    position: absolute;
    text-align: center;
    height: 502px;
    padding: 0vw 5vw;
    background-color: rgba(22, 22, 22, 0.5);
  }
  .info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
  }
  .news-paragraph {
    font-size: 1.1em;
    line-height: 1.55em;
  }
}

/* Swiper-Logo Profile Kabinet*/
.swiper-wrapper.filosofi-wrapper {
  width: 100%;
  height: 100%; /* jangan max-content */
  padding-bottom: 64px !important;
  -webkit-transition-timing-function: ease-in-out !important;
  transition-timing-function: ease-in-out !important;
  position: relative;
}

.swiper-pagination-bullet.filosofi-wrapper {
  background: #3266d4;
  transition: background 0.5s ease;
}

.swiper-slide.filosofi-wrapper {
  opacity: 0;
  transform: scale(0.2);
}

.swiper-slide-active.filosofi-wrapper {
  opacity: 1;
  transform: scale(0.5);
}

.swiper-pagination-bullet-active {
  background: #735aef !important;
}

.hero-swiper .swiper-wrapper {
  width: 100%;
  height: max-content !important;
  padding-bottom: 64px !important;
  transition-timing-function: linear !important;
  position: relative;
}
.hero-swiper .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: #ffffff !important; /* Indigo */
}

/* Hero Swiper - Responsive Image Sizing */

.hero-swiper {
}

.hero-swiper .swiper-wrapper {
  width: 100%;
  height: max-content !important;
  padding-bottom: 64px !important;
  transition-timing-function: linear !important;
  position: relative;
}

.hero-swiper .swiper-slide > div {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-swiper .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: #ffffff !important;
}

/* Swiper-Logo Profile Kabinet*/
.swiper-wrapper.filosofi-wrapper {
  width: 100%;
  height: 100%; /* jangan max-content */
  padding-bottom: 64px !important;
  -webkit-transition-timing-function: ease-in-out !important;
  transition-timing-function: ease-in-out !important;
  position: relative;
}

.swiper-pagination-bullet.filosofi-wrapper {
  background: #3266d4;
  transition: background 0.5s ease;
}

.swiper-slide.filosofi-wrapper {
  opacity: 0;
  transform: scale(0.2);
}

.swiper-slide-active.filosofi-wrapper {
  opacity: 1;
  transform: scale(0.5);
}

.swiper-pagination-bullet-active {
  background: #735aef !important;
}
/* Responsive */
@media (max-width: 1024px) {
  .hero-swiper .swiper-slide > div {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .hero-swiper .swiper-slide > div {
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }
}

/* ========== TAMBAHKAN CSS INI DI BAGIAN PALING BAWAH style.css ========== */
/* ========== HAPUS SEMUA CSS RESPONSIVE YANG LAMA DAN GANTI DENGAN INI ========== */

/* ========== RESPONSIVE FIXES & OVERRIDES ========== */

/* Base responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== HOME SECTION - CENTERED ========== */
/* #home layout sekarang diatur sepenuhnya di sections/hero.html */

.heading1 {
  font-size: clamp(2rem, 5vw, 3.8em) !important;
  line-height: 1.2;
  text-align: center !important;
}

.paragraph {
  font-size: clamp(1rem, 2vw, 1.3em) !important;
  line-height: 1.6;
  text-align: center !important;
}

/* ========== BERITA TERBARU - CARD LAYOUT ========== */
.flex.flex-wrap.gap-8 {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
  width: 100% !important;
}

.flex.flex-wrap.gap-8 > div {
  width: 100% !important;
  max-width: 350px !important;
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ========== ACARA ON-GOING - CARD LAYOUT ========== */
.grid.grid-cols-1.sm\:grid-cols-2 {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
}

.grid.grid-cols-1.sm\:grid-cols-2 > div {
  width: 100% !important;
  max-width: 350px !important;
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ========== TIMELINE KEGIATAN - CARD LAYOUT ========== */
.grid.md\:grid-cols-3 {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
}

.grid.md\:grid-cols-3 > div {
  width: 100% !important;
  max-width: 350px !important;
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ========== DESKTOP (min-width: 1000px) ========== */
@media screen and (min-width: 1000px) {
  /* Home section - align left on desktop */
  #home {
    justify-content: space-between !important;
  }

  #home div {
    text-align: left !important;
    align-items: flex-start !important;
  }

  .heading1 {
    text-align: left !important;
  }

  .paragraph {
    text-align: left !important;
  }

  /* Desktop card layout - 3 columns */
  .flex.flex-wrap.gap-8,
  .grid.grid-cols-1.sm\:grid-cols-2,
  .grid.md\:grid-cols-3 {
    justify-content: center !important;
  }

  .flex.flex-wrap.gap-8 > div {
    max-width: 350px !important;
    flex: 0 1 calc(33.333% - 1.5rem) !important;
  }

  .grid.grid-cols-1.sm\:grid-cols-2 > div {
    max-width: 400px !important;
    flex: 0 1 calc(50% - 1rem) !important;
  }

  .grid.md\:grid-cols-3 > div {
    max-width: 350px !important;
    flex: 0 1 calc(33.333% - 1.5rem) !important;
  }
}

/* ========== TABLET (600px - 999px) ========== */
@media screen and (min-width: 600px) and (max-width: 999px) {
  .container.mx-auto {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  #home {
    min-height: 70vh;
    justify-content: center !important;
    gap: 30px;
  }

  #home div {
    max-width: 100% !important;
    text-align: center !important;
  }

  #home img {
    order: -1;
    max-width: 350px !important;
    margin: 0 auto !important;
  }

  /* Tablet - 2 columns */
  .flex.flex-wrap.gap-8 > div,
  .grid.md\:grid-cols-3 > div {
    max-width: 320px !important;
    flex: 0 1 calc(50% - 1rem) !important;
  }

  .grid.grid-cols-1.sm\:grid-cols-2 > div {
    max-width: 320px !important;
    flex: 0 1 calc(50% - 1rem) !important;
  }
}

/* ========== MOBILE (max-width: 600px) ========== */
@media screen and (max-width: 600px) {
  /* Container fix */
  .container.mx-auto {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
  }

  /* HOME SECTION - CENTERED */
  #home {
    width: 100% !important;
    min-height: auto !important;
    padding: 40px 15px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
    flex-direction: column !important;
  }

  #home div {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    align-items: center !important;
  }

  .heading1 {
    font-size: 1.8rem !important;
    text-align: center !important;
  }

  .paragraph {
    font-size: 1rem !important;
    text-align: center !important;
  }

  #home img {
    order: -1 !important;
    width: 70% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }

  /* Mobile - 1 column, full width */
  .flex.flex-wrap.gap-8,
  .grid.grid-cols-1.sm\:grid-cols-2,
  .grid.md\:grid-cols-3 {
    flex-direction: column !important;
    align-items: center !important;
    gap: 2rem !important;
    padding: 0 1rem !important;
  }

  .flex.flex-wrap.gap-8 > div,
  .grid.grid-cols-1.sm\:grid-cols-2 > div,
  .grid.md\:grid-cols-3 > div {
    max-width: 100% !important;
    width: 100% !important;
    flex: none !important;
  }

  /* Sections padding */
  section.py-16 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  section .max-w-6xl,
  section .fade-in {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ========== EXTRA SMALL MOBILE (max-width: 400px) ========== */
@media screen and (max-width: 400px) {
  .heading1 {
    font-size: 1.5rem !important;
  }

  #home img {
    max-width: 220px !important;
  }
}

/* ========== ELEKTRO MAGAZINE RESPONSIVE ========== */
/* Desktop */
@media screen and (min-width: 1000px) {
  .flex.flex-wrap.justify-center.gap-10 {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 2.5rem !important;
  }

  .flex.flex-wrap.justify-center.gap-10 > a {
    width: 240px !important;
    min-height: 380px !important;
  }
}

/* Tablet */
@media screen and (min-width: 600px) and (max-width: 999px) {
  .flex.flex-wrap.justify-center.gap-10 {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    padding: 0 2rem !important;
  }

  .flex.flex-wrap.justify-center.gap-10 > a {
    width: 220px !important;
    min-height: 360px !important;
  }
}

/* Mobile */
@media screen and (max-width: 600px) {
  .flex.flex-wrap.justify-center.gap-10 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 0 1rem !important;
  }

  .flex.flex-wrap.justify-center.gap-10 > a {
    width: 100% !important;
    max-width: 280px !important;
    min-height: 380px !important;
  }
}

/* ========== FOOTER RESPONSIVE ========== */
/* Base footer - semua teks center */
footer {
  width: 100% !important;
}

footer .grid {
  text-align: center !important;
}

footer .grid > div {
  text-align: center !important;
}

/* Pastikan semua elemen di footer center */
footer h1,
footer h5,
footer p,
footer ul,
footer li {
  text-align: center !important;
}

/* Flex items center */
footer .flex {
  justify-content: center !important;
}

/* Desktop - 3 columns */
@media screen and (min-width: 768px) {
  footer .grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Mobile - 1 column */
@media screen and (max-width: 767px) {
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  footer .max-w-7xl {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* ========== PODCAST RESPONSIVE ========== */
/* Base styles for podcast section */
section iframe {
  position: relative;
  z-index: 1;
}

/* Desktop */
@media screen and (min-width: 1000px) {
  .flex.flex-wrap.justify-center.gap-6 > a {
    width: 360px !important;
    height: 220px !important;
    position: relative;
    z-index: 1;
  }
}

/* Tablet */
@media screen and (min-width: 600px) and (max-width: 999px) {
  .flex.flex-wrap.justify-center.gap-6 {
    padding: 0 2rem !important;
  }

  .flex.flex-wrap.justify-center.gap-6 > a {
    width: 340px !important;
    height: 200px !important;
    position: relative;
    z-index: 1;
  }
}

/* Mobile */
@media screen and (max-width: 600px) {
  .flex.flex-wrap.justify-center.gap-6 {
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 1rem !important;
  }

  .flex.flex-wrap.justify-center.gap-6 > a {
    width: 100% !important;
    max-width: 320px !important;
    height: 200px !important;
    position: relative;
    z-index: 1;
  }
}