@media (max-width: 1024px) {
    /* Top Heading */
    .top-heading h1 {
        font-size: 32px;
    }
    
    .top-heading p {
        font-size: 16px;
        max-width: 90%;
    }

    /* Process Wrapper */
    .process-wrapper {
        width: 90%;
        padding: 30px;
        flex-direction: column;
    }
    
    .tabs {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
    }
    
    .tab {
        white-space: nowrap;
        /* min-width: 150px; */
    }
    
    .content {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
        padding: 20px;
    }
    
    .content p {
        width: 100%;
    }
    
    .content-btn {
        margin-top: 40px;
        width: 100%;
    }

    /* Animated Heading */
    .animated-heading {
        font-size: 40px;
    }
    
    .text-span {
        font-size: 18px;
    }
    
    .word-container {
        width: 200px;
    }

    /* Map Cards */
    .map-bg {
        max-width: 100% !important;
        width: 400px !important;
    }
    
    .map-card {
        padding: 12px 16px;
    }
    
    .job-title {
        font-size: 14px;
    }

    /* Service Buttons */
    .service-btn,
    .service2-btn {
        width: 48%;
        margin-right: 0;
        font-size: 14px;
        padding: 10px;
    }

    /* Container */
    .container {
        padding: 30px;
        gap: 30px;
    }

    /* Step Cards */
    .step-card {
        padding: 20px;
    }
    
    .step-card h3 {
        font-size: 18px;
    }

    /* Image Display */
    .image-display {
        min-height: 400px;
    }

    /* Hero Section */
    .hero {
        padding: 60px 20px;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .side-logo {
        position: static;
        width: 20%;
        margin: 20px auto;
    }
    
    .stats {
        margin-left: 0;
        justify-content: center;
        gap: 30px;
    }

    /* Why Section */
    .why-card {
        flex-direction: column !important;
        text-align: center;
        margin-bottom: 60px;
    }
    
    .why-card.reverse {
        flex-direction: column !important;
    }
    
    .why-text p {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .why-image-box {
        padding: 30px;
    }

    /* Process Block */
    .process-block:not(.reverse) .process-text,
    .process-block.reverse .process-text {
        padding-right: 30px;
        padding-left: 30px;
    }
    
    .process-img {
        max-width: 100%;
        height: 250px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Top Heading */
    .top-heading {
        padding: 30px 15px;
    }
    .common_heading{
        /* margin-top: 52px; */
        font-size: 25px !important;
    }
    #heading{
        margin-top: 67px;
    }
   
    .top-heading h1 {
        font-size: 28px;
    }
    .common_heading h2 {
        font-size: 28px;
    }
    
    .top-heading p {
        font-size: 15px;
    }

    /* Process Wrapper */
    .process-wrapper {
        width: 95%;
        padding: 20px;
    }
    
    .tabs {
        /* flex-direction: column; */
        flex-direction: row;
        text-align: center;
    }
    
    .tab {
        min-width: 70%;
        overflow: hidden;
    }
    
    .content {
        padding: 15px;
    }
    
    .content h1 {
        font-size: 24px;
    }
    
    .content h2 {
        font-size: 20px;
    }

    /* Animated Heading */
    .animated-heading {
        font-size: 32px;
    }
    
    .text-span {
        font-size: 16px;
    }
    
    .word-container {
        width: 190px !important;
        font-size: 42px !important;
    }

    /* Map Cards - Stack them */
    .map-card {
        /* position: relative !important;
        margin: 20px auto;
        top: auto !important;
        left: auto !important;
        display: block; */
                margin-top: 443px;
        margin-left: -152px;
        padding: 5px;
    }
    
    .map-card::after {
        /* display: none; */
    }
    
    .map-card::before {
        /* display: none; */
    }
   
    /* Service Buttons */
    .service-btn,
    .service2-btn {
        width: 70%;
        margin-top: 15px;
        margin-left: 41px;
    }

    /* Container */
    .container {
        padding: 20px;
        gap: 20px;
        flex-direction: column;
    }
    
    .left-section {
        gap: 15px;
    }

    /* Step Cards */
    .step-card {
        padding: 18px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
    }
    
    .step-card h3 {
        font-size: 16px;
    }
    
    .step-card p {
        font-size: 13px;
    }

    /* Image Display */
    .image-display {
        min-height: 300px;
    }

    /* Read More Button */
    .read-more-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    /* Hero Section */
    .hero {
        padding: 40px 15px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .cta-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        margin-bottom: 0;
    }
    
    .stats p {
        font-size: 16px;
    }
    
    .stats span {
        font-size: 20px;
    }
    
    .side-logo {
        width: 30%;
    }
    
    .candidate-card {
        width: 100%;
        max-width: 300px;
        margin-top: 30px;
    }

    /* Why Section */
    .why-section {
        margin: 50px auto;
        padding: 0 15px;
    }
    
    .why-title {
        font-size: 28px;
    }
    
    .why-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .why-card {
        margin-bottom: 50px;
    }
    
    .why-text h3 {
        font-size: 22px;
    }
    
    .why-text p {
        font-size: 15px;
    }
    
    .why-image-box {
        padding: 20px;
    }
    
    .why-image-box img {
        max-width: 100%;
    }

    /* Difference Section */
    .difference_sections {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .process-container::before {
        left: 30px;
    }
    
    .process-block,
    .process-block.reverse {
        flex-direction: column;
        gap: 20px;
        padding: 30px 0 30px 60px;
    }
    
    .process-block::after {
        left: 30px;
        top: 40px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .process-block:not(.reverse) .process-text,
    .process-block.reverse .process-text {
        text-align: left !important;
        padding: 0 !important;
    }
    
    .process-block:not(.reverse) .process-img,
    .process-block.reverse .process-img {
        padding: 0 !important;
    }
    
    .process-text h3 {
        font-size: 20px;
    }
    
    .process-text p {
        font-size: 14px;
    }
    
    .process-img {
        height: 200px;
    }

    /* Flip Cards */
    .d_flexs {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }
    
    .flex_cols_4 {
        max-width: 100%;
    }
    
    .matchmaker_boxs {
        height: 350px;
    }
    
    .card-fronts img {
        width: 120px;
        height: 80px;
    }
    
    .card-fronts h3,
    .card-back h3 {
        font-size: 22px;
    }
    
    .card-fronts p,
    .card-back p {
        font-size: 14px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .top-heading h1 {
        font-size: 24px;
    }
    
    .animated-heading {
        font-size: 26px;
    }
    
    .word-container {
        width: 120px;
        font-size: 26px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .why-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .container {
        padding: 15px;
    }
    
    .image-display {
        min-height: 250px;
    }
    
    .matchmaker_boxs {
        height: 320px;
    }
    
    .card-fronts,
    .card-back {
        padding: 30px 20px;
    }
}

/* Landscape Mobile Fix */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 30px 20px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .image-display {
        min-height: 200px;
    }
}


@media (max-width: 600px) {
   #card1 { top: 248px !important;left: 44% !important; }
   #card2 {        top: 23% !important;
        left: 89% !important;
    } 
   #card3 { top: 210px !important; }
   #card5{top:214px !important}
   #card6{top:258px !important;left: 375px !important;}
   #card9{top: 30% !important ;left: 58% !important}
   #card7{top: 25% !important ;left: 38% !important}
   #card10{top:258px !important;left: 375px !important;}
   #card11{top:26% !important;left: 57% !important;}
   #card12{top:258px !important;left: 375px !important;}

}
@media (max-width: 768px) {
    .process-section {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
        margin: 60px auto;
    }

    .process-left {
        position: relative; /* Not sticky on mobile for better flow */
        top: 0;
    }

    .process-left h2 {
        font-size: 32px;
    }

    .process-left p {
        font-size: 15px;
    }

    .process-btn {
        width: 100%;
    }

    /* Keep sticky effect on mobile */
    .step-card {
        position: sticky;
        top: 80px; /* Adjusted for mobile header */
        margin-bottom: 25px;
        padding: 25px;
    }

    .step-card h3 {
        font-size: 20px;
    }

    .step-card p {
        font-size: 14px;
    }

    /* Maintain overlay effect on mobile */
    .step-card.active {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }

    .step-card.passed {
        transform: scale(0.92);
        opacity: 0.6;
    }
}

@media (max-width: 480px) {
    .process-left h2 {
        font-size: 28px;
    }

    .process-section {
        margin: 40px auto;
    }

    .step-card {
        top: 60px; 
        padding: 20px;
        margin-bottom: 20px;
        padding-bottom: 100px;
    }

    .step-card h3 {
        font-size: 18px;
    }

    .step-card p {
        font-size: 13px;
    }

    .step-label {
        font-size: 12px;
        padding: 5px 10px;
    }
}
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .stats span {
        font-size: 28px;
    }

    .candidate {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .side-logo {
        position: static;
        width: 150px;
        margin: 0 auto 20px;
    }

    .hero-content {
        max-width: 100%;
        padding-top: 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
        max-width: 100%;
    }

    .cta-btn {
        width: 100%;
        padding: 12px 25px;
    }

    .stats {
        justify-content: center;
        gap: 30px;
        margin-top: 30px;
    }

    .stats p {
        text-align: center;
    }

    .candidate {
        max-width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .stats span {
        font-size: 24px;
    }

    .stats p {
        font-size: 15px;
    }

    .side-logo {
        width: 130px;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
       .heros{
        margin-top: -57px;
        overflow: hidden;
       }
    .hero-container,
    .content-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
.content-container{
        margin-bottom: -30px;
}

    .challenge-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    nav {
        padding: 1rem 3%;
    }
       .challenges{
        margin-top: -110px;
       }
           /* .content-container img{
        margin-left: 22px;
        margin-top: 0px !important;

       }
       .content-container.reverse>*{
                margin-top: -20px;

       } */

    .hero,
    .challenges,
    .content-section,
    .process,
    .final-cta,
    footer {
        padding: 3rem 3%;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .challenges h2,
    .process h2,
    .final-cta h2 {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* Force header visibility on desktop */
@media (min-width: 769px) {
    header {
        display: block ;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999 !important;
        background: #fff !important;
    }
    
    .nav_section {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
    }
    
    .nav_top,
    .nav_bottom {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .nav_section ul {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav_section ul li {
       
        margin-bottom: 0 !important;
    }
    
    .nav_section ul li a {
        color: #636363 !important;
        display: block !important;
    }
    
    .mobile_menu_icon {
        display: none !important;
    }
}


