/* ===== Physical Therapy Landing Page — Premium Styles ===== */

/* -- Variables -- */
:root {
  --pt-gold: #AC8D62;
  --pt-gold-dark: #635943;
  --pt-cream: #F7EBE4;
  --pt-dark: #2B2B2B;
  --pt-text: #555555;
  --pt-white: #FFFFFF;
  --pt-radius: 14px;
  --pt-radius-sm: 10px;
  --pt-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --pt-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --pt-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ===== HERO ===== */
.pt-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #eee;
}
/* When the hero is a YouTube embed the iframe is position:absolute, so the
   wrapper (.pt-hero--yt) needs to own the aspect box itself. */
.pt-hero--yt {
  aspect-ratio: 16 / 5;
}
@media (max-width: 1200px) {
  .pt-hero--yt { aspect-ratio: 16 / 6; }
}
@media (max-width: 768px) {
  .pt-hero--yt { aspect-ratio: 16 / 8; }
}
.pt-hero__image {
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  display: block;
}
.pt-hero video.pt-hero__image {
  height: auto;
}
/* YouTube ambient background embed. An <iframe> can't use object-fit, so to
   fill the 16:5 (16:6 / 16:8) hero box with no pillar/letterbox bands:
   centre it, force it to at least the full box on both axes AND to a 16:9
   rectangle sized off the viewport (min-height 56.25vw), and let
   .pt-hero (overflow: hidden) trim whichever axis overflows. Same approach
   as .dc-hero-building__yt on the homepage. */
.pt-hero__image.pt-hero__yt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 56.25vw;
  border: 0;
  pointer-events: none;
}
@media (max-width: 768px) {
  .pt-hero__image.pt-hero__yt { min-height: 100%; }
}
@media (max-width: 1200px) {
  .pt-hero__image {
    aspect-ratio: 16 / 6;
  }
}
@media (max-width: 768px) {
  .pt-hero__image {
    aspect-ratio: 16 / 8;
  }
}

/* ===== PAGE INTRO — ประวัติ PT ===== */
.pt-intro {
  padding: 80px 0 0px;
  background: var(--pt-white);
  text-align: center;
  position: relative;
  overflow: clip;
  z-index: 1;
}
/* Blurred clinic photo behind the doctor + text — same treatment as the
   homepage .dc-doctor-intro__bg. */
.pt-intro__bg {
  position: absolute;
  inset: 0;
  background: url('../images/dc-clinic-background-1200x960.png') center center / cover no-repeat;
  filter: blur(14px) brightness(108%);
  opacity: 0.4;
  transform: scale(1.08);
  pointer-events: none;
  z-index: -1;
}
.pt-intro__inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.pt-intro__eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--pt-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pt-intro__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--pt-dark);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.pt-intro__text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--pt-text);
  margin-bottom: 20px;
}
.pt-intro__text:last-child {
  margin-bottom: 0;
}

/* Restored from prototype — profile card (photo + name + role + position)
   shown inside .pt-intro on desktop; markup exists in page-physicaltherapy.php.
   Type hierarchy mirrors the homepage .dc-doctor-profile__card. */
.pt-intro__name {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--pt-dark);
  margin: 0 0 10px;
}
.pt-intro__role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--pt-gold);
  margin: 0 0 8px;
}
.pt-intro__position {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--pt-text);
  margin: 0;
}
/* Placeholder when no dc_doctor is assigned to the 'pt_landing' slot and no
   dc_physiotherapist record exists. */
.pt-intro__empty {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(0, 0, 0, 0.45);
}
/* Matches prototype/physicaltherapy.html → prototype/assets/css/pt-landing.css
   (.pt-intro__profile is .desktop-only; mobile uses .pt-mobile-profile). */
.pt-intro__profile {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  max-width: 1080px;
  text-align: left;
}
/* Doctor photo — same treatment as the homepage .dc-doctor-profile__image:
   a 3:4 portrait frame, face kept in view (object-position: top center),
   rounded corners + soft shadow, subtle hover lift. */
