/* Page-specific styles extracted from the original TSA homepage.
   Save this file as: public/css/home.css
   Loaded only by the homepage from web-views/home/index.php; shared header stays untouched. */


            /* =========================
            ABOUT SECTION
            ========================= */

            .about-section {
                background: #f7faf8;
                position: relative;
                overflow: hidden;
            }

            .about-image-wrap {
                position: relative;
                padding: 25px;
            }

            .about-main-image {
                position: relative;
                height: 520px;
                overflow: hidden;
                border-radius: 25px;
                box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
            }

            .about-main-image img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: 0.5s;
            }

            .about-main-image:hover img {
                transform: scale(1.05);
            }

            /* Experience Box */

            .experience-box {
                position: absolute;
                left: 0;
                bottom: 60px;
                background: #ffffff;
                padding: 22px 30px;
                border-radius: 15px;
                display: flex;
                align-items: center;
                gap: 15px;
                box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
                z-index: 2;
            }

            .experience-number {
                font-size: 42px;
                font-weight: 800;
                color: #f5a623;
                line-height: 1;
            }

            .experience-text {
                font-size: 14px;
                color: #555;
                line-height: 1.5;
            }

            /* Decorative Shape */

            .solar-shape {
                position: absolute;
                width: 100px;
                height: 100px;
                right: 0;
                top: 0;
                border-radius: 50%;
                background: #f5a623;
                opacity: 0.9;
                z-index: 0;
            }

            /* Content */

            .about-content {
                padding: 20px 10px;
            }

            .about-label {
                display: inline-block;
                color: #159947;
                font-size: 14px;
                font-weight: 700;
                letter-spacing: 2px;
                margin-bottom: 15px;
            }

            .about-content h2 {
                font-size: 44px;
                line-height: 1.2;
                font-weight: 800;
                color: #172b22;
                margin-bottom: 20px;
            }

            .about-content h2 span {
                color: #159947;
            }

            .about-content p {
                color: #666;
                font-size: 16px;
                line-height: 1.8;
            }

            .about-intro {
                font-size: 18px !important;
                color: #444 !important;
                font-weight: 500;
            }

            /* Features */

            .about-features {
                margin-top: 25px;
                margin-bottom: 20px;
            }

            .feature-item {
                display: flex;
                align-items: center;
                gap: 12px;
                margin-bottom: 20px;
            }

            .feature-icon {
                min-width: 48px;
                height: 48px;
                border-radius: 12px;
                background: #e8f7ed;
                color: #159947;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 20px;
            }

            .feature-item h6 {
                margin: 0 0 3px;
                font-size: 16px;
                color: #222;
                font-weight: 700;
            }

            .feature-item p {
                margin: 0;
                font-size: 13px;
                line-height: 1.4;
            }

            /* Button */

            .about-btn {
                background: #159947;
                color: #ffffff;
                padding: 14px 30px;
                border-radius: 50px;
                font-weight: 600;
                border: none;
                transition: 0.3s;
            }

            .about-btn:hover {
                background: #f5a623;
                color: #ffffff;
                transform: translateY(-3px);
            }


            /* =========================
            MOBILE
            ========================= */

            @media (max-width: 991px) {

                .about-main-image {
                    height: 400px;
                }

                .about-content h2 {
                    font-size: 36px;
                }

                .about-image-wrap {
                    padding: 15px;
                }

            }

            @media (max-width: 575px) {

                .about-main-image {
                    height: 330px;
                }

                .experience-box {
                    bottom: 35px;
                    padding: 15px 18px;
                }

                .experience-number {
                    font-size: 32px;
                }

                .about-content h2 {
                    font-size: 30px;
                }

                .feature-item {
                    margin-bottom: 15px;
                }

            }


            

            


                /* Solar Material Cards - Compact Design */
.solar-materials .row {
    row-gap: 20px !important;
}

.solar-materials .row > div {
    display: flex;
}

.solar-materials .material-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
}

/* Image Size */
.solar-materials .material-image {
    height: 160px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.solar-materials .material-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    display: block;
}

