/* ==========================================================
   Startbench Limited - Responsive polish
   Loaded last (after styles.css / custom.css / dark-mode.css).
   Target: the newer home-page sections and inner-page forms
   that lack dedicated mobile rules.
   ========================================================== */

/* ---------- Images: never overflow viewport ---------- */
img {
  max-width: 100%;
  height: auto;
}

/* ---------- Home: welcome overlay ---------- */
.welcome-overlay .welcome-content {
  padding: 0 20px;
}

@media (max-width: 767px) {
  .welcome-content .welcome-title {
    font-size: 1.6rem;
  }
  .welcome-content .welcome-subtitle {
    font-size: 0.9rem;
  }
  .welcome-tech-icons .tech-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  .welcome-tech-icons .tech-icon:nth-child(n+5) {
    display: none;
  }
}

/* ---------- Home: hero content ---------- */
@media (max-width: 767px) {
  .hero-section-2 .hero-content-wrapper h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 6px 12px;
    letter-spacing: 0.4px;
  }

  .hero-cta .theme-btn.btn-lg {
    width: 100%;
    text-align: center;
  }

  .hero-social-proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-trust .trust-item {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
  }
}

/* ---------- Home: tech strip ---------- */
.tech-strip {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tech-strip::-webkit-scrollbar {
  display: none;
}

.tech-strip span {
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ---------- Home: sectors trust band ---------- */
@media (max-width: 767px) {
  .sectors-band {
    padding: 30px 0;
  }

  .sectors-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .sector-pill {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}

/* ---------- Home: hub intro ---------- */
@media (max-width: 991.98px) {
  .hub-intro-image {
    margin-top: 40px;
    text-align: center;
  }
}

/* ---------- Inner pages: banners, headings ---------- */
@media (max-width: 767px) {
  .page-banner-section {
    padding: 110px 0 80px;
  }

  .banner-content h2 {
    font-size: 1.7rem;
  }

  .banner-subtitle {
    font-size: 0.85rem;
    padding: 6px 16px;
  }
}

@media (max-width: 480px) {
  .section-title h2 {
    font-size: 1.6rem;
  }
}

/* ---------- About: inline stat / experience blocks ---------- */
@media (max-width: 767px) {
  .about-experience {
    position: static;
    margin-top: 20px;
    width: 100%;
  }

  .counter-up {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ---------- General cards ---------- */
@media (max-width: 575.98px) {
  .service-box.box-style,
  .value-card,
  .testimonial-card,
  .team-card,
  .team-member-card,
  .about-stat-card {
    margin-bottom: 24px;
  }
}

/* ---------- Forms ---------- */
@media (max-width: 767px) {
  .scanner-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .scanner-input-group input,
  .scanner-input-group button {
    width: 100%;
    border-radius: 8px;
    margin: 4px 0;
  }

  .contact-info-wrapper,
  .contact-form-wrapper {
    padding: 0;
  }

  .form-group .row {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ---------- Tables (e.g. cohort fees) ---------- */
.table-responsive-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.session-table,
.fees-table,
.table {
  min-width: 520px;
}

@media (max-width: 575.98px) {
  .session-table,
  .fees-table,
  .table {
    min-width: 0;
    font-size: 0.9rem;
  }
}

/* ---------- Security center results ---------- */
@media (max-width: 767px) {
  .result-card {
    padding: 20px;
  }

  .result-stats .stat-item {
    padding: 10px 6px;
  }
}

/* ---------- Bootcamp / program pages ---------- */
@media (max-width: 767px) {
  .countdown-timer {
    flex-wrap: wrap;
  }

  .countdown-item {
    flex: 1 1 calc(50% - 12px);
  }
}

/* ---------- Helper utilities ---------- */
.d-none.d-lg-block.img-independent {
  display: block !important;
}