@import url('https://fonts.googleapis.com/css2?family=Faster+One&family=Monoton&family=Righteous&family=Tilt+Warp&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Faster+One&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Monoton&family=Righteous&family=Tilt+Warp&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ancizar+Serif:ital,wght@0,300..900;1,300..900&family=Fugaz+One&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    transition: 0.8s;
  }


.productname{
    position: relative;
    text-align: center;
    font-size: auto;
    font-family: "Playfair", serif;
    font-weight: 600;
    font-style: normal;    color: rgb(0, 0, 0);
}

.subpagebanner{
    width: 100%;
    position: relative;
}
.product_list{
    position: relative;
    top: 10rem;
}
.subpagebanner img{
    width: 100%;
    height: 20rem;
    opacity: 0.2;
}

.textbox{
    color: rgb(11, 11, 11);
    position: absolute;
    display: flex;
    width: 100%;
    top: 25%;
  }
  
  .textbox h1{
    font-size: 3rem;
    position: relative;
    left: 40%;
    line-height: 55px;
    color: transparent;
    -webkit-text-stroke: 0.1px rgb(187, 26, 26);
    background: url(back.png) repeat;
    -webkit-background-clip: text;
    background-position: 0 0;
    font-family: 'Josefin Sans', sans-serif;
    animation:back 40s linear infinite;
  } 
  
  @keyframes back{
    100%{
        background-position: 2000px 0;
    }
  }


  
    .addpagefunctions {
        height: 3.5rem;
        top: -2.9rem;
        position: relative;
        overflow: hidden;
        width: 100%;
        border-bottom: 12px;
        background-image: linear-gradient(rgba(232, 232, 233, 0.767),white);
    }
    .pagination {
        position: relative;
        top: 2.2rem;
        left: 10%;
        width: 80%;
        z-index: 0;
    }

    @media (min-width: 1000px) {
        .filter-large {
            display: flex;
            gap: 10px;
            align-items: end;
            flex-wrap: wrap;
        }
        .filter-large > * {
            min-width: 150px;
        }
    }

    @media (max-width: 1000px) {
        .filter-small .dropdown-menu {
            padding: 20px;
            width: 100%;
            background-color: rgba(35, 35, 35, 0.849);
            z-index: 1055;
            color: aliceblue;
            position: relative;
        }
        .addpagefunctions {
            overflow: visible;
        }
        .filter-small .dropdown-menu input,
        .filter-small .dropdown-menu select {
            margin-bottom: 10px;
        }
        
    .addpagefunctions {
        background:rgba(122, 122, 122, 0.804);
        height: 2.4rem;
    }
    }

    @media (max-width: 999px) {
        .filtercetogy {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .filtercetogy .form-control,
        .filtercetogy .form-select,
        .filtercetogy .btn {
            width: 100%;
            margin-bottom: 10px;
        }
    }

    @media (max-width: 768px) {
        .filter-group {
            flex-direction: column;
            align-items: stretch;
        }

        .filter-group input,
        .filter-group select,
        .filter-group button {
            width: 100%;
        }
    }

  .card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch; /* Ensures cards align with the tallest card */
}

.card {
    background-color: white;
    border-radius: 5px;
    margin: 10px;
    padding: 20px;
    flex: 1 1 calc(33.333% - 20px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex; /* Enables flex layout inside cards */
    flex-direction: column; /* Aligns content vertically */
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 5px 5px 0 0;
}

.card h2,
.card p,
.card .read-more {
    margin: 10px 0;
}

.read-more {
    display: inline-block;
    margin-top: auto; /* Pushes the button to the bottom */
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.read-more:hover {
    background-color: #0056b3;
}

.subtopicparts{
    color: aliceblue;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    text-decoration: underline;
}

.link{
    color: aliceblue;
    text-decoration: none;
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .card {
        flex: 1 1 100%;
    }
}