/* Content Adjustment */
.solar-materials .material-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.solar-materials .material-content h4 {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.solar-materials .material-content p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.solar-materials .material-content a {
    font-size: 13px;
    margin-top: auto;
}

/* 4 Cards Per Row - Desktop */
@media (min-width: 1200px) {
    .solar-materials .row > div {
        width: 25%;
    }
}

/* 3 Cards Per Row - Tablet Landscape */
@media (min-width: 768px) and (max-width: 1199px) {
    .solar-materials .row > div {
        width: 33.3333%;
    }
}

/* 2 Cards Per Row - Mobile */
@media (max-width: 767px) {
    .solar-materials .row > div {
        width: 50%;
    }

    .solar-materials .material-image {
        height: 130px;
    }

    .solar-materials .material-content {
        padding: 10px;
    }

    .solar-materials .material-content h4 {
        font-size: 15px;
    }

    .solar-materials .material-content p {
        font-size: 12px;
        line-height: 1.45;
    }
}

/* 1 Card Per Row - Very Small Mobile */
@media (max-width: 400px) {
    .solar-materials .row > div {
        width: 100%;
    }

    .solar-materials .material-image {
        height: 170px;
    }
}


/* Feature Section - Compact Size */
.container-fluid.bg-light.overflow-hidden.my-5.px-lg-0 {
    margin-top: 25px !important;
    margin-bottom: 25px !important;
}

.feature-text {
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}

.feature-text .p-lg-5 {
    padding: 25px !important;
}

.feature-text h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px !important;
}

.feature-text h6 {
    font-size: 14px;
    margin-bottom: 10px;
}

.feature-text p {
    font-size: 14px;
    line-height: 1.6;
}

.feature-text .row.g-4 {
    --bs-gutter-y: 18px;
}

.feature-text .btn-lg-square {
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text .ms-4 {
    margin-left: 12px !important;
}

.feature-text h5 {
    font-size: 16px;
}

.feature .col-lg-6:last-child {
    min-height: 320px !important;
}

.feature .col-lg-6:last-child .position-relative {
    min-height: 320px;
}

.feature .col-lg-6:last-child img {
    height: 100% !important;
    object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .feature-text .p-lg-5 {
        padding: 20px !important;
    }

    .feature-text h1 {
        font-size: 23px;
    }

    .feature-text p {
        font-size: 13px;
    }

    .feature .col-lg-6:last-child {
        min-height: 220px !important;
    }

    .feature .col-lg-6:last-child .position-relative {
        min-height: 220px;
    }

    .feature-text .row.g-4 {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 15px;
    }

    .feature-text .btn-lg-square {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .feature-text h5 {
        font-size: 14px;
    }
}


/* Team Cards - Small Size */
.team-item {
    max-width: 320px;
    margin: 0 auto;
    border-radius: 10px;
}

.team-item .d-flex {
    align-items: stretch;
}

.team-item img {
    width: 75% !important;
    height: 180px;
    object-fit: cover;
    object-position: center;
}

.team-item .team-social {
    width: 25% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.team-item .team-social .btn {
    width: 35px;
    height: 35px;
    padding: 0;
    margin-top: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.team-item .p-4 {
    padding: 15px !important;
}

.team-item h5 {
    font-size: 17px;
    margin-bottom: 5px;
}

.team-item span {
    font-size: 13px;
}

/* Reduce Team Section Spacing */
/*.container-xxl.py-5:has(.team-item) {*/
/*    padding-top: 30px !important;*/
/*    padding-bottom: 30px !important;*/
/*}*/

/* Tablet */
@media (max-width: 991px) {
    .team-item {
        max-width: 300px;
    }

    .team-item img {
        height: 170px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .team-item {
        max-width: 280px;
    }

    .team-item img {
        height: 160px;
    }

    .team-item h5 {
        font-size: 16px;
        overflow-wrap: anywhere;
    }
}



/* Remove Extra Space Below Footer */
body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove Bottom Space After Last Section */
body > .container-fluid:last-of-type {
    margin-bottom: 0 !important;
}

/* Prevent Extra Space at Page End */
body {
    overflow-x: hidden;
}

body > *:last-child {
    margin-bottom: 0 !important;
}





/* ===== Modern Solar Testimonial Design ===== */

.solar-testimonial {
    background: linear-gradient(180deg, #f5faf5 0%, #ffffff 100%);
    overflow: hidden;
}

.testimonial-heading {
    max-width: 650px;
    margin: 0 auto 45px;
}

.testimonial-subtitle {
    display: inline-block;
    color: #159447;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.testimonial-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #173b29;
    margin-bottom: 12px;
}

.testimonial-heading h2 span {
    color: #159447;
}

.testimonial-heading p {
    color: #6b7c70;
    font-size: 15px;
    margin-bottom: 0;
}

/* Main Card */
.solar-testimonial .testimonial-item {
    padding: 12px;
    height: auto;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e4eee5;
    border-radius: 22px;
    padding: 28px;
    min-height: 270px;
    height: 70%;
    box-shadow: 0 10px 35px rgba(28, 83, 45, 0.07);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #13883c, #8bd65c);
}

.testimonial-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(28, 83, 45, 0.13);
    border-color: #b9dfc1;
}

/* Bigger Client Image */
.testimonial-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    position: relative;
}

.client-photo {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #e1f3e4;
    padding: 3px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(21, 148, 71, 0.12);
}

.client-info {
    flex: 1;
    min-width: 0;
}

.client-info h4 {
    color: #183c29;
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 5px;
}

.client-info span {
    color: #78877c;
    font-size: 13px;
}

.client-stars {
    color: #f5ad24;
    letter-spacing: 3px;
    font-size: 18px;
    margin-top: 7px;
}

.quote-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #159447;
    border-radius: 13px;
    font-size: 17px;
}

/* Review Text */
.client-review {
    color: #5f6f63;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 22px;
}

/* Card Footer */
.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #edf1ed;
    color: #168542;
    font-size: 12px;
    font-weight: 600;
}

.review-footer i {
    margin-right: 5px;
}

.review-number {
    color: #a5b5a8;
    font-size: 16px;
    font-weight: 800;
}

/* Owl Carousel Dots */
.solar-testimonial .owl-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 25px;
}

.solar-testimonial .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    margin: 0;
    background: #cbdccf !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.solar-testimonial .owl-dot.active span {
    width: 28px;
    background: #159447 !important;
    border-radius: 10px;
}

