/* ============================================================
   TINYMCE BLOCK TEMPLATES – template.css
   All styles scoped under their parent .block-template-N
   class to avoid global conflicts.
   ============================================================ */

/* ============================================================
   TEMPLATE 1 – Left Image / Right Text
   ============================================================ */
.block-template-1 {
}

/* ============================================================
   TEMPLATE 2 – Left Text / Right Image
   ============================================================ */
.block-template-2 {
}

/* ============================================================
   TEMPLATES 3, 4, 5 – Shared Service Area Styles
   (Beige bg, decorative frame, icon list, CTA button)
   ============================================================ */

.block-template-3 .service-area-section,
.block-template-4 .service-area-section,
.block-template-5 .service-area-section {
    background-color: #f5ede2;
    background-image: url("frontend/assets/images/default/service-area.png");
    background-repeat: repeat;
    background-size: auto;
    position: relative;
}

.block-template-3 .service-heading,
.block-template-4 .service-heading,
.block-template-5 .service-heading {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #1a2e44;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.block-template-3 .service-intro-text,
.block-template-4 .service-intro-text,
.block-template-5 .service-intro-text {
    color: #444;
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.block-template-3 .service-cta-btn,
.block-template-4 .service-cta-btn,
.block-template-5 .service-cta-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.65rem 1.75rem;
    background-color: #e8a837;
    color: #1a2e44;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}
.block-template-3 .service-cta-btn:hover,
.block-template-4 .service-cta-btn:hover,
.block-template-5 .service-cta-btn:hover {
    background-color: #d4961f;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

.block-template-3 .service-frame-wrap,
.block-template-4 .service-frame-wrap,
.block-template-5 .service-frame-wrap {
    position: relative;
    display: inline-block;
    padding: 12px;
}
.block-template-3 .service-frame-wrap::before,
.block-template-4 .service-frame-wrap::before,
.block-template-5 .service-frame-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid #c8c0b0;
    /* border-radius: 42% 58% 38% 62% / 46% 44% 56% 54%; */
    pointer-events: none;
    box-shadow: 0 0 0 6px rgba(200, 192, 176, 0.25);
}

.block-template-3 .service-framed-img,
.block-template-4 .service-framed-img,
.block-template-5 .service-framed-img {
    /* border-radius: 40% 56% 36% 60% / 44% 42% 54% 52%; */
    max-width: 100%;
    width: 340px;
    height: 320px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.block-template-3 .service-icon-list,
.block-template-4 .service-icon-list,
.block-template-5 .service-icon-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1rem;
}
.block-template-3 .service-icon-list li,
.block-template-4 .service-icon-list li,
.block-template-5 .service-icon-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.55rem;
    line-height: 1.5;
}
.block-template-3 .service-icon-wrap,
.block-template-4 .service-icon-wrap,
.block-template-5 .service-icon-wrap {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.block-template-3 .service-list-icon,
.block-template-4 .service-list-icon,
.block-template-5 .service-list-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ============================================================
   TEMPLATE 5 – Two-Column List (extra)
   ============================================================ */
.block-template-5 .service-two-col-list {
    margin-top: 0.25rem;
}
.block-template-5 .service-two-col-list .service-icon-list li {
    font-size: 0.88rem;
}

/* ============================================================
   TEMPLATE 6 – Comparison Table
   ============================================================ */
.block-template-6.service-comparison-section {
    background-color: #fff;
}
.block-template-6 .service-heading {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #1a2e44;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.block-template-6 .service-intro-text {
    color: #444;
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.block-template-6 .service-comparison-sub {
    color: #bc972d;
    font-size: 0.92rem;
}
.block-template-6 .service-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    margin-top: 1rem;
}
.block-template-6 .service-comparison-table thead tr {
    background-color: #d6b557;
}
.block-template-6 .service-comparison-table thead th {
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
}
.block-template-6 .service-comparison-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
}
.block-template-6 .service-comparison-table tbody tr:nth-child(even) {
    background-color: #f7fdf9;
}
.block-template-6 .service-comparison-table tbody td {
    padding: 0.65rem 1rem;
    color: #333;
    vertical-align: middle;
}
.block-template-6 .sct-yes {
    color: #1dbb78;
    font-weight: 600;
}
.block-template-6 .sct-no {
    color: #e05252;
    font-weight: 600;
}
.block-template-6 .service-cta-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.65rem 1.75rem;
    background-color: #e8a837;
    color: #1a2e44;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}
.block-template-6 .service-cta-btn:hover {
    background-color: #d4961f;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ============================================================
   TEMPLATE 7 – Full-Width Green CTA Banner
   ============================================================ */
.block-template-7.service-cta-banner {
    position: relative;
    background: linear-gradient(135deg, #2dc56e 0%, #1a9e54 50%, #15863f 100%);
    padding: 4rem 1rem;
    text-align: center;
    overflow: hidden;
}
.block-template-7 .service-cta-banner-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}
.block-template-7 .service-cta-ornament {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.18;
    width: 220px;
    pointer-events: none;
}
.block-template-7 .service-cta-ornament-left {
    left: -30px;
}
.block-template-7 .service-cta-ornament-right {
    right: -30px;
}
.block-template-7 .service-cta-ornament img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}
.block-template-7 .service-cta-title {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    color: #040404;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}
.block-template-7 .service-cta-subtitle {
    font-size: 1.05rem;
    color: #040404;
    font-weight: 600;
    margin-bottom: 1rem;
}
.block-template-7 .service-cta-body {
    color: #040404;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.block-template-7 .service-cta-highlight {
    color: #e8a837;
    font-weight: 700;
    text-decoration: none;
}
.block-template-7 .service-cta-highlight:hover {
    text-decoration: underline;
}
.block-template-7 .service-cta-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.65rem 1.75rem;
    background-color: #e8a837;
    color: #1a2e44;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}
.block-template-7 .service-cta-btn:hover {
    background-color: #c98b18;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* In template.css — icon drawn purely via CSS, no HTML tag needed */
.block-template-3 .service-icon-list li::before,
.block-template-4 .service-icon-list li::before,
.block-template-5 .service-icon-list li::before,
.block-template-6 .service-icon-list li::before {
    content: "\f058";
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #c29629;
    font-size: 18px;
}
.block-template-4 .service-icon-list li strong{
    flex-shrink: 0;
}
/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
    .block-template-3 .service-framed-img,
    .block-template-4 .service-framed-img,
    .block-template-5 .service-framed-img {
        width: 260px;
        height: 240px;
    }

    .block-template-5 .service-two-col-list .col-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .block-template-6 .service-comparison-table thead th,
    .block-template-6 .service-comparison-table tbody td {
        padding: 0.5rem 0.6rem;
        font-size: 0.82rem;
    }

    .block-template-7.service-cta-banner {
        padding: 3rem 1rem;
    }
    .block-template-7 .service-cta-ornament {
        width: 130px;
    }
}

@media (max-width: 480px) {
    .block-template-3 .service-framed-img,
    .block-template-4 .service-framed-img,
    .block-template-5 .service-framed-img {
        width: 200px;
        height: 185px;
    }

    .block-template-3 .service-icon-list li,
    .block-template-4 .service-icon-list li,
    .block-template-5 .service-icon-list li {
        font-size: 0.88rem;
    }
}
