/* Blog — match main site; archive cards + single post responsive */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap");

:root {
  --tsp-navy: #0c2340;
  --tsp-teal: #1a6b7a;
  --tsp-teal-light: #2d8f9e;
  --tsp-accent: #3b82c4;
  --tsp-muted: #5b6b7d;
}

body.tsp-blog-skin {
  font-family: Inter, Poppins, system-ui, sans-serif;
  color: #1f2937;
  background: #fff;
  overflow-x: hidden;
}

body.tsp-blog-skin .elementor-location-header,
body.tsp-blog-skin .elementor-location-footer,
body.tsp-blog-skin header.site-header,
body.tsp-blog-skin footer.site-footer {
  display: none !important;
}

/* ---------- Headings (all screens) ---------- */
body.tsp-blog-skin .entry-title,
body.tsp-blog-skin h1,
body.tsp-blog-skin h2,
body.tsp-blog-skin h3,
body.tsp-blog-skin .elementor-heading-title {
  font-family: Poppins, Inter, sans-serif;
  color: var(--tsp-navy);
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

body.tsp-blog-skin h1,
body.tsp-blog-skin h1.elementor-heading-title,
body.tsp-blog-skin .elementor-widget-theme-page-title h1,
body.tsp-blog-skin .elementor-widget-theme-post-title h1,
body.tsp-blog-skin.single .entry-title {
  font-size: clamp(1.35rem, 4vw, 2rem) !important;
  line-height: 1.25 !important;
}
body.tsp-blog-skin h2,
body.tsp-blog-skin h2.elementor-heading-title {
  font-size: clamp(1.15rem, 3vw, 1.55rem) !important;
  line-height: 1.3 !important;
}
body.tsp-blog-skin h3,
body.tsp-blog-skin h3.elementor-heading-title {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem) !important;
  line-height: 1.35 !important;
}

/* ---------- Archive cards ---------- */
body.tsp-blog-skin .elementor-post,
body.tsp-blog-skin .elementor-post__card {
  background: #fff !important;
  border: 1px solid rgba(12, 35, 64, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  padding: 0 !important;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

body.tsp-blog-skin .elementor-post:hover,
body.tsp-blog-skin .elementor-post__card:hover {
  border-color: rgba(26, 107, 122, 0.35) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.08) !important;
}

/* Featured image — beat Elementor .elementor-50 … padding-bottom:calc(0.51*100%) */
body.tsp-blog-skin .elementor-post__thumbnail__link,
body.tsp-blog-skin .elementor-50 .elementor-post__thumbnail__link {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;
}

body.tsp-blog-skin .elementor-posts-container .elementor-post__thumbnail,
body.tsp-blog-skin .elementor-50 .elementor-element .elementor-posts-container .elementor-post__thumbnail,
body.tsp-blog-skin .elementor-50 .elementor-element.elementor-element-16b2238 .elementor-posts-container .elementor-post__thumbnail {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #dbe4ec !important;
  line-height: 0 !important;
}

body.tsp-blog-skin .elementor-posts-container .elementor-post__thumbnail img,
body.tsp-blog-skin .elementor-50 .elementor-element .elementor-posts-container .elementor-post__thumbnail img,
body.tsp-blog-skin .elementor-50 .elementor-element.elementor-element-16b2238 .elementor-posts-container .elementor-post__thumbnail img,
body.tsp-blog-skin .elementor-post__thumbnail__link img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

body.tsp-blog-skin .elementor-post__text,
body.tsp-blog-skin .elementor-post__card .elementor-post__text {
  padding: 1rem 1.15rem 1.25rem !important;
  margin: 0 !important;
}

body.tsp-blog-skin .elementor-post__title,
body.tsp-blog-skin .elementor-post__title a {
  color: var(--tsp-navy) !important;
  text-decoration: none !important;
  font-size: clamp(0.95rem, 2.4vw, 1.12rem) !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  display: block !important;
}

body.tsp-blog-skin .elementor-post__excerpt,
body.tsp-blog-skin .elementor-post-date,
body.tsp-blog-skin .elementor-post__meta-data {
  color: var(--tsp-muted) !important;
  font-size: 0.9rem !important;
}

body.tsp-blog-skin .elementor-post__read-more {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem !important;
  padding: 0.45rem 0.95rem !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--tsp-teal) 0%, var(--tsp-navy) 100%) !important;
  box-shadow: 0 4px 14px rgba(12, 35, 64, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.tsp-blog-skin .elementor-post__read-more:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(12, 35, 64, 0.26);
  background: linear-gradient(135deg, var(--tsp-teal-light) 0%, var(--tsp-accent) 100%) !important;
}

