/* ===== BASE / DESKTOP STYLES (keep original look) ===== */
.table-img {
  width: 300px;
}

/* ===== Table Borders ===== */
td,
th,
thead,
tr {
  border-width: 1.5px !important;
}

/* ===== Sticky Table Header ===== */
.package-tab thead {
  position: sticky;
  background-color: #DA2328;
  top: 15%;
  z-index: 5;
  color: #fff;
}

/* ===== Package Table Base ===== */
.package-tab {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.package-tab th,
.package-tab td {
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 15px;
  line-height: 1.5;
}

.package-tab thead th {
  text-align: center;
  vertical-align: middle;
}

.package-tab thead h3 {
  font-size: 20px;
  margin: 8px 0 4px;
}

.package-tab thead p {
  margin: 0;
  font-weight: 600;
}

/* Section header rows */
.package-tab tbody tr td[colspan] h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #222;
}

.package-tab tbody tr td[colspan] {
  background-color: #f5f5f5;
  padding: 12px;
  text-align: center;
}

/* Brand / product images inside tables */
.package-tab td img {
  width: 140px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 10px;
  text-align: center;
}

.package-tab td small {
  display: block;
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}

/* Package icon in header */
.table-packimg {
  width: 150px;
  height: auto;
  margin-bottom: 8px;
}

.w80px {
  width: 80px !important;
}
/* ===== Mobile / Desktop Toggle ===== */
#mob-package {
  display: none;
}

#desk-package {
  display: block;
}

/* ===== FAQ / Accordion Styling ===== */
.faq-bg {
  background-size: cover;
  background-position: center;
  padding: 60px 0 70px;
}

.faq-wrap .accordion-item {
  box-shadow: 0px 10px 10px rgba(198, 198, 198, 0.19);
  border-radius: 4px;
  overflow: hidden;
  border: none;
  margin-bottom: 30px;
  background: #fff;
}

.faq-wrap .accordion-item:last-child {
  margin-bottom: 0;
}

.faq-wrap .accordion-item:first-of-type {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.faq-wrap .accordion-item:last-of-type .accordion-button.collapsed {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.faq-wrap .accordion-button {
  font-weight: 500;
  font-size: 18px;
  padding: 12px 25px;
  font-family: inherit;
  color: #222;
  background: #fff;
  border-bottom: 1px solid transparent;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.faq-wrap .accordion-button h3 {
  margin: 0;
  font-size: 18px;
}

.faq-wrap .accordion-button p {
  margin: 0;
  font-weight: 600;
}

.faq-wrap .accordion-button::after {
  flex-shrink: 0;
  width: auto;
  height: auto;
  content: "\f067";
  background-image: none;
  font-size: 20px;
  font-family: "Font Awesome 5 Free";
  font-weight: 700;
  position: absolute;
  right: 20px;
  top: 18px;
  color: #222;
}

.faq-wrap .accordion-button:not(.collapsed)::after {
  background-image: none;
  content: "\f068";
  transform: rotate(0);
}

.faq-wrap .accordion-button:not(.collapsed) {
  color: #0d6efd;
  background-color: #fff;
  box-shadow: none;
  border-bottom: 1px solid #e7e7e7;
}

.faq-wrap .accordion-button:focus {
  border-color: none;
  box-shadow: none;
}

.faq-wrap .accordion-body {
  padding: 10px 25px;
}

.faq-wrap .accordion-body p {
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 0;
  line-height: 1.83;
}

/* ===== Responsive Breakpoints ===== */

/* Tablet & below (991px and under) — show mobile accordion, hide desktop table */
@media (max-width: 991px) {
  #mob-package {
    display: block !important;
  }

  #desk-package {
    display: none !important;
  }

  .w-sm-50 {
    width: 50%;
  }

  .package-tab td img {
    max-width: 100px;
  }

  .table-packimg {
    width: 40px !important;
  }
}

/* ============================================================
       MOBILE CENTER ALIGNMENT – applies only to the mobile section
       and its inner tables (as requested).
       ============================================================ */
@media (max-width: 991px) {
  /* Center all text and inline content inside the mobile package section */
  #mob-package .package-tab td,
  #mob-package .package-tab th,
  #mob-package .package-tab td *,
  #mob-package .package-tab th * {
    text-align: center !important;
  }

  /* Make sure images are centered and not left-aligned */
  #mob-package .package-tab td img {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }

  /* Keep the strong labels (first column) centered as well */
  #mob-package .package-tab td strong {
    text-align: center !important;
    display: inline-block;
    width: 100%;
  }

  /* But if a cell contains a list or multiple lines, they center naturally */
  #mob-package .package-tab td br {
    display: block;
    content: "";
  }

  /* Section header rows (colspan) are already centered via h5 */
  #mob-package .package-tab td[colspan] h5 {
    text-align: center !important;
  }

  /* Ensure the table cells vertical alignment stays middle */
  #mob-package .package-tab td {
    vertical-align: middle;
  }

  /* Adjust padding for smaller screens if needed, but keep centered */
  #mob-package .package-tab th,
  #mob-package .package-tab td {
    padding: 8px 10px;
  }
}

/* Small devices (756px and under) – keep centering, adjust sizes */
@media (max-width: 756px) {
  .package-tab thead {
    top: 8%;
  }

  .table-packimg {
    width: 35px !important;
  }

  .package-tab th,
  .package-tab td {
    padding: 8px 10px;
    font-size: 14px;
  }

  .package-tab thead h3 {
    font-size: 17px;
  }

  .faq-wrap .accordion-button {
    font-size: 15px;
    padding: 12px 18px;
    gap: 8px;
  }

  .faq-wrap .accordion-button h3 {
    font-size: 15px;
  }

  .faq-wrap .accordion-button p {
    font-size: 13px;
  }

  .faq-wrap .accordion-button::after {
    right: 15px;
    top: 16px;
    font-size: 17px;
  }

  .faq-wrap .accordion-body {
    padding: 8px 15px;
  }

  .package-tab td img {
    max-width: 80px;
  }
}

/* Extra small devices (480px and under) – still centered */
@media (max-width: 480px) {
  .package-tab th,
  .package-tab td {
    padding: 6px 8px;
    font-size: 13px;
  }

  .package-tab thead h3 {
    font-size: 15px;
  }

  .package-tab td img {
    max-width: 65px;
  }

  .faq-wrap .accordion-button h3 {
    font-size: 14px;
  }

  .faq-wrap .accordion-button p {
    font-size: 12px;
  }

  /* More aggressive centering for tiny screens */
  #mob-package .package-tab td,
  #mob-package .package-tab th {
    text-align: center !important;
  }
}

/* Additional fine-tuning: override any left alignment in mobile tables */
#mob-package .package-tab td,
#mob-package .package-tab th {
  text-align: center;
}

/* Keep the first column (labels) centered too, as requested */
#mob-package .package-tab td:first-child {
  text-align: center;
}
