.navbar .nav-link.active,
.navbar .dropdown-item.active {
    color: var(--bs-primary);
}

.dropdown-menu .dropdown-item.active {
    background-color: #f0f0f0;
    color: var(--bs-primary);
}

.navbar .nav-link.active .dropdown-toggle {
    color: var(--bs-primary);
}

.ftr-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px; /* Adds space between icon and text */
}

.ftr-detail .ftr-icon {
    margin-top: 3px; /* Adjust to vertically align icon with text */
}

.ftr-detail .ftr-detail {
    line-height: 1.5;
}

.service-carousel .service-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-carousel .service-img {
    flex-shrink: 0;
}

.service-carousel .service-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-next,
.header-carousel .owl-nav .owl-prev {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-carousel .owl-nav .owl-next:hover,
.header-carousel .owl-nav .owl-prev:hover {
    background: var(--bs-primary) !important;
    box-shadow: none;
    color: var(--bs-white);
}

.header-carousel .owl-nav i{
    font-size: 20px;
}

.splzd {
    background-color: #f2f5f9;
    padding: 20px;
    border-radius: 7px;
}

.splzd :last-child {
    margin-bottom: 0;
}

.founder {
    padding-top: 90px;
    position: relative;
    width: 100%;
    z-index: 999;
}

.founder-bg {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: cover;
}

.founder-img {
    position: absolute;
    bottom: 244px;
    left: 28%;
    transform: translateX(-50%);
    max-width: 100%;
    width: 200px;
}

.founder-img img {
    width: 100%;
    height: auto;
    max-width: 300px;
}

.founder-text {
    margin-top: 20px;
    padding: 1rem;
}

@media (max-width: 1200px) {
    .founder-img {
        bottom: 268px;
        left: 50%;
        transform: translateX(-50%);
        width: 180px;
    }
}



@media (max-width: 992px) {
    .founder-img {
        bottom: 292px;
        left: 50%;
        transform: translateX(-50%);
        width: 180px;
    }
}

@media (max-width: 768px) {
    .founder-img {
        bottom: 316px;
        left: 50%;
        transform: translateX(-50%);
        width: 180px;
    }
}

@media (max-width: 532px) {
    .founder-img {
        bottom: 340px;
        width: 150px;
    }
    
    .header-carousel .header-carousel-item {
        height: 727px;
    }
}

@media (max-width: 507px) {
    .founder-img {
        bottom: 364px;
        width: 150px;
    }
}

@media (max-width: 442px) {
    .founder-img {
        bottom: 388px;
        width: 150px;
    }
}

@media (max-width: 387px) {
    .founder-img {
        bottom: 412px;
        width: 150px;
    }
    
    .footer-item img {
        width: 100%;
        height: auto;
        max-width: 270px;
    }
}


.founder-bg {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: cover;
}

/* slider animation */

/* Keyframes for zoom + pan right */
@keyframes zoomPanRight {
    0%, 100% {
        transform: scale(1) translateX(0);
    }
    50% {
        transform: scale(1.3) translateX(15px); /* Pan to the right */
    }
}

/* Keyframes for zoom + pan left */
@keyframes zoomPanLeft {
    0%, 100% {
        transform: scale(1) translateX(0);
    }
    50% {
        transform: scale(1.3) translateX(-15px); /* Pan to the left */
    }
}

.header-carousel-item {
    position: relative;
    overflow: hidden;
    height: 100vh;
}

/* Background images for each carousel item */
.zoom-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: none; /* Make sure animation is not running initially */
    transition: transform 0s ease; /* Preventing animation on inactive slides */
}

/* Trigger the animation only when the slide is active */
.owl-item.active .zoom-bg.zoom-pan-left {
    animation: zoomPanLeft 10s ease-in-out infinite;
}

.owl-item.active .zoom-bg.zoom-pan-right {
    animation: zoomPanRight 10s ease-in-out infinite;
}

.overlay,
.carousel-caption {
    position: relative;
    z-index: 2;
}


