/* ---- XXL / large desktops (>=1400px) ---- */
@media (min-width: 1400px) {
  :root {
    --container-max: 1320px;
  }
}

/* ---- XL / desktops (1200px - 1399px) ---- */
@media (max-width: 1399.98px) {
  :root {
    --space-2xl: 80px;
  }

  .hero-actions{
    gap: 12px;
  }
  .google-badge .google-icon {
    width: 32px;
    height: 32px;
  }
  .google-badge .rating-score{
    font-size: 12px;
  }
  .google-badge .rating-stars img{
    width: 10px;
    height: 10px;
  }
  .trust-badge .badge-logo{
    height: 24px;
  }
  .trust-badge .badge-text{
    font-size: 12px;
  }
  .hero-media{
    height: 560px;
  }
}

/* ---- LG / small desktops & tablets landscape (992px - 1199px) ---- */
@media (max-width: 1199.98px) {
  :root {
    --space-2xl: 72px;
    --space-xl: 56px;
  }

  .hero-heading{
    font-size: 40px;
  }
  
  .hero-actions{
    gap: 12px;
  }
  .btn-gradient{
    padding: 14px 24px;
    font-weight: 600;
  }
 
  .hero-media{
    height: 500px;
  }
  .hero-copy{
    position: relative;
    z-index: 10;
  }
  h2{
    font-size: 36px !important;
  }
  .services.section-header h1{
    font-size: 36px;
  }
  .article-cover{
    height: auto;
  }
  .article-title{
    font-size: 36px;
  }
  .about-header .about-text-col {
    font-size: 16px;
  }
  .stat-number{
    font-size: 32px;
  }
  .cta-panel{
    padding: 48px 40px;
  }
  .btn-white-pill{
    padding: 14px 24px;
    font-weight: 600;
  }
  .blog-body{
    padding: 24px;
  }
  .blog-title{
    font-size: 20px;
    margin-bottom: 0;
  }
  .blog-desc{
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
  }
  .blog-link{
    font-size: 14px;
    font-weight: 600;
  }
  .contact-value, .contact-value a{
    font-size: 16px;
  }
  .footer-tagline{
    font-size: 14px;
  }
  .footer-rating .google-icon {
    width: 32px;
    height: 32px;
  }
  .footer-rating{
    gap: 10px;
    padding: 10px 16px;
  }
  .footer-rating .rating-stars{
    gap: 2px;
    margin-bottom: 0;
  }
  .footer-rating .rating-stars img{
    width: 10px;
    height: 10px;
  }
  .footer-rating .rating-text{
    font-size: 10px;
  }
  .insurance-hero-heading{
    font-size: 40px;
  }
  .mini-trust-icon{
    display: none;
  }
  .mini-trust-card strong{
    font-size: 14px;
  }
  .mini-trust-card span{
    font-size: 14px;
  }
  .headline {
    font-size: 40px;
  }
  .info-value{
    font-size: 16px;
  }
  .contact-wrap{
    padding: 48px 0px;
  }
  .step-card {
    border-radius: var(--radius-sm);
    padding: 24px 14px;
  }
  .mf-feature{
    padding: 24px 16px;
    border-radius: var(--radius-sm);
  }
  
}

/* ---- MD / tablets (768px - 991px) ---- */
@media (max-width: 991.98px) {
  :root {
    --space-2xl: 56px;
    --space-xl: 48px;
    --space-lg: 32px;
  }
  .hero-section{
    padding: 48px 0px;
  }
  .insurance-hero-section{
    padding: 48px 0px;
  }
  .hero-media{
    display: none;
  }
  section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .navbar-collapse {
    background-color: var(--color-light);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-top: var(--space-xs);
  }

  .navbar .nav-link {
    margin-left: 0;
    padding: 8px 0;
  }
  .about-heading-col, .about-text-col{
    text-align: center;
  }
  .service-card{
    padding: 32px;
    border-radius: var(--radius-sm);
  }
  .process-panel {
    padding: 32px 24px;
  }
  .btn-white-pill{
    max-width: fit-content;
    display: block;
    margin: 20px auto;
  }
  .stat-label{
    font-size: 10px;
  }
  .comparison-card-title h3{
    font-size: 24px;
  }
  .comparison-card{
    padding: 32px 24px;
    border-radius: var(--radius-sm);
  }
  .quote-mark-start {
    top: -14px;
    left: 24px;
  }
  .quote-mark {
      width: 36px;
  }
  .quote-mark-end {
    bottom: -12px;
    right: 0;
  }
  .commitment-signature{
    width: 400px;
  }
  .insurance-hero-section{
    text-align: center;
  }
  .serviceBtn {
    justify-content: center;
  }
  .serviceBtn .btn-white-pill{
    display: inherit;
    margin: 0;
  }
  .health-panel-dark{
    text-align: center;
    padding: 24px 20px 10px;
  }
  .health-panel-dark p{
    margin-bottom: 12px;
  }
  .ctaBtn .btn-white-pill{
    display: inherit;
    margin: 0;
  }
  .termHeading{
    text-align: center;
  }
  .detail-desc{
    max-width: 100%;
  }
  .lede{
    max-width: 100%;
    margin-bottom: 24px;
  }
  .pp-shell{
    padding: 36px 0px;
  }

}

