* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #fff;
}

/* ==========================================================================
   HERO SECTION (BASE LAYER / DESKTOP)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url("../images/main-service-hero.jpeg") center center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
 background: linear-gradient( 
	 90deg, 
	 rgba(24, 64, 128, 0.84) 0%, 
	 rgba(42, 90, 168, 0.72) 25%, 
	 rgba(72, 124, 204, 0.52) 45%, 
	 rgba(120, 165, 228, 0.24) 70%, 
	 rgba(255, 255, 255, 0) 100% 
 );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding-top: 140px; /* Enhanced to clear desktop navbar heights cleanly */
  padding-right: 40px;
  padding-bottom: 60px;
  padding-left: 40px;
}

.breadcrumb {
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 25px;
}

.breadcrumb span {
  margin: 0 8px;
  color: #d1d1d1;
}

.hero h1 {
  color: #fff;
  font-size: 45px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.tagline {
  color: #ffc400;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-card {
  width: 820px;
  background: #ffffff;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.hero-card h3 {
  color: #0b3ea9;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.hero-card h4 {
  color: #222;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 22px;
}

.btn {
  display: inline-block;
  background:  #3B82F6;
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #0038d1;
}

/* ==========================================================================
   SERVICES GRID SECTIONS
   ========================================================================== */
.services-section {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: #f5f8ff;
  border: 1px solid #edf1f7;
  padding: 30px;
  transition: 0.3s;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card a {
  margin-top: auto;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-icon {
	
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;


  margin-bottom: 18px;
}

.service-icon i {
  font-size: 52px;
  color:  #3B82F6;
}

.service-card h3 {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 15px;
  color: #5b6474;
  line-height: 1.8;
  margin-bottom: 22px;
}

.service-card a {
  text-decoration: none;
  color: #2d4fe3;
  font-weight: 600;
  font-size: 14px;
}

.service-card a i {
  margin-left: 6px;
  font-size: 12px;
}

/* ==========================================================================
   RECOVERY CALL TO ACTION BOX
   ========================================================================== */
.recovery-box {
  margin-top: 18px;
  background: #f3f7ff;
  padding: 35px 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.recovery-content h2 {
  font-size: 38px;
  color: #1f2937;
  margin-bottom: 10px;
  line-height: 1.1;
}

.recovery-content p {
  color: #6b7280;
  font-size: 15px;
  max-width: 550px;
  line-height: 1.8;
}

.recovery-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 250px;
}

.btn-primary {
  text-decoration: none;
  text-align: center;
  background: #0d3ea9;
  color: #fff;
  padding: 14px 24px;
  border-radius: 2px;
  font-weight: 600;
}

.btn-outline {
  text-decoration: none;
  text-align: center;
  border: 1px solid #0d3ea9;
  color: #0d3ea9;
  padding: 14px 24px;
  border-radius: 2px;
  font-weight: 600;
}

/* ==========================================================================
   MEDIA QUERY: LAPTOPS (Down to 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-content {
    padding: 0 60px;
    padding-top: 140px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .recovery-content h2 {
    font-size: 34px;
  }
}

/* ==========================================================================
   MEDIA QUERY: TABLETS (Down to 991px)
   ========================================================================== */
@media (max-width: 991px) {
  .hero {
    min-height: 750px;
    align-items: center;
    background-position: center;
  }

  .hero-content {
    padding: 0 40px;
    padding-top: 150px; /* Height push calculation clearing mobile headers */
  }

  .hero h1 {
    font-size: 38px;
  }

  .tagline {
    font-size: 16px;
  }

  .hero-card {
    width: 100%;
    max-width: 450px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recovery-box {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }

  .recovery-buttons {
    width: 100%;
    max-width: 300px;
  }
}

/* ==========================================================================
   MEDIA QUERY: MOBILE LARGE (Down to 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .hero {
    min-height: auto; /* Allow height to expand naturally depending on card content size */
    background-position: 70% center;
    display: block; /* Changes to block to let normal padding flow construct the space */
  }

  /* FIXED: Added clear padding structure to explicitly prevent content from dropping underneath headers */
  .hero-content {
    padding-top: 150px !important; /* Forces layout to clear sticky top actions strip + white bar */
    padding-right: 20px !important;
    padding-bottom: 40px !important;
    padding-left: 20px !important;
  }

  .breadcrumb {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 12px;
  }

  .tagline {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .hero-card {
    width: 100%;
    max-width: 100%;
    padding: 22px;
  }

  .hero-card h3 {
    font-size: 20px;
  }

  .hero-card p,
  .hero-card h4 {
    font-size: 14px;
  }

  .services-section {
    margin: 60px auto;
    padding: 0 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    min-height: auto;
    padding: 25px 20px;
  }

  .service-icon i {
    font-size: 40px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .service-card p {
    font-size: 14px;
  }

  .recovery-box {
    padding: 30px 20px;
  }

  .recovery-content h2 {
    font-size: 28px;
  }

  .recovery-content p {
    font-size: 14px;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }
}

/* ==========================================================================
   MEDIA QUERY: SMALL MOBILE (Down to 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .hero {
    min-height: auto;
  }

  /* FIXED: Dedicated layout push padding settings to keep content clean on standard phones */
  .hero-content {
    padding-top: 145px !important; /* Aligns neatly under mobile utilities strip layout */
    padding-right: 15px !important;
    padding-left: 15px !important;
  }

  .hero h1 {
    font-size: 28px;
  }

  .tagline {
    font-size: 13px;
  }

  .hero-card {
    padding: 18px;
  }

  .hero-card h3 {
    font-size: 18px;
  }

  .hero-card p,
  .hero-card h4 {
    font-size: 13px;
    line-height: 1.7;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .service-card {
    padding: 20px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .recovery-content h2 {
    font-size: 24px;
  }
}

/* ==========================================================================
   MEDIA QUERY: EXTRA SMALL MOBILE / OLDER PHONES
   ========================================================================== */
@media (max-width: 360px) {
  .hero-content {
    padding-top: 140px !important; /* Scaled down layout adjustment for ultra compact displays */
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-card {
    padding: 16px;
  }

  .service-card {
    padding: 18px;
  }

  .recovery-content h2 {
    font-size: 22px;
  }
}