@import url("https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Spartan", sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Global Styles */
img {
    border-radius: 20px;
}

h1 {
    font-size: 50px;
    line-height: 64px;
    color: #222;
}

h2 {
    font-size: 46px;
    line-height: 54px;
    color: #222;
}

h4 {
    font-size: 20px;
    color: #222;
}

h6 {
    font-weight: 700;
    font-size: 12px;
}

p {
    font-size: 16px;
    color: #465b52;
    margin: 15px 0 20px 0;
}

a {
    list-style: none;
    text-decoration: none;
}

.section-p1 {
    padding: 40px 80px;
}

.section-m1 {
    margin: 40px 0;
}

button.normal {
    font-size: 14px;
    font-weight: 600;
    padding: 15px 30px;
    color: black;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: 0.2s;
}

button.white {
    font-size: 13px;
    font-weight: 600;
    padding: 11px 18px;
    color: white;
    background-color: transparent;
    cursor: pointer;
    border: 1px solid white;
    outline: none;
    transition: 0.2s;
}


body {
    width: 100%;
}

/* end of global */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    background-color: #e3e6f3;
    padding: 20px;
    padding-left: 40px;
    padding-right: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
}

.navbar .left {
    margin-left: 30px;
}

.right {
    margin-right: 30px;
}

.right ul {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    list-style: none;
    gap: 20px;
}

.right ul li {
    list-style: none;
}

#close {
    display: none;
}

#mobile {
    align-items: center;
    display: none;
    font-size: 25px;
    text-align: center;
}

#mobile i {
    margin-top: -4px;
}


ul li a:hover,
ul li a.active {
    color: #088178;
}

ul li a.active::after,
ul li a:hover::after {
    content: "";
    width: 30%;
    height: 2px;
    background: #088178;
    position: absolute;
    bottom: -4px;
    left: 20px;
}

/* end of navbar */

.main {
    background-image: url(./img/hero4.png);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 90vh;
    background-size: cover;
    background-position: top 25% right 0%;
    padding-left: 60px;
}

.main span {
    color: #406e5a;
}

.main button {
    background-image: url(./img/button.png);
    background-color: transparent;
    width: 205px;
    padding-top: 22px;
    padding-left: 30px;
    padding-right: 33px;
    padding-bottom: 9px;
    border: none;
    font-size: 18px;
    background-repeat: no-repeat;
    font-weight: bold;
}

.main button a {
    color: #088178;
}

/* products */

.products {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 10px;
}

.card {
    width: 210px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    border: 1px solid #cce7d0;
    border-radius: 10px;
}

.card:hover {
    box-shadow: 10px 10px 54px rgba(0, 0, 0, 0.1);
}

.products .card img {
    margin-top: 10px;
    width: 150px;
}

.products .card .img {
    width: 44%;
    margin-bottom: 10px;
}

.products .card h6 {
    width: 90px;
    border: 2px;
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #088178;
    background-color: #fddde4;
    border-radius: 10px;
    border-radius: 4px;
    text-align: center;
    padding: 9px 8px 6px 8px;
}

.products .card:nth-child(2) h6 {
    background-color: #cdebbc;
}

.products .card:nth-child(3) h6 {
    background-color: #d1e8f2;
}

.products .card:nth-child(4) h6 {
    background-color: #cdd4f8;
}

.products .card:nth-child(5) h6 {
    background-color: #f6dbf6;
}

.products .card:nth-child(6) h6 {
    background-color: #fff2e5;
}

/* end of products */
.dlt-btn {
    display: block;
    width: 100%;
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    /* Safe spacing pushing it down from the price */
    font-weight: 600;
    transition: background 0.2s ease;
}

.dlt-btn:hover {
    cursor: pointer;
    background-color: #721c1c34;
}

.feature {
    /* Keep this to stack the main heading above the cards */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Changed from space-between to prevent awkward vertical gaps */

    width: 100%;
    /* REMOVE or change height: 90vh; to min-height: 90vh; */
    min-height: 90vh;
    /* This lets the section grow if cards wrap to a new row */

    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 40px;
    /* Cleaned up padding for consistency */
    padding-top: 10px;
}

.feature h1 {
    text-align: center;
    /* Adds space between the title and your cards */
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* CRITICAL: This allows your cards to drop to the next line */
    width: 100%;
    /* Forces container to respect screen boundaries */
    gap: 20px;
    /* Modern way to add spacing between wrapped cards clean and easily */
}

.cards {
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    border: 1px solid #cce7d0;
    border-radius: 10px;
}

.cards:hover {
    box-shadow: 10px 10px 54px rgba(0, 0, 0, 0.1);
}

