/* ═══════════════════════════════════════════
   TSG SERVICES SLIDER — v1.1.0 (UI matched to reference)
   Brand: #1F3B2D (deep forest), #4E6F57 (sage),
          #A89468 (gold), #F8F0E1 (cream)
   ═══════════════════════════════════════════ */

.tsg-services-section {
    padding: 64px 0 8px;
    position: relative;
    overflow: hidden;
}

/* ─── HEADER ─── */
.tsg-services-header {
    text-align: center;
    margin-bottom: 52px;
    padding: 0 48px;
}

.tsg-services-heading {
    font-family: 'DM Sans', 'Poppins', -apple-system, sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 400;
    color: #1a2b20;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

/* Gold decorative line + dot on both sides of heading */
.tsg-services-heading::before,
.tsg-services-heading::after {
    content: "";
    flex: 0 1 190px;
    height: 7px;
    background:
        linear-gradient(#B99D5B, #B99D5B) left center / calc(100% - 16px) 1px no-repeat,
        radial-gradient(circle, #B99D5B 2.6px, transparent 3.2px) right center / 7px 7px no-repeat;
}

.tsg-services-heading::after {
    background:
        linear-gradient(#B99D5B, #B99D5B) right center / calc(100% - 16px) 1px no-repeat,
        radial-gradient(circle, #B99D5B 2.6px, transparent 3.2px) left center / 7px 7px no-repeat;
}

.tsg-services-subheading {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #8a857d;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── SLIDER WRAPPER ─── */
.tsg-slider-wrapper {
    position: relative;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 72px;
}

/* ─── VIEWPORT ─── */
.tsg-slider-viewport {
    overflow: hidden;
    border-radius: 0;
}

/* ─── TRACK ─── */
.tsg-slider-track {
    display: flex;
    align-items: stretch !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.tsg-slider-track.tsg-no-transition {
    transition: none !important;
}

/* ─── SLIDE ITEM ─── */
.tsg-slide-item {
    flex: 0 0 calc(100% / var(--tsg-cols, 3));
    padding: 0 12px;
    box-sizing: border-box;
    display: flex !important;
    align-items: stretch;
    height: auto !important;
}

/* ─── SERVICE CARD ─── */
.tsg-service-card,
.tsg-service-card:hover,
.tsg-service-card:focus,
.tsg-service-card:visited {
    text-decoration: none;
    color: inherit;
}

.tsg-service-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 !important;
    background: #FFFFFF;
    border: 1px solid #ececea;
    box-shadow: 0 1px 2px rgba(31, 59, 45, 0.03);
    overflow: hidden;
    height: auto;
    min-height: 100%;
    align-self: stretch;
    transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.tsg-service-card:hover {
    border-color: rgba(168, 148, 104, 0.4);
    box-shadow: 0 12px 32px rgba(31, 59, 45, 0.08);
    transform: translateY(-3px);
}

/* ─── CARD BODY ─── */
.tsg-card-body {
    padding: 26px 26px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

/* Category badge — full-width dark green bar */
.tsg-card-badge {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #1F3B2D;
    color: #FFFFFF;
    font-family: 'JetBrains Mono', 'DM Sans', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 12px 18px;
    margin: 0 0 22px;
    line-height: 1;
}

.tsg-card-title {
    font-family: 'DM Sans', 'Poppins', -apple-system, sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 400 !important;
    color: #1a2b20 !important;
    line-height: 1.3 !important;
    margin: 0 0 12px !important;
    letter-spacing: -0.2px !important;
}

.tsg-card-excerpt {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #7b8078;
    font-weight: 300;
    margin: 0;
    flex: 0;
}

.tsg-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-family: 'JetBrains Mono', 'DM Sans', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #1F3B2D;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: none !important;
    text-decoration: none !important;
    transition: gap 0.3s, color 0.3s;
}

.tsg-service-card:hover .tsg-card-link {
    gap: 12px;
    color: #A89468;
}

.tsg-card-link svg {
    width: 15px;
    height: 15px;
    transition: transform 0.3s;
}

.tsg-service-card:hover .tsg-card-link svg {
    transform: translateX(3px);
}

/* ─── NAVIGATION BUTTONS ─── */
.tsg-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #A89468;
    color: #1F3B2D;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    opacity: 1;
}

.tsg-slider-btn:hover {
    background: #48584C;
    color: #F8F0E1;
    transform: translateY(-50%) scale(1.06);
}

.tsg-slider-btn svg {
    width: 16px;
    height: 16px;
}

.tsg-slider-prev {
    left: 8px;
}

.tsg-slider-next {
    right: 8px;
}

/* ─── DOT INDICATORS ─── */
.tsg-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    padding: 0 48px;
}

.tsg-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d8d8d4;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.tsg-slider-dot:hover {
    background: #bcbcb6;
}

.tsg-slider-dot.active {
    background: #A89468;
    width: 26px;
    border-radius: 5px;
}

/* ─── NO SERVICES FALLBACK ─── */
.tsg-no-services {
    text-align: center;
    padding: 40px;
    color: #8a857d;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .tsg-slider-wrapper {
        padding: 0 60px;
    }

    .tsg-slide-item {
        flex: 0 0 50% !important;
    }

    .tsg-slider-btn {
        width: 38px;
        height: 38px;
    }

    .tsg-slider-prev {
        left: 6px;
    }

    .tsg-slider-next {
        right: 6px;
    }

    .tsg-services-heading::before,
    .tsg-services-heading::after {
        flex-basis: 110px;
    }

    .tsg-card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .tsg-services-section {
        padding: 48px 0 8px;
    }

    .tsg-services-header {
        padding: 0 20px;
        margin-bottom: 34px;
    }

    .tsg-services-heading {
        gap: 14px;
    }

    .tsg-services-heading::before,
    .tsg-services-heading::after {
        flex-basis: 52px;
    }

    .tsg-slider-wrapper {
        padding: 0 16px;
    }

    .tsg-slide-item {
        flex: 0 0 100% !important;
    }

    .tsg-slider-btn {
        display: none;
    }

    .tsg-card-body {
        padding: 22px 20px 26px;
    }

    .tsg-card-badge {
        padding: 11px 15px;
        letter-spacing: 2.5px;
        margin-bottom: 18px;
    }

    .tsg-card-title {
        font-size: 1.2rem;
    }

    .tsg-slider-track {
        cursor: grab;
    }

    .tsg-slider-track:active {
        cursor: grabbing;
    }

    .tsg-slider-dots {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .tsg-services-heading {
        font-size: 1.45rem;
    }

    .tsg-services-heading::before,
    .tsg-services-heading::after {
        flex-basis: 34px;
    }
}
