/* ==============================================================================
   OFFICIAL ECOGREEN LOGO BRAND COLOR PALETTE & BUTTON OVERRIDES
   Exact values extracted from assets/images/logo/ecogreen-official-logo.webp:
   - Primary Green: #6CC06B (Hover: #58AF57)
   - Secondary Blue: #2079BD (Hover: #1765A0)
============================================================================== */
:root {
    --brand-green: #6CC06B;
    --brand-green-hover: #58AF57;
    --brand-green-dark: #479A46;
    --brand-green-light: #EBF7EC;
    --brand-blue: #2079BD;
    --brand-blue-hover: #1765A0;
    --btn-color: #6CC06B !important;
    --rts-neon: #6CC06B !important;
}

/* Universal Button Styles Matching EcoGreen Logo */
.rts-btn.btn-primary,
.btn-primary,
.btn-success,
a.rts-btn.btn-primary,
button.rts-btn.btn-primary,
.main__right .rts-btn,
.rts-banner-wrapper .banner-content .rts-btn,
.rts-banner-wrapper .banner-content .btn,
.btn-service-quick,
.btn-add-primary {
    background: #6CC06B !important;
    background-color: #6CC06B !important;
    border: 1px solid #6CC06B !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(108, 192, 107, 0.32) !important;
    transition: all 0.3s ease !important;
}

.rts-btn.btn-primary:hover,
.btn-primary:hover,
.btn-success:hover,
a.rts-btn.btn-primary:hover,
button.rts-btn.btn-primary:hover,
.main__right .rts-btn:hover,
.rts-banner-wrapper .banner-content .rts-btn:hover,
.btn-service-quick:hover,
.btn-add-primary:hover {
    background: #58AF57 !important;
    background-color: #58AF57 !important;
    border-color: #58AF57 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(108, 192, 107, 0.45) !important;
}

/* Brand Text Accents & Badges */
.text-success,
.hover-text-success:hover,
.brand-green-text {
    color: #6CC06B !important;
}

.bg-success {
    background-color: #6CC06B !important;
}

.border-success {
    border-color: #6CC06B !important;
}

/* Nav Active Indicator */
.rts__main__menu ul li a.active,
.rts__main__menu ul li a:hover {
    color: #6CC06B !important;
}

/* Prevent any accidental horizontal overflow on mobile devices */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ── Rotating Wind Turbine Animation (Counter-Clockwise) ── */
@keyframes spinAntiClockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

.spin-anticlockwise {
    animation: spinAntiClockwise 4.5s linear infinite !important;
    transform-origin: 50% 50% !important;
    transform-box: fill-box !important;
    will-change: transform;
}

.spin-anticlockwise-fast {
    animation: spinAntiClockwise 3.2s linear infinite !important;
    transform-origin: 50% 50% !important;
    transform-box: fill-box !important;
    will-change: transform;
}

/* ── Hero Banner Floating Stats Card Fix ── */
/* Eliminates template pseudo-element cutouts that caused broken jagged cuts into the banner image */
.rts-banner-wrapper {
    overflow: hidden !important;
}

.rts-banner-wrapper .banner-card-wrapper .inner-card::before,
.rts-banner-wrapper .banner-card-wrapper .inner-card::after {
    display: none !important;
    content: none !important;
    box-shadow: none !important;
}

.rts-banner-wrapper .banner-card-wrapper {
    position: absolute;
    right: 32px !important;
    bottom: 32px !important;
    z-index: 5;
}

.rts-banner-wrapper .banner-card-wrapper .inner-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22) !important;
    padding: 18px 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
}

/* Ensure all wide containers adapt seamlessly on smaller viewports */
.container,
.container-1428,
.container-1520,
.container-1534 {
    width: 100% !important;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container,
    .container-1428,
    .container-1520,
    .container-1534 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ------------------------------------------------------------------------------
   1. HERO BANNER RESPONSIVENESS & ALIGNMENT
------------------------------------------------------------------------------ */
.rts__banner__area {
    padding: 20px 0 30px;
}

.rts-banner-wrapper {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    padding: 90px 70px 240px;
    background-size: cover !important;
    background-position: center center !important;
}

.rts-banner-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 26, 18, 0.92) 0%, rgba(2, 26, 18, 0.80) 42%, rgba(2, 26, 18, 0.40) 75%, rgba(2, 26, 18, 0.12) 100%);
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}

.rts-banner-wrapper .banner-content {
    position: relative;
    z-index: 5;
    max-width: 820px;
}

