/* ============================================================
   PsychLine.in — Inner Pages (site-wide) Redesign
   Inner-page-specific styles; shared tokens live in shared-redesign.css
   ============================================================ */

/* ── BODY RESET ── */
body.hl-site {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
body.hl-site * { box-sizing: border-box; }
body.hl-site p { margin: 0; }

/* ── PAGE HEADER ── */
.hl-page-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 52px 60px 40px;
}
.hl-page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.hl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--mid-grey);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hl-breadcrumb a {
  color: var(--mid-grey);
  text-decoration: none;
  transition: color 0.2s;
}
.hl-breadcrumb a:hover { color: var(--terracotta); }
.hl-breadcrumb-sep { opacity: 0.4; }
.hl-breadcrumb-current { color: var(--charcoal); font-weight: 500; }
.hl-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--charcoal);
  letter-spacing: -0.5px;
  margin: 0;
  padding: 0;
}
.hl-page-subtitle {
  font-size: 1.05rem;
  color: var(--mid-grey);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 600px;
}

/* ── SHARED CONTENT WRAPPER ── */
.hl-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 60px;
}
.hl-content-wrap-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 60px;
}

/* ── PROSE (markdown content) ── */
.hl-prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal);
}
.hl-prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 2.2rem 0 1rem;
  padding: 0;
  letter-spacing: -0.3px;
}
.hl-prose h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 1.8rem 0 0.8rem;
  padding: 0;
}
.hl-prose h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 1.4rem 0 0.6rem;
  padding: 0;
}
.hl-prose p {
  margin: 0 0 1.2rem;
  color: var(--charcoal);
}
.hl-prose a {
  color: var(--terracotta);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.hl-prose a:hover { color: #a84d39; }
.hl-prose ul, .hl-prose ol {
  margin: 0 0 1.2rem 1.5rem;
  padding: 0;
}
.hl-prose li { margin-bottom: 0.4rem; }
.hl-prose blockquote {
  border-left: 3px solid var(--terracotta);
  padding: 16px 24px;
  margin: 1.5rem 0;
  background: var(--terra-pale);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--mid-grey);
}
.hl-prose blockquote p { color: var(--mid-grey); margin: 0; }
.hl-prose strong { font-weight: 600; color: var(--charcoal); }
.hl-prose em { font-style: italic; }
.hl-prose hr {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 2.5rem 0;
}
.hl-prose img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
  display: block;
}
.hl-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.hl-prose th {
  background: var(--charcoal);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.hl-prose td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--charcoal);
}
.hl-prose tr:nth-child(even) td { background: var(--warm-white); }

/* ── PAGE IMAGE ── */
.hl-page-hero-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin-bottom: 40px;
}

/* ── BLOG POST ── */
.hl-blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}
.hl-blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hl-blog-meta-item {
  font-size: 0.82rem;
  color: var(--mid-grey);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hl-blog-meta-author {
  color: var(--sage);
  text-decoration: none;
  font-weight: 600;
}
.hl-blog-meta-author:hover { color: var(--terracotta); }

/* Sidebar */
.hl-blog-sidebar { position: sticky; top: 84px; }
.hl-sidebar-section { margin-bottom: 36px; }
.hl-sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 14px;
}
.hl-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hl-sidebar-tag {
  background: var(--terra-pale);
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  text-transform: lowercase;
  transition: background 0.2s, color 0.2s;
}
.hl-sidebar-tag:hover {
  background: var(--terracotta);
  color: white;
}
.hl-sidebar-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hl-sidebar-recent-list a {
  font-size: 0.85rem;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.4;
  font-weight: 500;
  transition: color 0.2s;
  display: block;
}
.hl-sidebar-recent-list a:hover { color: var(--terracotta); }

/* ── BLOG LIST / CARD ── */
.hl-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.hl-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.hl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09);
}
.hl-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.hl-card-img-placeholder {
  width: 100%;
  height: 160px;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.hl-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hl-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.hl-card-tag {
  background: var(--terra-pale);
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-decoration: none;
  text-transform: lowercase;
}
.hl-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 10px;
  padding: 0;
  flex: 1;
  text-decoration: none;
  display: block;
}
.hl-card-title:hover { color: var(--terracotta); }
.hl-card-excerpt {
  font-size: 0.83rem;
  color: var(--mid-grey);
  line-height: 1.55;
  margin-bottom: 16px;
}
.hl-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hl-card-meta {
  font-size: 0.78rem;
  color: var(--mid-grey);
}
.hl-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: none;
  transition: gap 0.2s;
}
.hl-card-link:hover { text-decoration: underline; }

