/* =============================================================
   Projects Details Start
   ============================================================= */
.project-metaboxs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}
.project-metaboxs .project-meta-box {
    padding: 10px 48px;
    background: linear-gradient(180deg, #EFF6FF 0.97%, #D7E9FF 100%);
    border-radius: 8px;
    margin: 6px;
}
.project-metaboxs .project-meta-box p {
    margin: 0;
}
.project-metaboxs .project-meta-box, .ts-project-title {
    text-align: center;
}
.ts-project-title{
    font-size: 48px;
    line-height: 56px;
    font-weight: 600;
    padding-bottom: 40px;
}
.ts-project {
    text-align: left;
    padding-top: 80px;
    padding-bottom: 31px;
    font-size: 36px;
    line-height: 42px;
    font-weight: 700;
}
.ts-project-screens {
    text-align: center;
    padding: 64px 0 64px 0;
}
/* ==ctp-project-On== */
.cpt-project-content h3.wp-block-heading
 {
    padding: 40px 0 24px 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 42px;
}
.cpt-project-content .wp-block-quote {
    background: #CAD5E2;
    border-radius: 24px;
    padding: 25px 40px;
    margin: 64px;
    width: 1052px;
}
.cpt-project-content .wp-block-quote p:nth-child(2) {
    font-size: 20px;
    font-weight: 600;
    color: #0F172A;
    padding-top: 16px;
}
/* ==ctp-project-Off== */
.ts-more-projects {
    padding: 87px 0 48px 0;
}
.ts-more-projects-font .ts-rp-card__title a {
    font-size: 24px;
}
.ts-more-projects-font .ts-rp-card__meta {
    display: none !important;
}
/* =============================================================
   Projects Details The End
   ============================================================= */
/* =============================================================
   Projects Details masonry Gallery Start
   ============================================================= */

/* Masonry container */
.ts-masonry-image-gallery {
    column-count: 2;
    column-gap: 0px;
}
.ts-masonry-image-gallery .ts-masonry-grid {
    background: #DBEAFE;
    padding: 16px;
    border-radius: 24px;
    box-shadow: 0px 2px 2px 0px #0104145e;
    margin: 0px 10px 20px 10px;
	overflow: hidden;
}
.ts-masonry-image-gallery .ts-masonry-grid-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5em;
}
/* Each image wrapper */
.ts-masonry-image-gallery .wp-block-image {
    break-inside: avoid;
    margin-bottom: 20px;
}

/* Make images responsive */
.ts-masonry-image-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px; /* optional */
}

/* =============================================================
   Projects Details masonry Gallery End
   ============================================================= */
/* =============================================================
   Projects Shortcode — [travasoft_projects]
   ============================================================= */

.ts-projects-section {
    width: 100%;
}

/* Grid — 2 columns on desktop */
.ts-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
}

/* Card */
.ts-project-card {
    display: flex;
    flex-direction: column;
}

/* Image wrapper */
.ts-project-card__image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    aspect-ratio: 16 / 10;
    margin-bottom: 24px;
}

.ts-project-card__image {
    width: 100%;
    height: 111%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.ts-project-card__image--placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

/* Hover overlay */
.ts-project-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(30, 80, 200, 0.72);
    opacity: 0;
    transition: opacity 0.35s ease;
    text-decoration: none;
    border-radius: 8px;
}

.ts-project-card__image-wrap:hover .ts-project-card__overlay {
    opacity: 1;
}

.ts-project-card__image-wrap:hover .ts-project-card__image {
    transform: scale(1.04);
}

.ts-project-card__overlay-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.ts-project-card__overlay-label {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Card body */
.ts-project-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Title + tags row */
.ts-project-card__meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ts-project-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: inherit;
}

/* Tags */
.ts-project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}

.ts-project-card__tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
    white-space: nowrap;
    background: transparent;
}

/* Excerpt */
.ts-project-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 16px;
}

/* Divider */
.ts-project-card__divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0;
    margin-top: auto;
}

/* No projects message */
.ts-projects-none {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 40px 0;
}

/* Load More button */
.ts-projects-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.ts-projects-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #1e3a8a;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    letter-spacing: 0.02em;
}

.ts-projects-load-more:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.ts-projects-load-more.ts-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ts-projects-load-more svg {
    flex-shrink: 0;
}

/* =============================================================
   Related Posts Shortcode — [related_post]
   ============================================================= */
.ts-related-posts h3.ts-rp-card__title a {
    font-size: 24px;
}
.ts-related-posts {
    display: grid;
    gap: 32px 28px;
    width: 100%;
}

