/*
Theme Name: Train Point Institute
Theme URI: https://trainpoint.ae/
Description: Transforming careers through hands-on training, we equip professionals with skills to excel in today’s market.
Author: IAMFAHAD
Author URI: https://iamfahad.com
Version: 1.0.0
Text Domain: train-point-institute
Tags: one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, theme-options, translation-ready, e-commerce, elementor, lightweight
*/

/* =========================================================
   1. CSS Variables (Brand System)
   ========================================================= */
:root {
  --tpi-primary: #FFDA73;
  --tpi-secondary: #235AA6;
  --tpi-text: #000000;
  --tpi-white: #ffffff;
  --tpi-border-radius: 16px;
  --tpi-max-width: 1200px;
}

/* =========================================================
   2. Font Family (Poppins everywhere)
   ========================================================= */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--tpi-primary) var(--tpi-white);
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tpi-text);

  /* === GLOBAL BACKGROUND (Elementor style) === */
  background-color: var(--tpi-white);
  background-image: url("https://trainpoint.ae/wp-content/uploads/2025/11/Home-BG_1-min.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* =========================================================
   3. Universal Elements
   ========================================================= */
a {
  color: var(--tpi-secondary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

/* =========================================================
   4. Scrollbar Styling (Webkit Browsers)
   ========================================================= */
::-webkit-scrollbar {
  width: 4px;
border-radius: 0px !important;
}

::-webkit-scrollbar-track {
  background: var(--tpi-white);
}

::-webkit-scrollbar-thumb {
  background-color: var(--tpi-primary);
  border-radius: 0px;
}

/* =========================================================
   5. Layout Helpers
   ========================================================= */
.tpi-container {
  max-width: var(--tpi-max-width);
  margin-inline: auto;
  padding-inline: 16px;
}

.site-main {
  padding-block: 40px;
}


/* =========================================================
   HERO: remove top gap ONLY on Blog/Author/Category/Tag + News & Events + Course Category archive
   (keeps other templates unchanged)
   ========================================================= */
body.blog .site-main,
body.archive:not(.post-type-archive-tpi_course):not(.post-type-archive-tpi-course) .site-main,
body.page-template-page-news-events .site-main,
body.tax-course_category .site-main,
body.taxonomy-course_category .site-main{
  padding-top: 0 !important;
}

/* ================== GLOBAL HEADING SCALE ================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  font-weight: 500;              /* default semi-bold */
  color: var(--tpi-text);
  margin-top: 0;
  line-height: 1.25;
}

/* H1 – main page title */
h1 {
  font-size: clamp(28px, 4vw, 40px);
}

/* H2 – section titles */
h2 {
  font-size: clamp(24px, 3.2vw, 34px);
}

/* H3 – sub section */
h3 {
  font-size: clamp(20px, 2.6vw, 28px);
}

/* H4 – smaller headings */
h4 {
  font-size: clamp(18px, 2.2vw, 24px);
}

/* H5 – minor headings */
h5 {
  font-size: clamp(16px, 1.9vw, 20px);
}

/* H6 – smallest heading */
h6 {
  font-size: clamp(14px, 1.7vw, 18px);
}

/* =========================================================
   6. Header (fallback if Elementor header is not used)
   ========================================================= */
.site-header {
  border-bottom: 1px solid rgba(0,0,0,0.04);
  background-color: var(--tpi-white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-description {
  font-size: 13px;
  opacity: 0.7;
}

/* Simple primary navigation */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

/* =========================================================
   7. Footer (fallback if Elementor footer is not used)
   ========================================================= */
.site-footer {
  border-top: 1px solid rgba(0,0,0,0.04);
  background-color: var(--tpi-white);
  padding-block: 24px;
  font-size: 14px;
}

.site-footer .tpi-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* =========================================================
   8. Basic Content Styles (Blog fallback)
   ========================================================= */
.tpi-post {
  margin-bottom: 40px;
}

.tpi-post__title {
  margin-bottom: 8px;
}

.tpi-post__meta {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 16px;
}

.tpi-post__excerpt {
  margin-bottom: 16px;
}

.tpi-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* =========================================================
   9. 404 Page
   ========================================================= */
.tpi-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 12px;
}

/* =========================================================
   10. WooCommerce Helpers (very minimal)
   ========================================================= */
.woocommerce .tpi-container {
  max-width: var(--tpi-max-width);
}

.woocommerce ul.products li.product .button {
  border-radius: 24px;
  background-color: var(--tpi-secondary);
}

.woocommerce ul.products li.product .button:hover {
  background-color: var(--tpi-primary);
  color: #000;
}

/* =========================================================
   11. Elementor Canvas / Full Width
   ========================================================= */
.elementor-html body,
.elementor-page body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

/*==========================================================
  12. Train Point Institute – Single Post Layout (v4)
  ==========================================================*/

/* ---- Single post body (no background image override – global hi chalega) ---- */
body.single-post {
  background-color: #ffffff;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

/* Single posts: H1 = 600, baqi headings equal 500, strong ko neutral karo */
body.single-post .tpi-single-title,
body.single-post .tpi-single-content h1 {
  font-weight: 600 !important;
}

body.single-post .tpi-single-content h2,
body.single-post .tpi-single-content h3,
body.single-post .tpi-single-content h4,
body.single-post .tpi-single-content h5,
body.single-post .tpi-single-content h6 {
  font-weight: 500 !important;
}

body.single-post .tpi-single-content h1 strong,
body.single-post .tpi-single-content h2 strong,
body.single-post .tpi-single-content h3 strong,
body.single-post .tpi-single-content h4 strong,
body.single-post .tpi-single-content h5 strong,
body.single-post .tpi-single-content h6 strong {
  font-weight: inherit !important;
}

/* site-main / hero top gap remove */
body.single-post .site-main {
  margin-top: 0;
  padding-top: 0;
}

/* global responsive padding + boxed width (default) */
.tpi-single-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 30px;
  padding-right: 30px;
}

@media (max-width: 1199px) {
  .tpi-single-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  .tpi-single-container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Hero, main, related: full-width sections */
body.single-post .tpi-single-main > .tpi-single-container,
body.single-post .tpi-single-related > .tpi-single-container {
  max-width: none;
}

/* ---------- HERO (full width BG, boxed inner) ---------- */
.tpi-single-hero {
  margin: 0;
  min-height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #FFDA73 0%, #235AA6 45%, #0a3a7e 100%);
  color: #ffffff;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 120px;
}

.tpi-single-hero-box {
  max-width: 960px;
  margin: 0 auto;
}

.tpi-single-title {
  margin: 0 0 16px;
  color: #ffffff;
}

/* meta line under title */
.tpi-single-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 14px;
}

.tpi-single-meta-item {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
}

.tpi-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.tpi-meta-icon img {
  width: 16px;
  height: 16px;
  display: block;
  filter: drop-shadow(0 0 0 var(--tpi-primary));
}

.tpi-meta-sep {
  margin-right: 6px;
  opacity: 0.6;
}

.tpi-meta-text {
  color: #ffffff;
}

/* ==== YAHAN CHANGE KIYA HAI ==== */
.tpi-meta-link {
  color: #ffffff;
  text-decoration: none;
  border-bottom: none;            /* underline / dotted line hata di */
  transition: color 0.25s ease;   /* smooth colour change */
}

.tpi-meta-link:hover {
  color: #FFDA73;                 /* hover pe primary colour */
}
/* Single post hero – author link */
.tpi-single-meta-author-link {
  color: inherit;           /* hero me white hi rahega */
  text-decoration: none;
}

.tpi-single-meta-author-link:hover {
  color: var(--tpi-primary); /* hover par primary #FFDA73 */
  text-decoration: none;
}
/* Single post hero – category link */
.tpi-single-meta-cat .tpi-meta-link {
  color: inherit;            /* hero me white hi rahega */
  text-decoration: none;     /* underline hata do */
  border-bottom: none;       /* pehle jo dotted border tha wo bhi hata do */
}

.tpi-single-meta-cat .tpi-meta-link:hover {
  color: var(--tpi-primary); /* hover par #FFDA73 */
  text-decoration: none;     /* hover pe bhi underline nahi */
}

/* ==== CHANGE END ==== */

/* ---------- FEATURED IMAGE (boxed + overlap hero) ---------- */
.tpi-single-featured {
  position: relative;
  margin-top: -130px;
  padding-bottom: 20px;
  z-index: 2;
}

.tpi-single-featured-inner {
  display: flex;
  justify-content: center;
}

.tpi-single-featured-img {
  max-width: 100%;
  width: 100%;
  border-radius: 20px;
  display: block;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* ---------- MAIN CONTENT + SIDEBAR ---------- */
.tpi-single-main {
  padding: 10px 0 40px;
}

.tpi-single-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: flex-start;
}

.tpi-single-article {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.tpi-single-content p {
  line-height: 1.7;
  margin-bottom: 1.1em;
}

/* sidebar: form + TOC */
.tpi-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tpi-contact-card,
.tpi-toc-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 22px 20px 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  border: 1px dashed #FFDA73;
}

.tpi-contact-title,
.tpi-toc-title {
  font-size: 18px;
  margin-bottom: 14px;
}

/* ---------- Forminator button – clean hover ---------- */
.tpi-contact-form-wrap .forminator-button,
.tpi-contact-form-wrap button[type="submit"] {
  border-radius: 999px !important;
  background: #FFDA73 !important;
  color: #000000 !important;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  font-weight: 600 !important;
  padding: 11px 24px !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateY(0) translateZ(0);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

/* shine overlay */
.tpi-contact-form-wrap .forminator-button::before,
.tpi-contact-form-wrap button[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 55%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.tpi-contact-form-wrap .forminator-button:hover,
.tpi-contact-form-wrap button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.25);
  background: #ffd24a !important;
}

.tpi-contact-form-wrap .forminator-button:hover::before,
.tpi-contact-form-wrap button[type="submit"]:hover::before {
  opacity: 1;
  animation: tpi-form-btn-shine 0.6s forwards;
}

@keyframes tpi-form-btn-shine {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* ---------- TOC – beautiful list ---------- */
.tpi-toc-list {
  font-size: 14px;
}

.tpi-toc-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tpi-toc-li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 16px;
}

.tpi-toc-li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--tpi-primary);
}

.tpi-toc-li a {
  color: #000000;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s ease;
}

.tpi-toc-li a:hover,
.tpi-toc-li a:focus {
  color: var(--tpi-secondary);
  transform: translateX(2px);
}

/* nested levels */
.tpi-toc-li-h3 { padding-left: 20px; }
.tpi-toc-li-h4 { padding-left: 28px; font-size: 13px; }
.tpi-toc-li-h5 { padding-left: 36px; font-size: 12px; }
.tpi-toc-li-h6 { padding-left: 44px; font-size: 12px; }

/* ---------- SHARE SECTION (inside article) ---------- */
.tpi-single-share {
  padding: 24px 0 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  margin-top: 24px;
}

/* ==== Share This Content + Related News — unified heading style ==== */
.tpi-single-share .tpi-single-block-title,
.tpi-single-related .tpi-single-block-title{
  display:inline-block;                 /* underline ko text-width par lock kare */
  position:relative;
  margin:22px 0 18px;
  padding-left:14px;                    /* left accent bar ke liye space */
  color:#111;
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-weight:700;
  line-height:1.2;
  font-size:clamp(18px,1.8vw,22px);
}

/* Left accent bar */
.tpi-single-share .tpi-single-block-title::before,
.tpi-single-related .tpi-single-block-title::before{
  content:"";
  position:absolute;
  left:0; top:50%;
  transform:translateY(-50%);
  width:6px; height:70%;
  border-radius:6px;
  background:var(--tpi-secondary,#235AA6);
}

/* Text-width underline (exactly under the text, not full row) */
.tpi-single-share .tpi-single-block-title::after,
.tpi-single-related .tpi-single-block-title::after{
  content:"";
  position:absolute;
  left:14px;                            /* padding ke baad se start */
  bottom:-8px;
  height:2px;
  width:calc(100% - 14px);              /* = text width exactly */
  background:var(--tpi-primary,#FFDA73);
  border-radius:2px;
  opacity:1;
}

/* Subtle hover (optional) */
.tpi-single-share .tpi-single-block-title:hover::after,
.tpi-single-related .tpi-single-block-title:hover::after{
  filter:brightness(0.95);
}

/* Mobile tweaks */
@media (max-width:575px){
  .tpi-single-share .tpi-single-block-title,
  .tpi-single-related .tpi-single-block-title{
    margin:18px 0 14px;
    padding-left:12px;
    font-size:18px;
  }
  .tpi-single-share .tpi-single-block-title::before,
  .tpi-single-related .tpi-single-block-title::before{
    width:5px; height:68%;
  }
  .tpi-single-share .tpi-single-block-title::after,
  .tpi-single-related .tpi-single-block-title::after{
    left:12px; width:calc(100% - 12px); bottom:-6px; height:2px;
  }
}


.tpi-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tpi-share-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  min-width: 150px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.tpi-share-btn--facebook { background: #1877f2; }
.tpi-share-btn--linkedin { background: #0a66c2; }
.tpi-share-btn--whatsapp { background: #25d366; }
.tpi-share-btn--x        { background: #111111; }

.tpi-share-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tpi-share-icon-wrap img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
}

.tpi-share-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 55%);
  transform: translateX(-140%);
  opacity: 0;
  pointer-events: none;
}

.tpi-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
  text-decoration: none;
}

.tpi-share-btn:hover::after {
  opacity: 1;
  animation: tpi-share-shine 0.6s forwards;
}

@keyframes tpi-share-shine {
  0%   { transform: translateX(-140%); }
  100% { transform: translateX(140%); }
}

/* ---------- RELATED NEWS ---------- */
.tpi-single-related {
  padding: 0 0 50px;
}

/* Desktop default: 4 posts */
.tpi-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tpi-related-item {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpi-related-thumb-wrap { overflow: hidden; }

.tpi-related-thumb {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.tpi-related-thumb--placeholder {
  width: 100%;
  height: 180px;
  background: #f1f1f1;
}

.tpi-related-title {
  font-size: 15px;
  padding: 12px 14px 16px;
  color: #000000;
}

.tpi-related-thumb-link,
.tpi-related-thumb-link:hover,
.tpi-related-thumb-link:focus {
  text-decoration: none;
}

.tpi-related-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.tpi-related-empty {
  font-size: 14px;
  color: #555555;
}

/* ---------- Responsive tweaks (columns + layout) ---------- */

/* Laptop: 3 posts */
@media (max-width: 1199px) {
  .tpi-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet: 2 posts */
@media (max-width: 991px) {
  .tpi-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 post */
@media (max-width: 575px) {
  .tpi-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* grid + hero adjustments for smaller screens */
@media (max-width: 1024px) {
  .tpi-single-main-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .tpi-single-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tpi-single-article {
    padding: 20px 18px;
  }

  .tpi-single-related {
    padding-bottom: 40px;
  }

  .tpi-single-hero {
    padding-top: 30px;
    padding-bottom: 110px;
  }

  .tpi-single-featured {
    margin-top: -110px;
  }
}

/* =========================================================
   Archive Page – Boxed Hero + Full-width Grid (v2)
   ========================================================= */

/* Common container – full width with side padding */
.tpi-archive-container {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 30px;
  padding-right: 30px;
}

@media (max-width: 1199px) {
  .tpi-archive-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  .tpi-archive-container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ------------ HERO (BOXED) ------------- */
.tpi-archive-hero {
  padding: 24px 0 10px;
}

/* hero inner box – boxed like card */
.tpi-archive-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 400px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("https://trainpoint.ae/wp-content/uploads/2026/01/Blogs.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
  padding: 40px 20px;
	margin-bottom: 50px;
}

.tpi-archive-title {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  margin: 0 0 8px;
}

.tpi-archive-description {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

/* ------------ POSTS GRID SECTION ------------- */
.tpi-archive-list {
  padding-block: 16px 40px;
}

/* 4 columns desktop, 3 laptop, 2 tablet, 1 mobile */
.tpi-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1199px) {
  .tpi-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .tpi-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .tpi-archive-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------ CARD ------------- */
.tpi-archive-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--tpi-border-radius);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tpi-archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

/* thumbnail – full image, responsive */
.tpi-archive-thumb-link {
  display: block;
}

.tpi-archive-thumb {
  width: 100%;
  height: auto;
  display: block;
}

.tpi-archive-thumb--placeholder {
  width: 100%;
  height: 180px;
  background: #f1f1f1;
}

/* card body */
.tpi-archive-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

/* title */
.tpi-archive-card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}

.tpi-archive-card-title a {
  color: #000000;
  text-decoration: none;
}

.tpi-archive-card-title a:hover {
  color: var(--tpi-secondary);
}

/* meta – center with icons */
.tpi-archive-meta {
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.tpi-archive-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tpi-archive-meta-icon img {
  width: 16px;
  height: 16px;
  display: block;
}

.tpi-archive-meta-text {
  color: #000000;
}

/* excerpt center */
.tpi-archive-excerpt {
  font-size: 14px;
  margin: 0 0 16px;
  flex: 1 1 auto;
  text-align: center;
}

/* Read more button – course style hover (lift + shine, no gradient/underline) */
.tpi-archive-read-more {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--tpi-primary);
  color: #000000;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.tpi-archive-read-more span {
  position: relative;
  z-index: 2;
}

.tpi-archive-read-more::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 55%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.tpi-archive-read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  background: #ffd24a;              /* thoda bright, no gradient */
  text-decoration: none;            /* underline nahi */
}

.tpi-archive-read-more:hover::before {
  opacity: 1;
  animation: tpi-archive-btn-shine 0.6s forwards;
}

@keyframes tpi-archive-btn-shine {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* ------------ PAGINATION ------------- */
.tpi-archive-pagination {
  margin-top: 32px;
  text-align: center;
}

/* default WP pagination classes */
.tpi-archive-pagination .navigation.pagination {
  display: inline-block;
}

.tpi-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin: 0 3px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  color: #000000;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.tpi-archive-pagination .page-numbers:hover {
  background: var(--tpi-primary);
  color: #000000;
  transform: translateY(-1px);
}

.tpi-archive-pagination .page-numbers.current {
  background: var(--tpi-secondary);
  color: #ffffff;
}

/* Previous / Next text thoda bold */
.tpi-archive-pagination .prev,
.tpi-archive-pagination .next {
  font-weight: 500;
}
.tpi-archive-meta-cat-link {
  color: inherit;
  text-decoration: none;
}

.tpi-archive-meta-cat-link:hover {
  color: var(--tpi-primary);
  text-decoration: none;
}
.tpi-archive-meta-author-link {
  color: inherit;
  text-decoration: none;
}

.tpi-archive-meta-author-link:hover {
  color: var(--tpi-primary);
  text-decoration: none;
}

/* ============================
   Floating Call / Back to Top / WhatsApp
   ============================ */

/* Wrapper: bottom-right column */
.tpi-floating-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 9999;
}

/* Common base button style */
.tpi-floating-btn {
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

/* === Call button (blue circle) === */
.tpi-floating-btn--call {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--tpi-secondary); /* #235AA6 */
  animation: tpi-call-pulse 1.7s infinite;
}

/* === Back to top (chhota vertical egg) === */
/* default: hidden – layout me space nahi lega */
.tpi-floating-btn--top {
  display: none;
  width: 36px;
  height: 48px;
  border-radius: 999px;
  background-color: var(--tpi-primary); /* #FFDA73 */
  color: #000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* visible state JS se add hoti hai */
.tpi-floating-btn--top.is-visible {
  display: inline-flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover effect (donon buttons) */
.tpi-floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  filter: brightness(1.05);
}

/* Call pulse animation (blue) */
@keyframes tpi-call-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(35, 90, 166, 0.5);
  }
  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 16px rgba(35, 90, 166, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(35, 90, 166, 0);
  }
}

/* Icon wrapper */
.tpi-floating-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Icon size */
.tpi-floating-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

/* Call icon = white */
.tpi-floating-btn--call .tpi-floating-icon img {
  filter: brightness(0) invert(1);
}

/* Back to top icon ka original (black) rehne do */
.tpi-floating-btn--top .tpi-floating-icon img {
  filter: none;
}

/* Small screens */
@media (max-width: 575px) {
  .tpi-floating-wrap {
    right: 14px;
    bottom: 14px;
  }

  .tpi-floating-btn--call {
    width: 48px;
    height: 48px;
  }

  .tpi-floating-btn--top {
    width: 32px;
    height: 40px;
  }

  .tpi-floating-icon img {
    width: 20px;
    height: 20px;
  }
}

/* ============================
   Click to Chat – WhatsApp bubble (same as call + VISIBLE wave)
   ============================ */

/* Green ring animation – clearly visible wave */
@keyframes tpi-wa-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Outer container of Click-to-Chat bubble */
.ht-ctc-chat,
.ht_ctc_chat {
  position: fixed !important;
  right: 20px !important;

  /* tumhare last code ke hisaab se: call button ke upar */
  bottom: calc(20px + 52px + 14px) !important;

  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background-color: #25d366 !important; /* WhatsApp green */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;

  display: flex !important;
  align-items: center;
  justify-content: center;

  /* wave ab ::before pe aayegi, is element ko static rakhte hain */
  animation: none !important;
  overflow: visible !important;   /* ring bahar dikh sake */

  z-index: 9999 !important;
}

/* 🔴 Actual wave ring – clearly visible border pulse */
.ht-ctc-chat::before,
.ht_ctc_chat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.75);  /* green ring */
  box-sizing: border-box;
  animation: tpi-wa-ring 1.7s infinite;
  pointer-events: none;
}

/* Jab body pe tpi-top-visible class lagti hai (back to top dikh raha ho) */
body.tpi-top-visible .ht-ctc-chat,
body.tpi-top-visible .ht_ctc_chat {
  /* bottom + top(48) + gap(14) + call(52) + gap(14) */
  bottom: calc(20px + 48px + 14px + 52px + 14px) !important;
}

/* andar wala link – full area cover kare, circle ke andar center */
.ht-ctc-chat .ht-ctc-chat-link,
.ht_ctc_chat .ht-ctc-chat-link {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
}

/* Icon wrapper class (tumne bataya: ht_ctc_padding) – center + no padding */
.ht-ctc-chat .ht_ctc_padding,
.ht_ctc_chat .ht_ctc_padding {
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Icon ka size – call icon jaisa, color plugin jaisa hi rahe */
.ht-ctc-chat .ht_ctc_padding svg,
.ht_ctc_chat .ht_ctc_padding svg,
.ht-ctc-chat .ht_ctc_padding img,
.ht_ctc_chat .ht_ctc_padding img {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  filter: none !important;  /* color change mat karo */
}

/* Mobile adjustments */
@media (max-width: 575px) {
  .ht-ctc-chat,
  .ht_ctc_chat {
    right: 14px !important;
    bottom: calc(14px + 48px + 14px) !important;
    width: 48px !important;
    height: 48px !important;
  }

  body.tpi-top-visible .ht-ctc-chat,
  body.tpi-top-visible .ht_ctc_chat {
    bottom: calc(14px + 40px + 14px + 48px + 14px) !important;
  }

  .ht-ctc-chat .ht_ctc_padding svg,
  .ht_ctc_chat .ht_ctc_padding svg,
  .ht-ctc-chat .ht_ctc_padding img,
  .ht_ctc_chat .ht_ctc_padding img {
    width: 20px !important;
    height: 20px !important;
  }
}


/* =========================================================
   TPI HERO (same style as cart hero) - reusable for archives/templates
   ========================================================= */
.tpi-hero-cart{
  --blue:#1d57a5;
  --gold:#e0a526;
  --tpi-hero-bg: none;

  width:100%;
  position:relative;
  overflow:hidden;

  /* Height follows image ratio (1920 x 700) */
  aspect-ratio: 1920 / 700;
  height:auto;

  /* safety */
  min-height: 420px;

  background-image: var(--tpi-hero-bg);
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center right;

  margin:0;
}

/* Overlay: black + brand blue (stronger on mobile via variables) */
.tpi-hero-cart-overlay{
  position:absolute;
  inset:0;
  z-index:1;

  /* desktop strength */
  --a1:.66;  /* black */
  --a2:.40;  /* blue tint */
  --a3:.00;

  background:
    linear-gradient(90deg,
      rgba(0,0,0,var(--a1)) 0%,
      rgba(29,87,165,var(--a2)) 46%,
      rgba(0,0,0,var(--a3)) 100%);
  pointer-events:none;
}

/* text area */
.tpi-hero-cart-inner{
  position:relative;
  z-index:2;

  height:100%;
  width:min(820px, calc(100% - 40px));
  margin-left: clamp(16px, 4vw, 70px);
  display:flex;
  flex-direction:column;
  justify-content:center;

  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align:left;
}

/* heading letters not cut */
.tpi-hero-cart-title{
  margin:0 0 12px 0;
  font-weight:600;
  letter-spacing:-0.4px;
  font-size:48px;

  line-height:1.18;
  padding-bottom:6px;
  overflow:visible;
}
.tpi-hero-cart-line{ display:block; overflow:visible; }
.tpi-hero-cart-line--white{ color:#ffffff; }

/* description */
.tpi-hero-cart-desc{
  margin:0;
  max-width:70ch;
  color:rgba(255,255,255,.95);
  font-size:16px;
  line-height:1.75;

  opacity:0;
  transform: translateY(16px);
  animation:tpiCartDescIn 800ms ease forwards;
  animation-delay:220ms;
}
@keyframes tpiCartDescIn{ to{ opacity:1; transform: translateY(0); } }

/* per-letter animation */
.tpi-hero-cart-line[data-split="true"]{ opacity:1; }
.tpi-hero-cart-split{
  display:inline-block;
  overflow:visible;
  vertical-align:bottom;
  padding-bottom:6px;
}
.tpi-hero-cart-char{
  display:inline-block;
  transform: translateY(120%);
  opacity:0;
  animation:tpiCartCharUp 650ms cubic-bezier(.2,.9,.2,1) forwards;
}
@keyframes tpiCartCharUp{ to{ transform: translateY(0); opacity:1; } }

/* Responsive */
@media (max-width:1100px){
  .tpi-hero-cart-title{ font-size:40px; }
  .tpi-hero-cart-desc{ font-size:15px; }
  .tpi-hero-cart{ background-position:right -60px center; }
}
@media (max-width:900px){
  .tpi-hero-cart-title{ font-size:34px; }
  .tpi-hero-cart{ background-position:right -120px center; }
  .tpi-hero-cart-inner{
    width:min(680px, calc(100% - 28px));
    margin-left:16px;
  }
}
@media (max-width:767px){
  .tpi-hero-cart{ background-position:right -220px center; }

  .tpi-hero-cart-overlay{
    --a1:.78;
    --a2:.55;
    --a3:.00;
  }

  .tpi-hero-cart-inner{
    width:min(560px, calc(100% - 24px));
    margin:0 auto;
    padding:0 14px;
    text-align:center;
  }

  .tpi-hero-cart-title{ font-size:30px; }
  .tpi-hero-cart-desc{ font-size:14px; }
}
@media (max-width:420px){
  .tpi-hero-cart{ background-position:right -300px center; }
  .tpi-hero-cart-inner{
    width:min(420px, calc(100% - 18px));
    padding:0 10px;
  }
}


/* ==== TPI Course Meta Row Alignment ==== */


.tpi-course-meta {
  margin-top: 14px;
}

.tpi-course-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #111827;
  margin-bottom: 4px;
}

.tpi-course-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--tpi-secondary); /* blue icons */
}

/* price line bigger + blue */
.tpi-course-meta-item.tpi-course-price {
  font-size: 20px;
  color: var(--tpi-secondary);
}

.tpi-course-price-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-right: 4px;
}

.tpi-course-price-value {
  font-weight: 700;
}

.tpi-course-meta-text {
  line-height: 1.2;
}
ext Domain: train-point-institute
Tags: one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, theme-options, translation-ready, e-commerce, elementor, lightweight
*/

/* =========================================================
   1. CSS Variables (Brand System)
   ========================================================= */
:root {
  --tpi-primary: #FFDA73;
  --tpi-secondary: #235AA6;
  --tpi-text: #000000;
  --tpi-white: #ffffff;
  --tpi-border-radius: 16px;
  --tpi-max-width: 1200px;
}

/* =========================================================
   2. Font Family (Poppins everywhere)
   ========================================================= */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--tpi-primary) var(--tpi-white);
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tpi-text);

  /* === GLOBAL BACKGROUND (Elementor style) === */
  background-color: var(--tpi-white);
  background-image: url("https://trainpoint.ae/wp-content/uploads/2025/11/Home-BG_1-min.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* =========================================================
   3. Universal Elements
   ========================================================= */
a {
  color: var(--tpi-secondary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

/* =========================================================
   4. Scrollbar Styling (Webkit Browsers)
   ========================================================= */
::-webkit-scrollbar {
  width: 4px;
border-radius: 0px !important;
}

::-webkit-scrollbar-track {
  background: var(--tpi-white);
}

::-webkit-scrollbar-thumb {
  background-color: var(--tpi-primary);
  border-radius: 0px;
}

/* =========================================================
   5. Layout Helpers
   ========================================================= */
.tpi-container {
  max-width: var(--tpi-max-width);
  margin-inline: auto;
  padding-inline: 16px;
}

.site-main {
  padding-block: 40px;
}


/* =========================================================
   HERO: remove top gap ONLY on Blog/Author/Category/Tag + News & Events + Course Category archive
   (keeps other templates unchanged)
   ========================================================= */
body.blog .site-main,
body.archive:not(.post-type-archive-tpi_course):not(.post-type-archive-tpi-course) .site-main,
body.page-template-page-news-events .site-main,
body.tax-course_category .site-main,
body.taxonomy-course_category .site-main{
  padding-top: 0 !important;
}

/* ================== GLOBAL HEADING SCALE ================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  font-weight: 500;              /* default semi-bold */
  color: var(--tpi-text);
  margin-top: 0;
  line-height: 1.25;
}

/* H1 – main page title */
h1 {
  font-size: clamp(28px, 4vw, 40px);
}

/* H2 – section titles */
h2 {
  font-size: clamp(24px, 3.2vw, 34px);
}

/* H3 – sub section */
h3 {
  font-size: clamp(20px, 2.6vw, 28px);
}

/* H4 – smaller headings */
h4 {
  font-size: clamp(18px, 2.2vw, 24px);
}

/* H5 – minor headings */
h5 {
  font-size: clamp(16px, 1.9vw, 20px);
}

/* H6 – smallest heading */
h6 {
  font-size: clamp(14px, 1.7vw, 18px);
}

/* =========================================================
   6. Header (fallback if Elementor header is not used)
   ========================================================= */
.site-header {
  border-bottom: 1px solid rgba(0,0,0,0.04);
  background-color: var(--tpi-white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-description {
  font-size: 13px;
  opacity: 0.7;
}

/* Simple primary navigation */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

/* =========================================================
   7. Footer (fallback if Elementor footer is not used)
   ========================================================= */
.site-footer {
  border-top: 1px solid rgba(0,0,0,0.04);
  background-color: var(--tpi-white);
  padding-block: 24px;
  font-size: 14px;
}

.site-footer .tpi-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* =========================================================
   8. Basic Content Styles (Blog fallback)
   ========================================================= */
.tpi-post {
  margin-bottom: 40px;
}

.tpi-post__title {
  margin-bottom: 8px;
}

.tpi-post__meta {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 16px;
}

.tpi-post__excerpt {
  margin-bottom: 16px;
}

.tpi-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* =========================================================
   9. 404 Page
   ========================================================= */
.tpi-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 12px;
}

/* =========================================================
   10. WooCommerce Helpers (very minimal)
   ========================================================= */
.woocommerce .tpi-container {
  max-width: var(--tpi-max-width);
}

.woocommerce ul.products li.product .button {
  border-radius: 24px;
  background-color: var(--tpi-secondary);
}

.woocommerce ul.products li.product .button:hover {
  background-color: var(--tpi-primary);
  color: #000;
}

/* =========================================================
   11. Elementor Canvas / Full Width
   ========================================================= */
.elementor-html body,
.elementor-page body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

/*==========================================================
  12. Train Point Institute – Single Post Layout (v4)
  ==========================================================*/

/* ---- Single post body (no background image override – global hi chalega) ---- */
body.single-post {
  background-color: #ffffff;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

/* Single posts: H1 = 600, baqi headings equal 500, strong ko neutral karo */
body.single-post .tpi-single-title,
body.single-post .tpi-single-content h1 {
  font-weight: 600 !important;
}

body.single-post .tpi-single-content h2,
body.single-post .tpi-single-content h3,
body.single-post .tpi-single-content h4,
body.single-post .tpi-single-content h5,
body.single-post .tpi-single-content h6 {
  font-weight: 500 !important;
}

body.single-post .tpi-single-content h1 strong,
body.single-post .tpi-single-content h2 strong,
body.single-post .tpi-single-content h3 strong,
body.single-post .tpi-single-content h4 strong,
body.single-post .tpi-single-content h5 strong,
body.single-post .tpi-single-content h6 strong {
  font-weight: inherit !important;
}

/* site-main / hero top gap remove */
body.single-post .site-main {
  margin-top: 0;
  padding-top: 0;
}

/* global responsive padding + boxed width (default) */
.tpi-single-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 30px;
  padding-right: 30px;
}

@media (max-width: 1199px) {
  .tpi-single-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  .tpi-single-container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Hero, main, related: full-width sections */
body.single-post .tpi-single-main > .tpi-single-container,
body.single-post .tpi-single-related > .tpi-single-container {
  max-width: none;
}

/* ---------- HERO (full width BG, boxed inner) ---------- */
.tpi-single-hero {
  margin: 0;
  min-height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #FFDA73 0%, #235AA6 45%, #0a3a7e 100%);
  color: #ffffff;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 120px;
}

.tpi-single-hero-box {
  max-width: 960px;
  margin: 0 auto;
}

.tpi-single-title {
  margin: 0 0 16px;
  color: #ffffff;
}

/* meta line under title */
.tpi-single-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 14px;
}

.tpi-single-meta-item {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
}

.tpi-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.tpi-meta-icon img {
  width: 16px;
  height: 16px;
  display: block;
  filter: drop-shadow(0 0 0 var(--tpi-primary));
}

.tpi-meta-sep {
  margin-right: 6px;
  opacity: 0.6;
}

.tpi-meta-text {
  color: #ffffff;
}

/* ==== YAHAN CHANGE KIYA HAI ==== */
.tpi-meta-link {
  color: #ffffff;
  text-decoration: none;
  border-bottom: none;            /* underline / dotted line hata di */
  transition: color 0.25s ease;   /* smooth colour change */
}

.tpi-meta-link:hover {
  color: #FFDA73;                 /* hover pe primary colour */
}
/* Single post hero – author link */
.tpi-single-meta-author-link {
  color: inherit;           /* hero me white hi rahega */
  text-decoration: none;
}

.tpi-single-meta-author-link:hover {
  color: var(--tpi-primary); /* hover par primary #FFDA73 */
  text-decoration: none;
}
/* Single post hero – category link */
.tpi-single-meta-cat .tpi-meta-link {
  color: inherit;            /* hero me white hi rahega */
  text-decoration: none;     /* underline hata do */
  border-bottom: none;       /* pehle jo dotted border tha wo bhi hata do */
}

.tpi-single-meta-cat .tpi-meta-link:hover {
  color: var(--tpi-primary); /* hover par #FFDA73 */
  text-decoration: none;     /* hover pe bhi underline nahi */
}

/* ==== CHANGE END ==== */

/* ---------- FEATURED IMAGE (boxed + overlap hero) ---------- */
.tpi-single-featured {
  position: relative;
  margin-top: -130px;
  padding-bottom: 20px;
  z-index: 2;
}

.tpi-single-featured-inner {
  display: flex;
  justify-content: center;
}

.tpi-single-featured-img {
  max-width: 100%;
  width: 100%;
  border-radius: 20px;
  display: block;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* ---------- MAIN CONTENT + SIDEBAR ---------- */
.tpi-single-main {
  padding: 10px 0 40px;
}

.tpi-single-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: flex-start;
}

.tpi-single-article {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.tpi-single-content p {
  line-height: 1.7;
  margin-bottom: 1.1em;
}

/* sidebar: form + TOC */
.tpi-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tpi-contact-card,
.tpi-toc-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 22px 20px 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  border: 1px dashed #FFDA73;
}

.tpi-contact-title,
.tpi-toc-title {
  font-size: 18px;
  margin-bottom: 14px;
}

/* ---------- Forminator button – clean hover ---------- */
.tpi-contact-form-wrap .forminator-button,
.tpi-contact-form-wrap button[type="submit"] {
  border-radius: 999px !important;
  background: #FFDA73 !important;
  color: #000000 !important;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  font-weight: 600 !important;
  padding: 11px 24px !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateY(0) translateZ(0);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

/* shine overlay */
.tpi-contact-form-wrap .forminator-button::before,
.tpi-contact-form-wrap button[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 55%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.tpi-contact-form-wrap .forminator-button:hover,
.tpi-contact-form-wrap button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.25);
  background: #ffd24a !important;
}

.tpi-contact-form-wrap .forminator-button:hover::before,
.tpi-contact-form-wrap button[type="submit"]:hover::before {
  opacity: 1;
  animation: tpi-form-btn-shine 0.6s forwards;
}

@keyframes tpi-form-btn-shine {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* ---------- TOC – beautiful list ---------- */
.tpi-toc-list {
  font-size: 14px;
}

.tpi-toc-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tpi-toc-li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 16px;
}

.tpi-toc-li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--tpi-primary);
}

.tpi-toc-li a {
  color: #000000;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s ease;
}

.tpi-toc-li a:hover,
.tpi-toc-li a:focus {
  color: var(--tpi-secondary);
  transform: translateX(2px);
}

/* nested levels */
.tpi-toc-li-h3 { padding-left: 20px; }
.tpi-toc-li-h4 { padding-left: 28px; font-size: 13px; }
.tpi-toc-li-h5 { padding-left: 36px; font-size: 12px; }
.tpi-toc-li-h6 { padding-left: 44px; font-size: 12px; }

/* ---------- SHARE SECTION (inside article) ---------- */
.tpi-single-share {
  padding: 24px 0 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  margin-top: 24px;
}

/* ==== Share This Content + Related News — unified heading style ==== */
.tpi-single-share .tpi-single-block-title,
.tpi-single-related .tpi-single-block-title{
  display:inline-block;                 /* underline ko text-width par lock kare */
  position:relative;
  margin:22px 0 18px;
  padding-left:14px;                    /* left accent bar ke liye space */
  color:#111;
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-weight:700;
  line-height:1.2;
  font-size:clamp(18px,1.8vw,22px);
}

/* Left accent bar */
.tpi-single-share .tpi-single-block-title::before,
.tpi-single-related .tpi-single-block-title::before{
  content:"";
  position:absolute;
  left:0; top:50%;
  transform:translateY(-50%);
  width:6px; height:70%;
  border-radius:6px;
  background:var(--tpi-secondary,#235AA6);
}

/* Text-width underline (exactly under the text, not full row) */
.tpi-single-share .tpi-single-block-title::after,
.tpi-single-related .tpi-single-block-title::after{
  content:"";
  position:absolute;
  left:14px;                            /* padding ke baad se start */
  bottom:-8px;
  height:2px;
  width:calc(100% - 14px);              /* = text width exactly */
  background:var(--tpi-primary,#FFDA73);
  border-radius:2px;
  opacity:1;
}

/* Subtle hover (optional) */
.tpi-single-share .tpi-single-block-title:hover::after,
.tpi-single-related .tpi-single-block-title:hover::after{
  filter:brightness(0.95);
}

/* Mobile tweaks */
@media (max-width:575px){
  .tpi-single-share .tpi-single-block-title,
  .tpi-single-related .tpi-single-block-title{
    margin:18px 0 14px;
    padding-left:12px;
    font-size:18px;
  }
  .tpi-single-share .tpi-single-block-title::before,
  .tpi-single-related .tpi-single-block-title::before{
    width:5px; height:68%;
  }
  .tpi-single-share .tpi-single-block-title::after,
  .tpi-single-related .tpi-single-block-title::after{
    left:12px; width:calc(100% - 12px); bottom:-6px; height:2px;
  }
}


.tpi-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tpi-share-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  min-width: 150px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.tpi-share-btn--facebook { background: #1877f2; }
.tpi-share-btn--linkedin { background: #0a66c2; }
.tpi-share-btn--whatsapp { background: #25d366; }
.tpi-share-btn--x        { background: #111111; }

.tpi-share-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tpi-share-icon-wrap img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
}

.tpi-share-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 55%);
  transform: translateX(-140%);
  opacity: 0;
  pointer-events: none;
}

.tpi-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
  text-decoration: none;
}

.tpi-share-btn:hover::after {
  opacity: 1;
  animation: tpi-share-shine 0.6s forwards;
}

@keyframes tpi-share-shine {
  0%   { transform: translateX(-140%); }
  100% { transform: translateX(140%); }
}

/* ---------- RELATED NEWS ---------- */
.tpi-single-related {
  padding: 0 0 50px;
}

/* Desktop default: 4 posts */
.tpi-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tpi-related-item {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpi-related-thumb-wrap { overflow: hidden; }

.tpi-related-thumb {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.tpi-related-thumb--placeholder {
  width: 100%;
  height: 180px;
  background: #f1f1f1;
}

.tpi-related-title {
  font-size: 15px;
  padding: 12px 14px 16px;
  color: #000000;
}

.tpi-related-thumb-link,
.tpi-related-thumb-link:hover,
.tpi-related-thumb-link:focus {
  text-decoration: none;
}

.tpi-related-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.tpi-related-empty {
  font-size: 14px;
  color: #555555;
}

/* ---------- Responsive tweaks (columns + layout) ---------- */

/* Laptop: 3 posts */
@media (max-width: 1199px) {
  .tpi-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet: 2 posts */
@media (max-width: 991px) {
  .tpi-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 post */
@media (max-width: 575px) {
  .tpi-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* grid + hero adjustments for smaller screens */
@media (max-width: 1024px) {
  .tpi-single-main-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .tpi-single-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tpi-single-article {
    padding: 20px 18px;
  }

  .tpi-single-related {
    padding-bottom: 40px;
  }

  .tpi-single-hero {
    padding-top: 30px;
    padding-bottom: 110px;
  }

  .tpi-single-featured {
    margin-top: -110px;
  }
}

/* =========================================================
   Archive Page – Boxed Hero + Full-width Grid (v2)
   ========================================================= */

/* Common container – full width with side padding */
.tpi-archive-container {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 30px;
  padding-right: 30px;
}

@media (max-width: 1199px) {
  .tpi-archive-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  .tpi-archive-container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ------------ HERO (BOXED) ------------- */
.tpi-archive-hero {
  padding: 24px 0 10px;
}

/* hero inner box – boxed like card */
.tpi-archive-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 400px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("https://trainpoint.ae/wp-content/uploads/2026/01/Blogs.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
  padding: 40px 20px;
	margin-bottom: 50px;
}

.tpi-archive-title {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  margin: 0 0 8px;
}

.tpi-archive-description {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

/* ------------ POSTS GRID SECTION ------------- */
.tpi-archive-list {
  padding-block: 16px 40px;
}

/* 4 columns desktop, 3 laptop, 2 tablet, 1 mobile */
.tpi-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1199px) {
  .tpi-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .tpi-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .tpi-archive-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------ CARD ------------- */
.tpi-archive-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--tpi-border-radius);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tpi-archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

/* thumbnail – full image, responsive */
.tpi-archive-thumb-link {
  display: block;
}

.tpi-archive-thumb {
  width: 100%;
  height: auto;
  display: block;
}

.tpi-archive-thumb--placeholder {
  width: 100%;
  height: 180px;
  background: #f1f1f1;
}

/* card body */
.tpi-archive-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

/* title */
.tpi-archive-card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}

.tpi-archive-card-title a {
  color: #000000;
  text-decoration: none;
}

.tpi-archive-card-title a:hover {
  color: var(--tpi-secondary);
}

/* meta – center with icons */
.tpi-archive-meta {
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.tpi-archive-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tpi-archive-meta-icon img {
  width: 16px;
  height: 16px;
  display: block;
}

.tpi-archive-meta-text {
  color: #000000;
}

/* excerpt center */
.tpi-archive-excerpt {
  font-size: 14px;
  margin: 0 0 16px;
  flex: 1 1 auto;
  text-align: center;
}

/* Read more button – course style hover (lift + shine, no gradient/underline) */
.tpi-archive-read-more {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--tpi-primary);
  color: #000000;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.tpi-archive-read-more span {
  position: relative;
  z-index: 2;
}

.tpi-archive-read-more::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 55%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.tpi-archive-read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  background: #ffd24a;              /* thoda bright, no gradient */
  text-decoration: none;            /* underline nahi */
}

.tpi-archive-read-more:hover::before {
  opacity: 1;
  animation: tpi-archive-btn-shine 0.6s forwards;
}

@keyframes tpi-archive-btn-shine {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* ------------ PAGINATION ------------- */
.tpi-archive-pagination {
  margin-top: 32px;
  text-align: center;
}

/* default WP pagination classes */
.tpi-archive-pagination .navigation.pagination {
  display: inline-block;
}

.tpi-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin: 0 3px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  color: #000000;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.tpi-archive-pagination .page-numbers:hover {
  background: var(--tpi-primary);
  color: #000000;
  transform: translateY(-1px);
}

.tpi-archive-pagination .page-numbers.current {
  background: var(--tpi-secondary);
  color: #ffffff;
}

/* Previous / Next text thoda bold */
.tpi-archive-pagination .prev,
.tpi-archive-pagination .next {
  font-weight: 500;
}
.tpi-archive-meta-cat-link {
  color: inherit;
  text-decoration: none;
}

.tpi-archive-meta-cat-link:hover {
  color: var(--tpi-primary);
  text-decoration: none;
}
.tpi-archive-meta-author-link {
  color: inherit;
  text-decoration: none;
}

.tpi-archive-meta-author-link:hover {
  color: var(--tpi-primary);
  text-decoration: none;
}

/* ============================
   Floating Call / Back to Top / WhatsApp
   ============================ */

/* Wrapper: bottom-right column */
.tpi-floating-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 9999;
}

/* Common base button style */
.tpi-floating-btn {
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

/* === Call button (blue circle) === */
.tpi-floating-btn--call {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--tpi-secondary); /* #235AA6 */
  animation: tpi-call-pulse 1.7s infinite;
}

/* === Back to top (chhota vertical egg) === */
/* default: hidden – layout me space nahi lega */
.tpi-floating-btn--top {
  display: none;
  width: 36px;
  height: 48px;
  border-radius: 999px;
  background-color: var(--tpi-primary); /* #FFDA73 */
  color: #000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* visible state JS se add hoti hai */
.tpi-floating-btn--top.is-visible {
  display: inline-flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover effect (donon buttons) */
.tpi-floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  filter: brightness(1.05);
}

/* Call pulse animation (blue) */
@keyframes tpi-call-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(35, 90, 166, 0.5);
  }
  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 16px rgba(35, 90, 166, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(35, 90, 166, 0);
  }
}

/* Icon wrapper */
.tpi-floating-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Icon size */
.tpi-floating-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

/* Call icon = white */
.tpi-floating-btn--call .tpi-floating-icon img {
  filter: brightness(0) invert(1);
}

/* Back to top icon ka original (black) rehne do */
.tpi-floating-btn--top .tpi-floating-icon img {
  filter: none;
}

/* Small screens */
@media (max-width: 575px) {
  .tpi-floating-wrap {
    right: 14px;
    bottom: 14px;
  }

  .tpi-floating-btn--call {
    width: 48px;
    height: 48px;
  }

  .tpi-floating-btn--top {
    width: 32px;
    height: 40px;
  }

  .tpi-floating-icon img {
    width: 20px;
    height: 20px;
  }
}

/* ============================
   Click to Chat – WhatsApp bubble (same as call + VISIBLE wave)
   ============================ */

/* Green ring animation – clearly visible wave */
@keyframes tpi-wa-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Outer container of Click-to-Chat bubble */
.ht-ctc-chat,
.ht_ctc_chat {
  position: fixed !important;
  right: 20px !important;

  /* tumhare last code ke hisaab se: call button ke upar */
  bottom: calc(20px + 52px + 14px) !important;

  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background-color: #25d366 !important; /* WhatsApp green */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;

  display: flex !important;
  align-items: center;
  justify-content: center;

  /* wave ab ::before pe aayegi, is element ko static rakhte hain */
  animation: none !important;
  overflow: visible !important;   /* ring bahar dikh sake */

  z-index: 9999 !important;
}

/* 🔴 Actual wave ring – clearly visible border pulse */
.ht-ctc-chat::before,
.ht_ctc_chat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.75);  /* green ring */
  box-sizing: border-box;
  animation: tpi-wa-ring 1.7s infinite;
  pointer-events: none;
}

/* Jab body pe tpi-top-visible class lagti hai (back to top dikh raha ho) */
body.tpi-top-visible .ht-ctc-chat,
body.tpi-top-visible .ht_ctc_chat {
  /* bottom + top(48) + gap(14) + call(52) + gap(14) */
  bottom: calc(20px + 48px + 14px + 52px + 14px) !important;
}

/* andar wala link – full area cover kare, circle ke andar center */
.ht-ctc-chat .ht-ctc-chat-link,
.ht_ctc_chat .ht-ctc-chat-link {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
}

/* Icon wrapper class (tumne bataya: ht_ctc_padding) – center + no padding */
.ht-ctc-chat .ht_ctc_padding,
.ht_ctc_chat .ht_ctc_padding {
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Icon ka size – call icon jaisa, color plugin jaisa hi rahe */
.ht-ctc-chat .ht_ctc_padding svg,
.ht_ctc_chat .ht_ctc_padding svg,
.ht-ctc-chat .ht_ctc_padding img,
.ht_ctc_chat .ht_ctc_padding img {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  filter: none !important;  /* color change mat karo */
}

/* Mobile adjustments */
@media (max-width: 575px) {
  .ht-ctc-chat,
  .ht_ctc_chat {
    right: 14px !important;
    bottom: calc(14px + 48px + 14px) !important;
    width: 48px !important;
    height: 48px !important;
  }

  body.tpi-top-visible .ht-ctc-chat,
  body.tpi-top-visible .ht_ctc_chat {
    bottom: calc(14px + 40px + 14px + 48px + 14px) !important;
  }

  .ht-ctc-chat .ht_ctc_padding svg,
  .ht_ctc_chat .ht_ctc_padding svg,
  .ht-ctc-chat .ht_ctc_padding img,
  .ht_ctc_chat .ht_ctc_padding img {
    width: 20px !important;
    height: 20px !important;
  }
}


/* =========================================================
   TPI HERO (same style as cart hero) - reusable for archives/templates
   ========================================================= */
.tpi-hero-cart{
  --blue:#1d57a5;
  --gold:#e0a526;
  --tpi-hero-bg: none;

  width:100%;
  position:relative;
  overflow:hidden;

  /* Height follows image ratio (1920 x 700) */
  aspect-ratio: 1920 / 700;
  height:auto;

  /* safety */
  min-height: 420px;

  background-image: var(--tpi-hero-bg);
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center right;

  margin:0;
}

/* Overlay: black + brand blue (stronger on mobile via variables) */
.tpi-hero-cart-overlay{
  position:absolute;
  inset:0;
  z-index:1;

  /* desktop strength */
  --a1:.66;  /* black */
  --a2:.40;  /* blue tint */
  --a3:.00;

  background:
    linear-gradient(90deg,
      rgba(0,0,0,var(--a1)) 0%,
      rgba(29,87,165,var(--a2)) 46%,
      rgba(0,0,0,var(--a3)) 100%);
  pointer-events:none;
}

/* text area */
.tpi-hero-cart-inner{
  position:relative;
  z-index:2;

  height:100%;
  width:min(820px, calc(100% - 40px));
  margin-left: clamp(16px, 4vw, 70px);
  display:flex;
  flex-direction:column;
  justify-content:center;

  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align:left;
}

/* heading letters not cut */
.tpi-hero-cart-title{
  margin:0 0 12px 0;
  font-weight:600;
  letter-spacing:-0.4px;
  font-size:48px;

  line-height:1.18;
  padding-bottom:6px;
  overflow:visible;
}
.tpi-hero-cart-line{ display:block; overflow:visible; }
.tpi-hero-cart-line--white{ color:#ffffff; }

/* description */
.tpi-hero-cart-desc{
  margin:0;
  max-width:70ch;
  color:rgba(255,255,255,.95);
  font-size:16px;
  line-height:1.75;

  opacity:0;
  transform: translateY(16px);
  animation:tpiCartDescIn 800ms ease forwards;
  animation-delay:220ms;
}
@keyframes tpiCartDescIn{ to{ opacity:1; transform: translateY(0); } }

/* per-letter animation */
.tpi-hero-cart-line[data-split="true"]{ opacity:1; }
.tpi-hero-cart-split{
  display:inline-block;
  overflow:visible;
  vertical-align:bottom;
  padding-bottom:6px;
}
.tpi-hero-cart-char{
  display:inline-block;
  transform: translateY(120%);
  opacity:0;
  animation:tpiCartCharUp 650ms cubic-bezier(.2,.9,.2,1) forwards;
}
@keyframes tpiCartCharUp{ to{ transform: translateY(0); opacity:1; } }

/* Responsive */
@media (max-width:1100px){
  .tpi-hero-cart-title{ font-size:40px; }
  .tpi-hero-cart-desc{ font-size:15px; }
  .tpi-hero-cart{ background-position:right -60px center; }
}
@media (max-width:900px){
  .tpi-hero-cart-title{ font-size:34px; }
  .tpi-hero-cart{ background-position:right -120px center; }
  .tpi-hero-cart-inner{
    width:min(680px, calc(100% - 28px));
    margin-left:16px;
  }
}
@media (max-width:767px){
  .tpi-hero-cart{ background-position:right -220px center; }

  .tpi-hero-cart-overlay{
    --a1:.78;
    --a2:.55;
    --a3:.00;
  }

  .tpi-hero-cart-inner{
    width:min(560px, calc(100% - 24px));
    margin:0 auto;
    padding:0 14px;
    text-align:center;
  }

  .tpi-hero-cart-title{ font-size:30px; }
  .tpi-hero-cart-desc{ font-size:14px; }
}
@media (max-width:420px){
  .tpi-hero-cart{ background-position:right -300px center; }
  .tpi-hero-cart-inner{
    width:min(420px, calc(100% - 18px));
    padding:0 10px;
  }
}


/* ==== TPI Course Meta Row Alignment ==== */
.tpi-course-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.tpi-course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #111827;
}

.tpi-course-meta-item svg {
  width: 18px;
  height: 18px;
}

.tpi-course-price-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-right: 2px;
}

.tpi-course-price-value {
  font-weight: 700;
}

.tpi-course-meta-text {
  line-height: 1;
}



/* Dirham SVG icon style */
.tpi-price-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}



/* Force Dirham SVG icon color to theme blue */
.tpi-price-icon {
    filter: brightness(0) saturate(100%) invert(33%) sepia(94%) saturate(748%) hue-rotate(184deg) brightness(92%) contrast(88%);
}


/* Add vertical separator between meta items */
.tpi-course-meta-item:not(:first-child)::before {
    content: "|";
    margin-right: 8px;
    color: #9ca3af;
    font-weight: bold;
}



/* Sale + Regular price (course cards) */
.tpi-course-price-main{
  display:inline-flex;
  align-items:baseline;
  gap:8px;
}
.tpi-course-price-current{
  font-weight:700;
}
.tpi-course-price-regular{
  font-size:14px;
  color:#9ca3af;
  text-decoration:line-through;
  font-weight:500;
}


/* ===== TPI COURSE CARD SHARED STYLES ===== */
/* Use same card design as course category template */
.tpi-course-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: box-shadow .22s ease-out, transform .22s ease-out;
}

.tpi-archive-thumb-link {
  display: block;
  position: relative;
}

.tpi-course-delivery-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(17, 24, 39, 0.92);
  color: #f9fafb;
  backdrop-filter: blur(6px);
}

