/* =========================================
   SERVICE DETAILS PAGE CUSTOM STYLES
   ========================================= */

:root {
    --theme-green: #81ba00;
    --text-dark: #111111;
    --text-body: #4a4a4a;
    --bg-light: #ffffff;
}

body {
    background-color: #f9f9f9;
}

.container-1200 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1. Hero Section --- */
.sd-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* Massive bottom padding ensures the hero image flows behind the overlapping card */
    padding: 60px 20px 180px;
    z-index: 1;
}
.sd-hero-title {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 10px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.8);
}
.sd-hero-subtitle {
    color: #ffffff;
    font-size: 20px;
    margin: 0;
    font-weight: 500;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 1.8);
}

.sd-main-section {
    width: 100%;
    position: relative;
    z-index: 10;
    /* Ensure this section is transparent so the hero shows through */
    background-color: transparent;
}

.sd-overlap-card {
    background-color: #ffffff;
    border-radius: 30px;
    /* Curves the corners of the card */
    margin-top: -120px;
    /* Pulls ONLY the white card up over the hero */
    padding: 20px 40px;
    /* Optional: A soft shadow makes the overlap pop off the background */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

.sd-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-outline-white {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #ffffff;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--text-dark);
}

.btn-primary-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #7fb401;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-green .arrow {
    display: inline-block;
    transform: translateX(0);
    transition: transform .3s ease;
}

.btn-primary-green:hover {
    background-color: #6a9900;
    border-color: #6a9900;
}

/* --- 2. Overlap Curved Section --- */
.overlap-section {
    background-color: var(--bg-light);
    border-top-left-radius: 500px;
    border-top-right-radius: 500px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-top: 20px;
    padding-bottom: 40px;
}

.text-green {
    color: var(--theme-green) !important;
}

.sd-main-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

/* --- 3. Content Grid & Bordered Text --- */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.bordered-highlight {
    border-left: 4px solid var(--theme-green);
    padding-left: 20px;
    margin-bottom: 25px;
}

.bordered-highlight p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.regular-text p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.8;
}

/* Right Column Image Frame */
.image-frame-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.framed-image {
    display: block;
    width: 75%;
    height: auto;
    border: 8px solid var(--theme-green);
    border-radius: 8px;
}

.image-label-top {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--theme-green);
    padding: 4px 15px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2;
}

.image-label-bottom {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--theme-green);
    padding: 4px 15px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 95px;
    background-color: var(--theme-green);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(129, 186, 0, 0.4);
    z-index: 3;
}

.badge-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

/* --- 4. Promo Banner --- */
.sd-promo-banner {
    background-color: var(--theme-green);
    padding: 25px 20px;
    color: #ffffff;
}

.promo-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.promo-main-text {
    font-size: 24px;
    font-weight: 700;
}

.promo-sub-text {
    font-size: 24px;
    font-weight: 700;
}

/* --- 5. Dynamic Content Formatting (WYSIWYG overrides) --- */
.sd-dynamic-content-section {
    background-color: #ffffff;
    padding: 50px 0;
}
.dynamic-html-formatting h2,
.dynamic-html-formatting span{
    color: var(--theme-green);
     font-size: 26px;
    font-weight: 700;
}



.dynamic-html-formatting h3 {
    color: #000000;
    font-size: 26px;
    font-weight: 700;
    margin: 35px 0 15px;
}

.dynamic-html-formatting p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 20px;
}

.dynamic-html-formatting ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.dynamic-html-formatting ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-body);
    font-size: 15px;
}

.dynamic-html-formatting ul li::before {
    content: '•';
    color: var(--theme-green);
    position: absolute;
    left: 0;
    font-size: 22px;
    top: -4px;
}

/* The large embedded image in content */
.large-image-frame {
    position: relative;
    margin: 40px 0;
}

.large-image-frame img {
    width: 100%;
    border: 8px solid var(--theme-green);
    border-radius: 10px;
    display: block;
}

.image-brand-badge {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: var(--theme-green);
    padding: 6px 25px;
    font-weight: 800;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- 6. Green CTA Wrapper (White Box inside Green bg) --- */
.sd-green-cta-wrapper {
    background-color: var(--theme-green);
    padding: 60px 0;
}

.cta-text-group {
    margin-right: 30px;
    width: 80%;

}

.cta-text-group h2 {

    color: #7fb401;
}

.cta-white-box {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Decorative Dots */
.cta-white-box::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 8px;
    width: 25px;
    height: 25px;
    background-color: var(--theme-green);
    border-radius: 50%;
}

.cta-white-box::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 9px;
    width: 15px;
    height: 15px;
    background-color: var(--theme-green);
    border-radius: 50%;
}

.cta-heading {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px;
}

.cta-subtext {
    font-size: 15px;
    color: var(--text-body);
    margin: 0;
}

/* --- 7. Other Services Bottom Carousel --- */
.sd-other-services {
    background-color: #ffffff;
    padding: 60px 0 80px;
}

.services-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 40px;
}

.services-carousel-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-icon-box {
    text-align: center;
}

.circle-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid #eaeaea;
    margin: 0 auto 15px;
}

.service-icon-box p {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

.nav-arrow {
    background: var(--theme-green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 14px;
}

/* --- 8. Responsive Fixes --- */
@media (max-width: 991px) {
    .about-content-grid {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        right: 10px;
        bottom: -15px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .promo-flex {
        flex-direction: column;
        text-align: center;
    }

    .cta-white-box {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 30px 20px;
    }

    .sd-main-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .sd-hero {
        padding: 60px 15px 120px;
        /* Less bottom padding on mobile */
    }
      .sd-hero-title { font-size: 32px; }

    .sd-overlap-card {
        margin-top: -60px;
        /* Pull up less on mobile */
        padding: 30px 20px;
        border-radius: 20px;
    }
}