/* Tablet */
@media (max-width: 991px) {
    .testimonial-card {
        padding: 24px;
    }

    .client-photo {
        width: 90px !important;
        height: 50px !important;
        min-width: 90px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .solar-testimonial {
        padding-top: 35px !important;
        padding-bottom: 35px !important;
    }

    .testimonial-heading {
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .testimonial-heading h2 {
        font-size: 28px;
    }

    .testimonial-heading p {
        font-size: 13px;
    }

    .solar-testimonial .testimonial-item {
        padding: 7px;
    }

    .testimonial-card {
        padding: 20px 17px;
        border-radius: 18px;
        min-height: auto;
    }

    .testimonial-top {
        gap: 12px;
        margin-bottom: 18px;
        flex-wrap: wrap;
    }

    .client-photo {
        width: 85px !important;
        height: 85px !important;
        min-width: 85px;
    }

    .client-info h4 {
        font-size: 16px;
    }

    .client-info span {
        font-size: 11px;
    }

    .client-stars {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .quote-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 14px;
    }

    .client-review {
        font-size: 13px;
        line-height: 1.8;
    }
}


            
/* =========================================================
   TSA Green Energy – homepage visual refinement
   Keeps the existing sections and content; improves spsacing,
   hierarchy, cards, image treatment and responsive behaviour.
   ========================================================= */
:root {
    --tsa-ink: #172b22;
    --tsa-muted: #66756d;
    --tsa-soft: #f4f8f5;
    --tsa-border: #e3ece6;
    --tsa-dark-yellow : #a68b22;
}
body { color: var(--tsa-ink); }
.container-xxl, .container { position: relative; }

/* Hero banner */
body > .container-fluid.p-0,
.container-fluid.p-0.pb-5.wow.fadeIn {
    overflow: hidden;
    background: #eaf5ed;
}
.container-fluid.p-0.pb-5.wow.fadeIn > .owl-carousel-item {
    position: relative;
    background: #eaf5ed;
}
.container-fluid.p-0.pb-5.wow.fadeIn > .owl-carousel-item > img {
    display: block;
    width: 100%;
    height: clamp(300px, 43vw, 590px);
    object-fit: cover;
    object-position: center;
}

/* Stat strip */
.container-xxl.py-5 .row.g-5 > [class*="col-"] { min-width: 0; }
.container-xxl.py-5 .row.g-5 > [class*="col-"] > .d-flex {
    padding: 22px 18px 8px;
    border-radius: 18px;
    align-items: center;
}
.container-xxl.py-5 .btn-lg-square {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(21,148,71,.16);
}
.container-xxl.py-5 .row.g-5 > [class*="col-"] h1 {
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -1.3px;
    color: var(--tsa-dark-yellow);
}
.container-xxl.py-5 .row.g-5 > [class*="col-"] h5 {
    padding: 0 18px;
    font-weight: 750;
    letter-spacing: -.2px;
}
.container-xxl.py-5 .row.g-5 > [class*="col-"] > span {
    display: block;
    padding: 0 18px;
    color: var(--tsa-muted);
    font-size: 14px;
    line-height: 1.75;
}

/* Section rhythm and typography */
.solar-materials { background: linear-gradient(180deg, #f5faf6 0%, #fff 100%); }
.solar-materials .container { max-width: 1240px; }
.material-tag, .testimonial-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1px solid rgba(21,148,71,.18);
    border-radius: 999px;
    background: #eaf7ee;
    color: var(--tsa-dark-yellow);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}
.material-title, .testimonial-heading h2 {
    margin-top: 16px;
    color: var(--tsa-ink);
    font-size: clamp(30px, 3.5vw, 46px);
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -1.4px;
}
.material-title span, .testimonial-heading h2 span { color: var(--tsa-dark-yellow); }
.material-subtitle, .testimonial-heading p {  
    max-width: 650px;
    margin: 14px auto 0;
    color: var(--tsa-muted);
    font-size: 16px;
    line-height: 1.8;
}
.solar-materials .row.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
.material-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--tsa-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 7px 25px rgba(26,67,43,.045);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.material-card:hover {
    transform: translateY(-7px);
    border-color: rgba(21,148,71,.35);
    box-shadow: 0 18px 38px rgba(26,67,43,.12);
}
.material-image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 225px;
    padding: 16px;
    background: linear-gradient(135deg, #f1f8f3, #fff);
}
.material-image .material-img {
    width: 100%;
    height: 205px;
    object-fit: contain;
    transition: transform .35s ease;
}
.material-card:hover .material-img { transform: scale(1.045); }
.material-number {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(21,148,71,.15);
    border-radius: 12px;
    background: #fff;
    color: var(--tsa-dark-yellow);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.material-content { padding: 23px 23px 25px; }
.material-content h4 {
    margin: 0 0 11px;
    color: var(--tsa-ink);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
}
.material-content p {
    margin-bottom: 18px;
    color: var(--tsa-muted);
    font-size: 14px;
    line-height: 1.8;
}
.material-content a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--tsa-dark-yellow);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.material-content a i { transition: transform .2s ease; }
.material-content a:hover i { transform: translateX(4px); }

/* Main content sections */
.container-xxl.py-5:not(:first-of-type) { padding-top: 76px !important; padding-bottom: 76px !important; }
.container-xxl.py-5 h1.mb-4 { color: var(--tsa-ink); font-size: clamp(29px, 3vw, 42px); line-height: 1.2; font-weight: 850; letter-spacing: -1px; }
.container-xxl.py-5 p { color: var(--tsa-muted); line-height: 1.85; }
.container-xxl.py-5 .btn-primary,
.container-fluid .btn-primary {
    border: 0;
    border-radius: 999px;
    background: var(--tsa-dark-yellow);
    box-shadow: 0 8px 18px rgba(21,148,71,.18);
    font-weight: 750;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.container-xxl.py-5 .btn-primary:hover,
.container-fluid .btn-primary:hover { transform: translateY(-2px); background: var(--tsa-dark-yellow); box-shadow: 0 12px 24px rgba(21,148,71,.24); }

/* Team cards */
.team-item {
    height: 100%;
    border: 1px solid var(--tsa-border);
    border-radius: 20px !important;
    background: #fff;
    box-shadow: 0 8px 26px rgba(26,67,43,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.team-item:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(26,67,43,.12); }
.team-item img { transition: transform .4s ease; }
.team-item:hover img { transform: scale(1.035); }

/* Testimonials */
.solar-testimonial {
    position: relative;
    overflow: hidden;
    padding-top: 86px !important;
    padding-bottom: 88px !important;
    background: linear-gradient(180deg, #f2f8f4 0%, #fff 100%);
}
.testimonial-heading { max-width: 760px; margin-left: auto; margin-right: auto; }
.testimonial-card {
    height: 100%;
    border: 1px solid var(--tsa-border);
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 30px rgba(26,67,43,.07);
    transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(26,67,43,.12); }
.testimonial-carousel .owl-stage { display: flex; }
.testimonial-carousel .owl-item { display: flex; height: auto; padding: 12px 10px 24px; }
.testimonial-carousel .owl-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.testimonial-carousel .owl-dot span { display: block; width: 8px; height: 8px; border-radius: 20px; background: #cbd9cf; transition: all .2s ease; }
.testimonial-carousel .owl-dot.active span { width: 25px; background: var(--tsa-dark-yellow); }

/* Mobile polish */
@media (max-width: 767px) {
    .container-fluid.p-0.pb-5.wow.fadeIn > .owl-carousel-item > img { height: 250px; object-fit: cover; }
    .container-xxl.py-5:not(:first-of-type) { padding-top: 48px !important; padding-bottom: 48px !important; }
    .container-xxl.py-5 .row.g-5 > [class*="col-"] > .d-flex { padding: 15px 10px 5px; }
    .container-xxl.py-5 .row.g-5 > [class*="col-"] h5,
    .container-xxl.py-5 .row.g-5 > [class*="col-"] > span { padding-left: 10px; padding-right: 10px; }
    .material-image { min-height: 190px; }
    .material-image .material-img { height: 175px; }
    .material-content { padding: 20px; }
    .solar-testimonial { padding-top: 54px !important; padding-bottom: 54px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .material-card, .material-img, .team-item, .team-item img, .testimonial-card { transition: none !important; }
}


/* Additional homepage-only refinement: header/navigation files are intentionally untouched. */
.home-intro, .container-xxl.py-5 { scroll-margin-top: 24px; }
.container-xxl.py-5 .section-title,
.container-xxl.py-5 .display-5 { letter-spacing: -.035em; }
.container-xxl.py-5 .row.g-5 { align-items: stretch; }
.container-xxl.py-5 .row.g-5 > [class*="col-"] { min-width: 0; }
.container-xxl.py-5 .row.g-5 > [class*="col-"] img { border-radius: 14px; }
.container-xxl.py-5 .row.g-5 > [class*="col-"] .d-flex { transition: background .22s ease, transform .22s ease; }
.container-xxl.py-5 .row.g-5 > [class*="col-"] .d-flex:hover { transform: translateY(-3px); }
.container-xxl.py-5 .row.g-5 > [class*="col-"] .fa-check,
.container-xxl.py-5 .row.g-5 > [class*="col-"] .fa-check-circle { color: var(--tsa-dark-yellow); }
.container-xxl.py-5 .row.g-5 > [class*="col-"] .btn,
.container-xxl.py-5 .btn { letter-spacing: .01em; }
.container-fluid.p-0.pb-5.wow.fadeIn { overflow: hidden; }
.container-fluid.p-0.pb-5.wow.fadeIn .owl-carousel-item { position: relative; overflow: hidden; }
.container-fluid.p-0.pb-5.wow.fadeIn .owl-carousel-item img { transition: transform .7s ease; }
.container-fluid.p-0.pb-5.wow.fadeIn .owl-carousel-item:hover img { transform: scale(1.025); }
.material-card, .team-item, .testimonial-card { overflow: hidden; }
.material-content p { min-height: 3.5em; }
.solar-testimonial .testimonial-heading h2,
.solar-testimonial .testimonial-heading h1 { margin-bottom: 14px; }
@media (min-width: 992px) {
  .container-xxl.py-5 .row.g-5 { row-gap: 2.5rem !important; }
}
@media (max-width: 767px) {
  .container-xxl.py-5 h1.mb-4 { letter-spacing: -.5px; }
  .container-xxl.py-5 .row.g-5 { --bs-gutter-y: 1.5rem; }
  .material-content p { min-height: 0; }
  .container-fluid.p-0.pb-5.wow.fadeIn .owl-carousel-item img { max-height: 280px; }
}


/* ================================================================
   TSA HOMEPAGE LAYOUT REPAIR
   Header/navigation are intentionally not styled or modified here.
   ================================================================ */
:root {
  --tsa-dark-yellow: #17864b;
  --tsa-dark-yellow: #a68b22;
  --tsa-dark-yellow-soft: #eaf5ee;
  --tsa-ink: #183126;
  --tsa-muted: #64736a;
  --tsa-border: #e2ebe5;
  --tsa-shadow: 0 16px 42px rgba(18, 61, 39, .09);
}

/* Consistent rhythm and readable typography across the homepage */
#main-content { overflow: clip; }
#main-content h1, #main-content h2, #main-content h3,
#main-content h4, #main-content h5 { color: var(--tsa-ink); line-height: 1.2; }
#main-content p { color: var(--tsa-muted); line-height: 1.75; }
#main-content .container { max-width: 1200px; }
#main-content .container-xxl { max-width: 1320px; }
#main-content .py-5 { padding-top: clamp(3rem, 6vw, 5.5rem) !important; padding-bottom: clamp(3rem, 6vw, 5.5rem) !important; }

/* Hero banner: keep original banner image and give it a deliberate frame */
#main-content > .container-fluid.p-0.pb-5.wow.fadeIn {
  padding-bottom: 0 !important; margin: 0 0 26px; background: #f3f8f4;
}
#main-content > .container-fluid.p-0.pb-5.wow.fadeIn > .owl-carousel-item {
  height: clamp(300px, 42vw, 570px); min-height: 300px; background: #eaf3ed;
}
#main-content > .container-fluid.p-0.pb-5.wow.fadeIn > .owl-carousel-item > img {
  display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center;
}
#main-content .owl-carousel-inner { z-index: 2; }

/* Stats row — each metric gets its own tidy card without changing text */
#main-content .container-xxl.py-5 .row.g-5 > [class*="col-"] {
  min-width: 0;
}
#main-content .container-xxl.py-5 .row.g-5 > [class*="col-"] > .d-flex {
  padding: 18px 16px; margin-bottom: 16px !important; border: 1px solid var(--tsa-border);
  border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(18,61,39,.045);
}
#main-content .container-xxl.py-5 .row.g-5 > [class*="col-"] .btn-lg-square {
  flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--tsa-dark-yellow) !important; border-radius: 14px !important;
}
#main-content .container-xxl.py-5 .row.g-5 > [class*="col-"] h1 {
  font-size: clamp(1.8rem, 2.6vw, 2.35rem); font-weight: 800; letter-spacing: -.04em;
}
#main-content .container-xxl.py-5 .row.g-5 > [class*="col-"] h5 { font-size: 1.04rem; font-weight: 750; margin-bottom: .55rem; }
#main-content .container-xxl.py-5 .row.g-5 > [class*="col-"] > span { color: var(--tsa-muted); line-height: 1.65; }