.pt-intro__profile-image {
  position: relative;
  width: clamp(300px, 40vw, 550px);
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.pt-intro__profile-image:hover {
  transform: scale(1.03);
}
.pt-intro__profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  filter: drop-shadow(0 20px 44px rgba(99, 89, 67, 0.15));
}
/* Text card — same frosted-glass treatment as the homepage
   .dc-doctor-profile__card so it stays legible over .pt-intro__bg. */
.pt-intro__profile-info {
  flex: 1;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 28px 32px;
  border-radius: 24px;
  border: 1px solid #F7EBE4;
  box-shadow: 0 20px 60px rgba(172, 141, 98, 0.12);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.pt-intro__profile-info:hover {
  box-shadow: 0 30px 80px rgba(172, 141, 98, 0.18);
  border-color: rgba(172, 141, 98, 0.3);
}
/* Quote now lives inside .pt-intro__profile-info (and the mobile card) —
   styled as a closing note under the name block: a hairline separator, a
   decorative gold quote mark, roomy italic body. */
.pt-intro__quote {
  position: relative;
  margin: 22px 0 0;
  padding: 20px 0 0 34px;
  border-top: 1px solid #EFE3D8;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.85;
  color: var(--pt-text);
  text-align: left;
}
.pt-intro__quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--pt-gold);
  font-style: normal;
}
.pt-intro__quote p:last-child {
  margin-bottom: 0;
}
.pt-intro__quote--mobile {
  margin: 14px 0 4px;
  font-size: 0.95rem;
}
/* Standalone quote shown directly under the eyebrow on mobile only (the
   .pt-intro__profile card that normally holds the quote is .desktop-only).
   No hairline separator here since there is no name block above it. */
.pt-intro__quote--intro {
  margin: 4px 0 0;
  padding-top: 8px;
  border-top: 0;
}

/* Bio blocks live inside the profile card now (merged from the old
   .pt-bio-section) — same "label + content" rhythm as the homepage
   .dc-doctor-profile__bio, separated from the name block by a hairline. */
.pt-intro__bio {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #EFE3D8;
}
.pt-intro__bio .pt-bio__block {
  margin-bottom: 20px;
}
.pt-intro__bio .pt-bio__block:last-child {
  margin-bottom: 0;
}
.pt-intro__bio .pt-bio__label {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--pt-dark);
}
.pt-intro__bio .pt-bio__label strong {
  font-weight: 700;
}

/* Action pair — matches the homepage .dc-doctor-profile__actions. */
.pt-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #EFE3D8;
}
.pt-intro__actions > .btn-dc-gold,
.pt-intro__actions > .btn-dc-outline-gold {
  flex: 0 1 auto;
  min-height: 48px;
  padding: 13px 28px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.pt-bio {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.pt-bio__full-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--pt-dark);
  margin: 0 0 4px;
}
.pt-bio__position {
  font-size: 14px;
  color: var(--pt-gold);
  margin: 0 0 32px;
}
.pt-bio__section {
  margin-bottom: 32px;
}
.pt-bio__section:last-child {
  margin-bottom: 0;
}
.pt-bio__heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--pt-dark);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(172, 141, 98, 0.2);
}
.pt-bio__sub {
  margin-bottom: 16px;
}
.pt-bio__sub-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--pt-gold-dark);
  margin: 0 0 6px;
}
.pt-bio__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pt-bio__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--pt-text);
  margin-bottom: 6px;
}
.pt-bio__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pt-gold);
}
.pt-bio__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--pt-text);
  margin: 0;
}

/* ── PT biography — rebuilt to match the homepage .dc-doctor-profile card:
   a single frosted panel, plain "label + content" blocks (no collapse,
   no lonely centred button), a left-aligned action pill. ── */
.pt-bio-section {
  padding: 0 0 72px;
  background: var(--pt-white);
}
.pt-bio {
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 40px 44px;
  border-radius: 24px;
  border: 1px solid #F7EBE4;
  box-shadow: 0 20px 60px rgba(172, 141, 98, 0.12);
}
.pt-bio__block {
  margin-bottom: 24px;
}
.pt-bio__block:last-of-type {
  margin-bottom: 0;
}
.pt-bio__label {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--pt-dark);
}
.pt-bio__label strong {
  font-weight: 700;
}
.pt-bio__actions {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #EFE3D8;
}
.pt-bio__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 30px;
  border-radius: 50px;
  border: 1px solid var(--pt-gold);
  background: transparent;
  color: var(--pt-gold);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.pt-bio__more:hover {
  background: var(--pt-gold);
  color: #fff;
}
.pt-bio__more .material-symbols-outlined {
  font-size: 20px;
  transition: transform 0.3s ease;
}
.pt-bio__more:hover .material-symbols-outlined {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .pt-bio-section {
    padding: 0 0 48px;
  }
  .pt-bio {
    padding: 28px 22px;
    border-radius: 18px;
  }
}

