/* For screens larger than 991px */
@media (min-width: 992px) {
  .container {
    max-width: 131rem;
    padding: 0;
  }

  .px-30 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .px-32 {
    padding-left: 3.2rem !important;
    padding-right: 3.2rem !important;
  }

  .blog-hero {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .table-contents .col-lg-9 {
    width: 73%;
  }

  .table-contents .col-lg-3 {
    width: 27%;
  }

  /* ================ My updates =============== */
  .timeline-img {
    margin-left: auto;
    margin-right: -8rem;
  }

  .timeline-img1 {
    width: 70rem;
    margin-left: auto;
    margin-right: -8rem;
  }

  .timeline-img2 {
    width: 75rem;
    margin-right: -12rem;
  }

  .timeline-img3 {
    width: 30rem;
    margin-right: 4rem;
  }

  .timeline-img4 {
    width: 60rem;
    margin-right: -6rem;
  }

  /* blog-hero-img */
  .blog-hero-img {
    transform: scale(1.155);
  }

  .blog-hero {
    overflow: hidden;
  }
}

/* For Screen height less than 767px */
@media (max-height: 767px) {
  .table-right .table-card-bg.v2 {
    margin: 2rem 0;
  }
}

/* For screens up to 991px */
@media (max-width: 991px) {
  html {
    font-size: 55%;
  }

  br {
    display: none;
  }

  main {
    overflow-x: hidden;
  }

  .container-max {
    padding: 0 3.2rem;
  }

  .container-inner {
    padding: 0 3.2rem;
  }

  .navbar-prufio {
    padding: 0 3.2rem;
  }

  .nav-links,
  .nav-right .btn-pill-dark,
  .nav-right .btn-pill-ghost {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-drawer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    top: 0;
    height: 100vh;
    z-index: 999;
    background: rgba(6, 53, 45, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10rem 2rem 5rem 2rem;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    border: none;
    box-shadow: none;
  }

  .mobile-drawer.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .mobile-drawer .mob-nav-links {
    width: 32rem;
    text-align: center;
    gap: 1rem;
    padding-left: 0;
  }

  .mobile-drawer .mob-nav-links a {
    font-size: 2.4rem;
    color: #fff;
    font-weight: 500;
  }

  .mobile-drawer .mob-cta {
    margin-top: 4rem;
    width: 100%;
    max-width: 32rem;
  }

  .menu-toggle span {
    background: #fff;
    /* Ensure visibility on dark background */
  }

  .navbar-prufio.v2 .menu-toggle span {
    background: #000000;
  }

  .hero-inner {
    padding-top: 0;
    gap: 8rem;
  }

  .hero-title {
    font-size: 5rem;
  }

  .hero-visual,
  .prufio-bg {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .section-block {
    padding: 8rem 3.2rem;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    max-width: 48rem;
    margin: 0 auto;
  }

  .risk-card {
    height: auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 56rem;
    margin: 0 auto;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .feature-visual {
    height: 32rem;
  }

  .feature-title {
    font-size: 3.6rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
  }

  .std-card-grid {
    grid-template-columns: 1fr;
  }

  .cta-heading {
    font-size: 4.8rem;
  }

  .cta-section {
    padding: 8rem 3.2rem;
  }

  .hiw {
    height: auto;
  }

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

  .pinned-section {
    z-index: 1;
  }

  .hiw-sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .hiw-inner {
    flex-direction: column;
    padding: 6rem 0 0;
    gap: 4rem;
    height: auto;
  }

  .hiw-step:last-child {
    height: auto;
  }

  .hiw-left {
    width: 100%;
  }

  .hiw-steps {
    display: flex;
    flex-direction: column;
  }

  .hiw-step {
    margin-bottom: 0;
    opacity: 1 !important;
    height: auto;
  }

  .step-desc {
    max-height: 3rem;
    transition: max-height 0.5s ease;
  }

  .hiw-step.active .step-desc {
    max-height: 1000rem;
    transition: max-height 5s ease;
  }

  .hiw-right {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }

  .mockup {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    height: auto;
    width: 100%;
    display: flex !important;
    justify-content: center;
    pointer-events: auto;
  }

  .timeline-img,
  .timeline-img1,
  .timeline-img2,
  .timeline-img3,
  .timeline-img4 {
    width: 100% !important;
    margin: 0 auto !important;
    position: relative;
    right: auto !important;
    left: auto !important;
  }

  /* ====== Timeline-update ===== */
  .timeline-img {
    max-width: 100%;
    margin: 2rem 0 4rem 0 !important;
  }

  .timeline-img3 {
    max-width: 70%;
  }

  .step-desc {
    margin-bottom: 2rem;
  }

  /* =========== My Update ============ */
  .problem-header .section-heading {
    padding: 0;
  }

  .problem-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .solution-box.v2 .row {
    flex-direction: column-reverse;
    gap: 5rem;
  }

  .faq-area .content h2 {
    padding: 2rem 0 9rem;
  }

  .faq-area .row {
    padding: 5rem 4rem 5rem 4rem;
    --bs-gutter-y: 2rem;
  }

  .faq-area .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .faq-area .content h2 {
    padding-bottom: 0;
    margin: 0;
  }

  .faq-img {
    width: 15rem;
  }

  .blog-area .row {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 4rem;
  }

  .app-section-img {
    max-width: 35rem;
  }

  .cta-content-left p {
    padding: 2rem 0 2rem;
  }

  .cta-content {
    padding: 3rem 0 3rem 4rem;
  }

  .mob-cta {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .mob-cta .btn-pill-ghost {
    background: #fff;
    border: 0.1rem solid #ddd;
  }

  .risk-card-visual {
    margin-left: 3rem;
  }

  .section-hiw-header {
    padding-top: 0;
  }

  /* Blog Grid */
  .blog-title {
    font-size: 2.2rem;
  }

  .blog-desc {
    font-size: 1.5rem;
  }

  /* ============= hero__inner ============ */
  .hero__inner {
    flex-direction: column;
    padding-left: 0;
  }

  .blog-hero-img {
    width: 100%;
  }

  .hero__social-proof {
    margin-top: 2.4rem;
  }

  /* =============== mobile-drawer.v2 ============== */
  .mobile-drawer.v2 .mob-nav-links a {
    color: #000;
  }

  .mobile-drawer.v2 {
    background: rgba(255, 255, 255, 0.75);
  }

  .stats-bar > div {
    padding: 0 3.2rem;
  }

  .pirmas-content h2 {
    padding: 2rem 0;
  }

  .content.pirmas-content {
    padding-bottom: 3rem;
  }

  .table-contents .container > .row {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

  .table-car-v2 {
    display: flex !important;
    flex-direction: row;
    margin: 2rem 0 1rem;
  }

  body.overflow-hidden .navbar-prufio.scrolled {
    box-shadow: none;
    background: transparent;
  }
}

/* For screens up to 767px */
@media (max-width: 767px) {
  html {
    font-size: 50%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem 1.6rem;
  }

  .section-heading {
    font-size: 4.2rem;
  }

  .solution-box {
    gap: 1rem;
  }

  .solution-info {
    padding: 2rem 2rem;
  }

  .solution-img {
    height: 26rem;
  }

  .solution-box.v2 .solution-img {
    min-height: 35rem;
    margin-bottom: -4rem;
  }

  #solution .container > .row {
    margin-bottom: 3.5rem;
  }

  .faq-img {
    width: 10rem;
  }

  .faq-area .content h2 {
    font-size: 4rem;
    padding-top: 0.5rem;
  }

  .text-20 {
    font-size: 1.8rem;
  }

  .faq-area .row {
    padding: 4rem 2rem 4rem 2rem;
    --bs-gutter-y: 2rem;
  }

  .cta-content {
    flex-direction: column;
    padding: 3.5rem;
    padding-bottom: 0;
    gap: 1rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4rem;
    padding: 5rem 0;
  }

  .ft-left p {
    padding: 2rem 0;
  }

  .hero-section {
    border-radius: 2rem;
    width: calc(100% - 2rem);
    top: 1rem;
  }

  .navbar-prufio {
    height: 9rem;
  }

  .navbar-prufio.home-nav {
    top: 1rem;
    left: 1rem;
    width: calc(100% - 2rem);
    border-radius: 2rem;
  }

  .navbar-prufio.scrolled {
    height: 8rem;
  }

  .home-nav.scrolled {
    top: 1rem;
  }

  /* ============= filter-controls start =============== */
  .filter-controls {
    gap: 2rem;
  }

  .filter-btns {
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    position: absolute;
    align-items: flex-start;
    z-index: 999;
    gap: 0.5rem;
    overflow: hidden;
    transform: translateY(3rem);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    top: 4.5rem;
  }

  .filter-controls.active .filter-btns {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(1rem);
  }

  .fillter-btn {
    display: flex;
    white-space: nowrap;
    padding: 1rem 1.2rem 1rem 1.2rem;
    border-radius: 0.8rem;
    background: #f1f1f1;
    border: none;
    font-size: 1.6rem;
    gap: 0.8rem;
  }

  .filter-controls {
    position: relative;
    display: block;
  }

  .filter-btns .control {
    width: 100%;
    text-align: left;
    padding: 1rem 1.6rem;
  }

  .filter-btns .control.mixitup-control-active {
    font-weight: 700;
    border: 0;
  }

  .blog-filter-section {
    padding: 5rem 2rem 2rem !important;
  }

  .filter-controls {
    display: grid;
    grid-template-columns: 1fr 23rem;
    gap: 1rem;
    align-items: normal;
  }

  .filltered-text {
    width: 8rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    text-align: left;
  }

  /* ============= filter-controls End =============== */
  .blog-filter-section {
    padding: 5rem 2rem 2.4rem 2rem !important;
  }

  .search-box {
    max-width: 100%;
  }

  .pag-btn span {
    display: none;
  }

  .hero__title {
    font-size: 3.8rem;
  }

  .hero__left {
    padding: 4.8rem 1rem 2.8rem 1rem;
  }

  .bg-overlay {
    width: calc(100% - 2rem);
    border-radius: 1.6rem;
  }

  .blog-hero {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .blog-grid-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .pagination-wrapper {
    padding-bottom: 0;
  }

  .pricing-trust {
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
  }

  .table-card-bg.v2 {
    padding: 2.4rem;
  }

  .table-car {
    flex-direction: column-reverse;
    gap: 3rem;
    padding-right: 2.4rem;
  }

  .table-car .text-16 {
    margin: 1.2rem 0 1.2rem;
  }

  .about-prufio {
    gap: 2.2rem;
  }

  .table-car-v2 {
    display: flex !important;
    flex-direction: row;
    margin: 2rem 0 2rem;
  }

  .svg-48 {
    width: 3.2rem;
    height: 3.2rem;
  }

  .table-left p {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
}

/* For screens up to 575px */
@media (max-width: 575px) {
  html {
    font-size: 2.32vw;
  }

  .container-max {
    padding: 0 2rem;
  }

  .container {
    padding-left: 0;
    padding-right: 0;
  }

  .container-inner,
  .table-contents {
    padding: 0 2rem;
  }

  .navbar-prufio {
    padding: 0 2rem;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .hero-top-badges {
    flex-direction: column;
    align-items: center;
  }

  .hero-trust-list {
    flex-direction: column;
    gap: 1.6rem;
  }

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

  .section-block {
    padding: 6rem 2rem !important;
  }

  .risk-card {
    height: auto;
  }

  .pricing-toggle {
    width: 100%;
  }

  .cta-heading {
    font-size: 4rem;
  }

  .cta-section {
    padding: 6rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
    text-align: center;
  }

  .ft-left {
    max-width: 100%;
  }

  .ft-right ul {
    justify-content: center;
  }

  .footer-bottom {
    gap: 2rem;
    text-align: center;
  }

  #go-top {
    bottom: 2rem;
    right: 2rem;
    width: 4.8rem;
    height: 4.8rem;
  }

  /* ============ risk-card ============ */
  .risk-card-visual {
    margin-left: 0;
  }

  .risk-card-visual {
    min-height: 40rem;
  }

  .chip-accidents {
    left: 1.5rem;
    top: 10.2rem;
  }

  .chip-mileage {
    top: 13rem;
    right: 1.5rem;
  }

  .chip-owners {
    top: 24rem;
    left: 9rem;
    width: 14.5rem;
  }

  .chip-price {
    bottom: 5rem;
    border-radius: 1.1rem;
  }

  .risk-card-visual .car-img3 {
    width: 34rem;
    top: 36%;
  }

  .chip-total-loss {
    bottom: 5.5rem;
  }

  .blog-hero {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .blog-grid-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .blog-filter-section {
    padding: 5rem 2rem 2.4rem 2rem !important;
  }

  .footer {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .pag-num {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 1.5rem;
    border-radius: 0.4rem;
  }

  .stats-bar > div {
    padding: 0 2rem;
  }

  .hero-section .container-fluid > div {
    padding: 0 2rem !important;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions a {
    justify-content: center;
  }
}
