/* ================================
   🔷 Entry Category Numbered List
   ================================ */

.entry-category-list-wrapper {
    max-width: 400px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: category-counter;
    display: flex;
    flex-direction: column;
}

.entry-category-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    font-family: 'ZonaProCustom', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.entry-category-item::before {
    counter-increment: category-counter;
    content: counter(category-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #3472B0;
    color: #000;
    text-align: center;
    line-height: 26px;
    font-size: 20px;
    font-weight: bold;
    font-family: 'ZonaProCustom', sans-serif;
    border: 1px solid #000;
}

.entry-category-link {
    text-decoration: none;
    color: #000;
    font-size: 20px;
    font-family: 'ZonaProCustom', sans-serif;
}

.entry-category-link:hover {
    text-decoration: underline;
}


/* ================================
     🔷 Repository Category Section
     ================================ */

.repo-category-section {
    padding-bottom: 128px;
}

.repo-category-wrapper {
    max-width: 834px;
}

.repo-category-header {
    margin-bottom: 72px;
    width: 100%;
    max-width: 550px;
    justify-self: center;
    padding: 0 20px;
}

.repo-category-title {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    font-family: 'ZonaProCustom', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 32px;
    padding-bottom: 34px;
    border-top: 1px solid #707070;
}

.repo-category-number-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #3472B0;
    color: black;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    border: 1px solid #000;
    font-family: 'ZonaProCustom', sans-serif;
}

.repo-category-description {
    width: 100%;
    max-width: 550px;
    font-size: 16px;
    font-family: 'ZonaProCustom', sans-serif !important;
    font-weight: 400 !important;
    color: black;
}


/* ================================
     🔷 Swiper Container & Slides
     ================================ */

.swiper-container-repository {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 40px;
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.swiper-wrapper-repository {
    display: flex;
    flex-wrap: nowrap;
    transition-property: transform;
    box-sizing: border-box;
}

.swiper-slide-repository {
    width: 265px !important;
    flex-shrink: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
}

.swiper-container-repository {
    cursor: none !important;
  }

  .swiper-container-repository.drag-active {
    cursor: none !important;
  }
  


/* ================================
     🔷 Subcategory Card
     ================================ */

.subcategory-box {
    width: 100%;
}

.subcategory-image {
    width: 265px !important;
    height: 373px !important;
    object-fit: cover !important;
    border: 1px solid #707070 !important;
    border-radius: 16px !important;
    cursor: none !important;

}

.subcategory-title {
    margin-top: 12px;
    font-size: 15px;
    font-family: 'ZonaProCustom', sans-serif;
    font-weight: 600;
    color: black;
    transition: color 0.2s ease;
    cursor: none !important;


}

.subcategory-box a:hover .subcategory-title {
    color: #3472B0; /* ✅ Blue on hover */
  }




/* ================================
     🔷 Swiper Navigation Buttons Hover Change Icon
     ================================ */



#custom-drag-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
    transform: scale(0.6);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
}

#custom-drag-cursor img {
    width: 100%;
    height: auto;
    display: block;
}


/* ================================
     🔷 Mobile Responsive Styles
     ================================ */

/* Tablet and below */
@media (max-width: 768px) {
    .repo-category-section {
        padding-bottom: 64px;
    }

    .repo-category-header {
        margin-bottom: 40px;
        padding: 0 16px;
    }

    .repo-category-title {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .swiper-wrapper-repository {
        gap: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .swiper-slide-repository {
        width: 80vw !important;
        min-width: 240px;
        max-width: 320px;
    }

    .subcategory-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 265 / 373;
        max-width: 320px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .repo-category-section {
        padding-bottom: 48px;
    }

    .repo-category-header {
        margin-bottom: 32px;
        padding: 0 12px;
    }

    .repo-category-title {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .swiper-container-repository {
        padding-bottom: 24px;
        margin-left: 5px !important;
        margin-right: 5px !important;
    }

    .swiper-wrapper-repository {
        gap: 15px;
        margin-left: 5px !important;
        padding-right: 0px;
    }


    .swiper-slide-repository {
        width: 85vw !important;
        min-width: 260px;
        max-width: 300px;
    }

    .subcategory-image {
        max-width: 300px;
    }
}