/* Dynamic column counts */
.ts-related-posts--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ts-related-posts--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ts-related-posts--cols-4 { grid-template-columns: repeat(4, 1fr); }

.ts-related-posts__none {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 32px 0;
}

/* Card */
.ts-rp-card {
    display: flex;
    flex-direction: column;
}

/* Image */
.ts-rp-card__image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 10;
    margin-bottom: 20px;
    text-decoration: none;
    background: #e8edf2;
}

.ts-rp-card__image {
    width: 100%;
    height: 111%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ts-rp-card__image-wrap:hover .ts-rp-card__image {
    transform: scale(1.04);
}

.ts-rp-card__image--placeholder {
    width: 100%;
    height: 100%;
    background: #dde3ea;
}

/* Category badge — top-right pill */
.ts-rp-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    background: #2563eb;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

/* Body */
.ts-rp-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ts-rp-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.ts-rp-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ts-rp-card__title a:hover {
    color: #2563eb;
}

.ts-rp-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 16px;
    flex: 1;
}

.ts-rp-card__divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0 0 12px;
}

/* Meta row: date · comments */
.ts-rp-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.ts-rp-card__meta-dot {
    font-size: 1rem;
    line-height: 1;
    color: #cbd5e1;
}
.single-post .tsoft-white-cta-m .wp-block-column:nth-child(2) {
    text-align: center;
}
/* =============================================================
   Related Posts — Responsive
   ============================================================= */
