@media (max-width: 1920px) {
    .header.custome-header .logo a img {
        width: 180px;
        height: 50px;
    }

    .custome-header .nav a {
        font-size: var(--font-18px);
    }
}

@media (max-width: 1700px) {}

@media (max-width: 1599.98px) {
    .header.custome-header .logo a img {
        width: 160px;
        height: 40px;
    }
    .custome-header .nav a {
        font-size: var(--font-16px);
    }

    .common-heading h1 { 
        font-size: var(--font-60px);
    }
}

@media (max-width: 1500px) {}

@media (max-width: 1440px) {}

@media (max-width: 1300px) {
    .custome-header .nav ul {
        gap: 20px;
    }
}

@media (max-width: 1240px) {
    .custome-header .nav a {
        font-size: var(--font-14px);
    }
}

@media (max-width: 1200px) {
    .common-heading h1 {
        font-size: var(--font-48px);
    }

    .dev-services-content {
        padding-right: 60px;
    }

    .dev-services-title {
        font-size: var(--font-40px);
    }

    /* Services section: reduce card top offsets for smaller desktops */
    .services-card:nth-child(1) { top: 100px; }
    .services-card:nth-child(2) { top: 150px; }
    .services-card:nth-child(3) { top: 200px; }
    .services-card:nth-child(4) { top: 250px; }
    .services-card:nth-child(5) { top: 300px; }
}

@media (max-width: 1140px) {
    .middle-container {
        padding: 0 60px;
    }

    .banner-grid {
        grid-template-columns: 1fr 440px;
        gap: 40px;
    }

    .banner-title {
        font-size: var(--font-48px);
    }
}

@media (max-width: 1024px) {
    /* Services section: further reduce card top offsets for small desktops */
    .services-card:nth-child(1) { top: 90px; }
    .services-card:nth-child(2) { top: 140px; }
    .services-card:nth-child(3) { top: 190px; }
    .services-card:nth-child(4) { top: 240px; }
    .services-card:nth-child(5) { top: 290px; }

    .services-card {
        padding: 24px 28px;
        min-height: 260px;
    }
}

@media (max-width: 992px) {
    .middle-container {
        padding: 0 25px;
    }

    .section-padding-top {
        padding-top: 35px !important;
    } 

    .section-padding-bottom {
        padding-bottom: 35px !important;
    }

    /* Stack the hero: copy on top, form card below, both full width */
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    button#rmp_menu_trigger-2151 {
        background-color: #1d4354 !important;
        border-radius: 2px !important;
    }
    .banner-content-wrapper {
        align-items: center;
        text-align: center;
    }

    .banner-title {
        font-size: var(--font-44px);
        text-align: center;
    }

    .banner-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .banner-form-card {
        max-width: 560px;
        margin: 0 auto;
    }

    .header {
        background: var(--bg-light-blue);
    }

    .custome-header .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .custome-header .nav ul {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        display: none;
        padding: 20px 0;
        align-items: center;
        gap: 25px;
    }
    .custome-header .nav ul.show {
        display: flex;
    }
    .overlay-content li {
        margin-bottom: 24px;
    }
    .overlay-content li:last-child {
        margin-bottom: 0;
    }
    .overlay-content li a {
        font-size: var(--font-16px);
    }
    .overlay-content {
        padding-left: 50px;
        width: 100%;
        margin-top: 50px;
        justify-content: start;
    }
    .desktop-menu-overlay {
        top: 70px;
        background: rgba(0, 0, 0, 0.9);
    }

    .common-heading h2 br {
        display: none;
    }

    .common-heading h2 {
        font-size: var(--font-34px);
    }

    .section-padding-top {
        padding-top: 35px !important;
    }

    .section-padding-bottom {
        padding-bottom: 35px !important;
    }

    .common-heading h1 {
        font-size: var(--font-42px);
    }

    .dev-services-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dev-services-visual {
        order: -1;
    }

    .dev-services-visual img {
        max-height: 420px;
        object-position: center;
    }

    .dev-services-content {
        padding: 0 25px;
    }

    .dev-services-title {
        font-size: var(--font-38px);
    }

    .dev-services-content::after {
        background-position: right bottom;
    }
    
    .services-offer-title {
        font-size: var(--font-38px);
    }

    .services-offer-heading {
        margin-bottom: 40px;
    }

    .services-steps {
        position: static;
        margin-bottom: 40px;
    }
    
    .services-card,
    .services-card:nth-child(1),
    .services-card:nth-child(2),
    .services-card:nth-child(3),
    .services-card:nth-child(4),
    .services-card:nth-child(5),
    .services-card:last-child {
        position: relative;
        top: auto;
        margin: 0 auto 24px;
        min-height: auto;
        padding: 24px 28px;
    }

    .services-steps::before {
        display: none;
    }

    /* Timeline mobile/tablet layout is defined authoritatively in style.css */

    .services-card {
        max-width: 100%;
    }

    .services-card:nth-child(1) {
        transform: rotate(0deg)
    }

    .services-card:nth-child(2) {
        transform: rotate(0deg)
    }

    .services-card:nth-child(3) {
        transform: rotate(0deg)
    }

    .services-card:nth-child(4) {
        transform: rotate(0deg);
    }

    .services-card:nth-child(5) {
        transform: rotate(0deg);
    }
}