/* Shared section headings */
.material-tag, .testimonial-subtitle {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px;
  border-radius: 999px; background: #e6f4eb; color: #167443; font-size: .75rem;
  font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
}
.material-title, .testimonial-heading h2 {
  margin: 16px auto 12px; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 850;
  letter-spacing: -.045em; line-height: 1.12;
}
.material-title span, .testimonial-heading h2 span { color: var(--tsa-dark-yellow); }
.material-subtitle, .testimonial-heading p { max-width: 650px; margin: 0 auto; font-size: 1rem; }

/* Materials grid: consistent card height, image window and text spacing */
.solar-materials { background: linear-gradient(180deg, #f3f8f4 0%, #fff 100%); }
.solar-materials .row { align-items: stretch; }
.solar-materials .row > [class*="col-"] { display: flex; }
.solar-materials .material-grid > [hidden] { display: none !important; }
.solar-materials .material-card {
  display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden;
  border: 1px solid var(--tsa-border); border-radius: 20px; background: #fff;
  box-shadow: 0 8px 26px rgba(18,61,39,.055); transition: transform .25s ease, box-shadow .25s ease;
}
.solar-materials .material-card:hover { transform: translateY(-6px); box-shadow: var(--tsa-shadow); }
.solar-materials .material-image {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 235px; min-height: 235px; padding: 18px; overflow: hidden; 
  background: linear-gradient(135deg, #f7faf8, #eaf3ed); border-bottom: 1px solid #edf2ee;
}
.solar-materials .material-img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.solar-materials .material-card:hover .material-img { transform: scale(1.045); }
.solar-materials .material-number {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; 
  width: 38px; height: 38px; border-radius: 12px; color: #fff; font-size: .78rem;
  font-weight: 800; background: var(--tsa-dark-yellow); box-shadow: 0 5px 14px rgba(23,134,75,.2);
}
.solar-materials .material-content { display: flex; flex: 1; flex-direction: column; padding: 23px 23px 25px; }
.solar-materials .material-content h4 { margin: 0 0 11px; font-size: 1.15rem; font-weight: 800; }
.solar-materials .material-content p { flex: 1; margin-bottom: 18px; font-size: .92rem; line-height: 1.7; }
.solar-materials .material-content a {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  color: var(--tsa-dark-yellow); font-weight: 800; text-decoration: none;
}
.solar-materials .material-content a i { transition: transform .2s ease; }
.solar-materials .material-content a:hover i { transform: translateX(4px); }

/* About / image-content sections */
#main-content .about-section { background: #f4f8f5; }
#main-content .about-image-wrap { padding: 14px; }
#main-content .about-main-image { border-radius: 22px; box-shadow: var(--tsa-shadow); }
#main-content .about-content h2, #main-content .section-title { font-weight: 850; letter-spacing: -.04em; }
#main-content .about-content h2 span { color: var(--tsa-dark-yellow); }
#main-content .about-btn { background: var(--tsa-dark-yellow); border-color: var(--tsa-dark-yellow); color: #fff; border-radius: 999px; padding: 13px 25px; font-weight: 750; }
#main-content .about-btn:hover { background: var(--tsa-dark-yellow); border-color: var(--tsa-dark-yellow); }

/* Projects, services and other Bootstrap content grids */
#main-content .service-item, #main-content .project-item,
#main-content .team-item, #main-content .feature-item {
  height: 100%; border: 1px solid var(--tsa-border); border-radius: 18px;
  background: #fff; overflow: hidden; box-shadow: 0 8px 25px rgba(18,61,39,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
#main-content .service-item:hover, #main-content .project-item:hover,
#main-content .team-item:hover, #main-content .feature-item:hover {
  transform: translateY(-5px); box-shadow: var(--tsa-shadow);
}
#main-content .service-item img, #main-content .project-item img,
#main-content .team-item img { max-width: 100%; }
#main-content .team-item img { object-fit: cover; }
#main-content .team-item .p-4 { padding: 22px !important; }
#main-content .team-item h5 { font-weight: 800; }
#main-content .team-item span { color: var(--tsa-muted); }

/* Testimonial cards — equal height, clear hierarchy */
.solar-testimonial { background: linear-gradient(180deg, #eff7f1 0%, #fff 100%); }
.testimonial-carousel .owl-stage { display: flex; }
.testimonial-carousel .owl-item { display: flex; height: auto; padding: 10px 10px 24px; }
.testimonial-carousel .testimonial-card {
  display: flex; flex-direction: column; width: 100%; min-height: 300px; padding: 25px;
  border: 1px solid var(--tsa-border); border-radius: 20px; background: #fff;
  box-shadow: 0 8px 25px rgba(18,61,39,.055); transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial-carousel .testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--tsa-shadow); }
.testimonial-top { display: flex; align-items: center; gap: 13px; }
.testimonial-top .client-photo { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid #e4f2e8; }
.testimonial-top .client-info { min-width: 0; }
.testimonial-top .client-info h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; }
.testimonial-top .client-info span { color: var(--tsa-muted); font-size: .8rem; }
.client-stars { margin-top: 5px; color: #e7a52d; letter-spacing: 2px; font-size: .85rem; }
.quote-icon { margin-left: auto; color: #dcefe3; font-size: 1.65rem; }
.client-review { flex: 1; margin: 22px 0; color: #53665b; line-height: 1.8; }
.review-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 15px; border-top: 1px solid #edf2ee; color: #4b6957; font-size: .78rem; }
.review-footer i { color: var(--tsa-dark-yellow); margin-right: 5px; }
.review-number { color: #94a89a; font-weight: 800; }
.testimonial-carousel .owl-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.testimonial-carousel .owl-dot span { display: block; width: 8px; height: 8px; border-radius: 20px; background: #c9d9ce; transition: all .2s ease; }
.testimonial-carousel .owl-dot.active span { width: 24px; background: var(--tsa-dark-yellow); }

/* Make columns line up and prevent images/text from overflowing */
#main-content .row { --bs-gutter-x: 1.5rem; }
#main-content img { max-width: 100%; }
#main-content .rounded, #main-content .rounded-3 { overflow: hidden; }
@media (min-width: 768px) {
  .solar-materials .row > [class*="col-"] { margin-bottom: 0; }
}
@media (max-width: 991.98px) {
  .solar-materials .material-image { height: 210px; min-height: 210px; }
  #main-content > .container-fluid.p-0.pb-5.wow.fadeIn > .owl-carousel-item { height: 360px; }
}
@media (max-width: 575.98px) {
  #main-content > .container-fluid.p-0.pb-5.wow.fadeIn > .owl-carousel-item { height: 245px; min-height: 245px; }
  #main-content .container-xxl.py-5 .row.g-5 > [class*="col-"] > .d-flex { padding: 14px; }
  .solar-materials .material-image { height: 190px; min-height: 190px; }
  .solar-materials .material-content { padding: 20px; }
  .testimonial-carousel .testimonial-card { min-height: 0; padding: 20px; }
  .testimonial-top .client-photo { width: 50px; height: 50px; flex-basis: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  #main-content *, #main-content *::before, #main-content *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Homepage refresh: tighter hero, service ticker, filters and carousel controls */
#main-content > .container-fluid.home-hero {
  margin: 0 !important;
  padding: 0 !important;
  background: #eaf3ed;
}
#main-content > .container-fluid.p-0.pb-5.wow.fadeIn.home-hero > .owl-carousel-item {
  height: clamp(230px, 32vw, 420px);
  min-height: 0;
}
#main-content > .container-fluid.p-0.pb-5.wow.fadeIn.home-hero > .owl-carousel-item > img {
  object-position: center;
}

.home-marquee {
  overflow: hidden;
  padding: 14px 0;
  background: var(--tsa-dark-yellow);
  color: #fff;
}
.home-marquee-track {
  display: flex;
  width: max-content;
  animation: home-marquee-scroll 32s linear infinite;
}
.home-marquee:hover .home-marquee-track {
  animation-play-state: paused;
}
.home-marquee-content {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 0 clamp(14px, 2.5vw, 36px);
}
.home-marquee-content span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 700;
}
.home-marquee-content i { color: #a7e7b9; }
@keyframes home-marquee-scroll {
  to { transform: translateX(-50%); }
}

#main-content .home-stats.py-5 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}
#main-content .home-stats .row.g-5 {
  --bs-gutter-y: 1rem;
  --bs-gutter-x: 1rem;
}
#main-content .home-stats .row.g-5 > [class*="col-"] > .d-flex {
  padding: 14px;
  margin-bottom: 12px !important;
}
#main-content .home-stats .row.g-5 > [class*="col-"] > span {
  font-size: .875rem;
}

#main-content .solar-materials.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}
.solar-materials .container.py-4 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.solar-materials .text-center.mb-5 {
  margin-bottom: 1.75rem !important;
}
.material-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 28px;
}
.material-filter {
  border: 1px solid var(--tsa-border);
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
  color: var(--tsa-ink);
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.material-filter:hover,
.material-filter.active {
  border-color: var(--tsa-dark-yellow);
  background: var(--tsa-dark-yellow);
  color: #fff;
  box-shadow: 0 6px 16px rgba(23, 134, 75, .16);
}
.material-filter:focus-visible {
  outline: 3px solid rgba(23, 134, 75, .3);
  outline-offset: 3px;
}
.solar-materials .material-image {
  height: 185px;
  min-height: 185px;
}
.solar-materials .material-content { padding: 19px; }
.solar-materials .material-content p { font-size: .88rem; }

#main-content .container-xxl.py-5:not(.home-stats) {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}
#main-content .home-feature {
  margin-top: 1.25rem !important;
  margin-bottom: 1.25rem !important;
}
#main-content .home-feature .feature-text {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}
#main-content .home-feature .col-lg-6:last-child {
  min-height: 320px !important;
}
#main-content .home-feature .col-lg-6:last-child .position-relative {
  min-height: 320px;
}
#main-content .home-feature .col-lg-6:last-child img {
  height: 100% !important;
  object-fit: cover;
}
#main-content .portfolio-item img {
  display: block;
  width: min(100%, 900px);
  max-height: 440px;
  margin: 0 auto;
  object-fit: contain;
}
.home-subsidy .subsidy-media-card {
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--tsa-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(18, 61, 39, .07);
}
.home-subsidy .subsidy-media-card img,
.home-subsidy .subsidy-media-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}
.home-subsidy .subsidy-media-card img {
  object-fit: contain;
}

