/* Home page responsive rules */

/* Mobile devices */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }



    .navigation {
        order: 3;
        width: 100%;
        height: 45%;
        top: 7%;
    }

    .navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .hero-section {
        /* margin-top: 95px; */
        padding: 0px 0 24px;
    }

    .hero-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-left h1 {
        font-size: 36px;
        line-height: 1.08;
    }

    .hero-left p {
        width: 100%;
        font-size: 18px;
        margin-top: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 14px;
    }

    .hero-buttons .btn-light,
    .hero-buttons .btn-gradient {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 18px;
    }

    .hero-image {
        width: 100%;
        min-height: 320px;
        border-radius: 30px;
    }

    .hero-image img {
        height: auto;
    }

    .experience-box {
        left: 12px;
        bottom: 16px;
        width: 150px;
        height: 150px;
    }

    .top-marquee {
        height: auto;
        padding: 18px 0;
    }

    .marquee-content {
        gap: 20px;
    }

    .marquee-item span {
        font-size: 16px;
    }

    .about-wrapper,
    .compliance-wrapper,
    .services-wrapper,
    .mission-grid,
    .stats-grid,
    .team-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-content,
    .compliance-content,
    .about-image,
    .compliance-image {
        width: 100%;
    }

    .about-image img,
    .compliance-image img {
        height: auto;
    }
}

/* HD devices */
@media (min-width: 1280px) and (max-width: 1599px) {
    .container {
        max-width: 1180px;
        padding: 0 30px;
    }

    .hero-wrapper {
        gap: 50px;
    }

    .hero-left h1 {
        font-size: 56px;
    }

    .hero-left p {
        width: 100%;
    }

    .hero-image {
        max-width: 560px;
    }
}

/* Full HD devices */
@media (min-width: 1600px) and (max-width: 1919px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }

    .hero-left h1 {
        font-size: 60px;
    }

    .hero-image {
        min-height: 560px;
    }
}

/* Mac devices and large retina screens */
@media screen and (min-width: 1920px) {
    .container {
        max-width: 1700px;
        padding: 0 48px;
    }

    .hero-left h1 {
        font-size: 72px;
    }

    .hero-left p {
        font-size: 22px;
        max-width: 720px;
    }

    .hero-image {
        min-height: 620px;
    }
}

/* Mobile improvements for knowledge and why-choose sections */
@media (max-width: 767px) {
    .knowledge-wrapper {
        grid-template-columns: 1fr;
        /* gap: 24px; */
        height: auto;
    }

    .info-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .knowledge-image,
    .knowledge-content {
        width: 100%;
        min-height: auto;
        height: auto;
    }

    .content-inner {
        padding: 38px 20px;
    }

    .knowledge-content h2 {
        font-size: 40px;
        line-height: 1.15;
        letter-spacing: -1px;
    }

    .why-heading h2 {
        font-size: 42px;
        line-height: 1.05;
    }

    .why-heading p {
        font-size: 18px;
        max-width: 100%;
        margin: 0 auto;
    }

    .why-process {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .process-item,
    .process-arrow {
        justify-content: center;
    }

    .process-item {
        text-align: center;
    }

    .circle {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .circle i {
        font-size: 48px;
    }

    .process-arrow {
        height: auto;
    }

    .process-arrow i {
        font-size: 50px;
    }

    .process-item h4 {
        font-size: 18px;
    }

    .process-item p {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* Strong mobile override for knowledge section */
@media (max-width: 576px) {
    .client-card {
        height: 70px;
        border-radius: 5px;
    }

    .knowledge-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        /* gap: 20px; */
        height: auto;
    }

    .knowledge-image,
    .knowledge-content {
        width: 100%;
        height: auto !important;
        min-height: auto !important;
        overflow: visible;
    }

    .knowledge-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .knowledge-content {
        align-items: flex-start;
        padding: 0;
    }

    .content-inner {
        padding: 24px 18px;
    }

    .knowledge-content h2 {
        font-size: 32px;
        line-height: 1.12;
        letter-spacing: -0.5px;
        margin: 0;
    }
}