/*
  Mobile Responsive Styles
  Kongres IAI 2026
*/

/* =========================================
   GLOBAL: Cegah horizontal scroll
========================================= */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* =========================================
   NAVBAR
========================================= */
@media screen and (max-width: 991px) {

  .navbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Logo lebih kecil di mobile */
  .navbar-brand img {
    max-width: 130px !important;
    width: auto;
  }

  /* Tombol Buy Ticket di navbar mobile */
  .navbar .btn.custom-btn.d-lg-none {
    font-size: 12px;
    padding: 7px 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Menu dropdown collapse */
  .navbar-collapse {
    background-color: var(--dark-color);
    border-radius: 10px;
    padding: 10px 20px 20px;
    margin-top: 8px;
  }

  .navbar-nav .nav-link {
    padding: 10px 5px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  .navbar .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    background-color: #f1f1f1;
    border-radius: 8px;
    box-shadow: none;
    padding: 6px 0;
  }

  .navbar .dropdown-menu-info {
    min-width: 0;
  }

  .navbar .dropdown-menu-pengurus {
    min-width: 0;
  }

  .navbar .dropdown-item {
    font-size: 16px;
    color: #2c2c2c;
    padding: 10px 14px;
  }

  .navbar .dropdown-toggle::after {
    margin-left: 6px;
  }
}


/* =========================================
   HERO SECTION
========================================= */
@media screen and (max-width: 991px) {

  .hero-section {
    height: auto;
    min-height: 100svh;
    padding-top: 100px;
    padding-bottom: 20px;
    overflow: hidden;
  }

  /* Paksa container tidak overflow */
  .hero-section .container {
    overflow: hidden;
    padding-bottom: 20px;
  }

  /* Perbaiki row agar tidak extend keluar container */
  .hero-section .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .hero-section .col-lg-8,
  .hero-section .col-lg-12 {
    padding-left: 10px;
    padding-right: 10px;
  }

  .typing-demo {
    font-size: 1.1em;
    margin: 0 auto 8px;
    width: auto;
    max-width: 100%;
  }

  /* Countdown – 4 kotak dalam 1 baris */
  #countdown {
    margin-top: 18px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
  }

  #countdown .p-2 {
    min-width: 0 !important;
    width: calc(25% - 8px);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 8px 4px !important;
  }

  #countdown .h3 {
    font-size: 1.4rem;
  }

  #countdown .small {
    font-size: 11px;
  }

  /* Info strip bawah hero: tanggal, lokasi, speakers */
  .hero-section .col-lg-12.col-12.mt-auto {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0;
    width: 100%;
  }

  .date-wrap,
  .location-wrap,
  .social-share {
    text-align: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .social-share {
    border-bottom: none;
  }

  .date-wrap h5,
  .location-wrap h5,
  .social-share h5 {
    font-size: 14px;
    margin-bottom: 0;
    white-space: normal;
    word-break: break-word;
  }
}

@media screen and (max-width: 480px) {
  .hero-section {
    padding-top: 80px;
  }

  .typing-demo {
    font-size: 0.9em;
  }

  #countdown .h3 {
    font-size: 1.2rem;
  }

  #countdown .small {
    font-size: 10px;
  }
}


/* =========================================
   ABOUT SECTION (YouTube Iframe)
========================================= */
@media screen and (max-width: 991px) {
  /* Bootstrap ratio utility sudah handle ini */
  .ratio {
    width: 100%;
  }
}


/* =========================================
   ARTISTS / PEMBICARA
========================================= */
@media screen and (max-width: 767px) {
  .speaker-track {
    grid-auto-columns: minmax(220px, 76%);
    gap: 14px;
    padding: 6px 36px 12px;
  }

  .speaker-card {
    min-height: 290px;
  }

  .speaker-overlay h3 {
    font-size: 1.3rem;
  }

  .speaker-overlay p {
    font-size: 0.95rem;
  }

  .speaker-nav {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 400px) {
  .speaker-track {
    grid-auto-columns: minmax(205px, 88%);
    padding: 6px 30px 12px;
  }

  .speakers-title {
    font-size: 1.6rem;
  }
}


/* =========================================
   SCHEDULE / AGENDA
========================================= */
@media screen and (max-width: 767px) {
  .schedule-table th,
  .schedule-table td {
    padding: 12px 8px;
    font-size: 13px;
  }

  .schedule-table h3 {
    font-size: 15px !important;
  }

  .schedule-table p {
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .schedule-table th,
  .schedule-table td {
    padding: 8px 5px;
    font-size: 12px;
  }
}


/* =========================================
   PRICING / REGISTRASI
========================================= */
@media screen and (max-width: 767px) {
  .pricing-thumb {
    padding: 20px 18px 28px;
  }

  /* Pindahkan pricing-tag dari absolute ke inline */
  .pricing-thumb .d-flex {
    flex-wrap: wrap;
    gap: 12px;
  }

  .pricing-tag {
    position: static;
    width: auto;
    height: auto;
    border-radius: 20px;
    padding: 6px 16px;
    flex-direction: row;
    gap: 4px;
    align-self: flex-start;
    margin: 0;
  }

  .pricing-tag span {
    font-size: 100%;
  }

  .pricing-list {
    column-count: 1;
  }

  .pricing-list-item {
    font-size: 15px;
  }
}


/* =========================================
   CONTACT / TAB SECTION
========================================= */
@media screen and (max-width: 767px) {
  .tab-content {
    padding: 20px 12px;
  }

  .nav-tabs {
    padding: 8px;
  }

  .nav-tabs .nav-link {
    padding: 10px 12px;
  }

  .nav-tabs .nav-link:first-child {
    margin-right: 6px;
  }

  .nav-tabs h5 {
    font-size: 13px;
  }

  .google-map {
    height: 280px;
  }
}


/* =========================================
   FOOTER
========================================= */
@media screen and (max-width: 767px) {
  .site-footer-top {
    margin-bottom: 40px;
    text-align: center;
  }

  .site-footer-top .col-lg-6:last-child {
    justify-content: center !important;
    margin-top: 15px;
  }

  .site-footer-top h2 {
    font-size: 26px;
  }

  .social-icon {
    margin-top: 10px;
  }

  .site-footer-link-item {
    margin-bottom: 5px;
  }

  .site-footer-bottom {
    text-align: center;
  }
}


/* =========================================
   GENERAL SECTION SPACING
========================================= */
@media screen and (max-width: 767px) {
  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}
