/* ─── Responsive & Mobile Styles extracted from home.css ─── */

@media (max-width: 768px) {
  body {
    max-width: 100vw;
  }

  /* Each animated container must be positioned so overflow:hidden works on iOS */
  .ib-marquee-outer,
  .ib-stats-scroll-wrap,
  .ib-hero-marquee-bar .ib-marquee-card {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  #unique-features .ib-container {
    position: relative;
    overflow: hidden;
  }
}

@media (max-width: 640px) {

  .ib-flash,
  .flash {
    top: calc(var(--header-height, 72px) + 8px);
    font-size: 13px;
    padding: 12px 16px;
    white-space: normal;
    text-align: left;
    justify-content: flex-start;
  }
}

@media(max-width: 768px) {
  .ib-testi-outer {
    height: auto;
  }

  .ib-testi-sticky {
    position: relative;
    height: auto;
    padding: 64px 0 48px;
    overflow: visible !important;
    /* Critical for sticky position to work */
  }

  .ib-testi-viewport {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    padding: 0 16px !important;
    overflow: visible !important;
    margin: 32px 0 !important;
  }

  .ib-testi-track {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px !important;
    padding-bottom: 32px !important;
    /* Clean bottom padding now that cards no longer have negative margin */
    transform: none !important;
    /* disable desktop horizontal scroll */
    transition: none !important;
  }

  .ib-testi-card {
    display: flex !important;
    flex-direction: column-reverse !important;
    /* Text on top, avatar on bottom */
    width: 100% !important;
    height: 380px !important;
    /* Uniform height to ensure shorter cards perfectly cover taller cards behind them */
    justify-content: space-between !important;
    /* Pushes the avatar to the absolute bottom of the card */
    position: sticky !important;
    top: 100px !important;
    margin-bottom: 0px !important;
    /* Natural overlap stack effect */
    background: #ffffff !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    transform: none !important;
  }

  .ib-tcard-left {
    display: flex !important;
    flex-direction: row !important;
    text-align: left !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 8px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  }

  .ib-tcard-avatar {
    width: 48px !important;
    height: 48px !important;
  }

  .ib-tcard-emoji {
    font-size: 24px !important;
  }

  .ib-testi-progress {
    display: none !important;
    /* Hide pagination dots on mobile */
  }
}