.solar-testimonial.py-5 {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}
.solar-testimonial .testimonial-heading { margin-bottom: 2rem !important; }
.testimonial-carousel .testimonial-card {
  height: 100%;
  min-height: 270px;
}
.testimonial-carousel .owl-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
}
.testimonial-carousel .owl-nav button.owl-prev,
.testimonial-carousel .owl-nav button.owl-next {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin: 0;
  place-items: center;
  border: 1px solid var(--tsa-border);
  border-radius: 50%;
  background: #fff;
  color: var(--tsa-dark-yellow);
  font-size: .95rem;
  box-shadow: 0 5px 16px rgba(18, 61, 39, .08);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.testimonial-carousel .owl-nav button.owl-prev:hover,
.testimonial-carousel .owl-nav button.owl-next:hover {
  transform: translateY(-2px);
  border-color: var(--tsa-dark-yellow);
  background: var(--tsa-dark-yellow);
  color: #fff;
}
.testimonial-carousel .owl-nav button:focus-visible {
  outline: 3px solid rgba(23, 134, 75, .3);
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  #main-content > .container-fluid.p-0.pb-5.wow.fadeIn.home-hero > .owl-carousel-item {
    height: 230px;
  }
  #main-content .home-stats.py-5 {
    padding-top: 1.4rem !important;
    padding-bottom: 1.4rem !important;
  }
  #main-content .container-xxl.py-5:not(.home-stats) {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }
  #main-content .solar-materials.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .material-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-right: -12px;
    padding: 0 12px 10px 0;
    scrollbar-width: thin;
  }
  .material-filter { flex: 0 0 auto; }
  .solar-materials .material-image {
    height: 155px;
    min-height: 155px;
  }
  .solar-materials .material-content { padding: 15px; }
  #main-content .home-feature .col-lg-6:last-child,
  #main-content .home-feature .col-lg-6:last-child .position-relative {
    min-height: 240px !important;
  }
  .home-subsidy .subsidy-media-card,
  .home-subsidy .subsidy-media-card img,
  .home-subsidy .subsidy-media-card iframe {
    min-height: 240px;
  }
  .solar-testimonial.py-5 {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }
  .testimonial-carousel .testimonial-card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-marquee-track { animation: none; }
}
