/**
 * Case Study Template Styles
 *
 * @package Top_System_CPT_Manager
 */

/* ============================================
   CSS Variables (Theme Colors)
   ============================================ */
:root {
    --ts-primary: #0A192F;
    --ts-accent: #019d76;
    --ts-accent-light: #26D8AB;
    --ts-background: #F9FAFB;
    --ts-foreground: #1F2937;
    --ts-white: #ffffff;
    --ts-gray-50: #f9fafb;
    --ts-gray-100: #f3f4f6;
    --ts-gray-200: #e5e7eb;
    --ts-gray-600: #4b5563;
    --ts-gray-700: #374151;
    --ts-gray-800: #1f2937;
    --ts-red-300: #fca5a5;
    --ts-red-500: #ef4444;
    --ts-green-300: #86efac;
    --ts-green-500: #22c55a;
    --ts-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --ts-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --ts-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --ts-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ============================================
   Full Width Overrides (Force full-width regardless of theme)
   ============================================ */
body.ts-case-study-page {
    overflow-x: hidden;
}

body.ts-case-study-page #content,
body.ts-case-study-page .content-area,
body.ts-case-study-page .site-content,
body.ts-case-study-page .entry-content,
body.ts-case-study-page .post-content,
body.ts-case-study-page main,
body.ts-case-study-page article,
body.ts-case-study-page .container,
body.ts-case-study-page .wrapper,
body.ts-case-study-page .site-main,
body.ts-case-study-page .page-content,
body.ts-case-study-page .hentry {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

/* Hide sidebar on case study pages (but NOT the footer) */
body.ts-case-study-page #secondary,
body.ts-case-study-page .sidebar:not(.footer-widget-area),
body.ts-case-study-page aside.sidebar:not(.footer-widget-area) {
    display: none !important;
}

/* Ensure footer is visible */
body.ts-case-study-page footer,
body.ts-case-study-page .site-footer,
body.ts-case-study-page #colophon,
body.ts-case-study-page .footer-widget-area,
body.ts-case-study-page .ast-footer-overlay-wrap {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
}

/* Fix footer animation elements for Astra footer builder */
body.ts-case-study-page .site-footer [style*="opacity: 0"],
body.ts-case-study-page #colophon [style*="opacity: 0"] {
    opacity: 1 !important;
    transform: none !important;
}

/* Remove any theme-specific content wrappers padding */
body.ts-case-study-page .site-content>.container,
body.ts-case-study-page .site-main>.container,
body.ts-case-study-page #primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Common theme framework overrides */
body.ts-case-study-page .elementor-section.elementor-section-boxed>.elementor-container {
    max-width: 100% !important;
}

body.ts-case-study-page .alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ============================================
   Base Wrapper
   ============================================ */
.ts-case-study-wrapper {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    color: var(--ts-foreground);
    background-color: var(--ts-background);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow-x: hidden;
}

.ts-case-study-wrapper * {
    box-sizing: border-box;
}

/* ============================================
   Container
   ============================================ */
.ts-cs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .ts-cs-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .ts-cs-container {
        padding: 0 2rem;
    }
}

/* ============================================
   Section Base
   ============================================ */
.ts-cs-section {
    padding: 4rem 0;
    position: relative;
}

.ts-cs-section--alt {
    background-color: var(--ts-gray-50);
}

.ts-cs-section__inner {
    max-width: 56rem;
    margin: 0 auto;
}

.ts-cs-section__title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 2rem;
    text-align: center;
}

.ts-cs-section__title--light {
    color: var(--ts-white);
}

.ts-cs-section__intro {
    font-size: 1.125rem;
    color: var(--ts-gray-700);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Hero Section
   ============================================ */
.ts-cs-hero {
    position: relative;
    padding: 6rem 0 8rem;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-cs-hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ts-cs-hero__pattern {
    position: absolute;
    inset: 0;
    background-color: var(--ts-primary);
}

.ts-cs-hero__pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, transparent 0%, transparent 50%, rgba(0, 200, 151, 0.1) 50%, rgba(0, 200, 151, 0.1) 100%);
}