.tpi-archive-thumb {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.tpi-archive-thumb--placeholder {
  width: 100%;
  height: 220px;
  background: #e5e7eb;
}

.tpi-archive-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.tpi-course-title a {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #0f172a;
  text-decoration: none;
}
.tpi-course-title a:hover,
.tpi-course-title a:focus {
  color: #235aa6;
  text-decoration: none;
}

.tpi-course-cats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-align: center;
}

.tpi-course-cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.tpi-course-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  text-decoration: none;
}
.tpi-course-cat-link img {
  width: 12px;
  height: 12px;
  display: block;
}
.tpi-course-cat-link:hover,
.tpi-course-cat-link:focus {
  background: #dbeafe;
  text-decoration: none;
}

.tpi-course-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tpi-course-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.tpi-course-btn-enroll {
  background: #FFDA73;
  color: #111827;
  box-shadow: 0 8px 18px rgba(255, 218, 115, 0.35);
  font-weight: 600;
}

.tpi-course-btn:hover,
.tpi-course-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  text-decoration: none;
}

.tpi-course-btn-icon img {
  width: 14px;
  height: 14px;
  display: block;
}
.tpi-course-btn-enroll .tpi-course-btn-icon img {
  filter: brightness(0) saturate(100%);
}

.tpi-course-btn-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.4em;
  line-height: 1.4;
  white-space: nowrap;
}
.tpi-course-btn-text span {
  display: block;
  transform: translateY(0);
  transition: transform 0.26s ease-out;
}
.tpi-course-btn-text span:nth-child(2) {
  position: absolute;
  left: 0;
  top: 100%;
}
.tpi-course-btn:hover .tpi-course-btn-text span:nth-child(1),
.tpi-course-btn:focus .tpi-course-btn-text span:nth-child(1) {
  transform: translateY(-100%);
}
.tpi-course-btn:hover .tpi-course-btn-text span:nth-child(2),
.tpi-course-btn:focus .tpi-course-btn-text span:nth-child(2) {
  transform: translateY(-100%);
}

/* grid used by archives and all-courses shortcode */
.tpi-archive-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .tpi-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .tpi-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .tpi-archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ===== TPI CARD: MATCH CATEGORY LOOK (CENTER + PIPES) ===== */
.tpi-course-excerpt{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

.tpi-course-meta{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.tpi-course-meta-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #111827;
  margin: 0;
}

.tpi-course-meta-item:not(:first-child)::before{
  content: "|";
  margin-right: 10px;
  font-weight: 600;
  color: #d1d5db;
}

.tpi-course-meta-icon svg{
  width: 18px;
  height: 18px;
  display: block;
  color: var(--tpi-secondary);
}

.tpi-price-icon{
  width: 18px;
  height: 18px;
  display: block;
}

.tpi-course-price-current{
  font-size: 20px;
  font-weight: 700;
  color: var(--tpi-secondary);
}

.tpi-course-price-regular{
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
}




/* Card shadow only on hover */
.tpi-course-card:hover{
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}