@media(max-width:1024px) {
  .ib-hero {
    height: 85vh;
    min-height: 500px;
  }

  .ib-hero-bg-img {
    object-position: 70% center;
  }

  .ib-hero-copy {
    max-width: 400px;
  }

  .ib-hero-sub {
    max-width: 100%;
  }

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

  .ib-why-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ib-experience-split {
    grid-template-columns: 1fr;
  }

  .ib-exp-v-inner {
    position: relative;
    height: auto;
    padding: 80px 0 60px;
  }

  .ib-exp-content {
    padding: 60px 24px;
  }

  .ib-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media(max-width: 1170px) {
  .ib-nav {
    padding: 8px 14px;
    gap: 4px;
  }

  .ib-nav-actions {
    gap: 4px;
  }

  .ib-nav-logout {
    width: 32px;
    height: 32px;
  }

  .ib-nav-logout svg {
    width: 16px;
    height: 16px;
  }

  .ib-nav-user {
    padding: 4px 8px;
    font-size: 13px;
  }

  .ib-nav-actions .ib-btn-primary {
    padding: 6px 12px;
    font-size: 13px;
  }

  .ib-nav-portal-btn {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-size: 11px !important;
    letter-spacing: 0.5px;
  }

  .ib-nav-portal-btn .full-text {
    display: none;
  }

  .ib-nav-portal-btn .short-text {
    display: inline-block;
  }

  .ib-nav-links {
    gap: 4px !important;
  }

  .ib-nl {
    padding: 4px 6px !important;
    font-size: 11px !important;
  }
}

@media(max-width: 1100px) {
  .ib-nav {
    gap: 2px;
    padding: 6px 8px;
  }

  .ib-nav-actions {
    gap: 2px;
  }

  .ib-nav-user {
    padding: 2px 4px;
    gap: 2px;
    font-size: 12px;
  }

  .ib-nav-logout {
    width: 28px;
    height: 28px;
  }

  .ib-nav-logout svg {
    width: 14px;
    height: 14px;
  }

  .ib-nav-portal-btn {
    width: 28px;
    height: 28px;
    font-size: 10px !important;
  }

  .ib-nav-links {
    gap: 2px !important;
  }

  .ib-nl {
    padding: 2px 4px !important;
    font-size: 10px !important;
  }

  /* Hide the icons inside navigation links to save massive space on very tight screens */
  .ib-nl svg {
    display: none !important;
  }
}

@media(max-width: 1024px) {

  .ib-nav-links,
  .ib-nav-login,
  .ib-nav-actions {
    display: none !important;
  }

  .ib-hamburger {
    display: flex;
  }
}

@media(max-width:768px) {
  .ib-header {
    padding: 8px 16px;
  }

  .ib-nav {
    padding: 8px 12px 8px 20px;
  }

  .ib-hero {
    height: 70vh;
    min-height: 480px;
  }

  .ib-hero-bg-img {
    object-position: center bottom;
    height: 100% !important;
  }

  .ib-hero-copy {
    max-width: 100%;
  }

  .ib-hero-title {
    font-size: clamp(26px, 6vw, 36px);
  }

  .ib-br-desktop {
    display: none;
  }

  .ib-section {
    padding: 64px 0;
  }

  .ib-steps-grid {
    grid-template-columns: 1fr;
  }

  .ib-features-grid {
    grid-template-columns: 1fr;
  }

  .ib-testi-grid {
    grid-template-columns: 1fr;
  }

  .ib-footer-grid {
    grid-template-columns: 1fr;
  }

  .ib-cta-section {
    padding: 64px 0;
  }
}

@media(max-width:480px) {
  .ib-container {
    padding: 0 16px;
  }

  .ib-hero-actions {
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .ib-hero-actions a {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: center;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    padding: 11px 12px !important;
    white-space: normal !important;
    word-break: break-word;
  }

  .ib-hero-actions a svg {
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
  }

  .ib-hero-actions a svg {
    flex-shrink: 0 !important;
  }

  .ib-cta-actions {
    flex-direction: column;
  }

  .ib-cta-actions a {
    width: 100%;
    text-align: center;
  }

  /* Trust strip hidden on mobile */
  .ib-trust-strip,
  .ib-trust-strip span {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .ib-page-hero {
    padding-top: calc(var(--header-height, 90px) + 20px) !important;
  }
}

@media (max-width: 480px) {
  .ib-page-hero {
    padding-top: calc(var(--header-height, 80px) + 16px) !important;
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 768px) {
  .ib-pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ib-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 480px) {
  .ib-stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {

  /* Nav actions: hide username text on small screens */
  .ib-nav-user {
    display: none;
  }

  /* Hero section layout fix for mobile overlap */
  .ib-hero {
    min-height: unset;
    height: auto;
    padding: 0;
    padding-bottom: 330px; /* Reduced to balance the increased top padding so photo doesn't move */
    background: linear-gradient(180deg, #F2F8FF 0%, #E6F0FF 100%);
  }

  .ib-hero-bg-img {
    height: auto !important;
    /* Let image aspect ratio dictate height, preventing artificial scaling */
    top: auto !important;
    /* Remove top constraint */
    bottom: 0 !important;
    /* Anchor securely to the bottom */
  }

  .ib-hero-overlay {
    align-items: flex-start !important;
    padding-top: calc(var(--header-height, 90px) + 70px) !important; /* Move text down */
  }

  .ib-hero-copy .ib-badge {
    font-size: clamp(10px, 3.5vw, 13px) !important;
    padding: 6px 12px !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
    text-align: center;
  }

  .ib-hero-copy .ib-badge span {
    font-size: clamp(10px, 3.5vw, 13px) !important;
  }

  .ib-hero-copy {
    max-width: 100%;
    padding: 0 10px;
  }

  .ib-hero-title {
    font-size: clamp(28px, 7vw, 40px) !important;
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
  }

  .ib-hero-sub {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
  }

  /* Hide the 4 trust-strip badges on mobile */
  .ib-trust-strip {
    display: none !important;
  }

  .ib-hero-actions {
    flex-direction: row !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  /* Stats: 2-column on tablet */
  .ib-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Marquee trust strip */
  .ib-marquee-wrap {
    padding: 12px 0;
  }

  /* Pull marquee bar higher on mobile */
  .ib-hero-marquee-bar {
    margin-top: -140px !important;
    padding: 0 14px;
    overflow: hidden;
  }

  /* Unique features grid → 1 column */
  .ib-unique-features-section [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Section background for the card layout */
  #how-it-works {
    background: #fff !important;
    /* white background as requested */
    padding: 24px 0 40px !important;
  }

  /* ── Experience Split: Ditto-style Single White Card ── */
  .ib-experience-split {
    grid-template-columns: 1fr !important;
    min-height: unset !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: #fff !important;
    border-radius: 24px !important;
    margin: 0 16px !important;
    overflow: hidden !important;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.08) !important;
    /* Added light shadow */
  }

  /* The visual card: top part of the white card */
  .ib-exp-visual {
    order: -1;
    position: relative;
    background: #EEF1F5;
    border-radius: 20px 20px 0 0 !important;
    margin: 16px 16px 0 16px !important;
    /* Add margin to create card effect */
    height: auto;
    overflow: hidden !important;
    display: flex;
    padding: 0;
  }

  /* Remove sticky and absolute positioning */
  .ib-exp-v-inner {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
  }

  .ib-exp-illustration {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    display: flex;
    /* Removes bottom baseline gap */
  }

  /* Image fills card, scaled up to zoom and crop internal whitespace */
  .ib-exp-img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block;
  }

  /* Hide the HTML title since the image already contains the text */
  .ib-exp-mobile-title {
    display: none !important;
  }

  /* Content section below the card */
  .ib-exp-content {
    padding: 32px 20px 40px !important;
    background: #fff;
  }

  .ib-exp-timeline::before {
    display: block !important;
    /* Reactivate timeline line on mobile */
    content: '';
    position: absolute;
    left: 24px;
    /* Center of the 48px badge */
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E2E8F0;
  }

  .ib-exp-timeline {
    max-width: 100% !important;
    position: relative !important;
  }

  /* ── Premium Timeline Journey Layout ── */
  .ib-exp-step {
    display: flex !important;
    flex-direction: row !important;
    /* Badges on left, content on right */
    gap: 20px !important;
    margin-bottom: 56px !important;
    align-items: flex-start !important;
    position: relative;
  }

  /* Sticky Badge on the left */
  .ib-step-badge {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: #EEF4FF !important;
    color: #3B82F6 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 8px #ffffff !important;
    /* Cut out the timeline line behind it */
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 80px !important;
    /* Sticks to top as you scroll through the step */
    z-index: 2;
  }

  /* Body adjustments: flex column to reorder children */
  .ib-step-body {
    padding-top: 0 !important;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
  }

  .ib-step-body h3 {
    order: 1;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.01em !important;
  }

  .ib-step-body p {
    order: 2;
    font-size: 15px !important;
    color: #64748B !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
  }

  /* Action button moves ABOVE the feature box */
  .ib-step-actions {
    order: 3;
    margin-bottom: 24px !important;
    width: 100%;
  }

  .ib-step-actions .ib-btn-primary {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 16px !important;
    background: #3B82F6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    /* Matches reference screenshot rounded rect style */
    width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }

  /* Feature Box moves to the BOTTOM */
  .ib-step-feature-box {
    order: 4;
    padding: 20px !important;
    background: #ffffff !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: none !important;
    /* Remove desktop shadow to match photo */
    border-radius: 16px !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
  }

  .ib-feat-row {
    font-size: 14px !important;
    gap: 12px !important;
  }

  /* Unique features Auto Horizontal Scroll (Marquee) for mobile */
  #unique-features {
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    /* Prevent body horizontal scroll by keeping the overflow bounded here */
  }

  #unique-features::-webkit-scrollbar {
    display: none !important;
  }

  .ib-unique-features-grid {
    display: flex !important;
    overflow-x: visible !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    padding-bottom: 24px !important;
    width: max-content !important;
    /* Allow track to be as wide as needed */
    /* animation: auto-scroll-features 25s linear infinite !important; */
  }

  /* Pause animation if the user taps/holds on a card */
  .ib-unique-features-grid:hover,
  .ib-unique-features-grid:active {
    animation-play-state: paused !important;
  }

  .ib-unique-features-grid>div,
  .ib-unique-feat-dup>div {
    min-width: 280px !important;
    /* Fixed width for cards */
    max-width: 85vw !important;
    flex: 0 0 auto !important;
  }

  /* Show duplicated cards on mobile to create seamless infinite loop */
  .ib-unique-feat-dup {
    display: contents !important;
  }

  @keyframes auto-scroll-features {
    0% {
      transform: translateX(0);
    }

    /* Transform left by exactly half the total track width (including gap) */
    100% {
      transform: translateX(calc(-50% - 8px));
    }
  }

  /* Why section */
  .ib-why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Steps grid */
  .ib-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Policy Features Grid (Bento) -> 2-2-1 layout on mobile using Flexbox to avoid Safari grid bugs */
  .ib-bento-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .ib-bento-grid .ib-bento-card {
    width: calc(50% - 6px) !important;
    /* 2 columns, minus half the gap */
    padding: 20px 16px !important;
    /* Tighter padding for 2-col fit */
    margin: 0 !important;
  }

  /* Last card spans full width horizontally */
  .ib-bento-grid .ib-bento-card:last-child {
    width: 100% !important;
  }

  /* Adjust typography inside the tightly packed 2-col grid */
  .ib-bento-grid .ib-bento-card h3 {
    font-size: 16px !important;
  }

  .ib-bento-grid .ib-bento-card p {
    font-size: 13px !important;
  }

  .ib-bento-tag {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  /* Uniform spacing between sections on mobile - reduced to prevent excessive whitespace */
  .ib-features-section,
  #unique-features,
  #compare-experience,
  #pricing {
    padding: 40px 0 !important;
  }

  /* Compare the Experience -> Horizontal Swipe on Mobile */
  .ib-compare-wrapper {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 -28px !important;
    /* Pull out of ib-container padding (28px) */
    padding: 0 7.5vw 24px !important;
    /* Offset to center the 85vw card */
    gap: 16px !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .ib-compare-wrapper::-webkit-scrollbar {
    display: none;
  }

  .ib-compare-col {
    flex: 0 0 85vw !important;
    min-width: 85vw !important;
    scroll-snap-align: center;
    border-radius: 16px !important;
    padding: 24px 16px !important;
  }

  .ib-compare-col h3 {
    font-size: 22px !important;
  }

  .ib-compare-col p {
    font-size: 14px !important;
    margin-bottom: 24px !important;
  }

  /* Make "The InsureBuddy Way" show first on mobile */
  .ib-compare-col:nth-child(1) {
    order: 2;
    /* The Old Way goes second */
  }

  .ib-compare-col:nth-child(2) {
    order: 1;
    /* InsureBuddy Way goes first */
  }

  .ib-compare-item {
    padding: 12px !important;
    gap: 12px !important;
    border-radius: 12px !important;
  }

  .ib-compare-item>div>div:first-child {
    font-size: 14px !important;
  }

  .ib-compare-item>div>div:last-child {
    font-size: 12px !important;
  }

  .ib-compare-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
  }

  .ib-compare-item svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* Section headings */
  .ib-section-hd h2 {
    font-size: clamp(22px, 6vw, 32px) !important;
    line-height: 1.3 !important;
    overflow: visible !important;
    padding-top: 40px !important;
    /* Prevents font ascenders from clipping */
  }

  /* Pricing grid → 1 column */
  .ib-pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Footer grid → 2x2 grid for mobile */
  .ib-footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px 16px !important;
  }

  .ib-footer-brand {
    grid-column: auto !important;
    /* Allow it to take 1 column in the 2x2 grid */
  }

  .ib-footer-brand p {
    max-width: 100%;
  }

  .ib-footer {
    padding: 80px 0 40px !important;
  }

  /* CTA section */
  .ib-cta-section {
    padding: 64px 0;
  }

  .ib-cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 16px !important;
  }

  .ib-cta-actions a {
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Compare / inner page card stats */
  .compare-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Contact page 2-column → 1-column */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {

  /* Container padding on small phones */
  .ib-container,
  .container {
    padding: 0 14px;
    margin-top: -16%;
  }

  /* Hero */
  .ib-hero-title {
    font-size: clamp(24px, 7vw, 30px);
  }

  .ib-hero-actions a {
    width: calc(50% - 4px) !important;
    flex: none !important;
    text-align: center;
    justify-content: center;
    padding: 10px 4px !important;
    font-size: 12px !important;
    line-height: 1.3;
    display: inline-flex !important;
    align-items: center !important;
    white-space: normal !important;
  }

  .ib-hero-actions a svg {
    flex-shrink: 0 !important;
  }

  /* Stats → single column */
  .ib-stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Unique features → 1 column on very small screens */
  .ib-unique-features-section [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  /* Pricing card padding */
  .ib-pricing-card {
    padding: 28px 20px;
  }

  /* Section padding reduction */
  .ib-section {
    padding: 48px 0;
  }

  /* Trust strip */
  /* Trust strip hidden on mobile */
  .ib-trust-strip,
  .ib-trust-strip span {
    display: none !important;
  }

  /* Footer */
  .ib-footer-badges {
    flex-wrap: wrap;
  }

  /* About & Contact page nav grids */
  div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ib-hero {
    min-height: 70vh;
  }

  .ib-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .ib-pricing-grid {
    gap: 24px;
  }

  .ib-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Unique features grid → 2 columns on iPad */
  .ib-unique-features-section [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

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

@media (min-width: 769px) {

  /* Hide the duplicate cards added for the mobile marquee loop */
  .ib-stats-scroll-wrap .ib-stat-card[aria-hidden="true"] {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .ib-stats-scroll-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    position: relative;
    /* Force Safari overflow clipping */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .ib-stats-scroll-wrap::-webkit-scrollbar {
    display: none;
  }

  /* Override all previous mobile grid rules for stats */
  .ib-stats-scroll-wrap .ib-stats-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content;
    grid-template-columns: unset !important;
    /* animation: stats-marquee 8s linear infinite; */
  }

  /* Pause on hover/touch */
  .ib-stats-scroll-wrap:hover .ib-stats-grid,
  .ib-stats-scroll-wrap:active .ib-stats-grid {
    animation-play-state: paused;
  }

  /* Strip the card box — text only */
  .ib-stats-scroll-wrap .ib-stat-card {
    min-width: 130px;
    flex-shrink: 0;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 8px 20px !important;
    text-align: center;
    box-shadow: none !important;
    border: none !important;
  }
}

@media(max-width: 1440px) {
  .ib-nav {
    gap: 12px;
    padding: 8px 16px;
  }

  .ib-nav-links {
    gap: 0;
  }

  .ib-nl {
    padding: 6px 8px;
    font-size: 13px;
    gap: 4px;
  }

  .ib-nl svg {
    width: 14px;
    height: 14px;
  }

  .ib-btn-primary {
    padding: 8px 16px;
    font-size: 13px;
  }

  .ib-nav-actions {
    gap: 12px;
  }

  .ib-logo {
    font-size: 16px;
  }
}

@media(max-width: 1250px) {
  .ib-nl svg {
    display: none;
  }

  .ib-nl {
    padding: 6px 8px;
    font-size: 12px;
  }

  .ib-nav-user {
    padding: 6px 8px;
    font-size: 13px;
  }

  .ib-nav-login {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media(max-width: 1440px) {
  .ib-section {
    padding: 80px 0;
  }

  .ib-hero-title {
    font-size: clamp(28px, 3.5vw, 38px);
  }

  .ib-hero-sub {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .ib-experience-split {
    grid-template-columns: 45% 55%;
  }

  .ib-exp-content {
    padding: 80px 40px;
  }

  .ib-exp-step {
    gap: 24px;
    margin-bottom: 56px;
  }

  .ib-marquee-card {
    padding: 28px 0 20px;
  }

  .ib-marquee-section {
    padding: 36px 20px;
  }
}

@media(max-width: 1250px) {
  .ib-section {
    padding: 64px 0;
  }

  .ib-section-hd {
    margin-bottom: 40px;
  }

  .ib-section-hd h2 {
    font-size: clamp(24px, 3vw, 32px);
  }

  .ib-experience-split {
    grid-template-columns: 50% 50%;
  }

  .ib-exp-content {
    padding: 60px 32px;
  }

  .ib-exp-step {
    margin-bottom: 40px;
  }

  .ib-step-body h3 {
    font-size: 20px;
  }

  .ib-hero {
    min-height: 540px;
  }

  .ib-hero-title {
    font-size: clamp(26px, 3.2vw, 34px);
    margin-bottom: 16px;
  }

  .ib-hero-sub {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .ib-sticky-btn-wrapper::before {
    left: 12px;
    top: -20px;
    height: 40px;
    z-index: -1;
    transform: translateZ(-10px);
  }

  .ib-sticky-btn-wrapper::after {
    right: 12px;
    top: -20px;
    height: 40px;
    z-index: -1;
    transform: translateZ(-10px);
  }
}