/* models section */
.models {
    padding: 30px;
}

.models .divider {
    background-color: var(--text);
    height: 1px;
    width: 100%;
    margin: 0 auto;
}

.model img {
    width: 100%;
    margin-top: 30px;
    box-shadow: 3px 3px 15px 0px rgba(0, 0, 0, 0.3);
}

.model:first-child img {
    margin-top: 0;
}

.model h1 {
    font-size: 30px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 20px;
}

.specsDetails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    text-align: left;
    justify-items: start;
}

.specsDetails p {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 5px;
}

.specsDetails p:last-child {
    margin-bottom: 0;
}

.specsDetails p i {
    margin-right: 5px;
}

.model a {
    display: inline-block;
    padding: 10px 40px;
    margin: 30px 0;
    text-decoration: none;
    background-color: transparent;
    border: 2px solid var(--text); /* Border color */
    border-radius: 25px; /* Adjust this value for the button's roundness */
    color: var(--text); /* Text color */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.model:last-child a {
    margin: 30px 0 0 0;
}

.model a:hover {
    background-color: var(--yellow); /* Background color on hover */
    border: 2px solid var(--yellow); /* Border color */
    color: #fff; /* Text color on hover */
    transform: scale(1.05); /* Scale the button on hover for a cool animation */
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

    .models {
        padding: 40px 100px;
    }

}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 1024px) {

    .models {
        padding: 50px 150px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px 10px;
    }

    .models .model {
        flex: 0 0 calc(50% - 20px);
        margin: 0 10px 10px 0;
    }

    .model img {
        margin-top: 0;
    }

    .model a {
        margin-bottom: 0;
    }

    .models .divider {
        display: none;
    }

}

/* Extra large devices (large laptops) */
@media only screen and (min-width: 1440px) {

    .models {
        padding: 60px 400px;
    }

}

/* Extra large devices (Desktops) */
@media only screen and (min-width: 1920px) {

    .models {
        padding: 60px 500px;
    }

    .model p {
        font-size: 20px;
    }

}

/* Extra large devices (Large Desktops) */
@media only screen and (min-width: 2560px) {

    .models .model {
        flex: 0 0 calc(33.33% - 20px);
    }

}