.rts-banner-wrapper .banner-content .banner-title {
    color: #ffffff !important;
    font-size: clamp(30px, 4.6vw, 60px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.rts-banner-wrapper .banner-content .desc {
    color: #f1f7f3 !important;
    font-size: clamp(15px, 1.4vw, 19px);
    font-weight: 500;
    line-height: 1.65;
    margin-bottom: 35px;
    max-width: 680px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.rts-banner-wrapper .banner-card-wrapper {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
}

.rts-banner-wrapper .banner-card-wrapper .inner-card {
    background: #ffffff;
    padding: 20px 24px;
    border-top-left-radius: 30px;
    box-shadow: -10px -10px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991px) {
    .rts-banner-wrapper {
        padding: 60px 35px 70px !important;
        border-radius: 24px;
    }
    .rts-banner-wrapper .banner-card-wrapper {
        position: static;
        margin-top: 40px;
        display: inline-block;
        width: 100%;
    }
    .rts-banner-wrapper .banner-card-wrapper .inner-card {
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
}

@media (max-width: 576px) {
    .rts-banner-wrapper {
        padding: 35px 16px 35px !important;
        border-radius: 20px;
    }
    .rts-banner-wrapper .banner-content {
        max-width: 100% !important;
        overflow-wrap: break-word;
    }
    .rts-banner-wrapper .banner-content .hero-badge-pill {
        white-space: normal !important;
        font-size: 11.5px !important;
        padding: 6px 12px !important;
        line-height: 1.35 !important;
        letter-spacing: 0.3px !important;
        max-width: 100% !important;
    }
    .rts-banner-wrapper .banner-content .banner-title {
        font-size: clamp(24px, 6.8vw, 34px) !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }
    .rts-banner-wrapper .banner-content .desc {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 25px;
    }
    .rts-banner-wrapper .banner-content .rts-btn,
    .rts-banner-wrapper .banner-content .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ------------------------------------------------------------------------------
   2. BRAND SLIDER ALIGNMENT
------------------------------------------------------------------------------ */
.rts__brand__area {
    padding: 35px 0 !important;
    background: #ffffff;
    border-bottom: 1px solid #edf2ee;
}

.brand__slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
}

.brand__slider .swiper-slide img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand__slider .swiper-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ------------------------------------------------------------------------------
   3. SECTION 3: SOLAR MELBOURNE ABOUT & COUNTERS
------------------------------------------------------------------------------ */
.rts__about__area {
    padding: 70px 0 !important;
}

.about-counter {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .about-counter {
        justify-content: center;
        gap: 15px;
    }
    .about-counter .counter-item {
        flex: 1 1 calc(50% - 15px);
        min-width: 135px;
        text-align: center;
    }
}

/* ------------------------------------------------------------------------------
   4. NEW PREMIUM SERVICES SECTION STYLING (MODERN CARDS WITH IMAGES & FEATURES)
------------------------------------------------------------------------------ */
.rts-service-area-modern {
    padding: 85px 0 90px;
    background: #f7faf7;
    position: relative;
}

.service-card-modern {
    background: #ffffff;
    border: 1px solid #e2ebe4;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 18px rgba(0, 45, 35, 0.04);
    overflow: hidden;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(94, 203, 42, 0.45);
    box-shadow: 0 22px 48px rgba(0, 45, 35, 0.12);
}

/* Service Card Thumbnail */
.service-card-modern .service-thumb-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #eef3ee;
}

.service-card-modern .service-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-card-modern:hover .service-thumb-img {
    transform: scale(1.08);
}

.service-card-modern .service-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 35, 25, 0.1) 0%, rgba(0, 35, 25, 0.55) 100%);
    pointer-events: none;
}

/* Floating Badge */
.service-card-modern .service-floating-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: rgba(18, 56, 38, 0.88);
    backdrop-filter: blur(8px);
    color: #a3f779;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(163, 247, 121, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Floating Icon Box */
.service-card-modern .service-floating-icon {
    position: absolute;
    bottom: -24px;
    left: 24px;
    z-index: 3;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #ffffff;
    color: #1f8a26;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0, 45, 35, 0.15);
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-floating-icon {
    background: #1f8a26;
    color: #ffffff;
    transform: scale(1.1) rotate(4deg);
}

/* Card Body */
.service-card-modern .service-card-body {
    padding: 36px 26px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-modern .service-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    color: #12201b;
    margin-bottom: 12px;
}

.service-card-modern .service-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.service-card-modern:hover .service-title a {
    color: #1f8a26;
}

.service-card-modern .service-desc {
    color: #5d6d67;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Service Feature Checklist */
.service-feature-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #f0f4f1;
    padding-top: 14px;
}

.service-feature-checklist li {
    font-size: 13px;
    color: #44534e;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.service-feature-checklist li i {
    color: #1f8a26;
    font-size: 14px;
}

/* Card Footer */
.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf2ee;
}