@media (max-width: 768px) {
  .pt-intro {
    padding: 56px 0 48px;
  }
  /* Match the homepage — the blurred backdrop is desktop-only. */
  .pt-intro__bg {
    display: none;
  }
  .pt-intro__title {
    font-size: 28px;
  }
  .pt-intro__text {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* ===== PT BIOGRAPHY ===== */
.pt-bio__full-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--pt-dark);
  margin: 0 0 4px;
}
.pt-bio__position {
  font-size: 14px;
  color: var(--pt-gold);
  margin: 0 0 32px;
}
.pt-bio__section {
  margin-bottom: 32px;
}
.pt-bio__section:last-child {
  margin-bottom: 0;
}
.pt-bio__heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--pt-dark);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(172, 141, 98, 0.2);
}
.pt-bio__sub {
  margin-bottom: 16px;
}
.pt-bio__sub-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--pt-gold-dark);
  margin: 0 0 6px;
}
.pt-bio__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pt-bio__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--pt-text);
  margin-bottom: 6px;
}
.pt-bio__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pt-gold);
}
.pt-bio__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--pt-text);
  margin: 0;
}

@media (max-width: 768px) {
  .pt-intro__name {
    font-size: 18px;
  }
  .pt-intro__role {
    font-size: 14px;
  }
  .pt-intro__quote {
    font-size: 14px;
    padding-left: 30px;
  }
  .pt-intro__quote::before {
    font-size: 2.2rem;
    top: 14px;
  }
  .pt-bio__heading {
    font-size: 15px;
  }
  .pt-bio__list li,
  .pt-bio__text {
    font-size: 14px;
  }
}

/* ===== 3 FACILITY HIGHLIGHTS ===== */
.pt-highlights {
  padding: 8px 0 80px;
  background: var(--pt-white);
}
.pt-highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}
.pt-highlight-card {
  display: flex;
  flex-direction: column;
  background: var(--pt-white);
  border-radius: var(--pt-radius);
  overflow: hidden;
  box-shadow: var(--pt-shadow);
  transition: box-shadow var(--pt-transition), transform var(--pt-transition);
}
.pt-highlight-card:hover {
  box-shadow: var(--pt-shadow-hover);
  transform: translateY(-5px);
}
.pt-highlight-card__img {
  width: 100%;
  height: clamp(200px, 20vw, 260px);
  flex-shrink: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}
