/* =============================================================
   TARA INDIA — page.css
   ============================================================= */


/* ── 1. PAGE TITLE ──────────────────────────────────────────── */
h1 {
  font-size: clamp(.8rem, 5vw + .5rem, 2.5rem);
  margin: 0 0 clamp(1rem, 1.5rem, 2rem) 0;
}

.page-heading {
  color: #1B6FBF;
  line-height: 1.2;
}


/* ── 2. CONTAINER ───────────────────────────────────────────────
   Overrides style.css. 1000px keeps title and Gutenberg content
   naturally aligned without any extra tricks.
   min-height only on the actual page content, not every container.
   ---------------------------------------------------------------- */
.container {
  width: min(1000px, 92%);
  margin: 0 auto 2rem auto;
  min-height: 0;
}

main#page-content.container {
  min-height: 46vh;
}


/* ── 3. PAGE HERO ───────────────────────────────────────────────
   Title is always overlaid on the image/gradient.
   Overlay is done via ::after (100% reliable, no PHP div needed).
   ──────────────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 2rem 0;
  min-height: 280px;
  display: flex;
  align-items: flex-end;   /* content anchors to bottom */
}

/* ── Photo variant ── */
.page-hero--has-img {
  min-height: 380px;
}

.page-hero__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  line-height: 0;
}

.page-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(0.88) saturate(1.08);
}

/* ── Gradient overlay via ::after — always on top of image ──
   Two-layer gradient:
   • heavy bottom→top dark: makes the title readable
   • left-side teal wash: brand colour tint
   ─────────────────────────────────────────────────────────── */
.page-hero--has-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(10, 40, 90, 0.82) 0%,
      rgba(10, 40, 90, 0.45) 40%,
      rgba(10, 40, 90, 0.10) 70%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      rgba(4, 161, 178, 0.38) 0%,
      rgba(4, 161, 178, 0.10) 55%,
      transparent 80%
    );
}

/* ── Gradient-only variant (no photo) ──────────────────────── */
.page-hero--gradient {
  min-height: 240px;
  background: linear-gradient(
    135deg,
    #04A1B2 0%,
    #1B6FBF 40%,
    #0D3D7A 70%,
    #075A64 100%
  );
}

/* Subtle dot pattern on gradient hero */
.page-hero--gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* ── Title overlay content ─────────────────────────────────── */
.page-hero__content {
  position: relative;
  z-index: 2;         /* above ::after overlay */
  width: 100%;
  padding: 0;
}

.page-hero__content-inner {
  width: min(1000px, 92%);
  margin: 0 auto;
  padding: 28px 0 32px;
}

/* Category pills — light variant for dark hero */
.page-hero__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.page-hero__cat-pill {
  display: inline-block;
  font-family: 'Josefin Sans', 'Futura Std', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.90);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 99px;
  padding: 3px 10px;
  backdrop-filter: blur(4px);
}

/* Page title on hero */
.page-hero__h1 {
  font-size: clamp(1.6rem, 5vw, 3rem);
  color: #ffffff;
  margin: 0;
  line-height: 1.18;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.40),
    0 1px  4px rgba(0, 0, 0, 0.30);
  max-width: 720px;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .page-hero--has-img { min-height: 260px; }
  .page-hero--gradient { min-height: 180px; }
  .page-hero__h1 { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  .page-hero__content-inner { padding: 20px 0 24px; }
}


/* ── 4. CONTENT WRAPPER ─────────────────────────────────────── */
.the-page-content {
  margin: 1.5rem 0;
}


/* ── 5. CATEGORY PILLS ──────────────────────────────────────── */
.post-category-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.post-category-pill {
  display: inline-block;
  font-family: 'Josefin Sans', 'Futura Std', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #E3F0FB;
  color: #0D3D7A;
  border-radius: 99px;
  padding: 4px 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.post-category-pill:hover {
  background: #1B6FBF;
  color: #fff;
}


/* ── 6. SOCIAL ROW ──────────────────────────────────────────── */
.tara-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  align-items: center;
}

.tara-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  border-radius: 99px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  text-decoration: none;
  font-family: 'Josefin Sans', 'Futura Std', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #3a3a3a;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.tara-social-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