.ts-blog-sec .wp-block-query ul.columns-3 {
    margin: 60px 0;
}
.ts-blog-sec .icon-container svg {
    margin-bottom: -6px;
    transition: 0.3s;
}
.ts-blog-sec a.icon-text-wrapper {
    padding: 7px 20px !important;
    margin-top: 40px;
    transition: 0.3s;
}
.ts-blog-sec a.icon-text-wrapper:hover {
    background: #3b5af1 !important;
    transition: 0.3s;
}
.ts-blog-sec a.icon-text-wrapper:hover .icon-container svg {
    fill: #ffffff;
    transform: rotate(-45deg);
    transition: 0.3s;
}
.ts-blog-sec a.icon-text-wrapper:hover span.tanvir-block-des {
    color: #ffffff;
    transition: 0.3s;
}
.page-numbers {
    padding: 7px 24px;
    border-radius: 50px;
    border: 1px solid #3b5af1;
    color: #3b5af1;
    margin: 0 4px;
}
.page-numbers.current {
    background: #3b5af1;
    color: #ffffff;
    transition: 0.3s;
}
.wp-block-query-pagination-next, .wp-block-query-pagination-previous {
    padding: 4px 14px;
    border-radius: 50px;
    border: 1px solid #3b5af1;
    color: #3b5af1;
    margin: 0 8px !important;
}
/*============= For responsive CSS3 Start Now >--->==============*/
/* Medium Layout 1280px */
@media only screen and (min-width:992px) { } 
/* Tablet Layout: 768px */
@media only screen and (min-width:768px) and (max-width:991px){
    .ts-related-posts--cols-4,
    .ts-related-posts--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .ts-related-posts--cols-2 {
        grid-template-columns: 1fr;
    }
    .ts-rp-card__title {
        font-size: 1.05rem;
    }

    .ts-projects-grid {
        grid-template-columns: 1fr;
        gap: 40px 0;
    }

    .ts-project-card__meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ts-project-card__title {
        font-size: 1.3rem;
    }

    .ts-masonry-image-gallery {
        column-count: 2;
    }
}
/* Mobile Layout 320px */
@media only screen and (max-width:767px){ 
    .ts-related-posts--cols-4,
    .ts-related-posts--cols-3,
    .ts-related-posts--cols-2 {
        grid-template-columns: 1fr;
        gap: 28px 0;
    }
    .ts-rp-card__image-wrap {
        aspect-ratio: 4 / 3;
        margin-bottom: 14px;
    }
    .ts-rp-card__title {
        font-size: 1rem;
    }
    .ts-rp-card__excerpt {
        font-size: 0.88rem;
    }

    .ts-masonry-image-gallery {
        column-count: 1;
        column-gap: 12px;
    }
    .ts-masonry-image-gallery .ts-masonry-grid {
        padding: 4px;
        border-radius: 10px;
        margin-bottom: 20px;
    }
    .ts-masonry-image-gallery .ts-masonry-grid-title {
        font-size: 18px;
        font-weight: 400;
    }
    .ts-masonry-image-gallery .wp-block-image {
        margin-bottom: 12px;
    }
    .ts-projects-grid {
        gap: 32px 0;
    }

    .ts-project-card__image-wrap {
        aspect-ratio: 4 / 3;
        margin-bottom: 16px;
    }

    .ts-project-card__title {
        font-size: 1.15rem;
    }

    .ts-project-card__excerpt {
        font-size: 0.9rem;
    }

    .ts-projects-load-more {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .ts-projects-load-more-wrap {
        margin-top: 32px;
    }
    /* Projects Details Start */
    .project-metaboxs .project-meta-box {
        width: 50%;
    }
    /* Projects Details The End */
    .ts-projects-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .ts-project {
    text-align: center;
    padding-top: 40px;
    }
    .ts-project-screens {
    text-align: center;
    padding: 45px 0 45px 0;
    }
    /* ==ctp-project-On== */
    .cpt-project-content h3.wp-block-heading{
    text-align: center;
    }
    .cpt-project-content .wp-block-quote {
    padding: 15px  10px;
    margin: 30px 0;
    width: 100%;
    }
    .cpt-project-content .wp-block-quote p:nth-child(2) {
    font-size: 16px;
}
    /* ==ctp-project-Off== */
    .ts-more-projects {
    padding: 36px 0 36px 0;
    }
    .ts-more-projects-font .ts-rp-card {
        margin-top: -36px;
    }
    .ts-related-posts h3.ts-rp-card__title a {
        font-size: 20px;
    }

}
/* Wide Mobile Layout 480px */
@media only screen and (min-width:480px) and (max-width:766px){} 
/*================= <---End---> responsive CSS3 ===================*/



/* =============================================================
   TS Comparison Section — ts-hs12 (comparison3)
   ============================================================= */

/* ── Bottom 4-icons grid ── */
.ts-hs12-4icons {
    padding: 24px 32px !important;
    margin-top: 32px !important;
    gap: 0 !important;
}
/* Dividers between the 4 items */
.ts-hs12-4icons .wp-block-tanvir-blocks-my-icon-img {
    padding: 0 24px;
    border-right: 1px solid #e2e8f0;
}
.ts-hs12-4icons .wp-block-tanvir-blocks-my-icon-img:last-child {
    border-right: none;
}
.ts-hs12-4icons .wp-block-tanvir-blocks-my-icon-img .icon-text-wrapper {
    align-items: center !important;
    gap: 16px !important;
}
.ts-hs12-4icons .wp-block-tanvir-blocks-my-icon-img .icon-container {
    flex-shrink: 0;
}
.ts-hs12-4icons .wp-block-tanvir-blocks-my-icon-img .tanvir-block-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a;
    display: block;
    margin-bottom: 3px;
}
.ts-hs12-4icons .wp-block-tanvir-blocks-my-icon-img .tanvir-block-des {
    font-size: 13px !important;
    color: #64748b;
    line-height: 1.4;
}

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-primary-light: #dbeafe;
  --color-danger: #dc2626;
  --color-success: #059669;
  --color-success-light: #d1fae5;
  --color-success-dark: #047857;

  --color-text: #0f172a;
  --color-text-soft: #1f2937;
  --color-muted: #475569;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;

  --color-dark-border: rgba(255,255,255,0.08);
  --color-dark-text: #ffffff;
  --color-dark-text-soft: #e2e8f0;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-4xl: 3rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --radius-md: 12px;
  --radius-2xl: 32px;
  --radius-full: 999px;

  --shadow-md: 0 4px 12px rgba(15,23,42,0.06);
  --shadow-lg: 0 10px 30px rgba(15,23,42,0.08);

  --container-max: 1280px;
  --container-px: clamp(1rem, 4vw, 2.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-base: 280ms;
}

   
.block-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.block-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.block-heading-section {
  text-align: center;
  max-width: 820px;
  margin: 0 auto var(--space-12);
}
.block-heading-section .element-title {
  font-size: clamp(1.75rem, 4vw, var(--fs-4xl));
  margin: var(--space-5) 0 var(--space-4);
  color: var(--color-text);
}
.block-heading-section .element-title .is-accent { color: var(--color-primary); }
.block-heading-section .element-subtitle {
  font-size: var(--fs-lg);
  color: var(--color-muted);
  line-height: 1.6;
}

.section-comparison {
  padding: var(--space-20) 0;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(37,99,235,0.06), transparent 60%),
    var(--color-bg-soft);
  position: relative;
  overflow: hidden;
}
.section-comparison::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(15,23,42,0.04) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 70%);
  pointer-events: none;
}
.section-comparison > .container { position: relative; }

.block-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  position: relative;
  align-items: stretch;
}