.pt-highlight-card__body {
  padding: 28px;
  flex: 1;
}
.pt-highlight-card__num {
  font-size: 14px;
  font-weight: 700;
  color: var(--pt-gold);
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.pt-highlight-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--pt-dark);
  margin: 0 0 12px;
}
.pt-highlight-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1023px) {
  .pt-highlights__grid {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .pt-highlights {
    padding: 16px 0 56px;
  }
  .pt-highlight-card__title {
    font-size: 19px;
  }
}

/* ===== NEWS & ARTICLES SECTION ===== */
.pt-articles {
  padding: 80px 0;
  background: #FAF7F4;
}
.pt-articles__header {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.pt-articles__title-group {
  text-align: left;
}
.pt-articles__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--pt-dark);
  margin: 0 0 4px;
}
.pt-articles__subtitle {
  font-size: 15px;
  color: #888;
  margin: 0;
}
.pt-articles__view-all {
  color: var(--pt-gold);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--pt-transition);
}
.pt-articles__view-all:hover {
  color: var(--pt-gold-dark);
}
.pt-articles__grid {
  display: block; /* Always block since we use full-width carousel now */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.pt-article-item {
  position: relative;
  border-radius: var(--pt-radius);
  overflow: hidden;
  box-shadow: var(--pt-shadow);
  transition: box-shadow var(--pt-transition), transform var(--pt-transition);
  display: block;
  text-decoration: none;
  height: 400px; /* Fixed height for consistency */
}
.pt-article-item:hover {
  box-shadow: var(--pt-shadow-hover);
  transform: translateY(-4px);
}
.pt-article-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pt-article-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}
.pt-article-item__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--pt-gold);
  padding: 4px 10px;
  border-radius: 4px;
  margin: 0 0 10px;
}
.pt-article-item__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Remove old individual card styles if they are no longer used in grid.
   NOTE: .pt-article-card is still the desktop "ข่าวสารและบทความ" carousel
   card (see #pt-articles-carousel in page-physicaltherapy.php) — hiding it
   here blanked the whole section on PC while mobile (.pt-info-card /
   .pt-featured-card) was unaffected. */
.pt-feature-article,
.pt-article-cards {
  display: none;
}


@media (max-width: 1023px) {
  .pt-articles__grid {
    grid-template-columns: 1fr;
  }
  .pt-feature-article__img {
    min-height: 320px;
  }
}
/* ===== OWL CAROUSEL PREMIUM NAV ===== */
#pt-articles-carousel .owl-nav {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
#pt-articles-carousel .owl-nav button.owl-prev,
#pt-articles-carousel .owl-nav button.owl-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pt-white);
  border: 1px solid rgba(172, 141, 98, 0.2);
  color: var(--pt-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--pt-transition);
  box-shadow: var(--pt-shadow);
}
#pt-articles-carousel .owl-nav button.owl-prev:hover,
#pt-articles-carousel .owl-nav button.owl-next:hover {
  background: var(--pt-gold);
  color: var(--pt-white);
  border-color: var(--pt-gold);
  transform: translateY(-2px);
}
#pt-articles-carousel .owl-nav button span {
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 768px) {
  #pt-articles-carousel .owl-nav {
    margin-top: 20px;
  }
  #pt-articles-carousel .owl-nav button.owl-prev,
  #pt-articles-carousel .owl-nav button.owl-next {
    width: 36px;
    height: 36px;
  }
}

/* ===== SOCIAL PROFILE SECTION ===== */
.pt-profile {
  padding: 80px 0 40px;
  background: var(--pt-white);
}
.pt-profile__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.pt-profile__card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #F9F9F9;
  padding: 40px;
  border-radius: 20px;
  position: relative;
}
.pt-profile__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.pt-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pt-profile__info {
  flex: 1;
}
.pt-profile__name {
  font-size: 24px;
  font-weight: 700;
  color: var(--pt-dark);
  margin: 0 0 4px;
}
.pt-profile__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--pt-gold);
  margin: 0 0 12px;
  display: block;
}
.pt-profile__desc {
  font-size: 15px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}
.pt-profile__follow {
  padding: 12px 36px;
  background: var(--pt-gold);
  color: #fff;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--pt-transition);
  white-space: nowrap;
}
.pt-profile__follow:hover {
  background: var(--pt-gold-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(172, 141, 98, 0.3);
}

/* Restored from prototype — social icon row and contact list used inside
   .pt-profile__card; markup exists (.pt-profile-socials, .pt-profile__contact)
   but had no styling in the deployed theme file. */
.pt-profile-socials {
  display: flex;
  gap: 12px;
  margin: 0 0 10px;
}
.pt-profile-socials a {
  color: var(--pt-dark);
  font-size: 20px;
  text-decoration: none;
  transition: color var(--pt-transition);
}
.pt-profile-socials a:hover {
  color: var(--pt-gold);
}
.pt-profile__contact {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pt-profile__contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: break-word;
}
.pt-profile__contact li > i {
  color: #25d366;
  flex-shrink: 0;
  margin-top: 3px;
}
.pt-profile__contact li .material-symbols-outlined {
  font-size: 18px;
  color: var(--pt-gold);
  flex-shrink: 0;
  margin-top: 1px;
}
.pt-profile__contact li a {
  color: #555;
  text-decoration: none;
  transition: color var(--pt-transition);
}
.pt-profile__contact li a:hover {
  color: var(--pt-gold);
}

@media (max-width: 768px) {
  .pt-profile {
    padding: 56px 0 32px;
  }
  .pt-profile__card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
  }
  .pt-profile__avatar {
    width: 100px;
    height: 100px;
  }
  .pt-profile__name {
    font-size: 20px;
  }
  .pt-profile__follow {
    width: 100%;
    text-align: center;
  }
}