.service-card-footer .service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f8a26;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.25s ease;
}

.service-card-footer .service-link:hover {
    gap: 12px;
    color: #0b251b;
}

.btn-service-quick {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #edf7ee;
    color: #1f8a26;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-service-quick:hover {
    background: #1f8a26;
    color: #ffffff;
    transform: scale(1.1);
}

/* ------------------------------------------------------------------------------
   5. WHY CHOOSE US & PROCESS RESPONSIVENESS
------------------------------------------------------------------------------ */
.rts__choose__area,
.rts-process-area {
    padding: 70px 0 !important;
}

@media (max-width: 768px) {
    .choose__single__items,
    .choose__single__item {
        padding: 24px 20px !important;
        margin-bottom: 12px;
    }
}

/* ------------------------------------------------------------------------------
   6. TESTIMONIALS & FAQ MOBILE FIXES
------------------------------------------------------------------------------ */
.rts__testimonial__area-two,
.rts__faq__area {
    padding: 70px 0 !important;
}

.testi-content {
    border-radius: 20px !important;
    border: 1px solid #e7ede9 !important;
}

.accordion-button {
    font-size: 17px !important;
    font-weight: 600 !important;
    padding: 18px 20px !important;
}

@media (max-width: 576px) {
    .accordion-button {
        font-size: 15px !important;
        padding: 14px 16px !important;
    }
}

/* ------------------------------------------------------------------------------
   7. CALL TO ACTION (CTA) WRAPPER
------------------------------------------------------------------------------ */
.rts-cta-wrapper {
    background-size: cover !important;
    background-position: center !important;
    border-radius: 30px !important;
    padding: 70px 60px !important;
    position: relative;
    overflow: hidden;
}

.rts-cta-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3, 40, 31, 0.94) 0%, rgba(5, 55, 42, 0.88) 100%);
    z-index: 1;
}

.rts-cta-wrapper .row {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .rts-cta-wrapper {
        padding: 40px 24px !important;
        border-radius: 20px !important;
    }
    .rts-cta-wrapper .cta-right-list {
        margin-top: 25px;
    }
}

/* ------------------------------------------------------------------------------
   8. MOBILE TOPBAR & NAVBAR ADJUSTMENTS
------------------------------------------------------------------------------ */
@media (max-width: 991px) {
    .header__top {
        display: none !important;
    }
    .rts__main__header {
        padding: 14px 20px !important;
    }
    .rts__main__header .main__left .logo img {
        max-height: 42px !important;
    }
    .rts__main__header .main__right .rts-btn {
        padding: 8px 18px !important;
        font-size: 13px !important;
    }
}

/* ------------------------------------------------------------------------------
   9. COMPREHENSIVE MOBILE OPTIMIZATIONS & ALIGNMENT SAFEGUARDS
------------------------------------------------------------------------------ */
/* Responsive typography clamps */
h1, .heading-title {
    word-break: break-word;
}

@media (max-width: 768px) {
    .fs-1 {
        font-size: calc(1.375rem + 1.5vw) !important;
    }
    .display-4 {
        font-size: 2rem !important;
    }
    .display-5 {
        font-size: 1.75rem !important;
    }
    .display-6 {
        font-size: 1.5rem !important;
    }
    .rts-section-gap {
        padding: 50px 0 !important;
    }
    .rts-section-gap2 {
        padding: 50px 0 !important;
    }
    .service-card-modern .service-thumb-wrap {
        height: 185px;
    }
}

/* Mobile Offcanvas Enhancements */
.rts__offcanvas.active {
    opacity: 1;
    visibility: visible;
}

.rts__offcanvas.active .rts__offcanvas__wrapper {
    right: 0 !important;
}

.rts__offcanvas__toggle__close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf7ee;
    color: #1f8a26;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.25s ease;
}

.rts__offcanvas__toggle__close:hover {
    background: #1f8a26;
    color: #ffffff;
}

/* Table Responsive Mobile Fix */
.table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

/* Images Responsive Containment */
img {
    max-width: 100%;
    height: auto;
}