.element-vs-badge {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--color-text);
  letter-spacing: 0.05em;
  box-shadow: 0 0 0 1px var(--color-border), 0 10px 30px rgba(15,23,42,0.08);
  z-index: 5;
  outline: 6px dashed rgba(148,163,184,0.35);
  outline-offset: 6px;
}

.block-compare-card {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  overflow: hidden;
  isolation: isolate;
  animation: fadeUp 700ms var(--ease-out) both;
}
.block-compare-card.is-before {
  background:
    radial-gradient(110% 75% at 100% 100%, rgba(239,68,68,0.38), transparent 55%),
    radial-gradient(80% 50% at 90% 0%, rgba(220,38,38,0.18), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #14101e 50%, #2a0d12 100%);
  color: var(--color-dark-text);
  border: 1px solid var(--color-dark-border);
  box-shadow: 0 30px 60px -20px rgba(15,23,42,0.45);
}
.block-compare-card.is-after {
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  animation-delay: 120ms;
}
.block-compare-card.is-before .wp-block-heading { color: #ffffff; }
.block-compare-card.is-before .wp-block-heading mark { color: #ef4444; }
.element-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}
.element-card-head { flex: 1; min-width: 0; }
.element-card-head h3 {
    font-size: 24px;
    line-height: 1.5em;
}
.element-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.element-tag.is-danger {
  background: rgba(239,68,68,0.22);
  color: #fecaca;
  box-shadow: 0 0 0 1px rgba(239,68,68,0.25);
}
.element-tag.is-success {
  background: var(--color-success-light);
  color: var(--color-success-dark);
}
.element-tag svg { width: 14px; height: 14px; }

.element-card-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.element-card-subtitle {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.block-compare-card.is-before .element-card-subtitle { color: #ef4444; }
.block-compare-card.is-after  .element-card-subtitle { color: var(--color-primary); }

.element-card-visual {
  width: 160px;
  height: 130px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ---- SPEEDOMETER (shared base) ---- */
.element-speedometer {
  width: 160px;
  height: 110px;
  position: relative;
}
.element-speedometer svg { width: 100%; height: 100%; overflow: visible; }

.element-speedometer .arc-fill {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
}

.element-speedometer .meter-label {
  font-size: 9.5px;
  font-weight: 600;
  font-family: var(--font-sans);
}

.element-speedometer .needle {
  transform-origin: 80px 80px;
  transform: rotate(-90deg);
}
.element-speedometer .needle-line {
  stroke-width: 2.5;
  stroke-linecap: round;
}
.element-speedometer .needle-cap-outer { stroke-width: 1.5; }

/* ---- RED METER (Before card) — loops needle between 50 ↔ 80 ---- */
.element-speedometer.is-red .arc-bg { stroke: rgba(255,255,255,0.18); }
.element-speedometer.is-red .arc-fill {
  stroke: url(#meterGradient);
  filter:
    drop-shadow(0 0 6px rgba(239,68,68,0.9))
    drop-shadow(0 0 14px rgba(220,38,38,0.6));
  animation: meterFillRed 2.2s var(--ease-in-out) infinite alternate;
}
.element-speedometer.is-red .meter-label { fill: #e2e8f0; }
.element-speedometer.is-red .meter-label.is-hot { fill: #fca5a5; }
.element-speedometer.is-red .meter-label.is-active { fill: #fecaca; }
.element-speedometer.is-red .needle-line { stroke: #f1f5f9; }
.element-speedometer.is-red .needle-cap-outer { fill: #94a3b8; stroke: #cbd5e1; }
.element-speedometer.is-red .needle-cap-inner { fill: #0b1220; }
.element-speedometer.is-red .needle {
  animation: needleSweepRed 2.2s var(--ease-in-out) infinite alternate;
}

@keyframes needleSweepRed {
  0%   { transform: rotate(0deg); }    /* points around 50 */
  100% { transform: rotate(54deg); }   /* points around 80 */
}
@keyframes meterFillRed {
  0%   { stroke-dashoffset: 110; }     /* fill to 50 */
  100% { stroke-dashoffset: 44; }      /* fill to 80 */
}

/* ---- GREEN METER (After card) — loops needle between 90 ↔ 100 ---- */
.element-speedometer.is-green .arc-bg { stroke: rgba(5,150,105,0.14); }
.element-speedometer.is-green .arc-fill {
  stroke: url(#meterGradientGreen);
  filter: drop-shadow(0 0 8px rgba(5,150,105,0.45));
  animation: meterFillGreen 1.8s var(--ease-in-out) infinite alternate;
}
.element-speedometer.is-green .meter-label { fill: #64748b; }
.element-speedometer.is-green .meter-label.is-active { fill: var(--color-success-dark); font-weight: 800; }
.element-speedometer.is-green .needle-line { stroke: var(--color-success-dark); }
.element-speedometer.is-green .needle-cap-outer { fill: #d1fae5; stroke: #10b981; }
.element-speedometer.is-green .needle-cap-inner { fill: var(--color-success-dark); }
.element-speedometer.is-green .needle {
  animation: needleSweepGreen 1.8s var(--ease-in-out) infinite alternate;
}

@keyframes needleSweepGreen {
  0%   { transform: rotate(72deg); }   /* points around 90 */
  100% { transform: rotate(90deg); }   /* points to 100 */
}
@keyframes meterFillGreen {
  0%   { stroke-dashoffset: 22; }      /* fill to 90 */
  100% { stroke-dashoffset: 0; }       /* fill to 100 */
}

.block-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.element-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  transition: transform var(--t-base) var(--ease-out), background var(--t-base) var(--ease-out);
}
.block-compare-card.is-before .element-feature-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
.block-compare-card.is-after .element-feature-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  justify-content: space-between;
}
.element-feature-item:hover { transform: translateX(2px); }
.block-compare-card.is-after .element-feature-item:hover {
  border-color: #bfdbfe;
  background: #fafbff;
}

.element-feature-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.element-feature-icon svg { width: 18px; height: 18px; }
.block-compare-card.is-before .element-feature-icon {
  background: rgba(239,68,68,0.22);
  color: #fca5a5;
  box-shadow: 0 0 0 1px rgba(239,68,68,0.15);
}
.block-compare-card.is-after .element-feature-icon {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.element-feature-text {
  font-size: var(--fs-sm);
  line-height: 1.5;
  font-weight: 500;
}
.block-compare-card.is-before .element-feature-text { color: var(--color-dark-text-soft); }
.block-compare-card.is-after  .element-feature-text {
  color: var(--color-text-soft);
  flex: 1;
}

.element-feature-chev {
  width: 16px;
  height: 16px;
  color: var(--color-muted);
  flex-shrink: 0;
  transition: transform var(--t-base) var(--ease-out);
}
.element-feature-item:hover .element-feature-chev { transform: translateX(3px); }


.element-benefit-icon svg { width: 24px; height: 24px; }
.element-benefit:hover .element-benefit-icon { transform: scale(1.08) rotate(-3deg); }


@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIVE — Mobile: VS sits between the two cards
   ========================================================= */
@media (max-width: 960px) {
  .block-comparison-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "before"
      "vs"
      "after";
    gap: 0;
  }
  .block-compare-card.is-before {
    grid-area: before;
    margin-bottom: var(--space-3);
  }
  .element-vs-badge {
    grid-area: vs;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    justify-self: center;
    margin: var(--space-2) auto;
  }
  .block-compare-card.is-after {
    grid-area: after;
    margin-top: var(--space-3);
  }
}
@media only screen and (max-width: 767px) {
    
    .ts-hs12-4icons {
        padding: 20px 16px !important;
    }
    .ts-hs12-4icons .wp-block-tanvir-blocks-my-icon-img {
        padding: 12px 0;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .ts-hs12-4icons .wp-block-tanvir-blocks-my-icon-img:last-child {
        border-bottom: none;
    }
}
@media (max-width: 560px) {
  .section-comparison { padding: var(--space-16) 0; }
  .element-card-top { flex-direction: column; align-items: stretch; }
  .element-card-visual { width: 100%; height: 130px; align-self: center; }
  .element-speedometer,
  .element-speedometer.is-green { width: 180px; }
  .element-feature-item { padding: var(--space-3) var(--space-4); }
}

/* Very small screens (320px - 380px) */
@media (max-width: 380px) {
  :root {
    --container-px: 0.875rem;
  }
  .section-comparison { padding: var(--space-12) 0; }
  .block-heading-section { margin-bottom: var(--space-8); }
  .block-heading-section .element-title { font-size: 1.5rem; }
  .block-heading-section .element-subtitle { font-size: var(--fs-base); }
  .block-compare-card { padding: var(--space-4); border-radius: 20px; }
  .element-card-title,
  .element-card-subtitle { font-size: 1.2rem; }
  .element-card-visual { height: 120px; }
  .element-speedometer { width: 160px; }
  .element-speedometer.is-green { width: 160px; }
  .element-feature-item { padding: 0.7rem 0.85rem; gap: 0.625rem; }
  .element-feature-icon { width: 34px; height: 34px; }
  .element-feature-icon svg { width: 16px; height: 16px; }
  .element-feature-text { font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}