.front{
    max-width: 100%;
    height: 70vh;
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* gap: 50px; */
    background-color:#102355;
}
.front-image img{
    width: 600px;
    height: 300px;
    margin-left: 50px;
}
.front-content{
    width: 40%;
    text-align: left;
    margin-right: 50px;
    margin-left: 60px;
}
.front-content h1{
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}
.front-content p{
    font-size: 20px;
    font-weight: 100;
    color:white;
    line-height: 1.5;
}
.container {
    max-width: 100%;
    height: 130vh;
    margin: 0 auto;
    text-align: center;
}

 .container h1 {
    font-size: 49px;
    font-weight:900;
    margin-bottom: 10px;
    margin-top:30px;
}

.container p{
    font-size: 30px;
    font-weight: 100;
    margin-bottom: 30px;
    color:rgb(49, 48, 48);
   
}

.cards {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 60px 40px;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    flex: 1 1 350px; /* allow flexible width and wrap */
    max-height: 100px;
}

.card.expanded {
    max-height: 500px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header img {
    width: 70px;
    height: 70px;
    padding-top: 10px;
    padding-left: 20px;
}

.card-header h3 {
    margin: 0 10px;
    flex-grow: 1;
    text-align: left;
    font-size: 20px;
    padding-top: 10px;
    padding-left: 10px;
}

.plus {
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
    padding-right: 20px;
}

.card.expanded .plus {
    transform: rotate(45deg);
}

.card-content {
    margin-top: 15px;
    text-align: left;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-height: 0;
}
.card-content p {
    padding: 0 20px 20px 20px;
    font-size: 22px;
}

.card.expanded .card-content {
    opacity: 1;
    max-height: 200px;
}
@media (max-width: 768px) {
    .front {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    .front-image img {
        width: 100%;
        height: auto;
        margin-left: 0;
        margin-bottom: 20px;
    }
    .front-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }
    .front-content h1 {
        font-size: 28px;
    }
    .front-content p {
        font-size: 16px;
    }
    .container {
        height: auto;
        padding: 20px;
    }
    .container h1 {
        font-size: 32px;
    }
    .container p {
        font-size: 18px;
    }
    .cards {
        padding: 20px 10px;
        gap: 10px;
    }
    .card {
        max-height: none;
        flex: 1 1 100%;
    }
    .card-content p {
        font-size: 18px;
    }
}
@media (max-width: 480px) {
    .front {
        padding: 10px;
    }
    .front-image img {
        width: 100%;
        height: auto;
        margin-left: 0;
        margin-bottom: 15px;
    }
    .front-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }
    .front-content h1 {
        font-size: 24px;
    }
    .front-content p {
        font-size: 14px;
    }
    .container {
        padding: 10px;
    }
    .container h1 {
        font-size: 28px;
    }
    .container p {
        font-size: 16px;
    }
    .cards {
        padding: 15px 5px;
        gap: 8px;
    }
    .card {
        max-height: none;
        flex: 1 1 100%;
    }
    .card-content p {
        font-size: 16px;
    }
}



/* <=============================Next-1==============================?> */

.next {
    max-width: 100%;
    height: 150vh;
    margin: 0 auto;
    text-align: center;
    background-color: rgb(203, 212, 215);
}

.next h1 {
    font-size: 49px;
    margin-bottom: 10px;
    padding-top: 20px;
}

.next p {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #101010;
}
.process-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    /* background-color: #fff; */
    border: 1px solid black;
    padding: 20px;
    margin-top: 30px;
    position: relative;
    text-align: left;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    font-weight:bolder;
    font-size: 20px;
    text-align: center;
    line-height: 50px;
    position: absolute;
    top: -30px;
    left: 20px;
    /* border: 2px solid ; */
    box-shadow: #afc9e5 0px 0px 0px 6px;
}
.step-content img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    margin-top: 30px;
}

.step-content h3 {
    margin: 0 0 10px 0;
    font-size: 25px;
}

