/* =========================================================
   LEAF PILLARS SECTION
========================================================= */
.leaf-pillars-intro {
    max-width: 980px;
    background: linear-gradient(135deg, #f8fffb 0%, #eef8f1 100%);
    border: 1px solid rgba(20, 83, 45, 0.08);
    border-radius: 22px;
    padding: 32px 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.leaf-pillars-intro h5 {
    font-weight: 700;
    color: #14532d;
}

.leaf-pillars-intro p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 0;
}

.service-pillar {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    padding: 34px 26px;
    overflow: hidden;
    position: relative;
}

.service-pillar::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0d6efd 0%, #198754 100%);
}

.service-pillar:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.10);
}

.service-pillar .service-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(13, 110, 253, 0.22);
}

.service-pillar h5 {
    font-weight: 700;
    color: #111827;
}

.service-pillar p {
    color: #6b7280;
    line-height: 1.75;
}

/* =========================================================
   MODAL / WINDOW
========================================================= */
.leaf-modal .modal-dialog {
    max-width: 1240px;
}

.leaf-modal .modal-content {
    border-radius: 28px;
    overflow: hidden;
    border: 0;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
    background: #ffffff;
}

.leaf-modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    padding: 26px 30px;
    border-bottom: 0;
}

.leaf-modal-header .modal-title {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
}

.leaf-modal-header p {
    letter-spacing: 0.12em;
    font-weight: 600;
}

.leaf-modal .btn-close {
    opacity: 1;
    filter: none;
}

.leaf-modal .modal-body {
    background: #f8fafc;
}

/* =========================================================
   MODAL HERO
========================================================= */
.leaf-modal-hero {
    background:
        radial-gradient(circle at top right, rgba(13,110,253,0.12), transparent 35%),
        radial-gradient(circle at bottom left, rgba(25,135,84,0.12), transparent 35%),
        linear-gradient(135deg, #f5fbff 0%, #f4fbf6 100%);
    padding: 34px 26px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.leaf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #198754;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.18);
}

.leaf-modal-hero h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 14px;
}

.leaf-modal-hero p {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 0;
}

/* =========================================================
   CONTENT CONTAINERS
========================================================= */
.leaf-content-wrap {
    padding: 28px;
}

.leaf-quick-card,
.leaf-info-card,
.leaf-step-card,
.leaf-box {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.leaf-quick-card h5,
.leaf-info-card h5,
.leaf-box h5 {
    font-weight: 700;
    color: #0f172a;
}

.leaf-quick-card p,
.leaf-info-card p,
.leaf-box p,
.leaf-info-card li,
.leaf-quick-card li {
    color: #475569;
    line-height: 1.75;
}

.leaf-check-list {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.leaf-check-list li {
    margin-bottom: 10px;
}

.leaf-check-list li:last-child {
    margin-bottom: 0;
}

/* =========================================================
   DIMENSIONS BADGES
========================================================= */
.leaf-info-card .badge {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 14px !important;
    border-radius: 999px !important;
}

/* =========================================================
   ACCORDION
========================================================= */
.leaf-accordion .accordion-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px !important;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    background: #ffffff;
}

.leaf-accordion .accordion-button {
    font-weight: 700;
    font-size: 1.02rem;
    color: #0f172a;
    padding: 20px 22px;
    background: #ffffff;
    line-height: 1.5;
}

.leaf-accordion .accordion-button:not(.collapsed) {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
    box-shadow: none;
}

.leaf-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.leaf-accordion .accordion-body {
    padding: 24px;
    background: #ffffff;
}

.leaf-accordion .accordion-body p {
    color: #475569;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.leaf-accordion .accordion-body p:last-child {
    margin-bottom: 0;
}

.leaf-accordion .accordion-body ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.leaf-accordion .accordion-body li {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 10px;
}

.leaf-accordion .accordion-body li:last-child {
    margin-bottom: 0;
}

/* =========================================================
   STEP CARDS - FIXED OVERLAP
========================================================= */
.leaf-step-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    position: relative;
    min-height: 100%;
    padding: 22px;
}

.leaf-step-number {
    width: 52px;
    min-width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.22);
    flex-shrink: 0;
}

.leaf-step-content {
    flex: 1;
    min-width: 0;
}

.leaf-step-content h5 {
    font-size: 1.02rem;
    line-height: 1.55;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.leaf-step-content p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 0;
}

/* =========================================================
   TABLES
========================================================= */
.leaf-table-wrapper {
    margin-top: 18px;
    margin-bottom: 20px;
}

.leaf-table-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.leaf-table-subtitle {
    color: #64748b;
    margin-bottom: 16px;
}

.leaf-table {
    margin-bottom: 0;
    border-color: rgba(15, 23, 42, 0.08);
    background: #fff;
    overflow: hidden;
    border-radius: 18px;
}

.leaf-table thead th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
    padding: 16px;
    border-bottom-width: 1px;
}

.leaf-table td,
.leaf-table th {
    vertical-align: top;
    padding: 16px;
}

.leaf-table td {
    color: #475569;
    line-height: 1.75;
}