/* ===== SOCIAL REELS (SHORT-FORM) ===== */
.pt-social-content {
  padding: 0 0 100px;
  background: var(--pt-white);
}
.pt-social-content__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.pt-social-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  box-shadow: var(--pt-shadow);
  transition: all var(--pt-transition);
  display: block;
  text-decoration: none;
}
.pt-social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pt-shadow-hover);
}
.pt-social-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
video.pt-social-card__img {
  position: absolute;
  inset: 0;
}
.pt-social-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
}
.pt-social-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}
.pt-social-card__play {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
@media (max-width: 1023px) {
  .pt-social-content__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .pt-social-content {
    padding: 0 0 64px;
  }
}

/* ===== OWL CAROUSEL MOBILE OVERRIDES ===== */
@media (max-width: 768px) {
  .pt-highlights,
  .pt-articles,
  .pt-social-content {
    overflow-x: hidden;
  }
  
  .pt-highlights__grid,
  .pt-articles__grid,
  .pt-social-content__grid {
    display: block !important;
    padding: 0 16px !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 0 !important;
  }

  .pt-articles__header {
    display: block !important;
    padding: 0 16px !important;
    margin-bottom: 24px !important;
  }
  
  .pt-articles__view-all {
    margin-top: 12px;
    display: inline-flex !important;
  }

  /* Disable Grid/Flex when Owl is active */
  #pt-facility-carousel,
  #pt-articles-carousel,
  #pt-social-carousel {
    display: block !important;
    width: 100%;
    opacity: 1 !important;
    height: auto !important;
    margin: 0 !important;
  }
  
  .owl-carousel .owl-stage-outer {
    overflow: hidden;
  }

  .owl-carousel .pt-highlight-card,
  .owl-carousel .pt-article-item,
  .owl-carousel .pt-social-card {
    width: 100% !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column;
    background: #fff;
    border-radius: var(--pt-radius-sm);
    overflow: hidden;
  }
  
  .owl-carousel .owl-item {
    display: flex;
    justify-content: center;
  }

  .owl-carousel .pt-article-item {
    position: relative !important;
    height: 320px !important;
  }
  
  .owl-carousel .pt-article-item__img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    inset: 0;
    display: block !important;
  }

  .owl-carousel .pt-article-item__overlay {
    position: absolute !important;
    inset: 0 !important;
    padding: 24px !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    text-align: left !important;
  }

  .owl-carousel .pt-feature-article__title,
  .owl-carousel .pt-article-card__title,
  .owl-carousel .pt-highlight-card__title {
    color: var(--pt-dark) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
  }

  .owl-carousel .pt-feature-article__label,
  .owl-carousel .pt-article-card__label,
  .owl-carousel .pt-highlight-card__num {
    margin-bottom: 6px !important;
    font-size: 10px !important;
  }
  
  .owl-carousel .pt-article-card__img,
  .owl-carousel .pt-highlight-card__img {
    aspect-ratio: 1 / 1;
    height: 280px !important;
    width: 100% !important;
    object-fit: contain !important;
    background: #fff;
    display: block !important;
  }

  .owl-carousel .pt-social-card {
    aspect-ratio: 9 / 16;
    height: 480px !important;
  }
  
  .owl-dots {
    margin-top: 24px !important;
    text-align: center;
    line-height: 1;
  }
  .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: #ccc;
    border-radius: 50%;
    display: block;
    transition: all 0.3s;
  }
  .owl-dots .owl-dot.active span {
    background: var(--pt-gold);
    width: 24px;
    border-radius: 4px;
  }

  /* Restored from prototype — mobile profile card + mobile contact section;
     markup exists in page-physicaltherapy.php (.pt-profile-mobile,
     .pt-contact-mobile) but had no styling in the deployed theme file. */
  .pt-profile-mobile {
    padding: 40px 0;
    background: #fff;
  }
  .pt-profile-card-mobile {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
  }
  .pt-profile-card-mobile__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
  .pt-profile-card-mobile__avatar img { width: 100%; height: 100%; object-fit: contain; }
  .pt-profile-card-mobile__info { flex-grow: 1; }
  .pt-profile-card-mobile__name { font-size: 16px; font-weight: 800; color: var(--pt-dark); margin-bottom: 10px; }
  .pt-profile-card-mobile__role { font-size: 13px; color: var(--pt-text); }
  .pt-profile-card-mobile__socials { display: none !important; }
  .pt-profile-card-mobile__socials a { color: var(--pt-dark); font-size: 18px; }
  .pt-profile-card-mobile__follow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--pt-gold);
    text-transform: uppercase;
    padding: 4px 16px;
    border: 1px solid var(--pt-gold);
    border-radius: 100px;
    text-decoration: none;
  }

  .pt-contact-mobile {
    background: #F7EBE4;
    padding: 40px 0;
    text-align: center;
  }
  .pt-contact-mobile__title { font-size: 20px; font-weight: 800; color: var(--pt-dark); margin-bottom: 24px; }
  .pt-contact-mobile__details { font-size: 15px; color: #555; margin-bottom: 28px; line-height: 1.8; }
  .pt-contact-mobile__details p { margin-bottom: 8px; }
  .pt-contact-mobile__address { margin-top: 16px; padding: 0 20px; }
  .pt-contact-mobile__address p { font-size: 14px; margin-top: 4px; }
  .pt-contact-mobile__free {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    background: var(--pt-gold);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 100px;
  }
  .pt-contact-mobile__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .pt-contact-btn {
    flex: 1;
    max-width: 140px;
    padding: 12px 0;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
  }
  .pt-contact-btn--line { background: #06C755; color: #fff; }
  .pt-contact-btn--phone { background: var(--pt-gold); color: #fff; }
  .pt-contact-btn--whatsapp { background: #25d366; color: #fff; }

  /* Restored from prototype pt-landing.css — responsive visibility toggle for
     .desktop-only / .mobile-only utility classes used throughout
     page-physicaltherapy.php. This was missing from the deployed theme file,
     causing desktop and mobile variants of the hero, profile, and contact
     sections to render simultaneously at every viewport width. */
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
}

@media (min-width: 768px) {
  .mobile-only { display: none !important; }
}

/* ============================================================
   SECOND-PASS RESTORATION FROM PROTOTYPE (pt-landing.css)
   Restores remaining selectors confirmed still referenced by
   page-physicaltherapy.php but missing from the deployed theme
   file: mobile hero, mobile profile card, article cards, bio
   collapse/toggle, featured article card, filter chips, info
   cards, infographic carousel, news header, social title.
   ============================================================ */

/* Container rule was missing after the reorg — without it the card has no
   frame and, critically, no `display:flex; flex-direction:column`, so
   `.pt-article-card__content { flex:1 }` and `.pt-article-card__meta
   { margin-top:auto }` do nothing and the card collapses/wraps oddly inside
   the Owl carousel. Restored from prototype/assets/css/pt-landing.css. */
.pt-article-card {
  background: #FFFFFF;
  border: 1px solid rgba(99, 89, 67, 0.10);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  box-shadow: 0 8px 30px rgba(43, 43, 43, 0.04);
  transition: box-shadow var(--pt-transition), transform var(--pt-transition);
}
.pt-article-card:hover {
  box-shadow: 0 16px 40px rgba(43, 43, 43, 0.08);
  transform: translateY(-4px);
}

.pt-article-card__category {
  color: #AC8D62;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.pt-article-card__content {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pt-intro__eyebrow,
.pt-intro__title,
.pt-intro__name,
.pt-intro__role,
.pt-intro__position,
.pt-intro__quote,
.pt-bio__heading,
.pt-bio__text,
.pt-bio__list li,
.pt-info-card__title,
.pt-article-card__title,
.pt-article-card__excerpt,
.pt-profile__name,
.pt-profile__contact li,
.pt-contact-mobile__title,
.pt-contact-mobile__details {
  word-break: normal;
  overflow-wrap: break-word;
  line-break: auto;
}

.pt-intro__quote,
.pt-bio__text,
.pt-article-card__excerpt,
.pt-contact-mobile__details {
  text-wrap: pretty;
}

.pt-article-card__excerpt {
  color: #777;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pt-article-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}

.pt-article-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pt-article-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  margin-top: auto;
  margin-bottom: 18px;
}

.pt-article-card__meta time {
  color: #AC8D62;
}

.pt-article-card__meta span {
  color: #999;
}

/* View count badge (มือถือ featured / info card + desktop article card) */
.pt-card__views,
.pt-article-card__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #999;
  font-size: 13px;
}
.pt-card__views .material-symbols-outlined,
.pt-article-card__views .material-symbols-outlined {
  font-size: 16px;
  line-height: 1;
}
.pt-card__views {
  margin: 4px 0 10px;
}

.pt-article-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #635943;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: color var(--pt-transition);
}

.pt-article-card__readmore:hover {
  color: #AC8D62;
}

.pt-article-card__readmore span {
  transition: transform var(--pt-transition);
}

.pt-article-card__readmore:hover span {
  transform: translateX(4px);
}

.pt-intro__eyebrow,
.pt-intro__title,
.pt-bio__heading,
.pt-info-card__title,
.pt-article-card__title,
.pt-profile__name,
.pt-contact-mobile__title {
  text-wrap: balance;
}

.pt-article-card__title {
  color: #635943;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.pt-bio-section--full .pt-bio__content {
  display: block;
}

.pt-bio-section--full .pt-bio__collapse {
  max-height: none;
  overflow: visible;
}

.pt-bio__back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  padding: 12px 28px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid var(--pt-gold);
  color: var(--pt-gold);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pt-bio__back-link:hover {
  background: var(--pt-gold);
  color: #fff;
}

.pt-bio__back-link .material-symbols-outlined {
  font-size: 20px;
}

.pt-bio__collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.pt-bio__collapse.is-open {
  max-height: 3000px;
}

.pt-bio__read-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 32px auto 0;
  padding: 12px 32px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid var(--pt-gold);
  color: var(--pt-gold);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pt-bio__read-more:hover {
  background: var(--pt-gold);
  color: #fff;
}

.pt-bio__read-more .material-symbols-outlined {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.pt-bio__read-more:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.pt-bio__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--pt-gold);
  border-radius: 100px;
  color: var(--pt-gold-dark);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pt-bio__toggle:hover {
  background: var(--pt-gold);
  color: #fff;
}

.pt-bio__toggle.is-open .pt-bio__toggle-icon {
  transform: rotate(180deg);
}

.pt-bio__toggle-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.pt-profile-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--pt-gold);
  text-decoration: none;
  margin: 0 0 12px;
  transition: color var(--pt-transition);
}