/* Blog & Service Cards on Small Screens */
@media (max-width: 576px) {
    .btn-primary, .rts-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .main__right .main__right__btn {
        display: none !important;
    }
    .service-card-modern .service-card-body {
        padding: 30px 18px 20px;
    }
}

/* ------------------------------------------------------------------------------
   10. MODERN OVERLAPPING ABOUT SECTION
------------------------------------------------------------------------------ */
.about-overlap-wrapper {
    position: relative;
    max-width: 530px;
    min-height: 520px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .about-overlap-wrapper {
        min-height: 420px;
        max-width: 100%;
    }
    .about-overlap-wrapper .about-img-portrait {
        height: 290px !important;
    }
    .about-overlap-wrapper .about-img-tablet {
        height: 210px !important;
    }
}

/* ------------------------------------------------------------------------------
   11. COMPREHENSIVE FULL-SITE MOBILE OPTIMIZATIONS (SMARTPHONES & TABLETS)
------------------------------------------------------------------------------ */

/* Prevent any horizontal overflow across all devices */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-font-smoothing: antialiased;
}

/* Base mobile container padding */
@media (max-width: 767px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Section vertical padding */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    /* Fluid Typography Scaling */
    h1, .h1 {
        font-size: clamp(24px, 6.8vw, 34px) !important;
        line-height: 1.22 !important;
    }
    h2, .h2 {
        font-size: clamp(21px, 5.5vw, 28px) !important;
        line-height: 1.28 !important;
    }
    h3, .h3 {
        font-size: clamp(18px, 4.8vw, 23px) !important;
        line-height: 1.32 !important;
    }
    h4, .h4 {
        font-size: clamp(16px, 4.2vw, 20px) !important;
    }
    h5, .h5 {
        font-size: clamp(15px, 3.8vw, 18px) !important;
    }
    h6, .h6 {
        font-size: 14px !important;
    }
    p, .text-muted {
        font-size: 14px !important;
        line-height: 1.65 !important;
    }

    /* Service Hero & Split Sections Media Containers */
    .position-relative[style*="height: 440px"],
    .position-relative[style*="height: 420px"] {
        height: auto !important;
        min-height: 280px !important;
        max-height: 360px !important;
    }
    
    .position-relative[style*="height: 440px"] img,
    .position-relative[style*="height: 420px"] img {
        height: 280px !important;
        object-fit: cover !important;
    }

    /* Decorative border offsets on mobile */
    .position-absolute[style*="transform: translate(-12px, -12px)"] {
        transform: translate(-6px, -6px) !important;
        border-width: 2px !important;
    }
    .position-absolute[style*="top: 15px; left: 15px;"] {
        top: 8px !important;
        left: 8px !important;
    }

    /* Floating Badges on Mobile */
    .position-absolute.bottom-0.end-0.m-4 {
        margin: 10px !important;
        padding: 8px 12px !important;
        border-radius: 12px !important;
    }
    .position-absolute.bottom-0.end-0.m-4 h4 {
        font-size: 16px !important;
    }
    .position-absolute.bottom-0.end-0.m-4 span {
        font-size: 11px !important;
    }
    .position-absolute.bottom-0.end-0.m-4 .rounded-circle {
        width: 36px !important;
        height: 36px !important;
        font-size: 15px !important;
    }

    /* Floating circular icon on card thumbnails */
    .position-absolute.bottom-0.start-0.m-3.rounded-circle {
        margin: 10px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 15px !important;
    }

    /* Streamer Bar on Mobile */
    .d-flex.flex-wrap.justify-content-center.align-items-center.gap-3.gap-md-5 {
        gap: 10px !important;
        font-size: 12.5px !important;
        text-align: left;
    }
    .d-flex.flex-wrap.justify-content-center.align-items-center.gap-3.gap-md-5 span.text-muted {
        display: none !important;
    }

    /* Mobile Form Controls & Inputs (Prevent iOS Safari Auto-Zoom) */
    input.form-control,
    select.form-select,
    textarea.form-control {
        font-size: 16px !important;
        min-height: 46px !important;
        border-radius: 12px !important;
        padding: 10px 14px !important;
    }
    
    /* Interactive Modal & Consultation Boxes */
    .p-4.p-md-5 {
        padding: 24px 18px !important;
    }

    /* Buttons Mobile Usability */
    .rts-btn, .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Accordion Touch Friendly */
    .accordion-button {
        font-size: 14.5px !important;
        line-height: 1.4 !important;
        padding: 14px 16px !important;
    }
    .accordion-body {
        padding: 14px 16px !important;
        font-size: 13.5px !important;
    }

    /* Counter Bar items on Mobile */
    .col-lg-3.col-6 {
        padding: 8px !important;
    }
    .col-lg-3.col-6 h2 {
        font-size: 26px !important;
    }
    .col-lg-3.col-6 p {
        font-size: 12px !important;
    }

    /* Lightbulb Interactive Card on Mobile */
    .col-lg-5.col-12 .position-relative[style*="max-width: 360px"] {
        max-width: 280px !important;
        margin: 0 auto;
    }

    /* Offcanvas Navigation Drawer on Mobile */
    .rts__offcanvas__wrapper {
        width: 86vw !important;
        max-width: 340px !important;
    }
    .rts__offcanvas__mobile__menu ul li a {
        font-size: 15px !important;
        padding: 12px 0 !important;
        font-weight: 600 !important;
    }

    /* Tables Responsive Scroll on Mobile */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }
    .table-responsive table {
        min-width: 540px;
    }
    
    /* Partner & Accreditation Logos */
    .p-4.rounded-4.bg-light.border.d-flex.flex-wrap {
        padding: 16px !important;
        gap: 16px !important;
    }
}

