/*==========================================================================
   WhatsSender Modern UI Overrides
   Fixes glitches & modernizes all homepage sections
==========================================================================*/

/* ─── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --ws-green:   #16a34a;
  --ws-blue:    #2563eb;
  --ws-amber:   #d97706;
  --ws-purple:  #9333ea;
  --ws-dark:    #0f172a;
  --ws-muted:   #64748b;
  --ws-border:  #e8edf5;
  --ws-light:   #f8fafc;
}

/* ─── Spacing helpers ────────────────────────────────────────────────────── */
.mb-65 { margin-bottom: 65px !important; }
.mt-50 { margin-top: 50px !important; }

/* ─── Section tag pill ───────────────────────────────────────────────────── */
.ws-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 15px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.ws-tag-green  { background:#f0fdf4; color:#16a34a; border:1px solid #bbf7d0; }
.ws-tag-blue   { background:#eff6ff; color:#2563eb; border:1px solid #bfdbfe; }
.ws-tag-amber  { background:#fefce8; color:#d97706; border:1px solid #fef08a; }

/* ─── Stats bar ──────────────────────────────────────────────────────────── */
.ws-stats__area {
  background: #fff !important;
  border-top: 1px solid var(--ws-border) !important;
  border-bottom: 1px solid var(--ws-border) !important;
}
.ws-stat-item {
  position: relative;
  padding: 30px 15px;
}
.ws-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; height: 60%; width: 1px;
  background: var(--ws-border);
}
.ws-stat-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.ws-stat-num sup {
  font-size: 18px;
  font-weight: 700;
  vertical-align: super;
}
.ws-stat-label {
  color: var(--ws-muted);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
@media (max-width: 767px) {
  .ws-stat-item:not(:last-child)::after { display: none; }
  .ws-stat-num { font-size: 30px; }
}

/* ─── Feature cards (replaces tp-service__item service-inner) ─────────────── */
.ws-feature-card {
  background: #fff;
  border: 1px solid var(--ws-border);
  border-radius: 18px;
  padding: 32px 26px 28px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  display: flex;
  flex-direction: column;
}
.ws-feature-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ws-green), var(--ws-blue));
  opacity: 0;
  transition: opacity .28s ease;
}
.ws-feature-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 50px rgba(15,23,42,.10);
  border-color: transparent;
}
.ws-feature-card:hover::before { opacity: 1; }

.ws-feature-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.ws-feature-card__body { flex: 1; }
.ws-feature-card__body h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ws-dark);
  margin-bottom: 12px;
}
.ws-feature-card__body h4 a {
  color: var(--ws-dark);
  text-decoration: none;
}
.ws-feature-card__body h4 a:hover { color: var(--ws-blue); }
.ws-feature-card__body p {
  font-size: 14px;
  color: var(--ws-muted);
  line-height: 1.72;
  margin: 0 0 20px;
}
.ws-feature-card__arrow {
  color: var(--ws-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap .2s ease;
}
.ws-feature-card__arrow:hover { gap: 10px; color: var(--ws-blue); }

/* ─── How it works steps ─────────────────────────────────────────────────── */
.ws-steps__track {
  position: relative;
}
.ws-steps__track::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(16.66% + 32px);
  right: calc(16.66% + 32px);
  height: 2px;
  background: linear-gradient(90deg, #bbf7d0, #bfdbfe, #fef08a);
  z-index: 0;
}
@media (max-width: 991px) {
  .ws-steps__track::before { display: none; }
}
.ws-step-card {
  background: #fff;
  border: 1px solid var(--ws-border);
  border-radius: 20px;
  padding: 36px 28px 32px;
  text-align: center;
  height: 100%;
  position: relative;
  z-index: 1;
  transition: transform .28s ease, box-shadow .28s ease;
}
.ws-step-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 50px rgba(15,23,42,.10);
}
.ws-step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(0,0,0,.09);
}
.ws-step-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ws-dark);
  margin-bottom: 12px;
}
.ws-step-card p {
  font-size: 14px;
  color: var(--ws-muted);
  line-height: 1.72;
  margin: 0;
}

