
/* Importing Google font - Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background: #ecececdb;
}

.box-stock{
    margin-top: 10px;
    width: 500px;
    background: #d7d6e9;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 5px;
    border: 6px solid #d7d6e9
}

.box-stock p{
    font-weight: bold;
    color: red;
    margin-bottom: 10px;
}

marquee a{
    background-color: #ffba5a;
    opacity: 0.9;
    border-radius: 4px;
    color: #000000;
    padding: 5px 40px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    font-size: 15px;
    margin: 10px 30px;
    cursor: pointer;
    text-decoration: none;
}

.card-list {
    margin: 0 auto;
    display: flex; /* Use Flexbox */
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: center; /* Center the grid items */
    max-width: 1250px;
    padding: 10px;
    gap: 20px;
}

.card-list .card-item {
    background: #fff;
    padding: 0 0 17px 0;
    border-radius: 8px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.04);
    list-style: none;
    text-decoration: none;
    transition: border 0.5s ease;
    flex: 1 1 calc(33.333% - 20px); /* Adjust this based on the desired number of columns */
    max-width: calc(33.333% - 20px); /* Ensure the max width matches the flex basis */
}

.card-list .card-item:hover {
    border: 1px solid #0264b3;
}

.card-list .card-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
}

.card-list span {
    display: inline-block;
    background: #F7DFF5;
    margin-top: 32px;
    padding: 8px 15px;
    font-size: 0.75rem;
    border-radius: 50px;
    font-weight: 600;
}

.card-item h3 {
    color: #000;
    margin: 15px 0px 15px 0px;
    font-size: 17px;
    text-align: center;
    font-weight: 500;
}

.card-item p {
    color: #000;
    margin-top: 10px;
    font-size: 15px;
    text-align: center;
}

@media screen and (max-width: 980px) {
    .card-list {
        margin: 0 auto;
        justify-content: center; /* Ensure centering on smaller screens */
    }

    .card-list .card-item {
        flex: 1 1 calc(50% - 20px); /* Adjust for 2 columns on smaller screens */
        max-width: calc(50% - 20px); /* Ensure the max width matches the flex basis */
    }

    
.box-stock{
    width: 400px;
}
}

@media screen and (max-width: 600px) {
    .card-list .card-item {
        flex: 1 1 100%; /* Full width on very small screens */
        max-width: 100%;
    }

    .box-stock{
        width: 80%;
    }
}



/* for button */
.button {
    display: inline-block;
    padding: 6px 24px;
    border: 1px solid #0264b3;
    border-radius: 4px;
    transition: all 0.2s ease-in;
    position: relative;
    overflow: hidden;
    font-size: 17px;
    cursor: pointer;
    height: 40px;
    color: white;
    background-color: #0264b3;
    z-index: 1;
  }
  
  .button:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
  }
  
  .button:after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: #0264b3;
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
  }
  
  .button:hover {
    color: #0264b3; /* Change text color on hover */
    background-color: #0264b3; /* Change background color on hover */
    border: 1px solid #0264b3; /* Change border color on hover */
  }
  
  .button:hover:before {
    top: -35%;
    background-color: white;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
  }
  
  .button:hover:after {
    top: -45%;
    background-color: white;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
  }
  