/*
 * Treatment pages (foot / toe / ankle-shin) — bespoke styles.
 *
 * Ported from the old public/css/custom.css. Everything is scoped under the
 * `.tx` page-root class so it never leaks onto the rest of the (Tailwind) app.
 * The Bootstrap dependency is gone: this file restores the handful of reboot
 * defaults the static pages relied on (heading sizes, paragraph/list margins
 * that Tailwind Preflight strips) and reimplements the small grid + the custom
 * components (hero, cards, accordion, reviews carousel, footer, WhatsApp float).
 * Layout/spacing is done with Tailwind utilities in the Phlex views; this file
 * holds only what utilities can't express cleanly.
 */

/* ---- base / reboot (replaces what Bootstrap reboot gave these pages) ---- */
.tx {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
}
.tx h1, .tx h2, .tx h3, .tx h4, .tx h5, .tx h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: Arial, sans-serif;
  font-weight: bold;
  line-height: 1.2;
}
.tx h1 { font-size: 2.5rem; }
.tx h2 { font-size: 2rem; }
.tx h3 { font-size: 1.75rem; }
.tx h4 { font-size: 1.5rem; }
.tx h5 { font-size: 1.25rem; }
/* Bootstrap's responsive font sizes (RFS): h1-h4 scale with the viewport below
   1200px and settle at the fixed sizes above. */
@media (max-width: 1199.98px) {
  .tx h1 { font-size: calc(1.375rem + 1.5vw); }
  .tx h2 { font-size: calc(1.325rem + 0.9vw); }
  .tx h3 { font-size: calc(1.3rem + 0.6vw); }
  .tx h4 { font-size: calc(1.275rem + 0.3vw); }
}
.tx p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: Arial, sans-serif;
  font-weight: 400;
}
.tx ul, .tx ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 2rem;
}
.tx ul li { font-family: Arial, sans-serif; font-weight: 400; }
.tx a {
  font-family: Arial, sans-serif;
  font-weight: 400;
  color: inherit;
  text-decoration: none;
}
.tx strong { font-family: Arial, sans-serif; }
.tx img { max-width: 100%; }
.tx .bb strong { font-size: 1.25rem; }
.tx p.description { font-size: 1.25rem; line-height: 1.75rem; }

/* ---- grid (minimal Bootstrap container/row/col port) ---- */
.tx-container {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) { .tx-container { max-width: 540px; } }
@media (min-width: 768px) { .tx-container { max-width: 720px; } }
@media (min-width: 992px) { .tx-container { max-width: 960px; } }
@media (min-width: 1200px) { .tx-container { max-width: 1140px; } }
@media (min-width: 1400px) { .tx-container { max-width: 1320px; } }

/* ---- cards ---- */
.tx .green-bg {
  background-color: #41b18f;
  padding: 35px;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.75rem;
  /* Every one of these was a Bootstrap .card: 1px translucent border, 0.375rem radius. */
  border: 1px solid rgba(0, 0, 0, 0.175);
  border-radius: 0.375rem;
}
.tx .grey-bg {
  background-color: #f7f7f7;
  padding: 35px;
  font-size: 1.25rem;
  color: #41b18f;
  line-height: 1.75rem;
  /* Every one of these was a Bootstrap .card: 1px translucent border, 0.375rem radius. */
  border: 1px solid rgba(0, 0, 0, 0.175);
  border-radius: 0.375rem;
}
.tx .common-conditions-list { text-align: left; }
.tx .bg-light { background-color: #f8f9fa; }

/* ---- section titles ---- */
.tx .section-title { font-size: 3rem; line-height: 1.2em; }
.tx .section-title2 { font-size: 2.3rem; line-height: 1.2em; }
.tx .section-sub-title { font-size: 2.5rem; line-height: 1; }
/* py-5 / my-4 were carried over from the Bootstrap markup. Tailwind defines the
   same class names on a smaller scale (py-5 = 1.25rem, my-4 = 1rem), which
   shrank every section band; restore Bootstrap's values (3rem / 1.5rem). */
.tx .py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.tx .my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
/* Bootstrap's reboot leaves images inline (vertical-align: middle); Tailwind's
   preflight makes them block, which shifts every image and card by the line-box
   gap. :where() keeps this at element specificity so utilities still win. */
:where(.tx) img { display: inline; }
.tx .py-top { margin-top: 4rem; }
.tx .py-custom-top { margin-top: 3rem; }

/* ---- hero ---- */
.tx #home {
  background: url(/images/effective-ankle-pain-shin-splints-treatment.webp);
  background-size: cover;
  background-position: 50%;
  height: 100vh;
}
.tx #home-mobile {
  background: url(/images/effective-ankle-pain-shin-splints-treatment-mobile.webp);
  background-size: cover;
  background-position: 50%;
  height: 100vh;
  align-items: center;
  justify-content: center;
}
.tx .text-wrapper { text-align: left; }
.tx .small-logo-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  margin-bottom: 20px;
}
.tx .sm-logo-h {
  height: 6rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  border-radius: 0.5rem;
}
.tx .b2 {
  width: 1px;
  height: 2em;
  display: inline-block;
  border: 1px solid #475569;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  box-shadow: 1px 0px 0px rgba(255, 255, 255, 0.5);
}
.tx .inline-b { display: inline-block; font-size: 1.875rem; font-weight: 500; }
.tx .home-main-title { font-size: 6rem; line-height: 1; color: #475569; }
.tx #home .home-main-title {
  width: 45%;
  font-family: "Inter var", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 109px;
  text-align: center;
  font-weight: 700;
  line-height: 0.9em;
  padding: 10px 0;
  overflow: visible;
}
.tx #home.toenail h1 { width: 50%; font-size: 80px; text-align: center; line-height: 0.9em; padding: 10px 0; overflow: visible; }
.tx #home-mobile .home-main-title {
  font-size: 50px;
  text-align: center;
  font-weight: 700;
  line-height: 1em;
  font-family: "Inter var", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.tx #home .est { width: 48%; margin-top: 10px; font-size: 1.8rem; text-align: right; font-weight: 500; }