.leaf-table ul {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.leaf-table li {
    margin-bottom: 8px;
}

.leaf-table li:last-child {
    margin-bottom: 0;
}

/* =========================================================
   EXAMPLE / BOXES
========================================================= */
.leaf-box {
    background: linear-gradient(135deg, #fcfffd 0%, #f5fbf7 100%);
    border-left: 6px solid #198754;
    margin-top: 22px;
}

.leaf-box h5 {
    color: #166534;
    margin-bottom: 14px;
    font-size: 1.08rem;
}

.leaf-box ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.leaf-box li {
    line-height: 1.8;
    color: #475569;
    margin-bottom: 8px;
}

.leaf-box li:last-child {
    margin-bottom: 0;
}

/* =========================================================
   ALERT / NOTES
========================================================= */
.leaf-note {
    border-radius: 18px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8fbff 0%, #f2fff8 100%);
    border: 1px solid rgba(13, 110, 253, 0.10);
    color: #475569;
    line-height: 1.75;
    margin-top: 22px;
}

/* =========================================================
   SCROLLBAR INSIDE MODAL
========================================================= */
.modal-dialog-scrollable .modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-track {
    background: #eef2f7;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1199.98px) {
    .leaf-modal .modal-dialog {
        max-width: 96%;
    }
}

@media (max-width: 991.98px) {
    .leaf-modal-header {
        padding: 22px 22px;
    }

    .leaf-modal-hero {
        padding: 26px 18px;
    }

    .leaf-content-wrap {
        padding: 20px;
    }

    .leaf-quick-card,
    .leaf-info-card,
    .leaf-step-card,
    .leaf-box {
        padding: 20px;
    }

    .leaf-modal-hero h3 {
        font-size: 1.45rem;
    }
}

@media (max-width: 767.98px) {
    .leaf-pillars-intro {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .service-pillar {
        padding: 28px 20px;
        border-radius: 20px !important;
    }

    .service-pillar .service-icon {
        width: 76px;
        height: 76px;
        border-radius: 18px;
    }

    .leaf-modal .modal-dialog {
        margin: 0.7rem;
        max-width: unset;
    }

    .leaf-modal .modal-content {
        border-radius: 20px;
    }

    .leaf-modal-header {
        padding: 18px 18px;
    }

    .leaf-modal-header .modal-title {
        font-size: 1.35rem;
    }

    .leaf-modal-hero h3 {
        font-size: 1.25rem;
    }

    .leaf-content-wrap {
        padding: 16px;
    }

    .leaf-accordion .accordion-button {
        font-size: 0.98rem;
        padding: 16px;
    }

    .leaf-accordion .accordion-body {
        padding: 16px;
    }

    .leaf-step-card {
        gap: 14px;
        padding: 18px;
    }

    .leaf-step-number {
        width: 44px;
        min-width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 0.95rem;
    }

    .leaf-step-content h5 {
        font-size: 0.98rem;
    }
}

@media (max-width: 575.98px) {
    .leaf-modal-header .modal-title {
        font-size: 1.2rem;
    }

    .leaf-modal-hero p,
    .leaf-accordion .accordion-body p,
    .leaf-info-card p,
    .leaf-quick-card p,
    .leaf-box p,
    .leaf-table td {
        font-size: 0.96rem;
    }

    .leaf-step-card {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* =========================================================
   GREEN LEAF FRAMEWORK IMAGE SECTION
========================================================= */
.leaf-framework-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
    position: relative;
}

.leaf-framework-card::before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #69b34c 0%, #3b82f6 50%, #f59e0b 100%);
}

.leaf-framework-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(135deg, #fbfffc 0%, #f8fbff 100%);
}

.leaf-framework-card-top h5 {
    font-weight: 700;
    color: #0f172a;
}

.leaf-framework-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #166534;
    background: rgba(22, 101, 52, 0.10);
    border: 1px solid rgba(22, 101, 52, 0.12);
    padding: 8px 12px;
    border-radius: 999px;
}

.leaf-framework-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    color: #0d6efd;
    font-weight: 600;
    border: 1px solid rgba(13, 110, 253, 0.15);
    background: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.leaf-framework-expand:hover {
    color: #fff;
    background: #0d6efd;
    border-color: #0d6efd;
}

.leaf-framework-image-wrap {
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(105,179,76,0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(59,130,246,0.08), transparent 30%),
        #ffffff;
}

.leaf-framework-image {
    width: 100%;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.leaf-framework-image:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

.leaf-framework-caption {
    padding: 16px 24px 22px;
    color: #64748b;
    font-size: 0.96rem;
    line-height: 1.7;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: #fcfdfd;
}

/* side content */
.leaf-visual-points {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.leaf-visual-point {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.leaf-visual-point h6 {
    font-weight: 700;
    color: #0f172a;
}

.leaf-visual-point p {
    color: #64748b;
    line-height: 1.7;
}

.leaf-visual-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.18);
}

/* responsive */
@media (max-width: 991.98px) {
    .leaf-framework-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .leaf-framework-image-wrap {
        padding: 18px;
    }

    .leaf-framework-caption {
        padding: 14px 18px 18px;
    }
}

@media (max-width: 767.98px) {
    .leaf-framework-card {
        border-radius: 20px;
    }

    .leaf-framework-card-top {
        padding: 18px;
    }

    .leaf-framework-image-wrap {
        padding: 14px;
    }

    .leaf-framework-image {
        border-radius: 16px;
    }

    .leaf-visual-point {
        padding: 15px;
    }

    .leaf-framework-expand {
        width: 100%;
        justify-content: center;
    }
}