/* === RESPONSIVE HEADER UNTUK MOBILE === */

/* === SEMBUNYIKAN TOMBOL CLOSE DI DESKTOP === */
.menu-close {
  display: none !important;
}

@media (max-width: 768px) {

  

  /* === HERO CAPTION KHUSUS MOBILE (UPDATED) === */
  .hero-slideshow .caption p {
    font-size: 15px;
    line-height: 1.45;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
  }

  /* === FORM REGISTRATION LEBIH LEBAR DI MOBILE === */
.registration-section .form-box {
  width: 85% !important;        /* dari yang kecil → lebih melebar */
  max-width: 360px !important;  /* biar ga kepanjangan */
  margin: 0 auto !important;    /* tetap center */
  padding: 20px 18px !important; /* biar form ada ruang lega */
}

.registration-section .form-box input,
.registration-section .form-box select,
.registration-section .form-box button {
  width: 100% !important;       /* isi form ikut melebar */
  font-size: 15px !important;   /* gak terlalu kecil */
  padding: 10px 14px !important;
}

.registration-section h2 {
  font-size: 26px !important;   /* judul agak besar biar proporsional */
}

 /* SECTION INFO MOBILE SUPER FIX */
 .info-section {
  padding-top: 180px !important;   /* TURUNIN judul jauh dari navbar */
  padding-bottom: 180px !important; /* biar footer kebaca */
  min-height: 1400px !important;   /* WAJIB: bikin background PANJANG */
  background-size: cover !important;
  background-position: center top !important;
}

/* judul "Informasi" biar muncul */
.info-title {
  font-size: 26px !important;
  text-align: center;
  margin-bottom: 30px !important;
  display: block !important;
}

/* container jadi vertikal */
.info-container {
  display: flex;
  flex-direction: column;
  gap: 35px !important;
  width: 100%;
  margin-top: 20px !important;
}

.info-left,
.info-right {
  width: 100% !important;
  text-align: center !important;
}

.info-right {
  margin-top: -120px !important;   /* NAIKIN BLOK MEDSOS */
}

.info-item {
  width: 90% !important;
  margin: 0 auto 25px !important;
}

/* judul Let's Get In Touch */
.social-contact h2 {
  margin-top: 10px !important;
  margin-bottom: 20px !important;
  font-size: 22px;
}

/* icon medsos */
.social-icons {
  flex-direction: column;
  gap: 15px !important;
  align-items: center;
}

.info-footer {
  margin-top: 260px !important; 
  position: relative !important;
  bottom: auto !important;
  top: auto !important;
  z-index: 10 !important;
}


    /* === TOMBOL CLOSE DENGAN BACKGROUND KOTAK KECIL === */
    .menu.menu-mobile .menu-close {
      position: absolute;
      top: 6px;
      right: 10px;

      width: 38px;
      height: 38px;
      display: flex !important;
      justify-content: center;
      align-items: center;

      background: #000;
      color: #fff;
      font-size: 2rem;
      font-weight: 700;
      border-radius: 10px;

      cursor: pointer;
      z-index: 999999 !important;
      user-select: none;
      transition: all 0.25s ease;
    }

    /* === HOVER EFFECT === */
    .menu.menu-mobile .menu-close:hover {
      background: #fff;
      color: #000;
    }

     /* === LOGIN MOBILE === */
    .body-login {
      padding-left: 0 !important;
      transform: scale(1) !important;
      overflow-y: auto !important;
      height: auto !important;
      min-height: 100vh !important;
      background-size: cover !important;
      background-position: center top !important;
      justify-content: center !important;
      align-items: flex-start !important;
    }
  
    .body-login .login-card {
      width: 270px !important;       /* perkecil lagi */
      padding: 7px 14px !important; /* padding lebih ramping */
      margin-top: 130px !important;   /* posisi turun sedikit */
      margin-left: -90px !important;  /* geser ke kiri */
    }
  
    .body-login .login-card .logo img {
      width: 70px !important;
    }
  
    .body-login .back-arrow {
      width: 36px !important;
      height: 36px !important;
      font-size: 22px !important;
      top: 12px !important;
      left: 12px !important;
    }


      /* CRUD BUTTONS — posisi baru untuk mobile */
      .crud-buttons {
        position: absolute !important;  
        bottom: 85px !important;        /* geser posisi pas di atas dots */
        left: 50% !important;           /* center */
        transform: translateX(-50%) !important;
        margin: 0 !important;
      }


      /* Form Efit About Admin mengecil */
  #editAboutForm {
    width: 95% !important;
    padding: 18px 15px !important;
    margin-top: 15px !important;
    max-width: 100% !important;
  }

  /* Grid dari 2 kolom → jadi 1 kolom */
  #editAboutForm > div {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Textarea mengecil */
  #editAboutForm textarea {
    font-size: 14px !important;
    padding: 10px !important;
    height: 150px !important;
  }

  /* Preview image mengecil & full width */
  #editAboutForm img {
    max-width: 90% !important;
    margin: 0 auto !important;
  }

  /* File input full width biar rapi */
  #editAboutForm input[type="file"] {
    width: 100% !important;
  }

  /* Tombol simpan & batal jadi vertikal */
  #editAboutForm button {
    width: 100% !important;
    margin-bottom: 10px !important;
    padding: 10px !important;
    font-size: 15px !important;
  }

  /* Icon edit diperkecil */
  .edit-icon-wrapper {
    top: 10px !important;
    left: 10px !important;
    padding: 6px !important;
    transform: scale(0.9);
  }

  /* Title center + lebih kecil */
  .about-title {
    font-size: 22px !important;
  }

  /* Caption default sebelum edit */
  #aboutText {
    text-align: left !important;
    font-size: 14px !important;
  }
  

  
 /* TOMBOL EDIT BISNIS MOBILE — VERSI FINAL */
 .bisnis-section .edit-icon-wrapper.bisnis {
  position: absolute !important;

  /* POSISI DI BAWAH JUDUL, DI ATAS CARD */
  top: 77px !important;      /* atur naik-turun di sini */
  left: 50% !important;
  transform: translateX(-50%) !important;

  width: 38px !important;
  height: 38px !important;

  background: rgba(0,0,0,0.85) !important;
  border: 2px solid #fff !important;
  border-radius: 10px !important;

  z-index: 999999 !important;
  opacity: 1 !important;
  visibility: visible !important;

  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Parent tidak memotong icon */
.bisnis-header,
.bisnis-section,
.bisnis-container {
  overflow: visible !important;
}

 /* HAPUS efek hover di mobile */
  .edit-icon-wrapper.bisnis:hover {
    transform: none !important;
    scale: 1 !important;
    transition: none !important;
    background: rgba(0,0,0,0.85) !important;
    color: #fff !important;
    border-color: #fff !important;
  }



    /* EDIT HERO MOBILE ONLY */
    .edit-hero-body .edit-hero-page .form-container,
    .edit-hero-page .form-container {
      width: 95% !important;
      max-width: 95% !important;
      padding: 18px 15px !important;
    }
  
    body.edit-hero-body {
      padding-top: 20px !important;
      align-items: flex-start !important;
    }
  
    body.edit-hero-body img.preview {
      width: 100% !important;
      max-width: 100% !important;
    }
  
    body.edit-hero-body input,
    body.edit-hero-body textarea {
      width: 100% !important;
      font-size: 16px !important;
      padding: 10px 12px !important;
    }

    body.edit-hero-body {
      display: block !important;   /* Hapus center layout flex */
      padding: 0 !important;       /* Buang padding body */
      margin: 0 !important;
    }
  
    .edit-hero-page .form-container {
      width: 100% !important;      /* Bener-bener full */
      max-width: 100% !important;
      border-radius: 0 !important; /* Biar nempel pinggir layar */
      box-shadow: none !important; /* Opsional: hilangkan bayangan */
      padding: 20px !important;    /* Padding dalam tetap enak */
    }



      /* ==== RESETPOSISI JUDUL DI MOBILE ==== */
  .info-section .info-title {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto 20px auto !important;
    padding: 12px 20px !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    background: rgba(0, 0, 0, 0.45) !important;
    border-radius: 20px !important;

    z-index: 10 !important; /* cukup tinggi tapi tidak nimpa grid */
  }

  /* ==== SUPAYA GRID TIDAK TERTUTUP JUDUL ==== */
  .info-container {
    margin-top: 20px !important; /* kasih jarak aman dari judul */
  }

  /* ==== TAMPILKAN TOMBOL EDIT ==== */
  .btn-edit-info {
    left: 15px !important;     /* pindah ke kanan */
    top: 10px !important;       /* geser turun */
    transform: none !important; /* reset translateY desktop */

    padding: 6px !important;
    font-size: 14px !important;
    width: 32px !important;
    height: 32px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999 !important;
  }

  .btn-edit-info i {
    font-size: 14px !important;
  }

  
  /* ==== FIX EDIT INFO MOBILE ==== */
/* ==== FIX EDIT INFO MOBILE TANPA GANGGU HALAMAN LAIN ==== */
.edit-info-page {
  align-items: flex-start !important;
  padding-top: 40px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Full width form */
.form-container {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;          /* kalau mau full tanpa sudut */
  padding: 20px 18px !important;
}



/* ==== ACTION BUTTONS MOBILE ==== */
.actions {
  display: flex !important;
  flex-direction: column !important;  /* vertikal */
  align-items: stretch !important;
  gap: 10px !important;
  margin-top: 20px !important;
}

.actions .right { order: 1 !important; }   /* SIMPAN naik ke atas */
.actions .left { order: 2 !important; }    /* BACK pindah ke bawah */

/* ukuran tombol */
.actions .save,
.actions .btn-back {
  width: 100% !important;  /* full width biar rapi */
  text-align: center !important;
}



/* ==== Mobile Regis Admin==== */



    /* Pastikan header di atas semua elemen */
    .main-header {
      padding: 12px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: transparent !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      border: none !important;
      box-shadow: none !important;
      z-index: 4000;
    }

    /* Logo tetap di kiri */
    .logo-container img.logo {
      width: 40px;
    }

    /* Tombol toggle */
    .menu-toggle {
      display: block;
      cursor: pointer;
      border: none;
      background: none;
      font-size: 2rem;
      color: #fff;
      z-index: 4100;
      transition: all 0.3s ease;
    }

    /* Default: sembunyikan menu */
    .menu {
      display: none !important;
    }

    /* Saat toggle diklik */
    .menu.menu-mobile {
      display: flex !important;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background: linear-gradient(135deg, rgba(0,153,255,0.45), rgba(0,204,255,0.35)) !important;
      backdrop-filter: blur(25px) saturate(180%) !important;
      -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
      position: absolute;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      width: 90%;
      border-radius: 25px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
      overflow: visible !important;
      z-index: 4200 !important;
      animation: fadeSlideDown 0.4s ease forwards;
      border: 1px solid rgba(255, 255, 255, 0.25);
    }

    /* Link di menu */
    .menu.menu-mobile a {
      display: block;
      width: 100%;
      padding: 14px 0;
      text-align: center;
      font-size: 1.1rem;
      color: #fff;
      text-decoration: none;
      transition: all 0.25s ease;
    }

    .menu.menu-mobile a:hover {
      color: #007bff;
      background: #fff;
    }

    /* Animasi dropdown */
    @keyframes fadeSlideDown {
      from {
        opacity: 0;
        transform: translate(-50%, -10px);
      }
      to {
        opacity: 1;
        transform: translate(-50%, 0);
      }
    }
}
  
/* === SEMBUNYIKAN TOGGLE DI DESKTOP === */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}