.pt-profile-link:hover {
  color: var(--pt-gold-dark);
  text-decoration: underline;
}

@media (max-width: 767px) {
/* Footer styling now lives in assets/css/footer.css (.dc-site-footer) */

.dc-social-bar { display: none !important; }

.mobile-container {
    width: 100%;
    padding-inline: 16px;
    margin-inline: auto;
    box-sizing: border-box;
  }

.pt-bio-section {
    padding: 0 0 36px;
    background: #fff;
  }

.pt-bio-section--full .pt-bio__collapse {
    display: block;
  }

.pt-bio__back-link {
    display: flex;
    width: fit-content;
    margin: 24px auto 0;
    border: 1px solid var(--pt-gold);
    color: var(--pt-gold);
    font-weight: 700;
    align-items: center;
    gap: 8px;
    font-size: 15px;
  }

.pt-bio__collapse {
    display: none;
  }

.pt-bio__collapse.is-open {
    display: block;
    margin-bottom: 24px;
  }

.pt-bio__read-more {
    display: none !important;
  }

.pt-featured-article-mobile {
    padding: 12px 0 24px;
    background: #fff;
  }

.pt-featured-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    text-decoration: none;
  }

.pt-featured-card__content {
    padding: 20px;
  }

.pt-featured-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.pt-featured-card__img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

