/* Culinary Experiences & Cooking — page-specific styles */

.tl-main.tl-main--cul {
  padding: 0;
  background: #fff;
}

.tl-cul {
  --cul-navy: #1d5d9b;
  --cul-navy-deep: #0d2e4d;
  --cul-ink: #212121;
  --cul-muted: #5a6570;
  --cul-line: rgba(13, 46, 77, 0.1);
  --cul-soft: #f4f8fc;
  --cul-white: #fff;
  color: var(--cul-ink);
  font-family: "Bricolage Grotesque", sans-serif;
}

.tl-cul--th {
  font-family: "Noto Sans Thai", "Bricolage Grotesque", sans-serif;
}

.tl-cul--th .tl-cul-intro h2,
.tl-cul--th .tl-cul-head h2,
.tl-cul--th .tl-cul-cta h2,
.tl-cul--th .tl-cul-school__body h3,
.tl-cul--th .tl-cul-card__body h3,
.tl-cul--th .tl-cul-tip h3 {
  font-family: "Noto Serif Thai", "Cormorant Garamond", "Times New Roman", serif;
}

.tl-cul-date {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--cul-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tl-cul__wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.tl-cul-note {
  margin: 0;
  color: var(--cul-navy);
  font-family: Caveat, "Segoe Script", cursive;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  transform: rotate(-4deg);
}

.tl-cul-note--right {
  transform: rotate(4deg);
  text-align: right;
}

/* —— Intro —— */
.tl-cul-intro {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 92% 10%, rgba(29, 93, 155, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(206, 226, 83, 0.12), transparent 55%),
    var(--cul-white);
}

.tl-cul-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.tl-cul-intro__eyebrow {
  margin: 0 0 10px;
  color: var(--cul-navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tl-cul-intro h2 {
  margin: 0 0 16px;
  max-width: 22em;
  color: var(--cul-navy-deep);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tl-cul-intro__lead {
  max-width: 42em;
  margin: 0;
  color: var(--cul-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.tl-cul-intro__lead + .tl-cul-intro__lead {
  margin-top: 14px;
}

.tl-cul-intro__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding-top: 12px;
}

.tl-cul-intro__visual {
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.95),
    0 18px 40px rgba(13, 46, 77, 0.14);
  animation: tl-cul-float 7s ease-in-out infinite;
}

.tl-cul-intro__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes tl-cul-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* —— Sections —— */
.tl-cul-section {
  position: relative;
  padding: 64px 0;
  border-top: 1px solid var(--cul-line);
}

.tl-cul-section--soft {
  background: linear-gradient(180deg, var(--cul-soft) 0%, var(--cul-white) 70%);
}

.tl-cul-head {
  position: relative;
  max-width: 42rem;
  margin: 0 0 36px;
}

.tl-cul-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: none;
}

.tl-cul-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 10px 0 0;
  border-radius: 50%;
  background: var(--cul-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  vertical-align: middle;
}

.tl-cul-head h2 {
  display: inline;
  margin: 0;
  color: var(--cul-navy-deep);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tl-cul-head__sub {
  margin: 14px 0 0;
  color: var(--cul-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

.tl-cul-head__note {
  flex: 0 1 220px;
  margin-top: 8px;
}

/* —— Tips —— */
.tl-cul-tips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.tl-cul-tip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 20px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--cul-line);
  border-radius: 16px;
  background: var(--cul-white);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tl-cul-tip:hover {
  box-shadow: 0 14px 32px rgba(13, 46, 77, 0.08);
  transform: translateY(-2px);
}

.tl-cul-tip__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cul-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.tl-cul-tip h3 {
  margin: 2px 0 8px;
  color: var(--cul-navy-deep);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.tl-cul-tip p {
  margin: 0;
  color: var(--cul-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

/* —— Schools —— */
.tl-cul-schools {
  display: grid;
  gap: 28px;
}

.tl-cul-school {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--cul-line);
  border-radius: 18px;
  background: var(--cul-white);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tl-cul-school:hover {
  box-shadow: 0 16px 36px rgba(13, 46, 77, 0.1);
  transform: translateY(-2px);
}

.tl-cul-school__media {
  width: 160px;
  min-height: 140px;
  align-self: stretch;
  overflow: hidden;
  background: var(--cul-soft);
}

.tl-cul-school__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.tl-cul-school:hover .tl-cul-school__media img {
  transform: scale(1.04);
}

.tl-cul-school__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 28px 30px;
}

.tl-cul-school__place {
  margin: 0;
  color: var(--cul-navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tl-cul-school__body h3 {
  margin: 0;
  color: var(--cul-navy-deep);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.25;
}

.tl-cul-school__body h3 span {
  display: inline;
  color: var(--cul-muted);
  font-size: 0.78em;
  font-weight: 500;
  font-family: "Bricolage Grotesque", sans-serif;
}

.tl-cul-school__facts {
  margin: 8px 0 0;
  display: grid;
  gap: 14px;
}

.tl-cul-school__facts div {
  margin: 0;
}

.tl-cul-school__facts dt {
  margin: 0 0 4px;
  color: var(--cul-navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tl-cul-school__facts dd {
  margin: 0;
  color: var(--cul-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

/* —— Comparison table —— */
.tl-cul-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--cul-line);
  background: var(--cul-white);
}

.tl-cul-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.tl-cul-table th,
.tl-cul-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--cul-line);
  line-height: 1.55;
}

.tl-cul-table thead th {
  background: var(--cul-navy);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.tl-cul-table thead th:first-child {
  border-radius: 13px 0 0 0;
}

.tl-cul-table thead th:last-child {
  border-radius: 0 13px 0 0;
}

.tl-cul-table tbody th {
  color: var(--cul-ink);
  font-weight: 600;
  width: 26%;
  background: rgba(244, 248, 252, 0.7);
}

.tl-cul-table td {
  color: var(--cul-muted);
  font-weight: 300;
}

.tl-cul-table tbody tr:last-child th,
.tl-cul-table tbody tr:last-child td {
  border-bottom: none;
}

/* —— Card grids —— */
.tl-cul-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.tl-cul-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tl-cul-grid--compact .tl-cul-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: stretch;
}

.tl-cul-grid--compact .tl-cul-card__media {
  aspect-ratio: auto;
  max-height: none;
  width: 148px;
  min-height: 148px;
  align-self: stretch;
}

.tl-cul-grid--compact .tl-cul-card__media img {
  object-fit: cover;
  object-position: center;
}

.tl-cul-grid--compact .tl-cul-card__body {
  justify-content: center;
  padding: 18px 18px 20px 16px;
}

.tl-cul-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--cul-white);
  border: 1px solid var(--cul-line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tl-cul-card:hover {
  box-shadow: 0 16px 36px rgba(13, 46, 77, 0.1);
  transform: translateY(-3px);
}

.tl-cul-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cul-soft);
}

.tl-cul-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.tl-cul-card:hover .tl-cul-card__media img {
  transform: scale(1.04);
}

.tl-cul-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 18px 16px 20px;
}

.tl-cul-card__body h3 {
  margin: 0;
  color: var(--cul-navy);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.tl-cul-card__body p {
  margin: 0;
  flex: 1;
  color: var(--cul-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
}

.tl-cul-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cul-navy);
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.tl-cul-btn:hover {
  background: var(--cul-navy-deep);
}

.tl-cul-btn--lg {
  padding: 14px 26px;
  font-size: 15px;
}

/* —— Closing CTA —— */
.tl-cul-cta {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(13, 46, 77, 0.88), rgba(29, 93, 155, 0.72)),
    var(--cul-cta-image, none) center / cover no-repeat;
  color: #fff;
}

.tl-cul-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.tl-cul-cta .tl-cul-num {
  background: rgba(255, 255, 255, 0.2);
}

.tl-cul-cta h2 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
}

.tl-cul-cta p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}

.tl-cul-cta .tl-cul-btn {
  background: #fff;
  color: var(--cul-navy-deep) !important;
}

.tl-cul-cta .tl-cul-btn:hover {
  background: #cee253;
}

.tl-cul-cta__note {
  position: absolute;
  right: max(24px, calc((100% - 1120px) / 2));
  bottom: 36px;
  z-index: 1;
  color: #fff;
  transform: rotate(5deg);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* —— Related —— */
.tl-cul-related {
  padding: 56px 0 72px;
  border-top: 1px solid var(--cul-line);
}

.tl-cul-related h2 {
  margin: 0 0 20px;
  color: var(--cul-navy-deep);
  font-size: 28px;
  font-weight: 500;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .tl-cul-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-cul-school {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .tl-cul-school__media {
    width: 120px;
    min-height: 120px;
  }
}

@media (max-width: 720px) {
  .tl-cul__wrap {
    width: min(100% - 32px, 1120px);
  }

  .tl-cul-intro,
  .tl-cul-section {
    padding: 44px 0;
  }

  .tl-cul-intro__grid {
    grid-template-columns: 1fr;
  }

  .tl-cul-intro__aside {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tl-cul-intro__visual {
    width: 160px;
  }

  .tl-cul-tip {
    padding: 18px 16px;
    gap: 12px 14px;
  }

  .tl-cul-tip h3 {
    font-size: 18px;
  }

  .tl-cul-school__body {
    padding: 20px 18px 22px;
  }

  .tl-cul-grid,
  .tl-cul-grid--2 {
    grid-template-columns: 1fr;
  }

  .tl-cul-grid--compact .tl-cul-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .tl-cul-grid--compact .tl-cul-card__media {
    width: 112px;
    min-height: 112px;
  }

  .tl-cul-cta {
    padding: 56px 0;
  }

  .tl-cul-cta__note {
    position: static;
    margin-top: 28px;
    transform: rotate(-3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-cul-intro__visual,
  .tl-cul-card,
  .tl-cul-card__media img,
  .tl-cul-tip,
  .tl-cul-school,
  .tl-cul-school__media img {
    animation: none;
    transition: none;
  }
}
