/* Responsive adjustments */
@media (max-width: 768px) {
    .video-section {
        height: 50vh; /* Reduce height for smaller screens */
    }
}

@media (max-width: 480px) {
    .video-section {
        height: 40vh; /* Further reduce height for very small screens */
    }
}







/* General styles for the container */
.container2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Space between cards */
    margin: 0 auto;
}

/* Card styles */
.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    /*width: calc(25% - 44px); /* Default: Four cards per row */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card .intro {
    padding: 15px;
}

.card .text-h1 {
    font-size: 15px;
    color: #ffffff;
    margin: 0px 0;
}

.card .text-p {
    font-size: 1rem;
    color: #007bff;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.card .text-p:hover {
    text-decoration: underline;
}

/* Responsive Breakpoints */
      @media screen and (max-width: 992px) {
         .container2 {
            grid-template-columns: repeat(3, 1fr);
         }
      }

      @media screen and (max-width: 768px) {
         .container2 {
            grid-template-columns: repeat(2, 1fr);
         }
      }

      @media screen and (max-width: 480px) {
         .container2 {
            grid-template-columns: 1fr;
         }
      }




/* Responsive styles for medium screens */
@media (max-width: 992px) {
    .timeline-steps .timeline-step {
        width: calc(33.33% - 20px); /* Three steps per row */
    }
}

/* Responsive styles for small screens */
@media (max-width: 768px) {
    .timeline-steps .timeline-step {
        width: calc(50% - 20px); /* Two steps per row */
    }
}

/* Responsive styles for extra small screens */
@media (max-width: 575px) {
    .timeline-steps {
        flex-direction: column; /* Stack timeline steps vertically */
        align-items: center;
    }

    .timeline-steps .timeline-step {
        width: 100%; /* Full width for each step */
    }

    .timeline-steps .inner-circle {
        width: 15px; /* Adjust size for smaller screens */
        height: 15px;
    }

    .timeline-steps .timeline-content {
        width: auto; /* Adjust content width dynamically */
        text-align: center;
        margin-bottom: 20px; /* Add spacing between steps */
    }
}




 
/* Hide timeline-steps by default (desktop/tablet) */
.timeline-steps {
    display: none;
}

/* Show and style timeline-steps only on mobile (map/timeline scroll design) */
@media (max-width: 767.98px) {
    .timeline-steps {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 20px;
        padding: 16px 0;
        margin: 0 -12px;
        scrollbar-width: thin;
        scrollbar-color: #007bff #f1f1f1;
        background: #f8f9fa;
    }
    .timeline-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 90px;
        position: relative;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        padding: 10px 8px;
        margin-bottom: 8px;
    }
    .inner-circle {
        width: 20px;
        height: 20px;
        background: #007bff;
        border-radius: 50%;
        border: 3px solid #fff;
        box-shadow: 0 0 0 2px #007bff;
        margin-bottom: 6px;
        position: relative;
        z-index: 2;
    }
    .timeline-content p {
        font-size: 0.95rem;
        font-weight: 600;
        color: #222;
        margin: 0;
        text-align: center;
    }
    .timeline-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 13px;
        left: 100%;
        width: 36px;
        height: 3px;
        background: #007bff;
        z-index: 1;
    }
    /* Hide scrollbars for Webkit browsers */
    .timeline-steps::-webkit-scrollbar {
        height: 5px;
        background: #f1f1f1;
    }
    .timeline-steps::-webkit-scrollbar-thumb {
        background: #007bff;
        border-radius: 3px;
    }
}