.ts-cs-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(10, 25, 47, 0.9) 0%,
            rgba(10, 25, 47, 0.95) 50%,
            rgba(1, 157, 118, 0.2) 100%);
}

.ts-cs-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ts-cs-hero__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ts-cs-badge {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: var(--ts-white);
    font-size: 0.875rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ts-cs-hero__icon {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    animation: ts-icon-bounce 2s ease-in-out infinite;
}

@media (min-width: 768px) {
    .ts-cs-hero__icon {
        font-size: 6rem;
    }
}

.ts-cs-hero__title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--ts-white);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.ts-cs-hero__line {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--ts-accent), transparent);
    max-width: 24rem;
    margin: 0 auto;
    border-radius: 2px;
}

/* Hero Section - With Image Variant */
.ts-cs-hero--has-image {
    min-height: 70vh;
}

.ts-cs-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ts-cs-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 25, 47, 0.7) 0%,
            rgba(10, 25, 47, 0.85) 100%);
}

/* ============================================
   Key Metrics Bar (Sticky)
   ============================================ */
.ts-cs-metrics-bar {
    background-color: var(--ts-white);
    box-shadow: var(--ts-shadow-lg);
    border-bottom: 1px solid var(--ts-gray-200);
    padding: 1rem 0;
    z-index: 40;
}

.ts-sticky-bar {
    position: sticky;
    top: 0;
}

.ts-cs-metrics-bar__inner {
    display: flex;
    justify-content: center;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ts-cs-metrics-bar__inner::-webkit-scrollbar {
    display: none;
}

.ts-cs-metric {
    flex-shrink: 0;
    text-align: center;
    min-width: 120px;
    padding: 0 1rem;
}

.ts-cs-metric__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ts-accent);
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .ts-cs-metric__value {
        font-size: 1.875rem;
    }
}

.ts-cs-metric__label {
    font-size: 0.75rem;
    color: var(--ts-gray-600);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .ts-cs-metric__label {
        font-size: 0.875rem;
    }
}

/* ============================================
   Card Component
   ============================================ */
.ts-cs-card {
    background-color: var(--ts-white);
    border-radius: 1rem;
    box-shadow: var(--ts-shadow-lg);
    padding: 2rem;
    border: 1px solid var(--ts-gray-100);
}

.ts-cs-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ts-cs-card__icon {
    font-size: 1.5rem;
}

.ts-cs-card__text {
    color: var(--ts-gray-700);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================================
   Overview Section
   ============================================ */
.ts-cs-overview__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ts-cs-overview__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ts-cs-overview__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ts-cs-overview__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ts-cs-overview__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ts-gray-600);
    display: block;
}

.ts-cs-overview__value {
    color: var(--ts-gray-800);
}

/* ============================================
   Challenge Section
   ============================================ */
.ts-cs-challenges__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ts-cs-challenge {
    background-color: var(--ts-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--ts-shadow-md);
    border-right: 4px solid var(--ts-red-500);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ts-cs-challenge__icon {
    font-size: 1.875rem;
    flex-shrink: 0;
}

.ts-cs-challenge__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 0.5rem;
}

.ts-cs-challenge__text {
    color: var(--ts-gray-700);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Solution Section
   ============================================ */
.ts-cs-solutions__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.ts-cs-solution {
    background-color: var(--ts-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--ts-shadow-md);
    border-right: 4px solid var(--ts-accent);
}

.ts-cs-solution__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ts-cs-solution__icon {
    font-size: 1.5rem;
}

.ts-cs-solution__desc {
    color: var(--ts-gray-700);
    margin-bottom: 1rem;
}

.ts-cs-solution__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ts-cs-solution__bullet {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--ts-gray-700);
}

.ts-cs-solution__bullet-icon {
    color: var(--ts-accent);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* ============================================
   Technologies
   ============================================ */
.ts-cs-technologies {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.05) 0%, rgba(1, 157, 118, 0.05) 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.ts-cs-technologies__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ts-cs-technologies__icon {
    font-size: 1.25rem;
}

.ts-cs-technologies__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ts-cs-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--ts-white);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ts-gray-700);
    border: 1px solid var(--ts-gray-200);
}