/* ---------- Single post layout ---------- */
body.tsp-blog-skin.single {
  background: #f5f7fa;
}
body.tsp-blog-skin.single .site-main,
body.tsp-blog-skin.single #content,
body.tsp-blog-skin.single .elementor-84 {
  background: transparent;
}

/* Soft cards only on main/sidebar columns — not every nested box */
body.tsp-blog-skin.single .elementor-84 > .e-con,
body.tsp-blog-skin.single .elementor-element-c7ae877,
body.tsp-blog-skin.single .elementor-element-c1418ba {
  background: #fff !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.08) !important;
  padding: 1.25rem 1.35rem !important;
}

body.tsp-blog-skin.single .e-con,
body.tsp-blog-skin.single .elementor-element.e-con,
body.tsp-blog-skin.single .elementor-widget-container,
body.tsp-blog-skin.single .elementor-column-wrap {
  box-shadow: none !important;
}

body.tsp-blog-skin.single .e-con.e-flex:not(.elementor-element-c7ae877):not(.elementor-element-c1418ba),
body.tsp-blog-skin.single .elementor-element[class*="e-con"]:not(.elementor-element-c7ae877):not(.elementor-element-c1418ba) {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.tsp-blog-skin.single .site-main,
body.tsp-blog-skin.single .page-content,
body.tsp-blog-skin.single .elementor {
  max-width: 100%;
  overflow-x: clip;
}

body.tsp-blog-skin.single .elementor-widget-theme-post-content,
body.tsp-blog-skin.single .page-content,
body.tsp-blog-skin.single .elementor-widget-theme-post-content .elementor-widget-container {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #334155;
  max-width: 100%;
}

/* Post meta (date/time) — no ugly bullets */
body.tsp-blog-skin.single .elementor-post-info,
body.tsp-blog-skin.single .elementor-inline-items,
body.tsp-blog-skin.single ul.elementor-inline-items {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0.35rem 0 1rem !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem 1.25rem !important;
  align-items: center !important;
}
body.tsp-blog-skin.single .elementor-post-info li,
body.tsp-blog-skin.single .elementor-inline-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tsp-muted) !important;
  font-size: 0.9rem !important;
}
body.tsp-blog-skin.single .elementor-post-info li::before,
body.tsp-blog-skin.single .elementor-inline-item::before {
  content: none !important;
}

/* Content padding on single */
body.tsp-blog-skin.single .elementor-widget-theme-post-title,
body.tsp-blog-skin.single .elementor-widget-theme-post-content,
body.tsp-blog-skin.single .elementor-widget-theme-post-featured-image {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

body.tsp-blog-skin.single .elementor-widget-theme-post-content img,
body.tsp-blog-skin.single .page-content img,
body.tsp-blog-skin.single .elementor-widget-image img,
body.tsp-blog-skin.single img.attachment-full,
body.tsp-blog-skin.single img.wp-post-image {
  display: block !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
}

/* Featured / hero images on single — never overflow */
body.tsp-blog-skin.single .elementor-widget-theme-post-featured-image img,
body.tsp-blog-skin.single .elementor-widget-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover;
}

