/* ============================================================
   Custom overrides for Millennium Technologies
   Loaded AFTER style.css to override defaults.
   ============================================================ */

/* Yellow border on content images */
.project__single__item .thumb img,
.single-blog-item .thumb img,
.single-team-item .thumb img,
.about__img img,
.about__img > img,
.choose-images img,
.testi-thumb img,
.rts__service__details .container img.img-fluid,
.rts__project__details .container img.img-fluid,
.rts__blog__details .container img.img-fluid,
.rts__team__details img.img-fluid {
    border: 3px solid #facc15;
    border-radius: 12px;
    box-sizing: border-box;
}

/* Slight zoom on hover for cards (nice touch on the new imagery) */
.project__single__item .thumb,
.single-blog-item .thumb,
.single-team-item .thumb {
    overflow: hidden;
    border-radius: 12px;
}
.project__single__item .thumb img,
.single-blog-item .thumb img,
.single-team-item .thumb img {
    transition: transform .4s ease;
}
.project__single__item:hover .thumb img,
.single-blog-item:hover .thumb img,
.single-team-item:hover .thumb img {
    transform: scale(1.04);
}

/* Leadership Section */
.leadership-card {
    height: 760px;            /* taller so the full face/person fits */
    max-width: 460px;         /* narrower, portrait orientation */
    margin: 0 auto 30px;      /* center within its column */
    background-size: cover;
    background-position: center top;
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    transition: transform 0.5s ease;
    border: 3px solid #facc15;
}
/* Per-card framing — nudge these if a face sits too high/low.
   Lower the % to show more of the top of the photo (head/eyes). */
.leadership-card.founder {
    background-position: center top;
}
.leadership-card.ceo {
    background-position: center top;
}
.leadership-card:hover {
    transform: translateY(-10px);
}
.leadership-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 70%);
}
.leadership-content {
    position: relative;
    padding: 40px;
    color: #fff;
    width: 100%;
}
.leadership-content .title {
    color: #facc15;
    margin-bottom: 8px;
    font-size: 32px;
    font-weight: 700;
}
.leadership-content .subtitle {
    color: #dfdfdf;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Worked With Slider */
.worked-with-slider-wrapper {
    padding-top: 20px;
}
.worked-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    border: 3px solid #facc15;
}
.worked-btn-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.worked-btn-area .rts-btn-prev,
.worked-btn-area .rts-btn-next {
    cursor: pointer;
    width: 55px;
    height: 55px;
    border: 1px solid #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #facc15;
    transition: all 0.3s;
    background: transparent;
}
.worked-btn-area .rts-btn-prev:hover,
.worked-btn-area .rts-btn-next:hover {
    background: #facc15;
    color: #002524;
}

@media screen and (max-width: 767px) {
    .leadership-card {
        height: 520px;
        max-width: 360px;
        background-position: center top;
    }
    .leadership-content {
        padding: 25px;
    }
    .leadership-content .title {
        font-size: 26px;
    }
    .worked-img img {
        height: 300px;
    }
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 90px;            /* sits above the back-to-top button */
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsapp-pulse 2.2s infinite;
}
.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}
@keyframes whatsapp-pulse {
    0%   { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media screen and (max-width: 767px) {
    .whatsapp-float {
        right: 18px;
        bottom: 80px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

