/**
 * TopData Custom Elements CSS
 * Styles for custom UX Builder components: Pricing Cards, Case Studies, Problem Cards, Process Steps
 */

/* ==========================================================================
   1. Pricing Card Component (.td-pricing-card)
   ========================================================================== */
.td-pricing-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 30px 22px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.td-pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09);
}

.td-pricing-card.is-featured {
    border: 2px solid #f97316;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12);
}

.td-pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
    white-space: nowrap;
    z-index: 2;
}

.td-pricing-header {
    text-align: center;
    margin-bottom: 16px;
}

.td-pricing-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef4f0;
    color: #f97316;
}

.td-pricing-card.is-featured .td-pricing-icon {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
}

.td-pricing-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.td-pricing-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f1729;
    margin: 0 0 4px;
    line-height: 1.3;
}

.td-pricing-subtitle {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0;
}

.td-pricing-price-wrap {
    text-align: center;
    padding: 12px 0 16px;
    border-bottom: 1px dashed #e5e7eb;
    margin-bottom: 18px;
}

.td-pricing-amount {
    font-size: 1.95rem;
    font-weight: 800;
    color: #f97316;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.td-pricing-amount--contact {
    font-size: 1.75rem;
    letter-spacing: normal;
}

.td-pricing-currency {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-left: 4px;
}

.td-pricing-period {
    font-size: 0.85rem;
    color: #9ca3af;
}

.td-pricing-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #475569;
    font-weight: 600;
}

.td-pricing-duration svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    color: #94a3b8;
}

.td-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-grow: 1;
}

.td-pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #374151;
    margin-bottom: 10px;
}

.td-pricing-feature-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: #22c55e;
    margin-top: 1px;
}

.td-pricing-feature-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.td-pricing-btn-wrap {
    margin-top: auto;
}

.td-pricing-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1.5px solid #f97316;
    color: #f97316 !important;
    background: #ffffff;
}

.td-pricing-btn:hover {
    background: #f97316;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.25);
}

.td-pricing-card.is-featured .td-pricing-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

.td-pricing-card.is-featured .td-pricing-btn:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}


/* ==========================================================================
   2. Case Study Component (.td-case-study)
   ========================================================================== */
.td-case-study {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 36px;
    align-items: center;
    padding: 10px 0;
}

@media (max-width: 849px) {
    .td-case-study {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.td-cs-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    background: #f8fafc;
}

.td-cs-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.td-cs-banner-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 30px 20px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    color: #94a3b8;
    text-align: center;
}

.td-cs-banner-empty svg {
    margin-bottom: 8px;
    opacity: 0.6;
}

.td-cs-banner-empty span {
    font-size: 0.85rem;
    font-weight: 500;
}


.td-cs-content {
    display: flex;
    flex-direction: column;
}

.td-cs-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.td-cs-badge.badge-orange {
    background: #fef4f0;
    color: #f35731;
    border: 1px solid #f5e2da;
}

.td-cs-badge.badge-cyan {
    background: #ecfeff;
    color: #0891b2;
    border: 1px solid #cffafe;
}

.td-cs-badge.badge-blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.td-cs-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f1729;
    margin: 0 0 10px;
    line-height: 1.25;
}

.td-cs-meta {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 16px;
}

.td-cs-meta strong {
    color: #0f1729;
}

.td-cs-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 8px 0 20px;
}