/* ── EVENTS ── */
.hl-event-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.hl-event-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--mid-grey);
}
.hl-event-detail-meta-item i { color: var(--terracotta); }

/* Events sidebar register card */
.hl-register-card {
  background: var(--charcoal);
  border-radius: 20px;
  padding: 32px;
  color: white;
  position: sticky;
  top: 84px;
}
.hl-register-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  padding: 0;
}
.hl-register-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  line-height: 1.6;
}
.hl-register-price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--terra-light);
  margin-bottom: 20px;
}
.hl-register-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}
.hl-btn-register {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  background: var(--terracotta);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.hl-btn-register:hover { background: var(--terra-light); color: white; }

/* Events list page subscribe + WhatsApp bar */
.hl-events-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 48px;
}
.hl-events-subscribe-form {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 280px;
}
.hl-events-subscribe-form input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--charcoal);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.hl-events-subscribe-form input:focus { border-color: var(--terracotta); }
.hl-events-subscribe-form button {
  padding: 10px 18px;
  background: var(--terracotta);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.hl-events-subscribe-form button:hover { background: var(--terra-light); }
.hl-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.2s;
}
.hl-btn-whatsapp:hover { background: #1db954; color: white; }

/* ── TEAM LIST ── */
.hl-team-profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.hl-team-profile:first-child { padding-top: 0; }
.hl-team-profile:last-child { border-bottom: none; }
.hl-team-profile-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
  display: block;
}
.hl-team-profile-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--sage-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--sage);
}
.hl-team-profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
  padding: 0;
  line-height: 1.2;
}
.hl-team-profile-designation {
  font-size: 0.95rem;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 4px;
}
.hl-team-profile-degrees {
  font-size: 0.85rem;
  color: var(--mid-grey);
  margin-bottom: 16px;
}
.hl-team-profile-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0077b5;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hl-team-profile-social:hover { text-decoration: underline; }
.hl-team-profile-bio p {
  font-size: 0.95rem;
  color: var(--mid-grey);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ── LANDING PAGE ── */
.hl-landing-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px;
}
.hl-landing-content .hl-prose {
  font-size: 1.05rem;
}

/* ── 404 ── */
.hl-404 {
  max-width: 600px;
  margin: 0 auto;
  padding: 100px 60px;
  text-align: center;
}
.hl-404-code {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  font-weight: 700;
  color: var(--terra-pale);
  line-height: 1;
  margin-bottom: 0;
  display: block;
}
.hl-404 h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
  padding: 0;
}
.hl-404 p {
  font-size: 1rem;
  color: var(--mid-grey);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── FOOTER (site-only additions) ── */
.hl-footer-social { margin-top: 28px; }

/* ── FADE-UP ── */
.hl-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hl-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hl-page-header { padding: 40px 24px 32px; }
  .hl-content-wrap { padding: 40px 24px; }
  .hl-content-wrap-narrow { padding: 40px 24px; }
  .hl-landing-content { padding: 40px 24px; }

  .hl-page-title { font-size: 2.2rem; }

  .hl-blog-layout { grid-template-columns: 1fr; }
  .hl-blog-sidebar { position: static; }

  .hl-cards-grid { grid-template-columns: 1fr 1fr; }

  .hl-team-profile { grid-template-columns: 1fr; gap: 24px; }
  .hl-team-profile-photo { max-width: 200px; aspect-ratio: 1; }
  .hl-team-profile-photo-placeholder { max-width: 200px; aspect-ratio: 1; }

  .hl-events-actions { flex-direction: column; align-items: stretch; }
  .hl-events-subscribe-form { flex-direction: row; }

  #cookie-notice { bottom: 16px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hl-page-title { font-size: 1.8rem; }
  .hl-cards-grid { grid-template-columns: 1fr; }
  .hl-404 { padding: 60px 24px; }
  .hl-404-code { font-size: 5rem; }
}