.pt-featured-card__label {
    display: block;
    font-size: 11px;
    color: var(--pt-gold);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

.pt-featured-card__link {
    font-size: 13px;
    font-weight: 700;
    color: var(--pt-gold);
    display: flex;
    align-items: center;
    gap: 4px;
  }

.pt-featured-card__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--pt-dark);
    line-height: 1.4;
    margin-bottom: 12px;
  }

.pt-filter-item {
    font-size: 14px;
    color: #999;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
  }

.pt-filter-item.active {
    color: var(--pt-gold);
  }

.pt-filter-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--pt-gold);
  }

.pt-filter-mobile {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 20px;
    padding: 4px 0 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #eee;
  }

.pt-filter-mobile::-webkit-scrollbar { display: none; }

.pt-info-card {
    position: relative;
    display: block;
    text-decoration: none;
    background: #fff;
    margin: 0 4px;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    width: 100%;
    height: 100%;
  }

.pt-info-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 40px 16px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.05) 65%);
    text-align: left;
  }

.pt-info-card__category {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    display: inline-block;
    background: var(--pt-gold);
    padding: 3px 8px;
    border-radius: 4px;
  }

.pt-info-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

.pt-info-card__link { display: none; }

.pt-info-card__title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #fff;
    line-height: 1.35;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