.ts-cs-tech-badge__icon {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

/* ============================================
   Timeline
   ============================================ */
.ts-cs-timeline {
    background-color: var(--ts-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--ts-shadow-md);
}

.ts-cs-timeline__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ts-cs-timeline__icon {
    font-size: 1.25rem;
}

.ts-cs-timeline__phases {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .ts-cs-timeline__phases {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ts-cs-phase {
    text-align: center;
    padding: 0.75rem;
    background-color: var(--ts-gray-50);
    border-radius: 0.5rem;
}

.ts-cs-phase__name {
    font-size: 0.875rem;
    color: var(--ts-gray-600);
    margin-bottom: 0.25rem;
}

.ts-cs-phase__desc {
    font-size: 0.75rem;
    color: var(--ts-gray-500);
    margin-bottom: 0.25rem;
}

.ts-cs-phase__duration {
    font-weight: 700;
    color: var(--ts-accent);
    margin: 0;
}

.ts-cs-timeline__total {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(90deg, rgba(1, 157, 118, 0.1) 0%, rgba(10, 25, 47, 0.1) 100%);
    border-radius: 0.5rem;
}

.ts-cs-timeline__total-label {
    font-size: 0.875rem;
    color: var(--ts-gray-600);
}

.ts-cs-timeline__total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ts-primary);
    display: block;
    margin-top: 0.25rem;
}

/* ============================================
   Results Section
   ============================================ */
.ts-cs-results {
    background: linear-gradient(180deg, var(--ts-primary) 0%, var(--ts-primary) 95%, rgba(10, 25, 47, 0.95) 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 8rem;
}

.ts-cs-results__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ts-cs-results__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 3px 3px, white 2px, transparent 0);
    background-size: 60px 60px;
}

.ts-cs-results .ts-cs-container {
    position: relative;
    z-index: 10;
}

.ts-cs-results__intro {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Results Metrics Grid */
.ts-cs-results__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .ts-cs-results__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ts-cs-result-metric {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.ts-cs-result-metric__value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ts-white);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .ts-cs-result-metric__value {
        font-size: 3rem;
    }
}

.ts-cs-result-metric__label {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ROI */
.ts-cs-roi {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.ts-cs-roi__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ts-white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ts-cs-roi__icon {
    font-size: 1.5rem;
}

.ts-cs-roi__text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin: 0;
}

.ts-cs-roi__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ts-accent);
}