/* Extra Small Screens (< 380px) */
@media (max-width: 380px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    h1, .h1 {
        font-size: 22px !important;
    }
    .col-lg-5.col-12 .position-relative[style*="max-width: 360px"] {
        max-width: 240px !important;
    }
}

/* ==============================================================================
   BLOGS & TESTIMONIALS MODERN ALIGNMENT & RESPONSIVENESS
============================================================================== */

/* Side Blog Cards Layout (Desktop & Tablet) */
.blog-side-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    background: #ffffff !important;
    border: 1px solid #e2ebe5 !important;
    border-radius: 20px !important;
    padding: 14px !important;
    box-shadow: 0 4px 18px rgba(0, 35, 25, 0.04) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    min-width: 0;
}

.blog-side-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(0, 35, 25, 0.09) !important;
}

.blog-side-card .blog-thumb {
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    height: 125px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #f0f4f1;
}

.blog-side-card .blog-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-side-card .blog-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.blog-side-card:hover .blog-thumb img {
    transform: scale(1.06);
}

.blog-side-card .blog-content {
    flex: 1 1 auto !important;
    min-width: 0 !important; /* Critical for flex child text overflow */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.blog-side-card .blog-content .blog-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 11.5px !important;
    color: #6b7280 !important;
    margin-bottom: 6px !important;
}

.blog-side-card .blog-content h6 {
    font-family: 'Montserrat', sans-serif !important;
    color: #002244 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-side-card .blog-content h6 a {
    color: #002244 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.blog-side-card .blog-content h6 a:hover {
    color: #38B34A !important;
}

@media (max-width: 576px) {
    /* Testimonial Rating Pill on Mobile */
    .testimonial-rating-pill {
        flex-direction: column !important;
        text-align: center !important;
        border-radius: 16px !important;
        padding: 12px 16px !important;
        gap: 6px !important;
    }

    /* Side Blog Cards full width on small screens */
    .blog-side-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        gap: 12px !important;
    }

    .blog-side-card .blog-thumb {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 180px !important;
        border-radius: 14px !important;
    }

    .blog-side-card .blog-content {
        width: 100% !important;
    }

    .blog-side-card .blog-content h6 {
        font-size: 15.5px !important;
    }
}

/* ==============================================================================
   SINGLE BLOG ARTICLE EDITORIAL TYPOGRAPHY & READABILITY
============================================================================== */
.blog-single-post {
    color: #334155;
}

.blog-single-post .post-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eaf8ed;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.blog-single-post .post-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(26px, 3.2vw, 38px) !important;
    font-weight: 800 !important;
    color: #002244 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 18px !important;
}

.blog-single-post .post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding-bottom: 16px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e2ece5;
    font-size: 13.5px;
    color: #64748b;
}

.blog-single-post .post-meta-bar .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-single-post .post-meta-bar .meta-item i {
    color: #38B34A;
}

/* Featured Image */
.blog-single-post .featured-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: 0 10px 30px rgba(0, 35, 25, 0.08);
    border: 1px solid #e2ece5;
    background: #f8faf9;
}

.blog-single-post .featured-image-wrapper img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

/* Article Body Typography */
.blog-article-content {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 17.5px !important;
    line-height: 1.85 !important;
    color: #334155 !important;
}

.blog-article-content p {
    margin-bottom: 24px !important;
    line-height: 1.85 !important;
    color: #334155 !important;
    font-size: 17px !important;
}