@media (max-width: 768px) {
    .dev-services-features {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .dev-services-title {
        font-size: var(--font-32px);
    }

    .dev-services-title br {
        display: none;
    }

    .services-offer-title {
        font-size: var(--font-32px);
    }

    .services-step-label {
        font-size: var(--font-18px);
    }

    .services-step {
        gap: 16px;
        padding: 10px 0;
    }

    .services-step-num {
        width: 34px;
        height: 34px;
        font-size: var(--font-14px);
    }

    .services-card {
        padding: 20px 22px;
        border-radius: 18px;
    }

    .services-card-num {
        font-size: var(--font-32px);
    }

    .services-card-title {
        font-size: var(--font-22px);
    }

    .services-card-desc {
        font-size: var(--font-14px);
        margin-bottom: 20px;
    }

    .small-heading {
        font-size: var(--font-18px);
    }

    .common-heading h2 {
        font-size: var(--font-30px);
    }

    .common-heading h1 {
        font-size: var(--font-34px);
    }

    .heading-badge span {
        font-size: var(--font-16px);
    }

    .marquee-item {
        padding: 10px 35px;
    }

    .marquee-item img {
        height: 32px;
    }

    .banner-title {
        font-size: var(--font-40px);
    }

    .banner-form-card {
        padding: 28px 26px;
    }
}

@media (max-width: 576px) {
    .common-heading h2 {
        font-size: var(--font-26px);
    }

    .common-heading h1 {
        font-size: var(--font-30px);
    }

    .heading-badge span {
        font-size: var(--font-14px);
    }

    .services-card {
        padding: 16px 18px;
        border-radius: 14px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    }

    .services-card-num {
        font-size: var(--font-28px);
    }

    .services-card-title {
        font-size: var(--font-20px);
    }

    .services-card-desc {
        font-size: var(--font-13px);
        margin-bottom: 16px;
    }

    .services-step-num {
        width: 30px;
        height: 30px;
        font-size: var(--font-12px);
    }

    .services-step-label {
        font-size: var(--font-16px);
    }

    .marquee-item {
        padding: 10px 28px;
    }

    .marquee-item img {
        height: 26px;
    }
}

@media (max-width: 475px) {
    .common-heading h1 {
        font-size: var(--font-28px);
    }

    .banner-form-card {
        padding: 24px 20px;
    }

    .banner-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .services-card {
        padding: 14px 16px;
    }

    .services-card-title {
        font-size: var(--font-18px);
    }

    .services-card-body {
        margin-top: 16px;
    }
}

@media (max-width: 426px) {
    .common-heading h2 {
        font-size: var(--font-24px);
    }

    .banner-title {
        font-size: var(--font-34px);
    }
}

@media (max-width: 320px) {
    .services-card {
        padding: 12px 14px;
    }

    .services-card-num {
        font-size: var(--font-24px);
    }

    .services-card-title {
        font-size: var(--font-16px);
    }

    .services-card-desc {
        font-size: var(--font-12px);
    }
}