/* ======================================================
   KUWAK MOBILE UI
   File khas untuk phone sahaja
====================================================== */

@media (max-width: 768px) {

  /* ======================================================
     GLOBAL MOBILE
  ====================================================== */

  body {
    background: #ffffff;
    overflow-x: hidden;
  }

  .section {
    padding: 58px 18px !important;
  }

  .section-title {
    font-size: 1.8rem !important;
    line-height: 1.18 !important;
    margin-top: 10px !important;
    letter-spacing: -0.03em;
  }

  .section-badge,
  .badge {
    font-size: 12px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
  }

  .section p {
    font-size: 14px;
    line-height: 1.65;
  }

  .btn-primary,
  .btn-outline,
  .btn-white {
    min-height: 46px;
    padding: 12px 18px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    justify-content: center;
  }


  /* ======================================================
     NAVBAR MOBILE
  ====================================================== */

  #navbar {
    padding-top: 4px;
  }

  #navbar .nav-glass {
    border-radius: 999px;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    background: #faf5fb;
    color: #8b2c8f;
  }

  .mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #8b2c8f, #e6007e);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-login-btn.outline {
    background: #faf5fb;
    color: #8b2c8f;
    border: 1px solid #ead7ec;
  }


  /* ======================================================
     HERO MOBILE
  ====================================================== */

  .hero-section {
    min-height: 520px;
    padding-top: 128px !important;
    padding-bottom: 70px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    display: flex;
    align-items: center;
    background-position: 72% center !important;
    background-size: cover !important;
  }

  .hero-section .max-w-xl {
    max-width: 100% !important;
  }

  .hero-title {
    max-width: 330px;
    font-size: 2.35rem !important;
    line-height: 1.12 !important;
    letter-spacing: -0.04em;
  }

  .hero-subtitle {
    max-width: 310px;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-top: 14px !important;
  }

  .hero-section .flex {
    margin-top: 28px !important;
    width: 100%;
  }

  .hero-section .btn-white {
    width: 100%;
    max-width: 240px;
  }

  .hero-section .absolute.inset-0 {
    background: linear-gradient(
      180deg,
      rgba(54, 20, 63, 0.58),
      rgba(70, 29, 78, 0.50),
      rgba(20, 20, 20, 0.18)
    ) !important;
  }


  /* ======================================================
     ABOUT MOBILE
  ====================================================== */

  #about {
    text-align: left !important;
  }

  #about .max-w-7xl {
    text-align: left !important;
  }

  #about .section-title {
    max-width: 340px;
  }

  .about-intro {
    max-width: 350px;
    margin-top: 14px !important;
    color: #6b7280;
    font-size: 15px !important;
    line-height: 1.75 !important;
  }

  #about .grid {
    margin-top: 30px !important;
    gap: 14px !important;
  }

  #about .info-card {
    padding: 22px 20px !important;
    border-radius: 24px !important;
    text-align: left !important;
    background: #ffffff;
    border: 1px solid rgba(139, 44, 143, 0.08);
    box-shadow: 0 14px 35px rgba(139, 44, 143, 0.08) !important;
  }

  #about .info-card h3 {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #8b2c8f !important;
    margin-bottom: 10px !important;
  }

  #about .info-card p {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #4b5563 !important;
  }

  #about .mt-12 {
    margin-top: 28px !important;
    text-align: left !important;
  }

  #about .btn-outline {
    width: 100%;
  }


  /* ======================================================
   COMMITTEE MOBILE
   Layout phone: gambar kiri lebih besar, info kanan
====================================================== */

#committee .committee-header,
#committee .text-center.mb-14 {
  text-align: left !important;
  margin-bottom: 30px !important;
}

#committee .committee-header p,
#committee .text-center.mb-14 p {
  display: none !important;
}

#committee .committee-preview-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  margin-bottom: 0 !important;
}

#committee .committee-person-card {
  padding: 16px !important;
  border-radius: 26px !important;
  background: #ffffff !important;
  border: 1px solid rgba(139, 44, 143, 0.08) !important;
  box-shadow: 0 14px 35px rgba(139, 44, 143, 0.08) !important;
  text-align: left !important;

  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 140px !important;
}

#committee .committee-person-card:hover {
  transform: none !important;
}

#committee .committee-avatar {
  width: 122px !important;
  height: 122px !important;
  min-width: 122px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 4px solid #ffffff !important;
  box-shadow: 0 12px 28px rgba(139, 44, 143, 0.14) !important;
  flex-shrink: 0 !important;
}

#committee .committee-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}

#committee .committee-info-box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: unset !important;
  flex: 1 !important;
  min-width: 0 !important;
}