.pt-infographic-carousel {
    padding: 0 0 36px;
    background: #fff;
  }

.pt-mobile-hero {
    position: relative;
    width: 100%;
    padding: 0;
    line-height: 0;
    overflow: hidden;
  }

.pt-mobile-hero .pt-hero__carousel {
    aspect-ratio: 16 / 8;
  }

.pt-mobile-hero__img:nth-child(1) { animation-delay: 0s; }

.pt-mobile-hero__img:nth-child(2) { animation-delay: 4s; }

.pt-mobile-hero__img:nth-child(3) { animation-delay: 8s; }

.pt-mobile-hero__img:nth-child(4) { animation-delay: 12s; }

.pt-mobile-profile {
    padding: 24px 0;
    background: #fff;
  }

.pt-mobile-profile__card {
    background: #fff;
    padding: 24px;
    margin: -40px 16px 24px;
    position: relative;
    border-radius: 4px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }

  /* Bio + action pair reused from the desktop card. */
  .pt-mobile-profile__card .pt-intro__bio {
    margin-top: 16px;
    padding-top: 16px;
  }
  .pt-mobile-profile__card .pt-intro__actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
  }
  .pt-mobile-profile__card .pt-intro__actions > .btn-dc-gold,
  .pt-mobile-profile__card .pt-intro__actions > .btn-dc-outline-gold {
    width: 100%;
    min-height: 44px;
    padding: 11px 18px;
    font-size: 14px;
  }

.pt-mobile-profile__fullname {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
  }

.pt-mobile-profile__img {
    width: 100%;
    object-fit: cover;
    display: block;
    background: transparent;
  }

.pt-mobile-profile__more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: -webkit-fit-content;
    width: fit-content;
    max-width: 100%;
    margin: 20px auto 0;
    padding: 12px 32px;
    background: var(--pt-gold);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
  }

.pt-mobile-profile__more:hover {
    background: var(--pt-gold-dark);
    transform: translateY(-2px);
  }

.pt-mobile-profile__nickname {
    font-size: 24px;
    font-weight: 700;
    color: var(--pt-dark);
    margin-bottom: 8px;
  }

.pt-mobile-profile__position {
    font-size: 15px;
    color: #000;
    line-height: 1.4;
    margin-bottom: 24px;
    font-weight: 400;
  }

.pt-mobile-profile__role {
    font-size: 15px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
  }

.pt-mobile-profile__wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: url('../images/pt/BG.jpg') center center / cover no-repeat, #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

.pt-news-header-mobile {
    padding: 36px 0 20px;
    background: #fff;
  }

.pt-news-header-mobile .pt-articles__title { font-size: 22px !important; margin-bottom: 8px; font-weight: 800; }

.pt-news-header-mobile .pt-articles__subtitle { font-size: 14px; color: #666; margin-bottom: 20px; }

.pt-social-title-mobile { font-size: 22px; font-weight: 800; color: var(--pt-dark); margin-bottom: 20px; }
}
