/*===================================== 
YOU CAN WRITE CUSTOM CSS 
======================================*/

/* Custom Gallery Page Hover Pop-up Effect */
.portfolio-wrap .masonry-item .image-effect-two {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    height: 300px !important;
    overflow: hidden;
}

.portfolio-wrap .masonry-item .image-effect-two a,
.portfolio-wrap .masonry-item .image-effect-two img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* On hover, pop-up/scale-up the card and lift it */
.portfolio-wrap .masonry-item .image-effect-two:hover {
    transform: scale(1.08) translateY(-12px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
    z-index: 999 !important;
    /* Ensure it overlays neighboring cards */
}

/* Completely hide the names and logos (caption overlay) on hover */
.portfolio-wrap .masonry-item .image-effect-two .figcaption {
    display: none !important;
}

/* Ensure all project page thumbnails have a consistent height and crop nicely */
.project-classic .mt-thum-bx,
.image-hover-block .mt-thum-bx {
    height: 240px !important;
    overflow: hidden;
}

.project-classic .mt-thum-bx img,
.image-hover-block .mt-thum-bx img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Ensure info section heights are uniform to maintain clean horizontal row alignment */
.project-classic .mt-info {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-classic .mt-info .mt-title {
    margin-bottom: 10px !important;
}

.project-classic .mt-info p {
    margin-bottom: 4px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-classic .mt-info .site-button-link {
    margin-top: 15px;
}


/* Force team profile images to render as perfect circles */
.our-team-1 .profile-image img {
    width: 150px !important;
    height: 150px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Align and standardize image sizes in the About Summary (Our Story) section */
.our-story-pic img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 6px;
}

/* Make expertise specialization cards in the About page equal height */
.specialization-wrap1 .row {
    display: flex;
    flex-wrap: wrap;
}

.specialization-wrap1 .row>[class*="col-"] {
    display: flex;
    flex-direction: column;
}

.specialization-wrap1 .mt-icon-box-wraper {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.specialization-wrap1 .mt-icon-box-wraper .icon-count-2 {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 330px;
    /* Fixed height for a balanced, premium look */
    padding: 35px 30px 30px 30px !important;
    /* Adjusted top/bottom padding to fix gaps */
    box-sizing: border-box;
}

.specialization-wrap1 .mt-icon-box-wraper .icon-md {
    display: inline-block !important;
    margin-bottom: 20px;
}

.specialization-wrap1 .mt-icon-box-wraper .icon-count-2 .icon-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.specialization-wrap1 .mt-icon-box-wraper .icon-count-2 .icon-content .mt-tilte {
    margin-top: 0;
    margin-bottom: 15px !important;
    font-size: 20px;
    line-height: 26px;
}

.specialization-wrap1 .mt-icon-box-wraper .icon-count-2 .icon-content p {
    margin-bottom: 20px !important;
    font-size: 14px;
    line-height: 22px;
    color: #666;
}

.specialization-wrap1 .mt-icon-box-wraper .icon-count-2 .icon-content .site-button-link {
    margin-top: auto;
    /* Pushes the Read More link to the bottom */
    align-self: flex-start;
}


/* Align image height to content height in the About Company section */
@media (min-width: 992px) {
    .about-company-row {
        display: flex;
        align-items: stretch;
    }

    .about-company-row .col-lg-5 {
        display: flex;
        flex-direction: column;
    }

    .about-company-row .m-about {
        display: flex;
        flex-direction: column;
        flex: 1;
        height: 100%;
        margin-bottom: 0 !important;
    }

    .about-company-row .about-us-carousel {
        display: flex;
        flex-direction: column;
        flex: 1;
        height: 100%;
    }

    .about-company-row .about-us-carousel .owl-stage-outer,
    .about-company-row .about-us-carousel .owl-stage,
    .about-company-row .about-us-carousel .owl-item,
    .about-company-row .about-us-carousel .item,
    .about-company-row .about-us-carousel .item a,
    .about-company-row .about-us-carousel .ow-img,
    .about-company-row .about-us-carousel .owl-img {
        height: 100% !important;
        margin-bottom: 0 !important;
        /* Override the default 50px bottom margin */
    }

    .about-company-row .about-us-carousel img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    /* Align the decorative offset background height */
    .about-company-row .m-about:after {
        height: 85% !important;
        top: 10% !important;
    }
}

/* Ensure home page category filter card has the same height as the project images */
.project-filter-card {
    height: 240px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px !important;
    box-sizing: border-box;
}

.project-filter-card .filter-wrap {
    width: 100%;
}

.project-filter-card .filter-navigation {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.project-filter-card .filter-navigation li {
    margin: 0px 0px 6px 0px !important;
    display: block !important;
    text-align: center;
}

/* Ensure testimonial profile images fill the circular frame completely and crop nicely */
.testimonial-2 .testimonial-pic img,
.testimonial-grid-2 .testimonial-pic img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Increase logo size on desktop without altering the navbar height */
@media only screen and (min-width: 992px) {
    .logo-header {
        width: 260px !important;
    }

    .logo-size {
        max-height: 85px !important;
        max-width: 100% !important;
        width: auto !important;
    }
}

/* Services Cards Layout Adjustments */
.services-half-bottom .row {
    display: flex;
    flex-wrap: wrap;
}

.services-half-bottom .row>[class*="col-"] {
    display: flex;
    flex-direction: column;
}

.services-half-bottom .mt-icon-box-wraper {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    margin-bottom: 30px;
}

.services-half-bottom .icon-count-2 {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 330px;
    /* Fixed height for a balanced, premium look */
    padding: 35px 30px 30px 30px !important;
    /* Adjusted top/bottom padding to fix gaps */
    box-sizing: border-box;
}

.services-half-bottom .icon-md {
    display: inline-block !important;
    margin-bottom: 20px;
}

.services-half-bottom .icon-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.services-half-bottom .icon-content .mt-tilte {
    margin-top: 0;
    margin-bottom: 15px !important;
    font-size: 20px;
    line-height: 26px;
}

.services-half-bottom .icon-content p {
    margin-bottom: 20px !important;
    font-size: 14px;
    line-height: 22px;
    color: #666;
}

.services-half-bottom .icon-content .site-button-link {
    margin-top: auto;
    /* Pushes the Read More link to the bottom */
    align-self: flex-start;
}

/* Disable the glitchy absolute sliding text transition and use a clean color transition */
.project-classic .mt-title:after {
    display: none !important;
}

.project-classic .mt-title a {
    transition: color 0.3s ease;
}

.project-classic:hover .mt-title a,
.project-classic .mt-title a:hover {
    color: #13b754 !important;
    /* Green hover color matching theme */
}

/* Project details page main image styling to match sidebar content height */
.project-detail-img {
    height: 380px !important;
    overflow: hidden;
    border-radius: 12px;
}

.project-detail-img > a.mfp-link {
    display: block;
    width: 100%;
    height: 100%;
}

.project-detail-img img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 12px;
}

.project-detail-img .overlay-bx {
    pointer-events: none;
    border-radius: 12px;
}

.project-detail-img .overlay-bx .overlay-icon {
    pointer-events: auto;
}

.project-detail-img.mt-img-overlay2:before {
    pointer-events: none;
}



.project-classic .overlay-bx {
    pointer-events: none;
}

.project-classic .overlay-bx .overlay-icon {
    pointer-events: auto;
}

.project-classic .mt-img-overlay2:before {
    pointer-events: none;
}

/* Re-enable slider background overlay for text visibility in the hero section */
#welcome .tp-shapewrapper {
    display: block !important;
}

/* Ensure similar projects slider images have a consistent height and crop nicely */
.similar-projects .mt-img-overlay7 {
    height: 220px !important;
    overflow: hidden;
    position: relative;
}

.similar-projects .mt-img-overlay7 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* Fix similar projects card to a fixed unified layout - image on top, content below */
.similar-projects .item.mt-box {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

/* Override the negative top that pulls content over the image */
.similar-projects .mt-info {
    top: 0 !important;
    margin: 0 !important;
    height: 220px !important;
    padding: 24px 20px 20px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-sizing: border-box;
    background-color: #fff;
    position: relative !important;
    overflow: hidden;
}

.similar-projects .mt-info h4 {
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
    line-height: 22px !important;
    font-size: 16px !important;
}

.similar-projects .mt-info h4 a {
    color: #222 !important;
    transition: color 0.3s ease;
}

.similar-projects .mt-info h4 a:hover {
    color: #13b754 !important;
}

.similar-projects .mt-info p {
    margin-bottom: 12px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
    line-height: 20px !important;
    color: #666 !important;
    font-size: 13px !important;
}

/* Green button matching site theme */
.similar-projects .mt-info .site-button {
    margin-top: auto !important;
    align-self: flex-start;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    background-color: #13b754 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    font-size: 12px !important;
    padding: 8px 18px !important;
}

.similar-projects .mt-info .site-button.btn-effect:before,
.similar-projects .mt-info .site-button.btn-effect:after {
    border-color: #13b754 !important;
}

.similar-projects .mt-info .site-button:hover {
    background-color: #0e9042 !important;
    color: #fff !important;
}

.similar-projects .mt-info .site-button:hover.btn-effect:before,
.similar-projects .mt-info .site-button:hover.btn-effect:after {
    border-color: #0e9042 !important;
}

/*=====================================
FOUNDER'S AWARDS & CREDENTIALS SECTION
======================================*/
.founder-awards-section {
    position: relative;
}

.awards-section-title {
    margin-bottom: 40px;
}

.awards-section-title h3 {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
    color: #1c1c1c;
}

.awards-section-title h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #13b754;
    /* Primary green theme accent */
}

.award-card-wrapper {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0, 0, 0, 0.03);
    /* Rich, attractive drop shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.award-card-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(19, 183, 84, 0.12);
    /* Interactive brand color glow */
    border-color: rgba(19, 183, 84, 0.3);
    /* Soft theme color border */
}

.award-image-box {
    position: relative;
    overflow: hidden;
    background: #fbfbfb;
    padding: 0;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    height: 220px;
}

.award-image-box a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.award-image-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.award-card-wrapper:hover .award-image-box img {
    transform: scale(1.06) rotate(1deg);
}

.award-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.award-image-box:hover .award-overlay {
    opacity: 1;
}

.award-overlay span {
    color: #ffffff;
    font-size: 24px;
    background: #13b754;
    /* Accent green color */
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.award-image-box:hover .award-overlay span {
    transform: translateY(0);
}

.award-badge-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    /* Gold badge gradient */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.3);
    z-index: 3;
}

.award-badge-icon.cert {
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    /* Blue badge gradient for certifications */
    box-shadow: 0 4px 10px rgba(0, 114, 255, 0.3);
}

.award-details {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fafafa;
    transition: background 0.3s ease;
}

.award-card-wrapper:hover .award-details {
    background: #ffffff;
}

.award-details h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1c1c1c;
    line-height: 22px;
    transition: color 0.3s ease;
    height: 44px;
    overflow: hidden;
}

