/* ── CallCeylon mobile navigation (below 992px) ──────────────────────────────
   New hamburger + slide-in panel. Desktop header is unchanged. */

.cc-burger { display: none; }

@media (max-width: 991.98px) {
  /* header row: logo left, burger right */
  .header .container > .row { flex-wrap: nowrap !important; align-items: center !important; margin: 0 !important; }
  .header .container > .row > .logo-panel { flex: 1 1 auto !important; width: auto !important; max-width: none !important; padding: 0 !important; justify-content: flex-start !important; text-align: left !important; }
  .header .container > .row > .menu-panel { flex: 0 0 auto !important; width: auto !important; max-width: none !important; padding: 0 !important; display: flex !important; align-items: center; }
  .header .menu-panel > .row { margin: 0 !important; }
  .header .menu-panel-bottom { width: auto !important; flex: 0 0 auto !important; max-width: none !important; }
  .header .menu-panel-bottom { padding: 0 !important; }
  .header .cc-desktop-nav, .header .hamburger-menu { display: none !important; }
  #logo-mobile { height: 46px !important; width: auto !important; max-width: none; }
  .header { padding: 10px 0 !important; }

  .cc-burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px;
    background: rgba(255, 255, 255, .08); cursor: pointer; transition: background .2s;
  }
  .cc-burger:hover, .cc-burger:focus-visible { background: rgba(255, 255, 255, .18); outline: none; }
  .cc-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s ease, opacity .2s ease; }
  .cc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .cc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .cc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* panel + overlay */
.cc-mnav-overlay { position: fixed; inset: 0; z-index: 1990; background: rgba(3, 33, 66, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cc-mnav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2000; width: min(86vw, 360px);
  display: flex; flex-direction: column; background: linear-gradient(160deg, #032142 0%, #1e3a5f 100%); color: #fff;
  transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .3); font-size: 16px;
}
body.cc-mnav-open .cc-mnav { transform: none; visibility: visible; }
body.cc-mnav-open .cc-mnav-overlay { opacity: 1; visibility: visible; }
body.cc-mnav-open { overflow: hidden; }

.cc-mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.cc-mnav-head img { height: 40px; width: auto; }
.cc-mnav-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 20px; cursor: pointer; }
.cc-mnav-close:hover { background: rgba(255, 255, 255, .2); }

.cc-mnav-body { flex: 1; overflow-y: auto; padding: 10px 10px 20px; }
.cc-mnav-label { margin: 16px 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFB400; }
.cc-mnav ul { list-style: none; margin: 0; padding: 0; }
.cc-mnav-link {
  display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 12px;
  color: #fff !important; text-decoration: none !important; font-size: 16px !important; font-weight: 600; line-height: 1.3;
  transition: background .2s;
}
.cc-mnav-link:hover, .cc-mnav-link:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.cc-mnav-link.on { background: rgba(255, 180, 0, .14); color: #FFB400 !important; }
.cc-mnav-link i { width: 22px; text-align: center; color: #FFB400; font-size: 17px; }
.cc-mnav-link .chev { margin-left: auto; width: auto; color: rgba(255, 255, 255, .4); font-size: 13px; }

.cc-mnav-foot { padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 10px; }
.cc-mnav-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; border-radius: 12px;
  font-weight: 700; font-size: 16px !important; text-decoration: none !important; transition: transform .2s, background .2s;
}
.cc-mnav-btn.primary { background: #A50D37; color: #fff !important; }
.cc-mnav-btn.primary:hover { background: #870a2d; }
.cc-mnav-btn.ghost { border: 1px solid rgba(255, 255, 255, .3); color: #fff !important; }
.cc-mnav-btn.ghost:hover { background: rgba(255, 255, 255, .1); }

@media (prefers-reduced-motion: reduce) {
  .cc-mnav, .cc-mnav-overlay, .cc-burger span { transition: none; }
}

/* ── General small-screen fixes ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
  /* rows that sit outside a .container (hero, banner under the plans) pushed the page sideways */
  html, body { overflow-x: hidden; }
  @supports (overflow-x: clip) { html, body { overflow-x: clip; } }
  .hero .row, .package-section > .row { margin-left: 0 !important; margin-right: 0 !important; }
  .package-section > .row img { max-width: 100%; height: auto; }
}

/* FAQ questions use a <card> tag (inline by default): a wrapped question showed one
   white box per line, overlapping. Make it a proper full-width block on every screen. */
.faq-section .accordion-button { display: flex; align-items: center; width: 100%; line-height: 1.4; cursor: pointer; text-align: left; }
.faq-section .accordion-button::after { content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; padding-left: 12px; color: #A50D37; transition: transform .2s; }
.faq-section .accordion-button:not(.collapsed)::after { transform: rotate(180deg); }

@media (max-width: 991.98px) {
  .faq-section .accordion-button { font-size: 16px !important; padding: 16px !important; }
  .faq-section .accordion-body, .faq-section .accordion-body p, .faq-section .accordion-body li { font-size: 15px !important; line-height: 1.55; }
  /* partner logos: sensible size */
  .brand-carousel .brand-logo img { max-height: 70px; width: auto !important; max-width: 100%; margin: 0 auto; object-fit: contain; }
  .brand-carousel .brand-logo { display: flex; align-items: center; justify-content: center; padding: 10px; }
}

@media (max-width: 991.98px) {
  /* logo on the left of the mobile header */
  .header .logo-panel a { text-align: left !important; margin: 0 !important; }
  #logo-mobile { margin: 0 !important; }
  /* footer: space between the PRODUCT and OVERVIEW columns once stacked (BS4 has no g-5) */
  .footer-wdget-links + .footer-wdget-links { margin-top: 28px; }
}
@media (max-width: 480px) {
  /* "You're buying" box on log-in / sign-up: no logo, more room for the plan name */
  .cc-buying img { display: none; }
}
