/* =====================================================
   Internet Security Page — Custom Styles
   Built on top of wireless-plans.css shared styles
   ===================================================== */

/* Hero Background */
.is-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../../../assets/images/is-hero-bg.webp') center/cover no-repeat;
  z-index: 0;
}

/* Comparison Table */
.is-table-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(5, 65, 98, 0.08);
  border: 1px solid #e2e8f0;
}

.is-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.95rem;
}

.is-table thead {
  background: linear-gradient(135deg, #054162, #0b6faa);
}

.is-table thead th {
  padding: 1.25rem 1.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  border: none;
  letter-spacing: 0.3px;
}

.is-table thead th:first-child {
  border-radius: 0;
  width: 30%;
}

.is-table tbody td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  line-height: 1.6;
  vertical-align: top;
}

.is-table tbody tr:last-child td {
  border-bottom: none;
}

.is-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.is-table tbody tr:hover {
  background: #f0f9ff;
  transition: background 0.2s ease;
}

.is-table tbody td:first-child {
  font-weight: 700;
  color: #0f172a;
}

/* Alert boxes */
.is-alert-box {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(225, 29, 72, 0.04));
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-left: 4px solid #e11d48;
  border-radius: 0 16px 16px 0;
  padding: 2rem 2.5rem;
  position: relative;
}

.is-alert-box h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.is-alert-box p {
  color: #475569;
  line-height: 1.75;
  margin: 0;
}

/* Limitation cards */
.is-limit-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.is-limit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(5, 65, 98, 0.08);
}

.is-limit-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.is-limit-card p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

.is-limit-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

/* Setup timeline */
.is-setup-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.is-setup-step:last-child {
  border-bottom: none;
}

.is-setup-num {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #054162, #0899e6);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.is-setup-content h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.is-setup-content p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

/* Alert example card */
.is-alert-example {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
}

.is-alert-example h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
}

.is-alert-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0899e6;
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.is-alert-item:last-child {
  margin-bottom: 0;
  border-left-color: #f59e0b;
}

.is-alert-item strong {
  color: #0f172a;
}

/* =====================================================
   Internet Security — Grid Defaults (Desktop)
   ===================================================== */
.is-3col-grid {
  grid-template-columns: repeat(3, 1fr);
}

.is-4col-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* =====================================================
   Responsive
   ===================================================== */

/* Tablet */
@media (max-width: 991px) {
  .is-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .is-table {
    min-width: 650px;
  }

  /* 3 col → 1 col */
  .is-3col-grid {
    grid-template-columns: 1fr !important;
  }

  /* 4 col → 2 col */
  .is-4col-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .is-table thead th,
  .is-table tbody td {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }

  .is-alert-box {
    padding: 1.5rem;
  }

  .is-limit-card {
    padding: 1.5rem;
  }

  .is-setup-step {
    gap: 1rem;
  }

  .is-setup-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.85rem;
  }

  .is-alert-example {
    padding: 1.25rem;
  }

  .is-alert-item {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }

  /* 4 col → 1 col on mobile */
  .is-4col-grid {
    grid-template-columns: 1fr !important;
  }

  /* Plans image cards — full width stacking */
  .is-3col-grid .wp-plan-imgcard {
    min-height: 350px;
  }
}
