/* Category Data (hidden) */
.category-data {
    display: none;
}

/* Categories Section */
.categories-section {
    padding: 60px 0 10px;
    background-color: #fff;
    position: relative;
}

.categories-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 36px;
    color: #2C3E50;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #4A8F29;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Categories Tabs */
.categories-tabs {
    position: relative;
    margin: 0 auto 40px;
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.categories-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    gap: 10px;
    scroll-behavior: smooth;
    flex: 1;
    margin: 0 40px;
    scroll-padding: 0 50%;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 50%;
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

.tab-button {
    padding: 12px 24px;
    background: #F5F5F5;
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    scroll-snap-align: center;
    scroll-margin: 0 20px;
    min-width: max-content;
    position: relative;
    z-index: 1;
}

.tab-button.active,
.tab-button:hover {
    background: #4A8F29;
    color: white;
}

/* Categories Cards */
.categories-content {
    position: relative;
    min-height: 400px;
}

.category-card {
    display: none;
    background: white;
    border-radius: 1px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 316px;
    width: 100%;
    max-width: 1097px;
    margin: 0 auto;
}

.category-card.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.card-image {
    width: 547px;
    height: 100%;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 40px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    background-color: #F2D269;
    justify-content: flex-start;
}

.card-content h3 {
    font-size: 22px;
    color: #000;
    margin-bottom: 20px;
    font-weight: 700;
}

.card-content p {
    color: #2B2B2B;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 25px;
    font-size: 15px;
}

.explore-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #E67E22;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.explore-btn:hover {
    background: #D35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

/* Navigation Arrows */
.nav-arrow {
    position: relative;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #4A8F29;
    flex-shrink: 0;
    outline: none;
}

.nav-arrow:hover {
    background: #4A8F29;
    color: white;
    transform: scale(1.1);
}

.prev-arrow {
    margin-right: 10px;
}

.next-arrow {
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .category-card {
        flex-direction: column;
        height: auto;
    }

    .card-image {
        width: 100%;
        height: 300px;
    }

    .card-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .section-heading h2 {
        font-size: 28px;
    }

    .card-content h3 {
        font-size: 24px;
    }

    .categories-tabs {
        max-width: 100%;
        padding: 0 15px;
    }

    .nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border: none;
        outline: none;
    }

    .categories-nav {
        margin: 0 30px;
    }
}

@media (min-width: 1920px) {
    .categories-container {
        max-width: 1780px;
    }

    .tab-button {
        font-size: 20px;
    }

    .section-heading h2 {
        font-size: 50px;
    }

    .category-card {
        max-width: 1397px;
        height: 366px;
    }

    .card-image {
        width: 687px;
        height: 100%;
    }

    .card-content h3 {
        font-size: 30px;
    }

    .card-content p {
        font-size: 19px;
    }

}