
.livestock-gallery {
    padding: 60px 0 80px;
}

.livestock-gallery .gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 0 35px;
    flex-wrap: wrap;
}

.livestock-gallery .gallery-tabs li {
    display: inline-block;
    cursor: pointer;
}

.livestock-gallery .gallery-tabs .filter-text {
    display: block;
    padding: 12px 20px;
    border: 1px solid #d7dfd1;
    border-radius: 40px;
    font-weight: 600;
    color: #1c2611;
    background: #f8fbf5;
    transition: all 0.3s ease;
}

.livestock-gallery .gallery-tabs li.active .filter-text,
.livestock-gallery .gallery-tabs li:hover .filter-text {
    background: #5a8f2c;
    color: #fff;
    border-color: #5a8f2c;
    box-shadow: 0 10px 24px rgba(90, 143, 44, 0.25);
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #0f1b0c;
}

.gallery-card__image {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.gallery-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 35, 9, 0.05) 0%, rgba(14, 35, 9, 0.55) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-card__image img {
    transform: scale(1.05);
}

.gallery-card:hover .gallery-card__image::after {
    opacity: 1;
}

.gallery-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    color: #1f2c12;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-card__title {
    position: absolute;
    left: 18px;
    bottom: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.gallery-card__action {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 28px;
}

.gallery-card:hover .gallery-card__action {
    opacity: 1;
}

/* Mobile nav accordion */
@media (max-width: 1199px) {
    .mobile-nav__container .main-menu__list ul {
        display: none;
        padding-left: 14px;
        margin: 6px 0 0;
    }

    .mobile-nav__container .main-menu__list .dropdown > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-nav__container .main-menu__list .dropdown > a button {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .mobile-nav__container .main-menu__list .dropdown > a button.expanded {
        transform: rotate(180deg);
        background: rgba(255, 255, 255, 0.14);
    }
}


.thm-btn .btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    margin-right: 8px;
    animation: btn-spin 0.8s linear infinite;
}
.thm-btn.is-loading .btn-spinner {
    display: inline-block;
}
.thm-btn.is-loading i.icon-right-arrow {
    display: none;
}
@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}
