
/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .brand-grid {
        gap: 2rem;
    }
    
    .brand-logo {
        max-width: 180px;
        max-height: 70px;
    }
     .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-image {
        height: 160px;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
}
@media (max-width: 992px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    .hero-img {
        height: 60vh;
    }
    .trusted-section {
        text-align: center;
    }
    
    .trusted-desc {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .brand-logo {
        max-width: 160px;
        max-height: 65px;
    }
    .abt-left-ms {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .abt-main-image-ms {
        height: 400px;
    }
    .service-card {
        padding: 2rem 1.25rem;
    }
    
    .service-image {
        height: 150px;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .service-desc {
        font-size: 0.9rem;
    }

    .stats-main-number {
        font-size: 3.5rem;
    }

    .stats-heading {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .stats-row {
        gap: 50px;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .stat-icon {
        font-size: 40px;
    }
     .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
       .hero-section {
        height: auto;
        padding: 60px 0;
        text-align: center;
    }

    .hero-inner {
        flex-direction: column;
        gap: 50px;
    }

    .play-box {
        margin-right: 0;
    }

    .hero-content {
        max-width: 90%;
        
    }

     .history-container-ms {
        flex-direction: column;      /* stack vertically */
    }

    .history-left1,
    .history-right1 {
        width: 100%;
        height: auto;                /* auto height for mobile */
    }

    .history-left1 {
        order: 1;                    /* IMAGE FIRST */
    }

    .history-right1 {
        order: 2;                    /* CONTENT AFTER */
        padding: 20px;
    }
    .history-title1 {
        font-size: 38px;
        line-height: 1.3;
    }

    .history-text1 {
        font-size: 1rem;
        max-width: 100%;
    }

    .history-label1 {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }
    .history-container-ms:nth-child(2) {
        flex-direction: column;
    }

    .history-container-ms:nth-child(2) .history-left1 {
        order: 1;     /* image first */
    }

    .history-container-ms:nth-child(2) .history-right1 {
        order: 2;     /* text after */
    }

     .contact-box {
        flex-direction: column;
        box-shadow: none;
    }

    .contact-left {
        width: 100%;
        padding: 25px;
    }

    .contact-right {
        width: 100%;
        height: 350px;
        margin: 0;
    }

    .contact-main-title {
        font-size: 30px;
    }
       .other-header {
        height: 50vh; /* Tablet par height thodi kam */
        min-height: 400px; /* Content safety ke liye */
    }

    .other-header-title {
        font-size: 3rem; /* Title thoda chota */
    }

    .page-title-box {
        padding: 40px 30px; /* Box padding kam ki */
        width: 90%; /* Side mein gap maintain karne ke liye */
    }

    .floating-title-section {
        margin-top: -80px; /* Overlap thoda kam */
    }
  
}


@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .custom-caption {
        width: 90%;
    }
    
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .brand-logo {
        max-width: 140px;
        max-height: 60px;
    }
    
    .trusted-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .trusted-desc {
        font-size: 1rem;
    }
    
    .abt-main-image-ms {
        height: 300px;
    }
     .newsletter-box {
        flex-direction: column;
    }

    .newsletter-input,
    .newsletter-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-bottom {
        text-align: center;
    }
    .social-icons{
        display: none;
    }
     .services-section {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 1.75rem 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .service-image {
        height: 140px;
        margin-bottom: 1rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    .stats-section {
        padding: 70px 0;
    }

    .stats-main-number {
        font-size: 2.8rem;
    }

    .stats-heading {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 35px;
    }

    .stats-row {
        gap: 35px;
    }

    .stat-box {
        width: 45%;
    }

    .stat-icon {
        font-size: 35px;
    }

    .stat-value {
        font-size: 2rem;
    }
     .values-title {
        font-size: 1.8rem;
    }

    .values-subtitle {
        font-size: 1rem;
        max-width: 90%;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-title {
        font-size: 2rem;
        text-align: center;
    }

    .news-subtitle {
        text-align: center;
    }
        .play-box {
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
     .history-right1 {
        padding: 25px;
        text-align: center;
    }

    .history-title1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .history-text1 {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .history-label1 {
        font-size: 0.8rem;
    }

    /* Header Background Area */
    .other-header {
        height: auto; /* Fixed height hata di taaki content kate nahi */
        min-height: 350px;
        padding-top: 100px; /* Navbar ke liye space */
        padding-bottom: 80px; /* Box overlap ke liye space */
    }

    /* Header Main Title */
    .other-header-title {
        font-size: 2.2rem; /* Mobile pe readable size */
        margin-bottom: 10px;
    }

    /* Header Description */
    .other-header-desc {
        font-size: 1rem;
        padding: 0 10px; /* Text edge se na chipke */
        display: none; /* OPTIONAL: Agar header jyada bhara lage to desc hide kar sakte hain, warna delete kar dein */
    }

    /* Floating White Box Container */
    .floating-title-section {
        margin-top: -60px; /* Mobile pe overlap aur kam */
        padding-bottom: 30px;
    }

    /* The White Box Itself */
    .page-title-box {
        padding: 30px 20px;
        width: 95%; /* Mobile pe full width jaisa, thoda gap */
        box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
    }

    /* Title inside Box ("Our Expertise") */
    .page-main-title {
        font-size: 1.8rem;
        margin-top: 5px;
    }

    /* Breadcrumbs */
    .page-breadcrumb {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .brand-logo {
        max-width: 120px;
        max-height: 50px;
    }
    
    .brand-item {
        height: 80px;
    }
    
    .abt-btn-ms,
    .discover-btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    .footer-top-row {
    gap: 10px;
  }
  .social-icons,
  .footer-policy-links {
    flex-basis: 50%;      /* half row each → left & right */
  }
  .footer-policy-links {
    text-align: right;    /* policy right pe chipke */
  }
  .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-image {
        height: 130px;
    }
    
    .service-title {
        font-size: 1.15rem;
    }
    
    .service-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .service-link {
        font-size: 0.8rem;
    }
    .stats-main-number {
        font-size: 2.2rem;
    }

    .stats-heading {
        font-size: 1.25rem;
        margin-bottom: 30px;
    }

    .stats-row {
        gap: 25px;
    }

    .stat-box {
        width: 100%;
    }

    .stat-icon {
        font-size: 32px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
        .play-box {
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .history-title1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .history-text1 {
        font-size: 0.9rem;
    }

    .history-label1 {
        font-size: 0.75rem;
    }

     .contact-wrapper {
        padding: 60px 0 40px;
    }

    .contact-top {
        margin-bottom: 25px;
    }

    .contact-mini-title {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .contact-main-title {
        font-size: 26px;
        line-height: 1.3;
    }

    /* Form spacing fix */
    .contact-left {
        padding: 20px;
    }

    .contact-input,
    .contact-textarea {
        font-size: 14px;
        padding: 9px 10px;
    }

    .contact-textarea {
        height: 120px;
    }

    .contact-btn {
        font-size: 16px;
        padding: 12px;
    }

    /* MAP HEIGHT FIX */
    .contact-right {
        height: 260px;
    }

    .contact-right iframe {
        height: 100%;
    }

}

@media (max-width: 400px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .brand-logo {
        max-width: 100px;
        max-height: 45px;
    }
    .history-title1 {
        font-size: 24px;
    }

    .history-text1 {
        font-size: 0.85rem;
    }

    .history-label1 {
        font-size: 0.7rem;
    }
    .other-header-title {
        font-size: 1.8rem;
    }
    .page-main-title {
        font-size: 1.5rem;
    }
    .page-title-box {
        padding: 20px 15px;
    }
}