.step-content p {
    font-size: 18px;
    color: #333;
}
@media (max-width: 768px) {
    .next {
        height: auto;
        padding: 20px 10px;
    }
    .next h1 {
        font-size: 32px;
        padding-top: 10px;
    }
    .next p {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    .process-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    .step {
        margin-top: 20px;
        padding: 15px;
    }
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
        line-height: 40px;
        top: -20px;
        left: 15px;
        box-shadow: #afc9e5 0px 0px 0px 4px;
    }
    .step-content img {
        width: 50px;
        height: 50px;
        margin-top: 20px;
        margin-bottom: 8px;
    }
    .step-content h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .step-content p {
        font-size: 16px;
    }
}
@media (max-width: 480px) {
    .next {
        padding: 15px 8px;
    }
    .next h1 {
        font-size: 26px;
        padding-top: 8px;
    }
    .next p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    .process-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 8px;
    }
    .step {
        margin-top: 15px;
        padding: 10px;
    }
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
        line-height: 35px;
        top: -15px;
        left: 12px;
        box-shadow: #afc9e5 0px 0px 0px 3px;
    }
    .step-content img {
        width: 40px;
        height: 40px;
        margin-top: 15px;
        margin-bottom: 6px;
    }
    .step-content h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    .step-content p {
        font-size: 14px;
    }
}



/* .step:nth-child(1)::after,
.step:nth-child(2)::after,
.step:nth-child(4)::after,
.step:nth-child(5)::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color:black;
    top: 50%;
    right: -40px;
}

.step:nth-child(1)::after {
    top: 50%;
    right: -40px;
}

.step:nth-child(2)::after {
    top: 50%;
    right: -40px;
}

.step:nth-child(4)::after {
    top: 50%;
    right: -40px;
}

.step:nth-child(5)::after {
    top: 50%;
    right: -40px;
}


.step:nth-child(3)::after,
.step:nth-child(6)::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 40px;
    background-color: black;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
} */

/* <==================================Next-2====================================> */
.next-2 {
    max-width: 100%;
    height: 90vh;
    margin: 0 auto;
    text-align: center;
    background-color: #f5f5f5;
}

.next-2 h1 {
    font-size: 49px;
    font-weight: 900;
    margin-bottom: 10px;
    padding-top: 40px;
}

.next-2 p {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #101010;
    padding-top: 10px;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto; /* Each row fits content */
    gap: 0;
    width: 80%;
    margin: 0 auto;
    margin-top: 80px;
}

.element {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    box-sizing: border-box;
    width: 100%;
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 10px;
}


.element img {
    width: 60px;
    height: 60px;
    margin-right: 10px; /* Space between image and text */
}

.element h4 {
    font-size: 16px;
    color: #333;
    margin: 0;
}
@media (max-width: 768px) {
    .next-2 {
        height: auto;
        padding: 20px 10px;
    }
    .next-2 h1 {
        font-size: 32px;
        padding-top: 20px;
    }
    .next-2 p {
        font-size: 16px;
        line-height: 1.4;
        padding-top: 5px;
        margin-bottom: 20px;
    }
    .elements-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        width: 100%;
        gap: 10px;
        margin-top: 40px;
        padding: 0 10px;
    }
    .element {
        height: auto;
        padding: 15px;
    }
    .element img {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }
    .element h4 {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .next-2 {
        padding: 15px 8px;
    }
    .next-2 h1 {
        font-size: 26px;
        padding-top: 15px;
    }
    .next-2 p {
        font-size: 14px;
        line-height: 1.4;
        padding-top: 3px;
        margin-bottom: 15px;
    }
    .elements-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        width: 100%;
        gap: 8px;
        margin-top: 30px;
        padding: 0 8px;
    }
    .element {
        padding: 10px;
    }
    .element img {
        width: 35px;
        height: 35px;
        margin-right: 6px;
    }
    .element h4 {
        font-size: 13px;
    }
}

