/* ========== GLOBAL RESETS / BASE ========== */
* {
  box-sizing: border-box;
}

/* ========== SERVICES SECTION ========== */
.services {
  margin: 70px auto;
  max-width: 1400px;
  background: linear-gradient(135deg, #f9fafc 0%, #ffffff 100%);
  border-radius: 48px;
  padding: 3rem 2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
}

/* Grid – two columns by default */
.example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Image – responsive, never overflows */
.about-image {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  object-fit: cover;
  display: block;
}

.about-image:hover {
  transform: scale(1.01);
  box-shadow: 0 25px 40px -14px rgba(0, 0, 0, 0.25);
}

/* Text paragraphs */
.faq_ {
  font-size: 1rem;
  line-height: 1.65;
  color: #1e2f3c;
  width: 100%;
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.services h4 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #2c6280;
  margin: 1rem 0 0.75rem;
  padding-left: 1rem;
  border-left: 4px solid #2c6280;
  line-height: 1.3;
}

.services h3 {
  font-size: 2.2rem;
  margin: 0;
}

/* ========== H1 STYLES ========== */
h1 {
  margin: auto;
  margin-top: 160px;
  margin-bottom: 2rem;
  width: fit-content;
  max-width: 90vw;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 48px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
  padding: 35px 45px;
  font-size: 2.5rem;
  font-weight: 600;
  color: #0e2a3a;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
}

h1:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

/* ========== STATS SECTION ========== */
.stats-section {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 48px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease;
}

.stats-header {
  text-align: center;
  margin-bottom: 3rem;
}

.stats-header h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #0e2a3a;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.stats-header p {
  font-size: 1.1rem;
  color: #334155;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Card grid – flexible, clean */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
}

/* Unify card styles – remove the problematic margin-top */
.stat-card,
.stat-card_01 {
  height: fit-content;
  background: white;
  border-radius: 32px;
  padding: 2rem 1rem;
  text-align: center;
  width: 100%;
  max-width: 240px;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.stat-card h2,
.stat-card_01 h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #1e4a8f;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.stat-card p,
.stat-card_01 p {
  font-size: 1rem;
  font-weight: 500;
  color: #4b6f8c;
  margin: 0;
}

.stat-card:hover,
.stat-card_01:hover {
  transform: translateY(-6px);
  border-color: #2c6280;
  box-shadow: 0 20px 30px -12px rgba(44, 98, 128, 0.15);
}

.stat-card:hover h2,
.stat-card_01:hover h2 {
  color: #2c6280;
}

/* Legacy (keep if needed) */
.page-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: #0e2a3a;
  margin: 2rem auto 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #2c6280;
  display: inline-block;
  width: auto;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* ========== RESPONSIVE BREAKPOINTS (fixed for earlier image drop) ========== */

/* Large desktops */
@media (max-width: 1200px) {
  .services, .stats-section {
    margin-left: 30px;
    margin-right: 30px;
    max-width: calc(100% - 60px);
  }
}

/* Tablet landscape – image drops down sooner (at 992px) */
@media (max-width: 992px) {
  h1 {
    margin-top: 140px;
    padding: 28px 38px;
    font-size: 2.2rem;
  }
  /* Single column for text/image */
  .example {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-image {
    max-width: 70%;
    margin: 0 auto;
  }
  .services {
    padding: 2rem 1.5rem;
  }
  .stats-grid {
    gap: 1.5rem;
  }
}

/* Fix for 833–925px (stats cards only, image already dropped) */
@media (min-width: 833px) and (max-width: 925px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .stat-card, .stat-card_01 {
    max-width: 100%;
    padding: 1.2rem 0.8rem;
  }
  .stat-card h2, .stat-card_01 h2 {
    font-size: 2rem;
  }
}

/* Tablets (max 768px) */
@media (max-width: 768px) {
  h1 {
    margin-top: 100px;
    padding: 22px 30px;
    font-size: 1.8rem;
    border-radius: 36px;
  }
  .services {
    margin: 40px 20px;
    padding: 1.5rem;
    border-radius: 36px;
  }
  .faq_ {
    max-width: 100%;
    font-size: 0.95rem;
  }
  .about-image {
    max-width: 100%;  /* full width on smaller tablets */
  }
  .stats-section {
    margin: 2rem 20px;
    padding: 1.5rem;
    border-radius: 36px;
  }
  .stats-header h2 {
    font-size: 1.6rem;
  }
  .stats-header p {
    font-size: 1rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .stat-card, .stat-card_01 {
    max-width: 100%;
    padding: 1rem 0.5rem;
  }
  .stat-card h2, .stat-card_01 h2 {
    font-size: 2rem;
  }
}

/* Small phones (max 576px) */
@media (max-width: 576px) {
  h1 {
    margin-top: 90px;
    padding: 18px 24px;
    font-size: 1.5rem;
    border-radius: 28px;
  }
  .stats-header h2 {
    font-size: 1.4rem;
  }
  .stat-card h2, .stat-card_01 h2 {
    font-size: 1.6rem;
  }
  .stat-card p, .stat-card_01 p {
    font-size: 0.85rem;
  }
}

/* Very small phones (max 480px) */
@media (max-width: 480px) {
  h1 {
    margin-top: 80px;
    padding: 14px 18px;
    font-size: 1.3rem;
    border-radius: 24px;
  }
  .services {
    padding: 1rem;
    border-radius: 24px;
  }
  .services h3 {
    font-size: 1.2rem;
  }
  .faq_ {
    font-size: 0.85rem;
  }
  .stats-section {
    padding: 1rem;
    border-radius: 24px;
  }
  .stats-header h2 {
    font-size: 1.2rem;
  }
  .stats-header p {
    font-size: 0.85rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .stat-card, .stat-card_01 {
    max-width: 100%;
    padding: 0.8rem;
  }
  .stat-card h2, .stat-card_01 h2 {
    font-size: 1.5rem;
  }
  .about-image {
    border-radius: 20px;
  }
}

/* Extremely small (max 360px) */
@media (max-width: 360px) {
  h1 {
    margin-top: 70px;
    font-size: 1.1rem;
    padding: 10px 14px;
  }
  .faq_ {
    font-size: 0.75rem;
  }
}