/* ===== 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;
}
.pt-hero__image {
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  display: block;
}
.pt-hero video.pt-hero__image {
  height: auto;
}
@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 64px;
  background: var(--pt-white);
  text-align: center;
}
.pt-intro__inner {
  max-width: 860px;
  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;
}
@media (max-width: 768px) {
  .pt-intro {
    padding: 56px 0 48px;
  }
  .pt-intro__title {
    font-size: 28px;
  }
  .pt-intro__text {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* ===== PT BIOGRAPHY ===== */
.pt-intro__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--pt-dark);
  margin: 0 0 4px;
}
.pt-intro__role {
  font-size: 15px;
  color: var(--pt-gold);
  margin: 0 0 24px;
}
.pt-intro__quote {
  font-size: 17px;
  font-style: italic;
  line-height: 1.8;
  color: var(--pt-text);
  border-left: 3px solid var(--pt-gold);
  padding: 8px 0 8px 24px;
  margin: 0 auto 40px;
  max-width: 720px;
  text-align: left;
}

.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;
}

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

/* ===== 3 FACILITY HIGHLIGHTS ===== */
.pt-highlights {
  padding: 24px 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;
}
.pt-highlight-card {
  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);
  height: 100%;
}
.pt-highlight-card:hover {
  box-shadow: var(--pt-shadow-hover);
  transform: translateY(-5px);
}
.pt-highlight-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.pt-highlight-card__body {
  padding: 28px;
}
.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;
}
@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 */
.pt-feature-article,
.pt-article-cards,
.pt-article-card {
  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);
}

@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;
  }
}