.tx #home-mobile .est { font-size: 20px; text-align: center; font-weight: 600; }
.tx .home-main-title-gradient {
  background: -webkit-linear-gradient(180deg, #337f68, #41b18f, #41b18f, #337f68);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.tx .border-r { border-radius: 10px; }
.tx .max-height { max-height: 600px; width: auto; }

/* ---- book-now button ---- */
.tx .booknow_btn_divider { height: 80px; }
.tx .booknow_btn_wrapper { text-align: center; margin-top: 50px; }
/* Inline, as on the original page: its padding overflows the line box instead
   of adding height, so it must not become inline-block. */
.tx .booknow_btn {
  display: inline;
  margin-top: 50px;
  background-color: #FDE047;
  color: #000;
  padding: 15px 150px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.875rem;
  line-height: 2.25rem;
  box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.2);
}
.tx .booknow_btn:hover { color: #000; text-decoration: none; }
.tx .booknow_btn .plus { padding-left: 30px; }
.tx .booknow_btn span { font-weight: bold; }

/* ---- video ---- */
.tx .video-wrapper { width: 800px; margin: 50px auto 0; }
.tx .video-wrapper iframe { width: 100%; height: 450px; }

/* ---- reviews carousel (replaces Slick) ---- */
.tx .slider-wrapper { position: relative; max-width: 1200px; margin: 0 auto; padding: 20px 40px 35px; }
.tx-slider-viewport { overflow: hidden; }
.tx-slider-track { display: flex; transition: transform 0.3s ease; }
.tx .custom-prev, .tx .custom-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: black;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  z-index: 1000;
  cursor: pointer;
}
.tx .custom-prev { left: 0; }
.tx .custom-next { right: 0; }
.tx .review-card { padding: 10px; display: flex; gap: 20px; }
.tx .review-card .t-inner {
  flex: 1;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.tx .review-card .five-stars { width: 100px; }
.tx .reviewer-info { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.tx .reviewer-info img { width: 40px; height: 40px; border-radius: 50%; }
.tx .reviewer-name { display: block; font-weight: bold; font-size: 16px; margin-bottom: 10px; }
.tx .review-text { font-size: 14px; line-height: 1.5; margin-top: 15px; }
.tx .view-all-reviews { font-size: 20px; }
.tx-slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.tx-slider-dot { width: 12px; height: 12px; padding: 0; border: none; border-radius: 50%; background: #c7c7c7; cursor: pointer; }
.tx-slider-dot.is-active { background: #333; }

/* ---- FAQ accordion (replaces Bootstrap collapse) ---- */
.tx .faqs .tx-accordion { border-radius: 0.25rem; }
.tx-accordion-item { border: 1px solid rgba(0, 0, 0, 0.125); }
.tx-accordion-item:not(:first-child) { border-top: 0; }
.tx-accordion-item:first-child { border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; }
.tx-accordion-item:last-child { border-bottom-left-radius: 0.25rem; border-bottom-right-radius: 0.25rem; }
.tx-accordion-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background-color: #f7f7f7;
  color: #212529;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  cursor: pointer;
}
.tx-accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}
.tx-accordion-item.is-open > .tx-accordion-header .tx-accordion-button { color: #41b18f; }
.tx-accordion-item.is-open > .tx-accordion-header .tx-accordion-button::after { transform: rotate(180deg); }
/* No ring after a mouse/touch click; keyboard users still get one. */
.tx-accordion-button:focus { outline: 0; }
.tx-accordion-button:focus-visible { box-shadow: 0 0 0 0.25rem rgba(65, 177, 143, 0.25); }
.tx-accordion-collapse { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; background: #fff; }
.tx-accordion-body { padding: 1rem 1.25rem; font-size: 1.25rem; line-height: 1.9rem; text-align: left; }
.tx .tx-accordion-header { margin: 0; }

/* ---- footer ---- */
.tx footer { margin-top: 5rem; margin-bottom: 2rem; }
/* flow-root: the old .row was a flex container, which kept the paragraph margin inside. */
.tx footer .allright { margin-top: 2rem; display: flow-root; }
.tx footer a, .tx footer p { font-size: 1rem; line-height: 1.75rem; text-align: center; color: inherit; text-decoration: none; }
.tx footer .allright p { font-size: 0.9rem; line-height: 1.75rem; text-align: center; }
.tx .footer-item-title { font-size: 2.25rem; line-height: 2.5rem; text-align: center; margin-bottom: 1.5rem; }
/* No font-size: the original rule had a typo ("ont-size"), so the h3 default applied. */
.tx .footer-time-title { line-height: 2rem; margin-top: 1.7rem; margin-bottom: 1.7rem; }

/* ---- floating WhatsApp button ---- */
.tx .whatsapp-container { position: fixed; bottom: 20px; right: 20px; z-index: 1000; display: inline-block; cursor: default; }
.tx .whatsapp-icon { width: 5rem; height: 5rem; cursor: pointer; }
.tx .whatsapp-buttons {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.tx .whatsapp-container:hover .whatsapp-buttons { opacity: 1; visibility: visible; }
.tx .wa-button {
  width: 120px;
  background-color: #22c55d;
  color: #fff;
  font-size: 15px;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 0.5rem;
  text-align: center;
  transition: background 0.3s;
  display: block;
  margin: 0 auto;
}
.tx .wa-button:hover { background-color: #22c55d; color: #fff; }
.tx .button-left { position: relative; left: -120px; top: 150px; }
.tx .button-top { position: relative; left: -25px; top: -5px; }
.tx .button-top-left { position: relative; left: -90px; }

/* ---- responsive tweaks ported from custom.css ---- */
@media (min-width: 768px) {
  .tx .review-card .t-inner { height: 310px; }
  .tx .text-wrapper { padding-left: 4.5%; }
  .tx .custom-py { padding-left: 6%; padding-right: 6%; }
  .tx .specilises { max-width: 75%; margin: 0 auto; }
  .tx .adv-treatments { max-width: 85%; margin: 0 auto; }
  .tx .common-causes-of-toe-pain { max-width: 85%; margin: 0 auto; }
  .tx .eq-col-height { height: 100%; object-fit: cover; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .tx .fw { width: 100%; padding-left: 20%; padding-right: 20%; padding-bottom: 15px; }
  .tx .max-height { max-height: 100%; }
  .tx .specilises { max-width: 100%; }
  .tx .common-causes-of-toe-pain, .tx .adv-treatments { max-width: 100%; }
  .tx .advanced-treatments-img { max-width: 60%; margin: 0 auto; }
}
@media (max-width: 1024px) {
  .tx .booknow_btn { padding: 15px 50px; }
  .tx .small-logo-wrapper { margin-top: -90px; justify-content: center; }
  .tx .sm-logo-h { height: 3rem; }
  .tx #home-mobile .est { max-width: 250px; margin: 0 auto; padding-top: 20px; text-align: right; font-weight: 500; }
}
@media (min-width: 1025px) {
  .tx .faqs { max-width: 80%; margin: 0 auto; }
}
@media (max-width: 767px) {
  .tx .slider-wrapper { margin-left: 25px; margin-right: 25px; }
  .tx .video-wrapper { width: 100%; padding-left: 20px; padding-right: 20px; }
  .tx .video-wrapper iframe { height: 250px; }
  .tx .review-card .t-inner { height: 360px; }
  .tx .whatsapp-container { display: none; }
  .tx .b2 { margin-left: 1rem; margin-right: 1rem; }
  .tx .inline-b { font-size: 1.25rem; line-height: 1.75rem; }
}

/* Stacked card columns, as the old .col-md-* overrides spaced them: touching
   from 769-1024px, 15px below at <=768px, plus 10px above at <=767px. The
   side-by-side gutter (>=1024px) is the row's lg:gap-6. */
@media (max-width: 768px) { .tx .tx-col { margin-bottom: 15px; } }
@media (max-width: 767px) { .tx .tx-col { margin-top: 10px; } }
@media (min-width: 1024px) { .tx .tx-gutter > .tx-col { padding-left: 12px; padding-right: 12px; } }
/* Tablet: stacked rows keep Bootstrap's -12px row margins, so the old .fw 20%
   side padding is computed from the same width. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .tx .tx-container > .lg\:flex-row { margin-left: -12px; margin-right: -12px; }
}