/* ─── Testimonials ───────────────────────────────────────────────────────── */
.ws-testimonial__area {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  padding: 100px 0 100px;
}
.ws-testimonial-card {
  background: #fff;
  border: 1px solid var(--ws-border);
  border-radius: 18px;
  padding: 28px;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.ws-testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(15,23,42,.10);
}
.ws-testimonial-card__quote {
  font-size: 32px;
  color: #dbeafe;
  line-height: 1;
  margin-bottom: 14px;
}
.ws-testimonial-card__stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.ws-testimonial-card p {
  font-size: 14px;
  color: #374151;
  line-height: 1.78;
  flex: 1;
  margin: 0 0 22px;
  font-style: italic;
}
.ws-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--ws-border);
}
.ws-testimonial-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.ws-testimonial-card__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ws-dark);
  margin: 0 0 2px;
}
.ws-testimonial-card__role {
  font-size: 12px;
  color: var(--ws-muted);
  margin: 0;
}

/* ─── FAQ section #2 (faq.blade.php) ────────────────────────────────────── */
.ws-faq2__area {
  background: var(--ws-light);
  padding: 100px 0 100px;
}
.ws-faq2__item {
  background: #fff;
  border: 1px solid var(--ws-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.ws-faq2__item:has(.show) {
  box-shadow: 0 5px 22px rgba(37,99,235,.09);
  border-color: #bfdbfe;
}
.ws-faq2__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ws-dark);
  line-height: 1.4;
}
.ws-faq2__btn .ws-faq2-icon {
  margin-left: auto;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ws-muted);
  transition: background .22s ease, transform .22s ease;
}
.ws-faq2__btn[aria-expanded="true"] .ws-faq2-icon {
  background: var(--ws-blue);
  color: #fff;
  transform: rotate(45deg);
}
.ws-faq2__body {
  padding: 0 22px 18px 22px;
  font-size: 14px;
  color: #475569;
  line-height: 1.78;
}

/* ─── Integration section improvements ──────────────────────────────────── */
.tp-integration__title-box {
  padding-bottom: 20px;
}
.ws-integration-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 0 20px 30px;
}
.ws-integration-item {
  background: #fff;
  border: 1px solid var(--ws-border);
  border-radius: 18px;
  padding: 22px 18px 16px;
  text-align: center;
  min-width: 110px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ws-integration-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(15,23,42,.10);
}
.ws-integration-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 24px;
  margin-bottom: 10px;
}
.ws-integration-item p {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  line-height: 1.3;
}

/* ─── Counter / WhyChoose ────────────────────────────────────────────────── */
.tp-counter__content span {
  font-size: 44px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* ─── About / Top-area improvements ─────────────────────────────────────── */
.tp-app__wrapper .tp-app__content ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 15px;
  color: #374151;
}
.tp-app__wrapper .tp-app__content ul li::before {
  content: none !important;
}

/* ─── Hero section subtitle ──────────────────────────────────────────────── */
.tp-hero__content p {
  font-size: 18px !important;
  color: rgba(255,255,255,0.82) !important;
  line-height: 1.72 !important;
}

/* ─── Modern CTA buttons ─────────────────────────────────────────────────── */
.ws-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366, #16a34a);
  color: #fff !important;
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 20px rgba(22,163,74,.3);
}
.ws-cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(22,163,74,.4);
  color: #fff !important;
}
.ws-cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--ws-border);
  color: var(--ws-dark) !important;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.ws-cta-btn-ghost:hover {
  border-color: var(--ws-blue);
  color: var(--ws-blue) !important;
}

/* ─── Section title smooth span highlight ────────────────────────────────── */
.tp-section-title span {
  position: relative;
  z-index: 0;
}
