/* =====================================================
   INTERNET BACKUP OVER WIRELESS - CSS
   Path: assets/css/pages/internet-backup.css
   ===================================================== */

/* HERO SECTION */
.ib-hero-wrap {
  padding: 8rem 0 7rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.ib-hero-bg {
  background-image: url('../../images/ib-hero-bg.webp');
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
}

.ib-hero-overlay {
  background: linear-gradient(135deg, rgba(2, 26, 38, .9) 0%, rgba(5, 65, 98, .75) 100%);
  position: absolute;
  inset: 0;
}

.ib-hero-eyebrow {
  background: rgba(5, 65, 98, .4);
  border: 1px solid rgba(56, 189, 248, .4);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* INTRO SPLIT */
.ib-intro-section {
  padding: 6rem 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.ib-intro-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.03);
}

/* WHAT IS IT CARDS */
.ib-what-card {
  background: #ffffff;
  border: 1px solid #0899e6; /* changed border color slightly to fit dark cards */
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
}
.ib-what-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 35, 70, 0.95), rgba(5, 65, 98, 0.85));
  z-index: 1;
}
.ib-card-bg-1 {
  background-image: url('../../images/ib-provider-bundled.webp');
  background-size: cover;
  background-position: center;
}
.ib-card-bg-2 {
  background-image: url('../../images/ib-dedicated-router.webp');
  background-size: cover;
  background-position: center;
}
.ib-what-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,.15);
  border-color: #38bdf8;
}

.ib-what-icon {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(8, 153, 230, 0.2);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* HOW IT WORKS TIMELINE */
.ib-process-section {
  padding: 7rem 0;
  background: #052346;
  position: relative;
  color: #ffffff;
}
.ib-process-bg {
  position: absolute;
  inset: 0;
  background-image: url('../../images/ib-process.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.ib-step-list {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.ib-step-list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: rgba(56, 189, 248, 0.2);
}
.ib-step-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 3rem;
}
.ib-step-item:last-child {
  margin-bottom: 0;
}
.ib-step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #054162, #0899e6);
  color: #ffffff;
  font-family: var(--fh);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #052346;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.4);
  z-index: 2;
}
.ib-step-content h4 {
  font-family: var(--fh);
  font-size: 1.4rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 0.5rem;
  padding-top: 10px;
}
.ib-step-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

/* WHO NEEDS IT */
.ib-who-section {
  padding: 6rem 0;
  background: #f8fafc;
}
.ib-who-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
}
.ib-who-card.fit-good {
  border-top: 4px solid #10b981;
}
.ib-who-card.fit-bad {
  border-top: 4px solid #64748b;
}

/* BACKUP SPEED TABLE */
.ib-speed-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  border: 1px solid #e2e8f0;
}
.ib-speed-table th {
  background: #f0f9ff;
  color: #0f172a;
  font-family: var(--fh);
  font-weight: 800;
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
}
.ib-speed-table td {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  color: #475569;
}
.ib-speed-table tr:last-child td {
  border-bottom: none;
}
.ib-speed-tech {
  font-weight: 700;
  color: #0899e6;
  font-size: 1.1rem;
}
.ib-speed-val {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1.2rem;
  color: #0f172a;
}

/* LIMITATIONS */
.ib-limits-section {
  padding: 7rem 0;
  background: #ffffff;
}
.ib-limit-hero {
  background: #fff1f2;
  border: 1px solid #fda4af;
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}
.ib-limit-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: #ffe4e6;
  color: #e11d48;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.ib-limit-content h4 {
  font-family: var(--fh);
  font-size: 1.5rem;
  font-weight: 800;
  color: #9f1239;
  margin-bottom: 0.75rem;
}
.ib-limit-content p {
  color: #881337;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.7;
}

.ib-limit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ib-limit-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
}
.ib-limit-card h5 {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  font-family: var(--fh);
}
.ib-limit-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* WHY HSC */
.ib-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.ib-why-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #f0f9ff;
  border-radius: 16px;
  border: 1px solid #e0f2fe;
}
.ib-why-item .bi {
  font-size: 2rem;
  color: #0899e6;
  margin-bottom: 1rem;
}
.ib-why-item h5 {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.ib-why-item p {
  font-size: 0.9rem;
  color: #475569;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .ib-limit-hero {
    flex-direction: column;
    text-align: center;
  }
  .ib-limit-grid,
  .ib-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .ib-hero-wrap {
    padding: 6rem 0;
  }
  .ib-limit-grid,
  .ib-why-grid {
    grid-template-columns: 1fr;
  }
  .ib-step-list::before {
    left: 20px;
  }
  .ib-step-item {
    padding-left: 60px;
  }
  .ib-step-num {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .ib-speed-table th,
  .ib-speed-table td {
    padding: 1rem;
    display: block;
    width: 100%;
  }
  .ib-speed-table tr {
    display: block;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
  }
  .ib-speed-table th {
    display: none; /* hide headers on mobile for a simpler stacked view, or keep them with ::before pseudo elements */
  }
}
