@import url('https://fonts.googleapis.com/css2?family=Poppins: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');

* {
    box-sizing: border-box;
    outline: none;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}

img,
button,
iframe,
a {
    user-select: none;
}

.fadeIn {
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.myShadow {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

input:user-invalid {
    border: 1.5px solid rgba(255, 0, 0, 0.416);
}

.homeBanner {
    background: linear-gradient(rgba(0, 0, 0, 0.678), rgba(0, 0, 0, 0.63)), url(./assets/images/banner.jpg) center/cover no-repeat;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

#category-list li button {
    opacity: 0.9;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    text-shadow: none !important;
}

#category-list li button:hover {
    background-color: #6d5bbd;
    color: white;
    opacity: 1;
}

#category-list li button[class*="fa-chevron"] {
    transition: transform 0.3s ease;
}

#category-list li ul {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

#category-list li ul.hidden {
    max-height: 0;
}

#category-list li ul:not(.hidden) {
    max-height: 1000px;
}

#category-list > li {
    background-color: #4a3b7a;
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#category-list > li + li {
    margin-top: 0.25rem;
}

#category-list > li > button {
    background-color: transparent;
    border-radius: 0.375rem;
    width: 100%;
}

#category-list > li > button:hover {
    background-color: #6d5bbd;
}

#category-list > li ul li {
    background-color: transparent !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

#category-list > li ul li button {
    background-color: transparent;
    border-radius: 0.375rem;
    width: 100%;
    transition: all 0.2s;
}

#category-list > li ul li button:hover {
    background-color: #6d5bbd;
}

#cards-container .shadow-md {
    box-shadow: none !important;
}

#cards-container img {
    margin-bottom: 4rem;
}

.fade-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Ensure the mask doesn't extend beyond */
}

.fade-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Apply linear gradient masks to fade the outer 10% */
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.5) 90%, rgba(0, 0, 0, 1) 100%),
                  linear-gradient(to bottom, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.5) 90%, rgba(0, 0, 0, 1) 100%),
                  linear-gradient(to left, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.5) 90%, rgba(0, 0, 0, 1) 100%),
                  linear-gradient(to right, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.5) 90%, rgba(0, 0, 0, 1) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.5) 90%, rgba(0, 0, 0, 1) 100%),
                       linear-gradient(to bottom, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.5) 90%, rgba(0, 0, 0, 1) 100%),
                       linear-gradient(to left, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.5) 90%, rgba(0, 0, 0, 1) 100%),
                       linear-gradient(to right, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.5) 90%, rgba(0, 0, 0, 1) 100%);
    mask-repeat: no-repeat;
    mask-position: top, bottom, left, right;
}

.logo-padding {
  padding: 10px; 
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Custom breakpoint at 1350px for footer layout */
@media (min-width: 1350px) {
  .footer-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-links ul {
    flex-direction: row;
  }

  .footer-separator {
    display: block;
  }
}