.award-card-wrapper:hover .award-details h5 {
    color: #13b754;
    /* Accent green on hover */
}

.award-details p {
    font-size: 13px;
    color: #777;
    margin-bottom: 0;
    line-height: 18px;
    height: 72px;
    overflow: hidden;
}

/*=====================================
REDESIGNED ABOUT COMPANY SECTION CSS
======================================*/
.about-company-redesign {
    padding-top: 20px;
}

.collage-container {
    position: relative;
    height: 520px;
    width: 100%;
}

.collage-img-box {
    position: absolute;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.collage-main-img-box {
    width: 72%;
    height: 400px;
    top: 0;
    left: 0;
    z-index: 1;
}

.collage-sub-img-box {
    width: 58%;
    height: 280px;
    bottom: 20px;
    right: 0;
    z-index: 2;
    border: 6px solid #ffffff;
}

.collage-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collage-img-box:hover img {
    transform: scale(1.08);
}

.collage-img-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    z-index: 3;
}

.floating-experience-badge {
    position: absolute;
    bottom: 50px;
    left: -20px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid #13b754;
    /* Brand accent green color */
    border-radius: 0 12px 12px 0;
    padding: 20px 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 250px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.floating-experience-badge:hover {
    transform: scale(1.03) translateX(5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.floating-experience-badge .badge-stat {
    font-size: 38px;
    font-weight: 800;
    color: #13b754;
    line-height: 1;
}

.floating-experience-badge .badge-desc {
    font-size: 12px;
    font-weight: 700;
    color: #222222;
    text-transform: uppercase;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.about-headline {
    font-size: 32px;
    font-weight: 700;
    line-height: 42px;
    color: #111111;
    margin-bottom: 25px;
}

.about-lead-text {
    font-size: 16px;
    line-height: 28px;
    color: #333333;
    border-left: 3px solid #13b754;
    padding-left: 15px;
    margin-bottom: 20px;
    text-align: justify;
}

.about-body-text {
    font-size: 14.5px;
    line-height: 24px;
    color: #666666;
    margin-bottom: 30px;
    text-align: justify;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.pillar-card {
    background: #fbfbfb;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pillar-card:hover {
    background: #ffffff;
    border-color: rgba(19, 183, 84, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.pillar-icon-box {
    width: 44px;
    height: 44px;
    background: rgba(19, 183, 84, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #13b754;
    font-size: 16px;
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon-box {
    background: #13b754;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(19, 183, 84, 0.25);
}

.pillar-info h5 {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 6px;
}

.pillar-info p {
    font-size: 13px;
    line-height: 18px;
    color: #666666;
    margin-bottom: 0;
}

/* RESPONSIVE LAYOUT FOR MOBILE */
@media (max-width: 991px) {
    .collage-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 50px;
    }

    .collage-img-box {
        position: relative;
        width: 100%;
        height: 280px;
        top: auto;
        left: auto;
        bottom: auto;
        right: auto;
        border: none !important;
    }

    .floating-experience-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 15px;
        border-radius: 8px;
        border-left: 4px solid #13b754;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-left: 4px solid #13b754;
        max-width: 100%;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Custom Font-Awesome icon sizing for icon boxes */
.icon-count-2 .icon-cell i {
    font-size: 36px;
    line-height: 1;
    color: #13b754;
    transition: all 0.3s ease;
}

.icon-count-2:hover .icon-cell i {
    transform: scale(1.15);
    color: #111111;
}

/* Custom alignment for About Summary section when converted to a grid */
.about-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.summary-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.summary-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(19, 183, 84, 0.2);
    border-color: rgba(19, 183, 84, 0.5);
}

.summary-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.summary-card:hover .summary-image img {
    transform: scale(1.1);
}

.summary-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #13b754;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(19, 183, 84, 0.3);
}

.summary-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.summary-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 24px;
    transition: color 0.3s ease;
}

.summary-card:hover .summary-info h4 {
    color: #13b754;
}

.summary-info p {
    font-size: 13px;
    color: #c0c0c0;
    line-height: 19px;
    margin-bottom: 0;
}

@media (max-width: 1199px) {
    .about-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {

    .about-summary-grid,
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .summary-image {
        height: 200px;
    }
}

/*=====================================
HOMEPAGE OUR MISSION SECTION ALIGNMENT
======================================*/
@media (min-width: 992px) {
    .mission-outer-section .row {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .mission-outer-section .row>[class*="col-"] {
        display: flex;
        flex-direction: column;
    }

    .mission-outer-section .mission-left,
    .mission-outer-section .mission-mid,
    .mission-outer-section .contact-home1-left {
        display: flex;
        flex-direction: column;
        flex: 1;
        height: 100% !important;
        /* Force override of style.css fixed height */
        margin-bottom: 0 !important;
        /* Align bottoms perfectly */
    }

    .mission-outer-section .mission-left {
        box-sizing: border-box;
    }

    /* Push the 'Read More' link to the absolute bottom of the white card */
    .mission-outer-section .mission-left .text-right {
        margin-top: auto;
    }

    .mission-outer-section .mission-mid {
        background-size: cover !important;
        background-position: center !important;
    }

    .mission-outer-section .contact-home1-left {
        box-sizing: border-box;
    }
}

/*=====================================
SCROLLTOP RESPONSIVE ALIGNMENT (MOBILE & TABLET)
======================================*/
@media only screen and (max-width: 1024px) {
    button.scroltop {
        left: auto !important;
        right: 20px !important;
        bottom: 20px !important;
        z-index: 99999 !important;
    }
}

/*=====================================
HOMEPAGE OUR VALUE RATINGS
======================================*/
.our-exp-ratings {
    padding-top: 10px;
}

.rating-row {
    background: #fbfbfb;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.rating-row:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(19, 183, 84, 0.2);
    transform: translateY(-2px);
}

.rating-stars i {
    margin-right: 3px;
    font-size: 16px;
}

/*=====================================
HOMEPAGE WELCOME SECTION IMAGE AND TEXT CARDS
======================================*/
.our-speci_wrap .image-effect-one,
.our-speci_wrap .our-speciallization-content {
    width: 100% !important;
    box-sizing: border-box;
}

.our-speci_wrap .image-effect-one img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

@media (min-width: 768px) {
    .our-speci_wrap .row>[class*="col-"] {
        display: flex;
        flex-direction: column;
    }

    .our-speci_wrap .image-effect-one,
    .our-speci_wrap .our-speciallization-content {
        height: 100% !important;
    }

    .our-speci_wrap .our-speciallization-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .our-speci_wrap .our-speciallization-content .site-button {
        margin-top: auto;
        align-self: flex-start;
    }
}

@media (max-width: 767px) {
    .our-speci_wrap .image-effect-one {
        height: 300px !important;
    }
}



/*=====================================
HOMEPAGE ABOUT SECTION IMAGE CARDS
======================================*/
.about-home .item .mt-img-effect {
    height: 450px !important;
    width: 100% !important;
    overflow: hidden;
}

.about-home .item .mt-img-effect a,
.about-home .item .mt-img-effect img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block;
}

/*=====================================
SUCCESS MESSAGE ANIMATION
======================================*/
.success-message {
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.success-message .alert {
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 20px;
    border: none;
    background-color: #d1e7dd;
    color: #0f5132;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: alertSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes alertSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*=====================================
CLIENT TESTIMONIAL CARDS UNIFICATION
======================================*/
/* Allow overflow expansion within owl-carousel */
.testimonial-home .owl-stage-outer {
    padding-bottom: 120px;
    margin-bottom: -120px;
}

/* Flex layout to align all cards to the same size */
.testimonial-home .owl-stage {
    display: flex;
    align-items: stretch;
}

.testimonial-home .owl-item {
    display: flex;
}

.testimonial-home .item {
    width: 100%;
    display: flex;
}

.testimonial-home .testimonial-2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Context for absolute positioning on hover */
}

/* Set same size/base height for all testimonial cards */
.testimonial-home .block-shadow {
    width: 100%;
    height: 240px;
    /* Equal height for all cards */
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

.testimonial-home .testimonial-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Limit review text to a maximum of 4 lines initially */
.testimonial-home .testimonial-text p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    color: #555555;
    transition: all 0.3s ease;
}

/* Expand the card above the 4-line limit on hover */
.testimonial-home .testimonial-2:hover .block-shadow {
    height: auto;
    min-height: 240px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #13b754;
    /* Green highlight on hover */
}

.testimonial-home .testimonial-2:hover .testimonial-text p {
    display: block;
    /* Remove line clamping */
    overflow: visible;
}

/*=====================================
TEXTAREA OVERFLOW & HEIGHT FIX (HOMEPAGE FORM)
======================================*/
.input-animate.input:has(textarea) {
    height: 45px !important;
    margin-bottom: 30px !important;
    margin-top: 15px !important;
}

/* Force baseline position when empty and blurred */
.input-animate.input:has(textarea) label {
    line-height: 40px !important;
    top: 5px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* Float label up completely above the textarea container when focused or has content */
.input-animate.input:has(textarea:focus) label,
.input-animate.input:has(textarea:not(:placeholder-shown)) label {
    top: -18px !important;
    line-height: 14px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #fff !important;
}

/* Animate the spin line on focus using pure CSS */
.input-animate.input:has(textarea:focus) .spin {
    width: 100% !important;
}

.input-animate.input textarea {
    height: 35px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    top: 10px !important;
    overflow-y: auto !important;
    resize: none;
    word-break: break-word;
    line-height: 18px !important;
}

/*=====================================
HOMEPAGE WELCOME SECTION HEADER RESPONSIVENESS
======================================*/
.our-speci_wrap .our-speciallization-content h3 {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.5px;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .our-speci_wrap .our-speciallization-content {
        padding: 20px 12px !important;
        border-width: 8px !important;
    }
    .our-speci_wrap .our-speciallization-content h3 {
        font-size: 30px !important;
        line-height: 33px !important;
        letter-spacing: -0.8px !important;
    }
}

@media (min-width: 1400px) {
    .our-speci_wrap .our-speciallization-content {
        padding: 20px 15px !important;
        border-width: 10px !important;
    }
    .our-speci_wrap .our-speciallization-content h3 {
        font-size: 28px !important;
        line-height: 35px !important;
        letter-spacing: -0.8px !important;
    }
}

/*=====================================
MOBILE DRAWER MENU LOGO STYLING
======================================*/
.logo-mobile-drawer {
    display: none;
}

@media only screen and (max-width: 991px) {
    .logo-mobile-drawer {
        display: block !important;
        padding: 25px 15px;
        background-color: #ffffff;
        border-bottom: 1px solid #e9e9e9;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .logo-mobile-drawer img {
        max-height: 70px !important;
        width: auto !important;
        display: inline-block;
    }
}

/*=====================================
MOBILE DRAWER MAKE APPOINTMENT BUTTON
======================================*/
.appint-btn-mobile {
    display: none;
}

@media only screen and (max-width: 991px) {
    .top-bar .appint-btn {
        display: none !important;
    }
    
    .appint-btn-mobile {
        display: block !important;
        padding: 25px 1px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        background-color: #ffffff;
    }
    
    .appint-btn-mobile a.site-button {
        display: inline-block;
        width: calc(100% - 30px);
        padding: 12px 20px;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}

/*=====================================
MOBILE BANNER BUTTON MARGIN GAP
======================================*/
@media only screen and (max-width: 767px) {
    .banner-btn-layer {
        margin-top: 40px !important;
    }
}

/*=====================================
MOBILE CONTACT SIDEBAR LOGO STYLING
======================================*/
.logo-sidebar-mobile {
    display: block !important;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px;
    width: 100%;
}

.logo-sidebar-mobile img {
    max-height: 85px !important;
    width: auto !important;
    display: inline-block;
}

/*=====================================
NAVBAR VERTICAL ALIGNMENT CENTERING
======================================*/
@media only screen and (min-width: 992px) {
    /* Make the container a flex container to align items vertically */
    .main-bar .container {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    /* Reset float and display style of logo-header to align centered in flex container */
    .logo-header {
        float: none !important;
        order: 1;
        margin-right: auto !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
    }

    .logo-header-inner {
        display: block !important;
        height: auto !important;
    }

    /* Reset float and display of header-nav to align centered in flex container */
    .header-nav {
        float: none !important;
        order: 2;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Ensure the nav list itself has no extra margins */
    .header-nav .nav {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Reset float and display of extra-nav to align centered in flex container */
    .extra-nav {
        float: none !important;
        order: 3;
        margin: 0 !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
    }

    .extra-nav .extra-cell {
        display: block !important;
        padding-left: 20px !important;
    }
}

/*=====================================
GLOBAL FONT FAMILY OVERRIDE (POPPINS)
======================================*/
body, 
body *, 
input, 
textarea, 
select, 
button {
    font-family: 'Poppins', sans-serif !important;
}

/* Restore font-family for FontAwesome, Flaticon, and revicon icons */
.fa, 
.fa::before, 
.fa::after,
.fa-quote-left::before,
.fa-quote-right::before {
    font-family: 'FontAwesome' !important;
}

[class^="flaticon-"], 
[class*=" flaticon-"],
[class^="flaticon-"]::before, 
[class*=" flaticon-"]::before,
[class^="flaticon-"]::after, 
[class*=" flaticon-"]::after {
    font-family: 'Flaticon' !important;
}

[class^="revicon-"],
[class*=" revicon-"],
[class^="revicon-"]::before,
[class*=" revicon-"]::before {
    font-family: 'revicons' !important;
}

/*=====================================
GLOBAL ROUNDED CORNERS OVERRIDES
======================================*/

/* 1. Global Content Images Rounded Corners */
img {
    border-radius: 12px !important;
}

/* Reset for Logos, Social Media Icons, Sliders, and Small Icons */
.logo-header img,
.logo-mobile-drawer img,
.logo-sidebar-mobile img,
.icon-cell img,
.social-icons img,
.extra-nav img,
.tp-bgimg,
.tp-caption img,
.rev_slider img,
.rev-btn img {
    border-radius: 0 !important;
}

/* Ensure Testimonial and Team profile circular images stay circular */
.testimonial-pic img,
.profile-image img {
    border-radius: 50% !important;
}

/* 2. Global Cards/Boxes/Containers Rounded Corners */
.image-effect-one,
.our-speciallization-content,
.about-home-right,
.mt-count,
.rating-row,
.mission-left,
.contact-home1-left,
.icon-count-2,
.image-hover-block,
.portfolio-wrap .masonry-item .image-effect-two,
.similar-projects .item.mt-box,
.similar-projects .mt-info,
.project-classic,
.testimonial-2 .block-shadow,
.testimonial-grid-2 .block-shadow,
.award-card-wrapper,
.summary-card,
.pillar-card,
.project-filter-card,
.product-block,
.contact-one-inner-right,
.gmap-outline,
.mfp-figure,
.mfp-img,
.contact-one,
.mission-mid,
.contact-one-inner {
    border-radius: 12px !important;
    overflow: hidden !important; /* Clips child images/backgrounds to the rounded border */
}

/* Standardize overlapping collage containers on About Page */
.collage-img-box {
    border-radius: 16px !important;
}
.floating-experience-badge {
    border-radius: 12px !important;
}

/* Hide the top bar on mobile responsive view to resolve top gap */
@media only screen and (max-width: 991px) {
    .top-bar {
        display: none !important;
    }
}

/* Reduce font size of service section subtitle in mobile responsive view */
@media only screen and (max-width: 991px) {
    .our-service-wrap .section-head h3 {
        font-size: 20px !important;
        line-height: 30px !important;
    }
}

@media only screen and (max-width: 767px) {
    .our-service-wrap .section-head h3 {
        font-size: 16px !important;
        line-height: 26px !important;
    }
}