/* ========================================
   BINTANG NETWORK - FINAL FIX
   LAYANAN CEPAT DI BAWAH CARD MENU
   ======================================== */

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: white;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* DESKTOP BACKGROUND */
@media (min-width: 769px) {
  body {
    background: url('../images/bg2.png') no-repeat center center fixed !important;
    background-size: cover !important;
  }
}

/* MOBILE BACKGROUND */
@media (max-width: 768px) {
  body {
    background: url('../images/bg.png') no-repeat center center fixed !important;
    background-size: cover !important;
  }
}

/* OVERLAY */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 0;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 20px 60px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ========================================
   SLIDER - TANPA INDIKATOR
   ======================================== */
.slider-container {
  width: 100%;
  height: 170px;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  position: relative;
  border: 2px solid rgba(255,255,255,0.5);
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .slider-container {
    height: 190px;
  }
}

.slider-wrapper {
  display: flex;
  width: 500%;
  height: 100%;
  animation: slide 40s infinite ease-in-out;
}

.slide {
  width: 20%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@keyframes slide {
  0%, 12% { transform: translateX(0%); }
  16%, 28% { transform: translateX(-20%); }
  32%, 44% { transform: translateX(-40%); }
  48%, 60% { transform: translateX(-60%); }
  64%, 76% { transform: translateX(-80%); }
  80%, 100% { transform: translateX(0%); }
}

/* INDIKATOR DIHAPUS */
.slider-indicators {
  display: none !important;
}

/* ========================================
   DESKTOP LAYOUT - KIRI KANAN
   ======================================== */
.desktop-layout {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .desktop-layout {
    flex-direction: column;
    gap: 20px;
  }
}

/* ========================================
   LEFT SECTION - CARD MENU + LAYANAN CEPAT
   ======================================== */
.left-section {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: transparent;
  padding: 18px 15px;
  height: fit-content;
}

.section-title {
  text-align: center;
  margin-bottom: 15px;
}

.section-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 5px rgba(0,0,0,0.7);
  margin: 0;
}

/* ========================================
   GRID 5 KOLOM - CARD SANGAT KECIL
   ======================================== */
.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
}

/* DESKTOP - CARD UKURAN PALING KECIL */
@media (min-width: 769px) {
  .grid-item {
    padding: 6px 3px;
    border-radius: 10px;
  }
  
  .grid-icon {
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 4px;
    border-radius: 8px;
  }
  
  .grid-label {
    font-size: 9px !important;
    font-weight: 600;
  }
}

/* HP - CARD SANGAT KECIL DAN BULAT */
@media (max-width: 768px) {
  .grid-item {
    padding: 5px 2px !important;
    border-radius: 16px !important;
  }
  
  .grid-icon {
    width: 34px !important;
    height: 34px !important;
    margin-bottom: 3px !important;
    border-radius: 12px !important;
  }
  
  .grid-label {
    font-size: 8px !important;
  }
}

@media (max-width: 480px) {
  .grid-item {
    padding: 4px 2px !important;
    border-radius: 14px !important;
  }
  
  .grid-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
  }
  
  .grid-label {
    font-size: 7.5px !important;
  }
}

@media (max-width: 360px) {
  .grid-item {
    padding: 4px 2px !important;
    border-radius: 12px !important;
  }
  
  .grid-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 9px !important;
  }
  
  .grid-label {
    font-size: 7px !important;
  }
}

.grid-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.06s cubic-bezier(0.1, 0.9, 0.2, 1), 
              background 0.06s ease !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.5);
  aspect-ratio: 1 / 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  will-change: transform;
}

.grid-item:active {
  transform: scale(0.9) !important;
  background: white !important;
  transition: transform 0.03s ease, background 0.03s ease !important;
}

.grid-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.grid-icon img.original-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none !important;
}

.grid-label {
  color: #0f172a;
  line-height: 1.2;
  max-width: 100%;
  word-break: break-word;
  text-shadow: none;
  font-weight: 600;
}

/* ========================================
   QUICK LINKS - LAYANAN CEPAT DI BAWAH CARD
   ======================================== */
.quick-links-container {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.quick-links-title {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 5px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 769px) {
  .quick-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.quick-link-item {
  display: block;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.5);
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.quick-link-item:active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-2px);
}

@media (min-width: 769px) {
  .quick-link-item {
    font-size: 12px;
    padding: 8px 6px;
  }
}