/* Tables scroll on small screens */
body.tsp-blog-skin.single table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  font-size: 0.92rem;
}
body.tsp-blog-skin.single .elementor-widget-theme-post-content,
body.tsp-blog-skin.single .page-content {
  overflow-wrap: anywhere;
}
body.tsp-blog-skin.single .elementor-widget-theme-post-content .elementor-widget-container,
body.tsp-blog-skin.single .page-content {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body.tsp-blog-skin.single table td,
body.tsp-blog-skin.single table th {
  padding: 0.5rem 0.65rem;
  word-break: break-word;
}

/* Sidebar widgets — no fake card boxes */
body.tsp-blog-skin.single .elementor-widget-sidebar,
body.tsp-blog-skin.single aside {
  max-width: 100%;
}
body.tsp-blog-skin.single .elementor-widget-sidebar img {
  max-width: 100% !important;
  height: auto !important;
}

/* List icons — never giant */
body.tsp-blog-skin .elementor-icon-list-icon,
body.tsp-blog-skin .elementor-icon-list-icon svg,
body.tsp-blog-skin .elementor-icon-list-item .elementor-icon-list-icon svg,
body.tsp-blog-skin .elementor-icon svg,
body.tsp-blog-skin svg.e-font-icon-svg {
  width: 1em !important;
  height: 1em !important;
  max-width: 1.25rem !important;
  max-height: 1.25rem !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}
body.tsp-blog-skin .elementor-icon-list-icon {
  width: auto !important;
  max-width: 1.5rem !important;
  margin-inline-end: 0.5rem !important;
}
body.tsp-blog-skin .elementor-icon-list-items .elementor-icon-list-item {
  align-items: center !important;
}

/* Buttons */
body.tsp-blog-skin .elementor-button,
body.tsp-blog-skin .elementor-button-link {
  background: linear-gradient(135deg, var(--tsp-teal) 0%, var(--tsp-navy) 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(12, 35, 64, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
body.tsp-blog-skin .elementor-button:hover,
body.tsp-blog-skin .elementor-button-link:hover {
  background: linear-gradient(135deg, var(--tsp-teal-light) 0%, var(--tsp-accent) 100%) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.28);
}
body.tsp-blog-skin .elementor-button i,
body.tsp-blog-skin .elementor-button svg {
  color: #fff !important;
  fill: currentColor !important;
  width: 1em !important;
  height: 1em !important;
  max-width: 1.1rem !important;
  max-height: 1.1rem !important;
}

body.tsp-blog-skin .tsp-faq-block h2 { font-size: 1.35rem; margin-top: 2rem; }
body.tsp-blog-skin .tsp-faq-block h3 { font-size: 1.05rem; margin: 1rem 0 .35rem; }

/* Old Elementor custom CSS that broke Read More */
body.tsp-blog-skin .blog-btn button.elementor-button,
body.tsp-blog-skin .blog-btn button.elementor-button.elementor-size-xs {
  margin-left: 0 !important;
  top: auto !important;
  left: auto !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  flex-basis: auto !important;
}

/* Newsletter */
body.tsp-blog-skin .hp-footer__newsletter {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
}
body.tsp-blog-skin .hp-footer__newsletter input[type="email"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border-radius: 10px 0 0 10px !important;
}
body.tsp-blog-skin .hp-footer__newsletter button {
  flex: 0 0 auto !important;
  border-radius: 0 10px 10px 0 !important;
  white-space: nowrap !important;
}

/* WhatsApp LEFT — kill Elementor margin-left:-103px */
body.tsp-blog-skin .floating-whatsapp-widget-wrapper {
  position: fixed !important;
  bottom: 24px !important;
  left: 16px !important;
  right: auto !important;
  margin: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
  z-index: 99999 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 58px !important;
  height: 58px !important;
}
body.tsp-blog-skin .floating-whatsapp-widget-wrapper a {
  display: flex !important;
  width: 58px !important;
  height: 58px !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #25d366 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  body.tsp-blog-skin.single .elementor-section .elementor-container,
  body.tsp-blog-skin.single .e-con.e-flex {
    flex-wrap: wrap !important;
  }
  body.tsp-blog-skin.single .elementor-column,
  body.tsp-blog-skin.single .e-con > .e-con,
  body.tsp-blog-skin.single .e-con > .elementor-widget {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  body.tsp-blog-skin .elementor-post__text {
    padding: 0.9rem 1rem 1.05rem !important;
  }
  body.tsp-blog-skin .elementor-post__title,
  body.tsp-blog-skin .elementor-post__title a {
    font-size: 1rem !important;
  }
  body.tsp-blog-skin h1,
  body.tsp-blog-skin h1.elementor-heading-title {
    font-size: 1.4rem !important;
  }
  body.tsp-blog-skin.single .elementor-widget-theme-post-content,
  body.tsp-blog-skin.single .page-content {
    font-size: 0.98rem;
    line-height: 1.7;
  }
  body.tsp-blog-skin.single table {
    font-size: 0.82rem;
  }
  /* Stack posts grid to 1 col feel if Elementor leaves multi-col */
  body.tsp-blog-skin .elementor-posts-container {
    gap: 1.25rem !important;
  }
}