#committee .committee-role {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #8b2c8f !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.3 !important;
}

#committee .committee-info-box h4 {
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  color: #111827 !important;
  margin: 0 !important;
}

#committee .committee-preview-note {
  margin-top: 22px !important;
  padding: 18px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid rgba(139, 44, 143, 0.08) !important;
  box-shadow: 0 14px 35px rgba(139, 44, 143, 0.08) !important;
  text-align: left !important;
}

#committee .committee-preview-note p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #6b7280 !important;
}

#committee .committee-preview-note .btn-outline {
  width: 100% !important;
  margin-top: 14px !important;
}

  /* ======================================================
     MEMBERS CATEGORY MOBILE
     2 column compact grid
  ====================================================== */

  #members {
    text-align: left !important;
  }

  #members .max-w-7xl {
    text-align: left !important;
  }

  #members > div > p {
    font-size: 13.5px !important;
    margin-top: 8px !important;
  }

  #members .grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 26px 0 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #members .profile-card {
    min-width: 0 !important;
    padding: 16px 12px !important;
    border-radius: 20px !important;
    text-align: center !important;
  }

  #members .profile-card h3 {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }


  /* ======================================================
     ACTIVITIES MOBILE
     Basic kemas dulu, belum slider
  ====================================================== */

  #activities {
    text-align: left !important;
  }

  #activities .max-w-7xl {
    text-align: left !important;
  }

  #activities > div > p {
    max-width: 100% !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  #activities .grid {
    gap: 14px !important;
    margin-top: 30px !important;
  }

  #activities .activity-card {
    padding: 20px !important;
    border-radius: 24px !important;
    text-align: left !important;
  }

  #activities .activity-card h3 {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  #activities .activity-card p {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
  }

  #activities .mt-12 {
    margin-top: 28px !important;
    text-align: left !important;
  }

  #activities .btn-outline {
    width: 100%;
  }


  /* ======================================================
     REGISTER MOBILE
  ====================================================== */

  #register .register-box {
    padding: 30px 20px !important;
    border-radius: 28px !important;
    text-align: left !important;
  }

  #register .register-box h2 {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
  }

  #register .register-box p {
    font-size: 14px !important;
    margin-top: 8px !important;
  }

  #register .btn-primary {
    width: 100%;
  }


  /* ======================================================
     FOOTER MOBILE
  ====================================================== */

  .footer {
    padding: 24px 18px !important;
    text-align: center;
  }

  .footer p {
    font-size: 12px !important;
    line-height: 1.5;
  }

}
/* ======================================================
   AJK PAGE MOBILE
====================================================== */

@media (max-width: 768px) {

  .ajk-hero {
    padding: 126px 18px 52px !important;
    text-align: left;
  }

  .ajk-hero .max-w-5xl {
    text-align: left !important;
  }

  .ajk-hero h1 {
    font-size: 2rem !important;
    line-height: 1.15 !important;
    margin: 14px 0 12px !important;
  }

  .ajk-hero p {
    max-width: 100%;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
  }

  .ajk-section {
    padding: 54px 18px !important;
  }

  .ajk-section-header {
    margin: 0 0 28px !important;
    text-align: left !important;
  }

  .ajk-section-header h2 {
    font-size: 1.55rem !important;
    line-height: 1.22 !important;
  }

  .ajk-section-header p {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
  }

  .ajk-grid,
  .ajk-grid-center,
  .ajk-grid-two,
  .ajk-grid-three,
  .ajk-grid-four {
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .ajk-card {
    padding: 16px !important;
    border-radius: 24px !important;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left !important;
  }

  .ajk-card:hover {
    transform: none !important;
  }

  .ajk-avatar,
.ajk-card.featured .ajk-avatar {
  width: 108px !important;
  height: 108px !important;
  min-width: 108px !important;
  margin: 0 !important;
  border-width: 4px !important;
}

  .ajk-card-body {
    min-width: 0;
    flex: 1;
  }

  .ajk-role {
    font-size: 10.5px !important;
    margin-bottom: 6px !important;
  }

  .ajk-card h3 {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .ajk-back {
    margin-top: 28px !important;
    text-align: left !important;
  }

  .ajk-back .btn-outline {
    width: 100%;
  }

}

@media (max-width: 380px) {
  .ajk-avatar,
  .ajk-card.featured .ajk-avatar {
    width: 94px !important;
    height: 94px !important;
    min-width: 94px !important;
  }

  .ajk-card {
    gap: 12px !important;
  }

  .ajk-card h3 {
    font-size: 13px !important;
  }
}