/* ========================================
   RIGHT SECTION - INFO BOARD
   HANYA INFO PENTING & PROMO
   ======================================== */
.right-section {
  flex: 1.1;
  display: flex;
  flex-direction: column;
}

.info-board-wrapper {
  width: 100%;
  height: 100%;
}

.informasi-container {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  border: transparent;
  height: fit-content;
}

.informasi-container h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #2563eb50;
}

/* DESKTOP - INFO BOARD 2 KOLOM */
@media (min-width: 769px) {
  .info-grid-2kolom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}

/* INFO ITEMS */
.info-item {
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 14px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-item p {
  margin-bottom: 6px;
  color: #334155;
  font-size: 14px;
}

.info-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-item li {
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
  color: #334155;
  font-size: 13px;
}

.info-item li::before {
  content: '•';
  position: absolute;
  left: 5px;
  color: #2563eb;
  font-weight: bold;
  font-size: 16px;
}

/* INFO PENTING */
.info-penting {
  background: #fff5f5;
  border-left: 5px solid #ef4444;
}

.info-penting h3 {
  color: #ef4444;
}

/* INFO PROMO */
.info-promo {
  background: #f0fdf4;
  border-left: 5px solid #10b981;
}

.info-promo h3 {
  color: #10b981;
}

/* ========================================
   POPUP MODAL
   ======================================== */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup.show {
  display: flex !important;
}

.popup-content {
  background: white;
  border-radius: 24px;
  padding: 0;
  width: 90%;
  max-width: 380px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.popup-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  border-radius: 24px 24px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}

.popup-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.popup-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.popup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 20px;
}

.popup-item {
  background: #f8fafc;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  display: block;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.popup-item:active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(5px);
  padding: 15px 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  margin-top: auto;
}

.footer p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ========================================
   DESKTOP - FINAL ADJUSTMENT
   ======================================== */
@media (min-width: 769px) {
  .main-content {
    padding: 18px 25px 40px;
    max-width: 1050px;
  }
  
  .slider-container {
    height: 190px;
    margin-bottom: 25px;
  }
  
  .left-section {
    max-width: 400px;
    padding: 18px 15px;
  }
  
  .grid-container {
    gap: 8px;
  }
  
  .right-section {
    max-width: 550px;
  }
  
  .informasi-container {
    padding: 18px 16px;
  }
  
  .info-item {
    padding: 14px;
  }
}

/* ========================================
   MOBILE - FINAL
   ======================================== */
@media (max-width: 768px) {
  .grid-item {
    padding: 6px 3px;
    border-radius: 16px !important;
  }
  
  .grid-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 4px;
    border-radius: 12px !important;
  }
  
  .grid-label {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .grid-item {
    border-radius: 14px !important;
  }
  
  .grid-icon {
    border-radius: 10px !important;
  }
}

@media (max-width: 360px) {
  .grid-item {
    border-radius: 12px !important;
  }
}

@media (max-width: 480px) {
  .slider-container {
    height: 130px;
  }
  
  .grid-container {
    gap: 6px;
  }
  
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-link-item {
    padding: 8px 6px;
    font-size: 11px;
  }
}

/* ========================================
   MOBILE MENU TOGGLE - TAMPILAN HP
   ======================================== */

/* Tombol Menu untuk Mobile */
@media (max-width: 768px) {
  .section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 0 5px;
  }
  
  .section-title h2 {
    margin: 0;
    font-size: 14px;
  }
  
  .menu-toggle-btn {
    background: linear-gradient(135deg, #16171a, #4d4e4f);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 9px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  
  .menu-toggle-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #16171a, #4d4e4f);
  }
  
  .menu-icon {
    font-size: 20px;
    line-height: 1;
  }
  
  /* Grid Container di Mobile - Default TERSEMBUNYI */
  .grid-container {
    display: none !important;
    margin-bottom: 20px;
  }
  
  /* Saat aktif/dibuka */
  .grid-container.show-mobile-menu {
    display: grid !important;
    animation: slideDown 0.3s ease forwards;
  }
  
  /* Animasi slide down */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Styling quick links biar tetap rapi */
  .quick-links-container {
    margin-top: 5px;
  }
}

/* Desktop - Tombol Menu TETAP TERSEMBUNYI */
@media (min-width: 769px) {
  .menu-toggle-btn {
    display: none !important;
  }
  
  .grid-container {
    display: grid !important; /* Selalu tampil di desktop */
  }
}