.td-cs-stat-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.td-cs-stat-num {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.color-orange { color: #f35731; }
.color-cyan { color: #0891b2; }
.color-blue { color: #2563eb; }

.td-cs-stat-label {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.25;
}

.td-cs-quote {
    position: relative;
    background: #fafafc;
    border-radius: 14px;
    padding: 20px 24px;
    border-left: 4px solid #f35731;
}

.td-cs-quote.border-cyan { border-left-color: #0891b2; }
.td-cs-quote.border-blue { border-left-color: #2563eb; }

.td-cs-quote-text {
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #4b5563;
    margin: 0 0 10px;
}

.td-cs-quote-author {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f1729;
    margin: 0;
}

.td-cs-quote-icon {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 28px;
    height: 28px;
    opacity: 0.18;
}

.td-cs-quote-icon svg {
    width: 100%;
    height: 100%;
    fill: #0f1729;
}


/* ==========================================================================
   3. Problem & Feature Card Component (.td-problem-card)
   ========================================================================== */
.td-problem-card {
    position: relative;
    border-radius: 18px;
    padding: 22px 18px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.td-problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.td-problem-card.style-orange {
    background-color: #fef4f0;
    border: 1px solid #f5e2da;
}

.td-problem-card.style-orange:hover {
    box-shadow: 0 10px 24px rgba(243, 87, 49, 0.12);
    border-color: rgba(243, 87, 49, 0.3);
}

.td-problem-card.style-red {
    background-color: #fff5f5;
    border: 1px solid rgba(237, 50, 55, 0.16);
}

.td-problem-card.style-red:hover {
    box-shadow: 0 10px 24px rgba(237, 50, 55, 0.12);
    border-color: rgba(237, 50, 55, 0.3);
}

.td-problem-card.style-light {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.td-problem-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.td-problem-card:hover .td-problem-icon {
    transform: scale(1.06);
}

.style-orange .td-problem-icon {
    background: #f35731;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(243, 87, 49, 0.3);
}

/* TopData Favicon Red (#ED3237) - Dùng chung toàn trang */
.style-red .td-problem-icon {
    background: #ed3237;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(237, 50, 55, 0.35);
}

/* Facebook / Meta Blue (#1877F2) - Dành riêng dịch vụ Facebook/Meta */
.td-problem-card.style-blue,
.td-problem-card.style-meta,
.td-problem-card.style-facebook {
    background-color: #f0f7ff;
    border: 1px solid rgba(24, 119, 242, 0.16);
}

.td-problem-card.style-blue:hover,
.td-problem-card.style-meta:hover,
.td-problem-card.style-facebook:hover {
    box-shadow: 0 10px 24px rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.3);
}

.style-blue .td-problem-icon,
.style-meta .td-problem-icon,
.style-facebook .td-problem-icon {
    background: #1877f2;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
}

.style-light .td-problem-icon {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.td-problem-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.td-problem-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f1729;
    margin: 0 0 6px;
    line-height: 1.35;
}

.td-problem-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}


/* ==========================================================================
   4. Process Step Component (.td-process-step)
   ========================================================================== */
.td-process-step {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px 20px;
    position: relative;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.td-process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.td-step-badge {
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 800;
    color: #f35731;
    background: #fef4f0;
    padding: 4px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.td-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f1729;
    margin: 0 0 8px;
    line-height: 1.35;
}

.td-step-desc {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

/* ==========================================================================
   6. Service Hub Card Component (.td-service-card)
   ========================================================================== */
.td-service-card-wrapper {
    height: 100%;
    display: flex;
    margin-bottom: 24px;
}

.td-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px 24px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.td-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.td-service-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

.td-service-card:hover .td-service-icon-box {
    transform: scale(1.08);
}

.td-service-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f1729;
    margin: 0 0 10px 0;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.td-service-desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.td-service-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.td-service-card:hover .td-service-action {
    gap: 12px;
}

.td-service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 99px;
}

/* Style Orange (Shopee) */
.td-service-card.style-orange {
    border-color: #ffedd5;
}
.td-service-card.style-orange:hover {
    border-color: #fdba74;
    box-shadow: 0 16px 32px rgba(238, 77, 45, 0.1);
}
.td-service-card.style-orange .td-service-icon-box {
    background: #fff1ee;
    color: #ee4d2d;
}
.td-service-card.style-orange .td-service-action {
    color: #ee4d2d;
}
.td-service-card.style-orange:hover .td-service-title {
    color: #ee4d2d;
}

/* Style Blue (Facebook) */
.td-service-card.style-blue {
    border-color: #dbeafe;
}
.td-service-card.style-blue:hover {
    border-color: #93c5fd;
    box-shadow: 0 16px 32px rgba(24, 119, 242, 0.1);
}
.td-service-card.style-blue .td-service-icon-box {
    background: #eff6ff;
    color: #1877f2;
}
.td-service-card.style-blue .td-service-action {
    color: #1877f2;
}
.td-service-card.style-blue:hover .td-service-title {
    color: #1877f2;
}

/* Style Dark (TikTok) */
.td-service-card.style-dark {
    border-color: #e2e8f0;
}
.td-service-card.style-dark:hover {
    border-color: #0f172a;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}
.td-service-card.style-dark .td-service-icon-box {
    background: #0f172a;
    color: #ffffff;
}
.td-service-card.style-dark .td-service-action {
    color: #0f172a;
}
.td-service-card.style-dark:hover .td-service-title {
    color: #fe2c55;
}

/* Style Red (Brand) */
.td-service-card.style-red {
    border-color: #fee2e2;
}
.td-service-card.style-red:hover {
    border-color: #fca5a5;
    box-shadow: 0 16px 32px rgba(237, 50, 55, 0.1);
}
.td-service-card.style-red .td-service-icon-box {
    background: #fef2f2;
    color: #ed3237;
}
.td-service-card.style-red .td-service-action {
    color: #ed3237;
}
.td-service-card.style-red:hover .td-service-title {
    color: #ed3237;
}

/* Style Purple (Media) */
.td-service-card.style-purple {
    border-color: #f3e8ff;
}
.td-service-card.style-purple:hover {
    border-color: #d8b4fe;
    box-shadow: 0 16px 32px rgba(147, 51, 234, 0.1);
}
.td-service-card.style-purple .td-service-icon-box {
    background: #faf5ff;
    color: #9333ea;
}
.td-service-card.style-purple .td-service-action {
    color: #9333ea;
}
.td-service-card.style-purple:hover .td-service-title {
    color: #9333ea;
}

/* ==========================================================================
   TopData Pill Badge Component (.td-pill-badge)
   ========================================================================== */
.td-badge-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.td-badge-wrapper.text-center {
    display: flex;
    justify-content: center;
}

.td-badge-wrapper.text-left {
    display: flex;
    justify-content: flex-start;
}

.td-badge-wrapper.text-right {
    display: flex;
    justify-content: flex-end;
}

.td-badge-wrapper.text-inline {
    display: inline-flex;
    width: auto;
}

.td-pill-badge {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle;
    text-decoration: none !important;
    cursor: default;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    max-width: 100%;
    width: auto !important;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 9999px;
}

.td-pill-badge.is-link {
    cursor: pointer;
}

.td-pill-badge.is-link:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

.td-badge-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.td-badge-icon svg {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    flex-shrink: 0 !important;
}

.td-pill-badge.is-link:hover .td-badge-icon svg {
    transform: scale(1.1);
}

.td-badge-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    text-decoration: none !important;
}

@media (max-width: 549px) {
    .td-badge-text {
        white-space: normal;
        text-align: center;
    }
}

/* ==========================================================================
   9. TopData Partners Component (.td-partners-wrapper)
   ========================================================================== */
.td-partners-wrapper {
    position: relative;
    width: 100%;
}

.td-partners-header {
    margin-bottom: 24px;
}

/* Shared Subtitle Styles */
.td-subtitle-plain {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.td-subtitle-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 5px 16px;
    border-radius: 9999px;
    line-height: 1.3;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

/* Shared Highlight Gradient Presets */
.td-highlight-cyan {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
}

.td-highlight-red {
    background: linear-gradient(135deg, #c70303 0%, #f2295b 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
}

.td-highlight-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
}

.td-highlight-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
}

.td-partners-title {
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 10px 0;
}

.td-partners-highlight {
    display: inline-block;
}

.td-partners-desc {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.td-partners-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.td-partner-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 8px 18px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-height: 68px;
}

.td-partner-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.td-partner-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.td-partner-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    flex-shrink: 0;
    line-height: 1;
}

.td-partner-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

.td-partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.td-partner-logo img {
    height: 20px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.td-partner-pill:hover .td-partner-logo img {
    transform: scale(1.05);
}

/* Award Pill */
.td-pill-award {
    background: #fef3c7;
    border-color: #fde68a;
    color: #b45309;
    padding: 8px 22px;
}

.td-pill-award:hover {
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.16);
    border-color: #f59e0b;
}

.td-partner-award-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.td-partner-award-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.td-partner-award-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #b45309;
    white-space: nowrap;
}

@media (max-width: 549px) {
    .td-partners-grid {
        gap: 10px;
    }
    .td-partner-pill {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   10. TopData Clients & Media Component (.td-clients-wrapper)
   ========================================================================== */
.td-clients-wrapper {
    position: relative;
    width: 100%;
}

.td-clients-header {
    margin-bottom: 28px;
}

.td-clients-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.td-clients-subtitle-icon {
    display: inline-flex;
    align-items: center;
    color: #0284c7;
}

.td-clients-title {
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 10px 0;
}

.td-clients-highlight {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.td-clients-desc {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.td-clients-grid {
    display: grid;
    gap: 14px;
}

.td-clients-col-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.td-clients-col-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.td-clients-col-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.td-client-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.td-client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    border-color: #e2e8f0;
}

.td-client-card img {
    max-width: 85%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.td-client-card:hover img {
    transform: scale(1.05);
}

.td-clients-footer {
    margin-top: 20px;
}

.td-clients-footer-text {
    font-size: 0.88rem;
    color: #94a3b8;
    font-style: italic;
    margin: 0;
}

@media (max-width: 849px) {
    .td-clients-col-4,
    .td-clients-col-5,
    .td-clients-col-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 549px) {
    .td-clients-col-4,
    .td-clients-col-5,
    .td-clients-col-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }
    .td-client-card {
        padding: 10px 14px;
        min-height: 70px !important;
    }
}

/* ==========================================================================
   Slider Mode for Clients / Press (.td-clients-slider)
   ========================================================================== */
.td-clients-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 4px 0;
}

.td-clients-slider {
    margin: 0 -7px;
    width: auto !important;
}

.td-clients-slider:not(.flickity-enabled) {
    display: flex;
    overflow: hidden;
    flex-wrap: nowrap;
}

.td-clients-slider .flickity-viewport {
    overflow: hidden;
    padding: 8px 0;
    width: 100%;
}

.td-client-slide-col {
    padding: 0 7px;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Desktop Column Widths */
.td-clients-cols-3 .td-client-slide-col { width: 33.333%; }
.td-clients-cols-4 .td-client-slide-col { width: 25%; }
.td-clients-cols-5 .td-client-slide-col { width: 20%; }
.td-clients-cols-6 .td-client-slide-col { width: 16.666%; }

/* Tablet Column Widths (max-width: 849px) */
@media (max-width: 849px) {
    .td-clients-tab-cols-2 .td-client-slide-col { width: 50% !important; }
    .td-clients-tab-cols-3 .td-client-slide-col { width: 33.333% !important; }
    .td-clients-tab-cols-4 .td-client-slide-col { width: 25% !important; }
}

/* Mobile Column Widths (max-width: 549px) */
@media (max-width: 549px) {
    .td-clients-mob-cols-1 .td-client-slide-col { width: 100% !important; }
    .td-clients-mob-cols-2 .td-client-slide-col { width: 50% !important; }
    .td-clients-mob-cols-3 .td-client-slide-col { width: 33.333% !important; }
}

/* Card in Slider */
.td-client-slide-col .td-client-card {
    width: 100%;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Slider Navigation Buttons */
.td-clients-slider .flickity-prev-next-button {
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    border: 1px solid #f1f5f9;
    color: #334155;
    transition: all 0.2s ease;
    opacity: 0.92;
    z-index: 10;
}

.td-clients-slider .flickity-prev-next-button:hover {
    background: #ffffff;
    color: #ed3237;
    box-shadow: 0 6px 20px rgba(237, 50, 55, 0.2);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

.td-clients-slider .flickity-prev-next-button.previous {
    left: -12px;
}

.td-clients-slider .flickity-prev-next-button.next {
    right: -12px;
}

@media (max-width: 849px) {
    .td-clients-slider .flickity-prev-next-button.previous { left: 4px; }
    .td-clients-slider .flickity-prev-next-button.next { right: 4px; }
}

/* Slider Pagination Dots */
.td-clients-slider .flickity-page-dots {
    position: relative;
    bottom: 0;
    margin-top: 14px;
}

.td-clients-slider .flickity-page-dots .dot {
    background: #cbd5e1;
    opacity: 0.7;
    margin: 0 4px;
    transition: all 0.25s ease;
}

.td-clients-slider .flickity-page-dots .dot.is-selected {
    background: #ed3237;
    opacity: 1;
    width: 18px;
    border-radius: 5px;
}

/* ==========================================================================
   Continuous Marquee Mode & Multi-Row for Clients (.td-clients-marquee-wrapper)
   ========================================================================== */
.td-clients-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 6px 0;
}

.td-clients-marquee-wrapper.has-edge-fade {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.td-marquee-row {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none;
    display: flex;
    padding: 4px 0;
}

.td-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.td-marquee-track.dir-left {
    animation: tdMarqueeLeft 30s linear infinite;
}

.td-marquee-track.dir-right {
    animation: tdMarqueeRight 30s linear infinite;
}

.td-marquee-row.has-pause-hover:hover .td-marquee-track {
    animation-play-state: paused;
}

.td-marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 16px;
    padding-right: 16px;
}

.td-marquee-content .td-client-card {
    flex-shrink: 0;
    width: 220px;
    margin: 0;
    box-sizing: border-box;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.td-marquee-content .td-client-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

@media (max-width: 849px) {
    .td-marquee-content {
        gap: 12px;
        padding-right: 12px;
    }
    .td-marquee-content .td-client-card {
        width: 180px;
    }
    .td-clients-marquee-wrapper.has-edge-fade {
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    }
}

@media (max-width: 549px) {
    .td-marquee-content {
        gap: 10px;
        padding-right: 10px;
    }
    .td-marquee-content .td-client-card {
        width: 150px;
    }
}

@keyframes tdMarqueeLeft {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes tdMarqueeRight {
    0% {
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Multi-row Carousel Row Wrap */
.td-carousel-row-wrap {
    position: relative;
    width: 100%;
}