/* Before & After */
.ts-cs-before-after {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ts-cs-before-after__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ts-white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ts-cs-before-after__icon {
    font-size: 1.5rem;
}

.ts-cs-before-after__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ts-cs-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.ts-cs-comparison__before,
.ts-cs-comparison__after {
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.ts-cs-comparison__before {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.ts-cs-comparison__after {
    background-color: rgba(34, 197, 90, 0.1);
    border: 1px solid rgba(34, 197, 90, 0.3);
}

.ts-cs-comparison__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ts-cs-comparison__icon {
    font-size: 1.5rem;
}

.ts-cs-comparison__label {
    font-size: 1.125rem;
    font-weight: 700;
}

.ts-cs-comparison__before .ts-cs-comparison__label {
    color: var(--ts-red-300);
}

.ts-cs-comparison__after .ts-cs-comparison__label {
    color: var(--ts-green-300);
}

.ts-cs-comparison__text {
    margin: 0;
    line-height: 1.6;
}

.ts-cs-comparison__before .ts-cs-comparison__text {
    color: rgba(255, 255, 255, 0.9);
}

.ts-cs-comparison__after .ts-cs-comparison__text {
    color: var(--ts-white);
    font-weight: 600;
}

/* Testimonial */
.ts-cs-testimonial {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ts-cs-testimonial__icon {
    font-size: 3rem;
    color: var(--ts-accent);
    flex-shrink: 0;
}

.ts-cs-testimonial__quote {
    font-size: 1.25rem;
    color: var(--ts-white);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.ts-cs-testimonial__author {
    display: flex;
    flex-direction: column;
}

.ts-cs-testimonial__name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.ts-cs-testimonial__position {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   CTA Section
   ============================================ */
.ts-cs-cta {
    background: linear-gradient(135deg, rgba(1, 157, 118, 0.1) 0%, rgba(10, 25, 47, 0.1) 100%);
    padding: 5rem 0;
}

.ts-cs-cta .ts-cs-section__inner {
    text-align: center;
}

.ts-cs-cta__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 1.5rem;
}

.ts-cs-cta__subtitle {
    font-size: 1.125rem;
    color: var(--ts-gray-700);
    margin-bottom: 2rem;
}

.ts-cs-cta__benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .ts-cs-cta__benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ts-cs-cta__benefit {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    background-color: var(--ts-white);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--ts-shadow-md);
}

.ts-cs-cta__benefit-icon {
    font-size: 1.5rem;
    color: var(--ts-accent);
}

.ts-cs-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .ts-cs-cta__buttons {
        flex-direction: row;
    }
}

/* ============================================
   Button Styles
   ============================================ */
.ts-cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.ts-cs-btn--primary {
    background-color: var(--ts-accent);
    color: var(--ts-white);
    box-shadow: var(--ts-shadow-lg);
}

.ts-cs-btn--primary:hover {
    background-color: var(--ts-white);
    color: var(--ts-accent);
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(1, 157, 118, 0.4);
}

.ts-cs-btn--secondary {
    background-color: var(--ts-white);
    color: var(--ts-primary);
    border-color: var(--ts-primary);
    box-shadow: var(--ts-shadow-lg);
}

.ts-cs-btn--secondary:hover {
    background-color: var(--ts-gray-50);
    transform: scale(1.05);
}

/* ============================================
   Animations - Keyframes
   ============================================ */
@keyframes ts-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ts-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes ts-scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ts-slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ts-slideInLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ts-expandWidth {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes ts-icon-bounce {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(-5deg);
    }

    50% {
        transform: scale(1) rotate(0deg);
    }

    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

@keyframes ts-pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(1, 157, 118, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(1, 157, 118, 0.8);
    }
}

/* ============================================
   Animation Classes (Applied via JS)
   ============================================ */
.ts-animate {
    opacity: 0;
}

.ts-animate--visible {
    opacity: 1;
}

.ts-animate[data-animation="fadeInUp"].ts-animate--visible {
    animation: ts-fadeInUp 0.6s ease-out forwards;
}

.ts-animate[data-animation="fadeIn"].ts-animate--visible {
    animation: ts-fadeIn 0.6s ease-out forwards;
}

.ts-animate[data-animation="scaleIn"].ts-animate--visible {
    animation: ts-scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.ts-animate[data-animation="slideInRight"].ts-animate--visible {
    animation: ts-slideInRight 0.6s ease-out forwards;
}

.ts-animate[data-animation="slideInLeft"].ts-animate--visible {
    animation: ts-slideInLeft 0.6s ease-out forwards;
}

.ts-animate[data-animation="expandWidth"].ts-animate--visible {
    animation: ts-expandWidth 0.8s ease-out forwards;
}

/* ============================================
   Reduced Motion Support
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    .ts-animate,
    .ts-cs-hero__icon {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .ts-animate--visible {
        opacity: 1 !important;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .ts-cs-metrics-bar {
        position: static;
    }

    .ts-cs-hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .ts-cs-results {
        background: var(--ts-gray-100) !important;
        color: var(--ts-gray-800) !important;
    }

    .ts-cs-results__intro,
    .ts-cs-result-metric__value,
    .ts-cs-result-metric__label,
    .ts-cs-roi__title,
    .ts-cs-roi__text,
    .ts-cs-before-after__title,
    .ts-cs-testimonial__quote,
    .ts-cs-testimonial__name,
    .ts-cs-section__title--light {
        color: var(--ts-gray-800) !important;
    }
}