.feature .cards img {
    margin-top: 10px;
    width: 230px;
}

.cards .star i {
    color: goldenrod;
}

.feature .cards h6 {
    width: 90px;
    border: 2px;
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #088178;
    background-color: #fddde4;
    border-radius: 10px;
    border-radius: 4px;
    text-align: center;
    padding: 9px 8px 6px 8px;
}

.feature .cards .img {
    width: 60%;
    margin-bottom: 10px;
}

.desc {
    text-align: center;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 140px;
    padding-bottom: 12px;
    align-items: center;
}

.desc-2 {
    text-align: center;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 105px;
    padding-bottom: 12px;
    align-items: center;
}

.desc p {
    margin: 0;
    margin-top: 5px;
}

.desc h4 {
    margin-bottom: 5px;
    color: #088178;
}

.desc i {
    font-size: 20px;
}

.desc i:hover {
    color: #088178;
}

/* end of products */

.banner {
    margin-top: 20px;
    margin-bottom: 20px;
    background-image: url(./img/banner/b2\ \(1\).jpg);
    width: 100%;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.banner h1 {
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 10px;
    color: white;
}

.banner h1 span {
    color: crimson;
}

.banner button {
    width: 120px;
    height: 41px;
    border-radius: 20px;
    border: none;
}

.banner button:hover {
    cursor: pointer;
    background-color: #088178;
    color: white;
}

.main-poster {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 70vh;
    width: 100%;
    padding-left: 30px;
}

.main-poster .left {
    background-image: url(./img/banner/b17.jpg);
    display: flex;
    justify-content: flex-start;
    background-size: cover;
    width: 100%;
    height: 50vh;
}

.main-poster .right {
    background-image: url(./img/banner/b10.jpg);
    display: flex;
    justify-content: flex-start;
    background-size: cover;
    width: 100%;
    height: 50vh;
}

.main-poster .title {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    text-align: center;
    padding-left: 20px;
    color: white;
}

.main-poster .title h4 {
    color: white;
}

.main-poster .title h2 {
    color: white;
}

.main-poster .title span {
    color: white;
    padding-bottom: 8px;
}

.main-poster .title button {
    width: 107px;
    height: 40px;
    border: 1px solid white;
    color: white;
    background-color: transparent;
    margin-bottom: 10px;
    margin-top: 5px;
}

.main-poster .title button:hover {
    background-color: #088178;
    cursor: pointer;
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


footer .col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

footer .logo {
    margin-bottom: 30px;
}

footer h4 {
    font-size: 14px;
    padding-bottom: 20px;

}

footer p {
    font-size: 13px;
    margin: 0 0 8px 0;

}

footer a {
    font-size: 13px;
    text-decoration: none;
    color: black;
    margin-bottom: 10px;

}

footer .follow {
    margin-top: 20px;
}

footer .follow i {
    color: #465b52;
    padding-right: 4px;
    cursor: pointer;
}

footer .install .row img {
    border: 1px solid #088178;
    border-radius: 6px;

}

footer .install img {
    margin: 10px 0 15px 0;

}

footer .followi:hover,
footer a:hover {
    color: #088178;
}

footer .copyright {
    width: 100%;
    text-align: center;
}

/* responsive */
@media (max-width:799px) {
    .navbar .right ul {
        flex-direction: column;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 300px;
        background-color: #E3E6F3;
        box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
        padding: 80px 0 0 10px;
        transition: 0.3s;
    }

    .navbar #mobile {
        display: flex;
        align-items: center;
    }

    .navbar .right ul.active {
        right: 0;
    }

    #close {
        display: initial;
        position: absolute;
        top: 40px;
        font-size: 20px;
    }

    .main {
        height: 60vh;

        background-position: top 35% right 35%;
    }

    .main h1 {
        font-size: 30px;
        padding: 0;
        margin: 0;
    }

    .products {
        justify-content: center;
    }



    .main-poster {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100%;
        min-height: auto;
        /* Let it expand naturally with the stacked content */
        height: auto;
        /* Overrides the global 70vh restriction */
        margin: 0;
        padding: 0 15px;
    }

    .main-poster .left,
    .right {
        margin: 0;
        padding: 0;
    }

    .banner {
        display: flex;
        flex-direction: column;
    }

    .banner h1 {
        font-size: 25px;
    }
}

@media(max-width:590px) {
    .products {
        gap: 0;
    }

    .products .card {
        width: 170px;
    }

    .products .card .img {
        width: 55%;
    }
}

@media(max-width:500px) {

    .navbar .left {
        margin-left: 0px;
    }

    .main {
        padding-left: 22px;
    }
}