/* Owl carousel fade transitions */
.owl-carousel .owl-item {
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Make fade smoother */
}

.owl-carousel .owl-item.active {
    opacity: 1;
}

/* Optional: You can tweak the overlay to fade in too */
.carousel-caption {
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.owl-item.active .carousel-caption {
    opacity: 1;
}


/* slide indicator start */

.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 3;
    padding: 0 20px;
}

.owl-nav button.owl-prev,
.owl-nav button.owl-next {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.owl-nav button.owl-prev:hover,
.owl-nav button.owl-next:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #000;
}

.owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.owl-dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.6;
    transition: opacity 0.3s;
}



.owl-dot.active,
.owl-dot:hover {
    opacity: 1;
}

.icon-pro {
    font-size: 25px;
    color: white !important;
    transition: ease-in-out .3s;
}

.icon-pro:hover {
    transform: scale(1.2);
}

.products {
    margin-top: 25px;
}

.products-title {
    margin: 50px 0;
}

.products-title-item a{
    padding: 20px;
    background-color:#015fc9;
    color: white;
    transition: ease-in-out .3s all;
    border-radius: 10px;
}

.products-title-item a:hover{
    color: #034b9c;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.products-title-item .active {
    opacity: 0.3;
}

/* social-icon */
/* k-social bar icon */
.k-social {
    position: fixed;
    top: 30%;
    right: 0; /* changed from left: 0 */
    z-index: 99;
}
.k-social ul {
    position: absolute;
    padding: 0px;
    right: -265px !important;
    /* transform: translate(270px, 0); */
}
.k-social ul li {
    display: block;
    margin: 10px 20px;
    background: #015fc9;
    width: 300px;
    text-align: left; /* changed to left-align text */
    padding: 10px;
    border-radius: 30px 0 0 30px; /* flipped corners */
    transition: all 1s;
}
.k-social ul li:hover {
    transform: translate(-110px, 0); /* changed to move it left into view */
    background: #01418b;
}
.k-social ul li:hover a {
    color: #fff
}
.k-social ul li:hover i {
    color: #fff;
    background: rgba(0, 0, 0, 0.36);
    transform: rotate(360deg);
    transition: all 1s;
}
.k-social ul li i {
    margin-right: 10px; /* changed from margin-left */
    color: #000;
    background: #fff;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    transform: rotate(0deg);
}

.mr-10 {
    margin-right: 10px;
}

.steps {
    padding-top: 50px;
}

.heat-formula {
    margin: 50px 0;
}

.heat-formula-item {
    background: url(../images/products/ayam.jpg) no-repeat center center /cover;
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px; /* or any suitable height */
    transition: 1s ease;
    text-align: center;
}

.heat-formula-item:hover {
    background: url(../images/products/ayam.jpg);
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 15px;
    transform: scale(1.05);}
    
    .heat-formula-item h5 {
        color: white;
        font-size: 20px;
        font-weight: 800;
        margin: 0;
        text-align: center;
    }
    
    .heat-formula p {
        font-size: 45px;
        text-align: center;
        margin: 0;
        font-weight: bold;
    }
    
    .heat-formula-item .gp {
        font-size: 30px;
        color: white;
        font-weight: 900;
        line-height: 22px;
        margin: 0;
        text-align: center;
    }
    
    .white-bg {
        background-color: white;
    }
    
    @keyframes highlightFade {
        0% {
            background-color: var(--bs-primary);
            color: white;
            transform: scale(1.2);
            padding: 20px;
            box-shadow: 0 0 20px rgba(0, 123, 255, 0.6); /* glow */
            border-radius: 8px;
            opacity: 1;
        }
        50% {
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(0, 123, 255, 0.4);
        }
        100% {
            background-color: transparent;
            transform: scale(1);
            box-shadow: none;
            opacity: 1;
        }
    }
    
    .highlight {
        animation: highlightFade 2s ease-out;
        transition: all 0.3s ease;
        z-index: 10;
        position: relative;
    }


    @media (max-width: 767.98px) {
    .text-start, .text-end {
        text-align: center !important;
    }
}