.tara-social-btn--yt:hover { background: #fff0f0; border-color: #cc0000; color: #cc0000; }
.tara-social-btn--li:hover { background: #E3F0FB; border-color: #1B6FBF; color: #1B6FBF; }
.tara-social-btn--fb:hover { background: #E3F0FB; border-color: #1877F2; color: #1877F2; }
.tara-social-btn--ig:hover { background: #FDE8F3; border-color: #E83A8D; color: #E83A8D; }


/* ── 7. COVER BLOCK TEXT FIX ────────────────────────────────── */
.ti-page .ti-cover__content p,
.ti-page .ti-cover__content h2,
.ti-page .ti-cover__content h3 {
  color: #fff;
}


/* ── 8. LATEST POSTS SECTION TITLE ─────────────────────────── */
.latest-blogs-title {
  margin-bottom: .8rem;
}

/* ── 9. WPFORMS — CONTACT PAGE (page-id-69) ─────────────────── */
/* The form shortcode sits inside .ti-band--teal which handles
   the coloured box. We only need to style fields and button.   */
 
/* Transparent inner containers — no second box */
.page-id-69 div.wpforms-container-full:not(:empty),
.page-id-69 .wpforms-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
 
/* Labels */
.page-id-69 .wpforms-field-label,
.page-id-69 .wpforms-field legend.wpforms-field-label,
.page-id-69 .wpforms-field label.wpforms-field-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ti-teal-800, #075A64);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 5px;
}
 
.page-id-69 .wpforms-field-sublabel {
  font-size: 12px;
  color: #8a96a8;
  font-weight: 400;
  text-transform: none;
}
 
/* First / Last side by side */
.page-id-69 .wpforms-field-name .wpforms-field-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
}
.page-id-69 .wpforms-field-name .wpforms-field-row-block {
  flex: 1 1 50% !important;
  min-width: 0 !important;
}
 
/* Inputs */
.page-id-69 .wpforms-field input[type="text"],
.page-id-69 .wpforms-field input[type="email"],
.page-id-69 .wpforms-field input[type="number"],
.page-id-69 .wpforms-field textarea {
  font-family: 'Josefin Sans', sans-serif !important;
  font-size: 15px !important;
  border: 1.5px solid var(--ti-teal-600, #097888) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #2a2a2a !important;
  padding: 11px 14px !important;
  box-shadow: none !important;
  width: 100% !important;
  transition: border-color .2s, box-shadow .2s;
}
 
.page-id-69 .wpforms-field input:focus,
.page-id-69 .wpforms-field textarea:focus {
  outline: none !important;
  border-color: var(--ti-teal, #04A1B2) !important;
  box-shadow: 0 0 0 3px rgba(4,161,178,0.18) !important;
}
 
.page-id-69 .wpforms-field textarea {
  min-height: 120px !important;
  resize: vertical;
}
 
/* Errors */
.page-id-69 .wpforms-required-label { color: var(--ti-pink, #E83A8D) !important; }
.page-id-69 .wpforms-field input.wpforms-error,
.page-id-69 .wpforms-field textarea.wpforms-error { border-color: var(--ti-pink, #E83A8D) !important; }
.page-id-69 label.wpforms-error { color: #BF2470 !important; font-size: 12px !important; }
 
/* Spacing */
.page-id-69 .wpforms-field { margin-bottom: 16px !important; padding: 0 !important; }
.page-id-69 .wpforms-submit-container { margin-top: 8px; }
 
/* Submit button */
.page-id-69 .wpforms-submit {
  font-family: 'Josefin Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  background: var(--ti-teal, #04A1B2) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 40px !important;
  padding: 12px 32px !important;
  height: auto !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(4,161,178,0.25) !important;
  transition: background .2s, transform .15s;
}
.page-id-69 .wpforms-submit:hover {
  background: #097888 !important;
  transform: translateY(-1px);
}
 
@media (max-width: 640px) {
  .page-id-69 .wpforms-field-name .wpforms-field-row {
    flex-direction: column !important;
    gap: 0 !important;
  }
}

/* ============================================================
   page-hero-band — replaces the full-width image banner
   Used by: Template "No Hero — Band Header" (page-no-hero.php)
   ============================================================ */

.page-hero-band {
  background: var(--ti-blue-50, #E3F0FB);
  border-bottom: 3px solid var(--ti-blue, #1B6FBF);
  padding: 48px 0 40px;
}

.page-hero-band__inner {
  width: min(1000px, 92%);
  margin: 0 auto;
}

.page-hero-band__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ti-blue-800, #0D3D7A);
  margin: 0;
  line-height: 1.2;
}

.page-hero-band__subtitle {
  font-size: 1.05rem;
  color: var(--ti-blue-600, #145899);
  margin: 10px 0 0;
  line-height: 1.6;
}

/* Colour variants — add class to <section> via PHP if needed */
.page-hero-band--teal {
  background: var(--ti-teal-50, #E0F5F7);
  border-bottom-color: var(--ti-teal, #04A1B2);
}
.page-hero-band--teal .page-hero-band__title  { color: var(--ti-teal-800, #075A64); }
.page-hero-band--teal .page-hero-band__subtitle { color: var(--ti-teal-600, #097888); }

.page-hero-band--pink {
  background: var(--ti-pink-50, #FDE8F3);
  border-bottom-color: var(--ti-pink, #E83A8D);
}
.page-hero-band--pink .page-hero-band__title  { color: var(--ti-pink-800, #7A1248); }
.page-hero-band--pink .page-hero-band__subtitle { color: var(--ti-pink-600, #BF2470); }

/* Mobile */
@media (max-width: 700px) {
  .page-hero-band { padding: 32px 0 28px; }
  .page-hero-band__title { font-size: 1.5rem; }
}