.blog-article-content p.lead {
    font-size: 19px !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
    color: #0f172a !important;
    background: #f8faf9;
    border-left: 4px solid #38B34A;
    padding: 18px 22px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 32px !important;
}

.blog-article-content h2 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(22px, 2.4vw, 27px) !important;
    font-weight: 800 !important;
    color: #002244 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.4px !important;
    margin-top: 44px !important;
    margin-bottom: 18px !important;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0fdf4;
}

.blog-article-content h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(19px, 2vw, 22px) !important;
    font-weight: 700 !important;
    color: #002244 !important;
    line-height: 1.35 !important;
    margin-top: 34px !important;
    margin-bottom: 14px !important;
}

.blog-article-content h4 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #002244 !important;
    margin-top: 26px !important;
    margin-bottom: 12px !important;
}

.blog-article-content strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* Clean Lists */
.blog-article-content ul,
.blog-article-content ol {
    margin: 20px 0 28px !important;
    padding-left: 24px !important;
}

.blog-article-content li {
    font-size: 16.5px !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    margin-bottom: 12px !important;
}

.blog-article-content li strong {
    color: #0f172a !important;
}

/* Callout Box / Alert Box */
.blog-article-content .alert,
.blog-article-content .alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #eaf8ed 100%) !important;
    border: 1px solid #c8e6c9 !important;
    border-left: 5px solid #38B34A !important;
    border-radius: 16px !important;
    padding: 24px 26px !important;
    margin: 32px 0 !important;
    box-shadow: 0 4px 18px rgba(56, 179, 74, 0.06) !important;
}

.blog-article-content .alert-success h4 {
    color: #1e7e34 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
}

.blog-article-content .alert-success ul {
    margin: 0 !important;
    padding-left: 20px !important;
}

.blog-article-content .alert-success li {
    font-size: 15.5px !important;
    line-height: 1.7 !important;
    color: #1e293b !important;
    margin-bottom: 10px !important;
}

.blog-article-content .alert-success li:last-child {
    margin-bottom: 0 !important;
}

/* In-Article CTA Banner */
.blog-article-content .bg-primary {
    background: linear-gradient(135deg, #091e2b 0%, #002244 55%, #184e28 100%) !important;
    border-radius: 22px !important;
    padding: 38px 30px !important;
    margin: 40px 0 !important;
    text-align: center !important;
    box-shadow: 0 14px 34px rgba(0, 34, 68, 0.16) !important;
}

.blog-article-content .bg-primary h3 {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(21px, 2.3vw, 25px) !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.blog-article-content .bg-primary p {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    max-width: 580px !important;
    margin: 0 auto 22px !important;
}

.blog-article-content .bg-primary a,
.blog-article-content .bg-primary .rts-btn {
    background: linear-gradient(135deg, #38B34A 0%, #2e7d32 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    padding: 13px 32px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 6px 20px rgba(56, 179, 74, 0.35) !important;
    transition: all 0.25s ease !important;
    border: none !important;
}

.blog-article-content .bg-primary a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 26px rgba(56, 179, 74, 0.45) !important;
    color: #ffffff !important;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 24px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.blog-article-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 28px 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
}

.blog-article-content table th,
.blog-article-content table td {
    padding: 12px 18px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 15px !important;
}

.blog-article-content table th {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

.blog-article-content blockquote {
    border-left: 4px solid #10b981 !important;
    background: #f0fdf4 !important;
    padding: 18px 24px !important;
    margin: 28px 0 !important;
    border-radius: 0 14px 14px 0 !important;
    font-size: 16.5px !important;
    font-style: italic !important;
    color: #065f46 !important;
}

/* Share Article Card */
.article-share-card {
    background: #f8faf9;
    border: 1px solid #e5ede7;
    border-radius: 18px;
    padding: 22px 26px;
    margin: 40px 0;
}

.article-share-card .share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-size: 14px;
}

.article-share-card .share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
}

.article-share-card .share-linkedin { background: #0a66c2 !important; }
.article-share-card .share-facebook { background: #1877f2 !important; }
.article-share-card .share-twitter { background: #000000 !important; }
.article-share-card .share-whatsapp { background: #25d366 !important; }

/* Sidebar Cards */
.blog-sidebar-widget {
    border-radius: 20px;
    border: 1px solid #e5ede7;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 35, 25, 0.04);
    padding: 24px;
    margin-bottom: 24px;
}

.blog-sidebar-widget .widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #002244;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef5f0;
}