/* ---- SM / large phones (576px - 767px) ---- */
@media (max-width: 767.98px) {
  :root {
    --space-2xl: 48px;
    --space-xl: 40px;
    --space-lg: 28px;
  }

  .container,
  .container-fluid {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .btn {
    padding: 10px 22px;
    width: 100%;
  }

  .btn.w-auto {
    width: auto;
  }

  .hero-heading {
    font-size: 36px;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 30px;
  }
  .google-badge .rating-detail{
    align-items: flex-start;
  }
  .stat-card{
    padding: 16px 14px;
    border-radius: var(--radius-sm);
  }
  .process-copy{
    text-align: center;
  }
  .process-copy .process-desc{
    margin-bottom: 0px;
  }
  .process-panel{
    margin-bottom: 20px;
  }
  .process-section .btn-gradient{
    max-width: fit-content;
  }
  .comparison-grid{
    flex-wrap: wrap;
  }
  .step-card{
    border-radius: var(--radius-sm);
  }
  #term-life-insurance .feature-item{
    flex-direction: column;
  }
  .health-panel-wrap .feature-item{
    flex-direction: column;
  }
  .footer-contact{
    align-items: flex-start !important;
  }

  .blog-filter-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .blog-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .blog-filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* ---- XS / phones (<576px) ---- */
@media (max-width: 575.98px) {
  :root {
    --space-2xl: 40px;
    --space-xl: 32px;
    --space-lg: 24px;
    --space-md: 20px;
  }

  h2 {
    font-size: 28px !important;
  }

  .services.section-header h1{
    font-size: 28px;
  }
  .article-cover{
    height: auto;
  }
  .article-title{
    font-size: 28px;
  }
  .card {
    border-radius: var(--radius-sm);
  }

  .card:hover {
    transform: none;
  }
  .hero-section {
    padding: 36px 0px;
  }
  .insurance-hero-section{
    padding: 36px 0px;
  }
  .hero-heading {
    font-size: 32px;
  }
  .hero-copy {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-info p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions{
    gap: 14px;
  }
  .hero-actions .btn-gradient{
    padding: 16px;
    font-size: 14px;
    box-shadow: none;
  }
  .hero-info{
    margin-top: 30px;
  }
  .hero-info .hero-eyebrow{
    font-size: 14px;
  }
  .stat-card{
    height: 100%;
  }
  .stat-number {
    font-size: 24px;
  }
  .eyebrow{
    margin-bottom: 8px;
  }
 .btn-white-pill{
  margin: 10px auto 0;
 }
 .stat-label{
    font-size: 12px;
  }
  .step-grid{
    gap: 16px;
  }
  .insurance-hero-heading{
    font-size: 32px;
  }
  .serviceBtn .btn-white-pill{
    max-width: 100%;
  }
  .health-panel-dark,
  .health-panel-light {
    padding: 24px 20px;
  }
  .ctaBtn .btn-white-pill{
    max-width: 100%;
  }
  .benefit-box, .cta-panel{
    border-radius: var(--radius-sm);
  }
  .headline {
    font-size: 32px;
  }
  .form-card{
    padding: 24px 16px;
    border-radius: var(--radius-sm);
  }
  .content-box{
    padding: 32px 16px;
    border-radius: var(--radius-sm);
  }
  .footer-bottom-links{
    gap: 16px;
  }
  
}

/* ---- Hero section ---- */
@media (max-width: 991.98px) {
  .hero-grid {
    text-align: center;
  }

  
  .hero-media {
    width: 100%;
    max-width: 320px;
    margin: 0 auto var(--space-lg);
  }
}



/* ---- Services section ---- */
@media (max-width: 767.98px) {
  .service-card {
    padding: 32px;
  }
}



/* ---- Final CTA section ---- */
@media (max-width: 991.98px) {
  .cta-panel {
    padding: 40px;
  }

  .cta-content {
    text-align: center;
  }

  .cta-badges {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .cta-panel {
    padding: 32px 20px;
  }

  
}

/* ---- Testimonials section ---- */
@media (max-width: 767.98px) {
  .testimonials-swiper {
    padding: 0 0 44px;
  }

  .testimonials-swiper .swiper-button-prev,
  .testimonials-swiper .swiper-button-next {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .testimonial-card {
    padding: 28px;
  }
}

/* ---- Blog section ---- */
@media (max-width: 767.98px) {
  .blog-swiper {
    padding: 0 0 44px;
  }

  .blog-swiper .swiper-button-prev,
  .blog-swiper .swiper-button-next {
    display: none;
  }
}

/* ---- FAQ section ---- */
@media (max-width: 575.98px) {
  .faq-question {
    font-size: 16px;
  }
}

/* ---- Comparison section (About page) ---- */
@media (max-width: 767.98px) {
  .comparison-card {
    padding: 28px;
  }
}

/* ---- 6-Step Clarity Process (About page) ---- */
@media (max-width: 991.98px) {
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .step-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: 24px;
  }
}

/* ---- Insurance hero / service page (insurance.html) ---- */
@media (max-width: 991.98px) {
  .detail-media {
    height: 320px;
  }

}

@media (max-width: 575.98px) {
  .detail-media {
    height: 220px;
  }

  .benefit-box {
    padding: 24px;
  }

  

  .stat-number-lg {
    font-size: 32px;
  }
}

/* ---- Footer ---- */
@media (max-width: 767.98px) {
  /* .footer-cols {
    text-align: center;
  } */

  /* .footer-rating,
  .footer-social,
  .contact-item {
    justify-content: center;
  } */

  .contact-item {
    text-align: left;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* ---- Top bar ---- */
@media (max-width: 767.98px) {
  .topbar-link.topbar-email {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .topbar-inner {
    gap: 8px;
  }

  .topbar-link {
    font-size: 12px;
  }

  .topbar-social a {
    width: 26px;
    height: 26px;
  }
}

/* ---- Landscape phones (short viewport height) ---- */
@media (max-height: 500px) and (orientation: landscape) {
  section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }
}