/* ══════════════════════════════════════════════════════════════
   Reset & Base
══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   Design Tokens
══════════════════════════════════════════════════════════════ */
:root {
  --teal:        #18aebf;
  --teal-light:  #22c5d8;
  --teal-dim:    rgba(24, 174, 191, 0.12);
  --teal-border: rgba(24, 174, 191, 0.3);
  --bg:          #ffffff;
  --bg-header:   #ffffff;
  --bg-card:     #f5f5f5;
  --bg-card2:    #eeeeee;
  --border:      rgba(0, 0, 0, 0.1);
  --text:        #1a1a1a;
  --text-muted:  #555555;
  --text-dim:    #888888;
  --header-h:    68px;

  /* Fluid type scale — clamp(min, preferred, max) */
  --text-xs:   clamp(0.68rem,  1.5vw, 0.75rem);
  --text-sm:   clamp(0.82rem,  1.8vw, 0.9rem);
  --text-base: clamp(0.95rem,  2vw,   1.05rem);
  --text-lg:   clamp(1.1rem,   2.5vw, 1.25rem);
  --text-xl:   clamp(1.3rem,   3vw,   1.6rem);
  --text-2xl:  clamp(1.6rem,   4vw,   2.4rem);
  --text-3xl:  clamp(2rem,     5vw,   3rem);
  --text-hero: clamp(2.4rem,   7vw,   5rem);
}

/* ══════════════════════════════════════════════════════════════
   Typography
══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}
p { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   Layout
══════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.section-pad { padding: clamp(52px, 8vw, 88px) 0; }

/* ══════════════════════════════════════════════════════════════
   Header & Nav
══════════════════════════════════════════════════════════════ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#site-header.scrolled { box-shadow: 0 4px 28px rgba(0,0,0,0.1); }

.header-inner {
  max-width: 1380px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}

.logo { display: flex; flex-direction: column; line-height: 1; cursor: pointer; flex-shrink: 0; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700; color: #1a1a1a;
}
.logo-tagline {
  font-size: 0.58rem; color: var(--text-dim);
  letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px;
}

/* Desktop nav */
#main-nav {
  display: flex; gap: 2px; align-items: center;
}
.nav-link {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-muted); padding: 8px 12px; border-radius: 3px;
  transition: color 0.2s; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--teal); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 6px; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted); border-radius: 2px; transition: all 0.28s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   Tab Sections
══════════════════════════════════════════════════════════════ */
.tab-section {
  display: none;
  min-height: 100vh;
  padding-top: var(--header-h);
}
.tab-section.active { display: block; }

/* ══════════════════════════════════════════════════════════════
   Hero
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  background: #ffffff;
  overflow: hidden;
}
.hero-bg-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 65% 40%, rgba(24,174,191,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(24,174,191,0.04) 0%, transparent 45%);
}
.hero-bg-overlay::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 160px;
  background: linear-gradient(to bottom, transparent, #ffffff);
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  max-width: 1380px; margin: 0 auto;
  padding: clamp(56px, 10vw, 100px) clamp(20px, 5vw, 64px);
}
.hero-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ''; width: 32px; height: 1px;
  background: var(--teal); flex-shrink: 0;
}
.hero-title {
  font-size: var(--text-hero);
  color: #1a1a1a; line-height: 1.08; margin-bottom: 16px;
}
.hero-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: min(700px, 100%);
  margin-bottom: 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   Buttons
══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px clamp(20px, 3vw, 30px);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  border-radius: 3px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.22s; font-family: inherit;
  white-space: nowrap;
}
.btn-primary  { background: var(--teal);  color: #fff; border-color: var(--teal); }
.btn-primary:hover  { background: var(--teal-light); border-color: var(--teal-light); }
.btn-outline  { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover  { background: var(--teal-dim); }
.btn-full     { width: 100%; }
.btn-sm       { padding: 7px 16px; font-size: 0.73rem; }
.btn-danger   { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn-danger:hover { background: #e74c3c; }

/* ══════════════════════════════════════════════════════════════
   Section Labels & Titles
══════════════════════════════════════════════════════════════ */
.section-label {
  font-size: var(--text-xs);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; width: 26px; height: 1px;
  background: var(--teal); flex-shrink: 0;
}
.section-title {
  font-size: var(--text-2xl);
  color: #1a1a1a; margin-bottom: 18px;
  line-height: 1.2;
}
.section-header { text-align: center; margin-bottom: clamp(32px, 6vw, 56px); }
.section-header .section-label { justify-content: center; }
.section-header .section-label::before { display: none; }
.section-footer { text-align: center; margin-top: clamp(28px, 5vw, 48px); }

/* ══════════════════════════════════════════════════════════════
   About Section — fully fluid
══════════════════════════════════════════════════════════════ */
.about-section {
  padding: clamp(60px, 10vw, 100px) 0;
  background: #ffffff;
}

/* Two-column layout: image | text */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

/* Image column */
.about-image-col {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky;
  top: 88px;
  align-self: start;
}
.about-image-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 65vh;
  border-radius: 6px; overflow: hidden;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}
.about-image-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
}
.about-image-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: var(--text-dim); font-size: 0.82rem;
}
.about-image-placeholder svg { width: clamp(48px, 10vw, 80px); opacity: 0.25; }

.about-quote {
  padding: 16px 20px;
  border-left: 3px solid var(--teal);
  background: var(--bg-card);
  border-radius: 0 4px 4px 0;
}
.about-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--text-muted); line-height: 1.7;
}

/* Text column */
.about-body { margin-bottom: 32px; }
.about-body p {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.85; margin-bottom: 14px;
  text-align: justify;
  hyphens: auto;
}
.about-stats {
  display: flex; gap: clamp(20px, 4vw, 40px);
  padding-top: 24px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-xl); font-weight: 700; color: var(--teal);
}
.stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim);
}

/* ══════════════════════════════════════════════════════════════
   Social Followers Grid
══════════════════════════════════════════════════════════════ */
.social-followers-section {
  background: #f5f5f5;
  border-top: 3px solid #e0e0e0;
  padding: clamp(40px, 6vw, 64px) 0;
}
.social-followers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 3px;
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}
.social-follow-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(36px, 5vw, 56px) clamp(16px, 3vw, 28px);
  background: #ffffff;
  text-decoration: none; color: inherit;
  transition: background 0.18s;
}
.social-follow-card:hover { background: #f5f5f5; }

/* Icon — top center, sized to match reference */
.social-follow-icon {
  width: clamp(44px, 5.5vw, 60px);
  height: clamp(44px, 5.5vw, 60px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: clamp(18px, 3vw, 28px);
  flex-shrink: 0;
}
.social-follow-icon svg { width: clamp(22px, 2.8vw, 30px); height: auto; }

/* Quora square badge */
.icon-quora { border-radius: 10px; }

/* Count — extra large bold number */
.social-follow-count {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; color: #1a1a1a; line-height: 1;
  margin-bottom: clamp(12px, 2vw, 20px);
  letter-spacing: -0.03em;
}

/* Platform label — bold white */
.social-follow-platform {
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 700; color: #1a1a1a;
  margin-bottom: clamp(8px, 1.2vw, 14px);
  line-height: 1.3;
}

/* Handle / sub-label — muted gray */
.social-follow-handle {
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  color: #888;
  line-height: 1.4;
}

/* Platform icon colors */
.icon-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.icon-twitter   { background: #111; border: 1px solid #555; }
.icon-facebook  { background: #1877f2; }
.icon-tiktok    { background: #010101; border: 1px solid #555; }
.icon-reddit    { background: #ff4500; }
.icon-quora     { background: #b92b27; }
.icon-youtube   { background: #ff0000; }
.icon-linkedin  { background: #0a66c2; }

/* ══════════════════════════════════════════════════════════════
   Blog Tab — white background wrapper
══════════════════════════════════════════════════════════════ */
.blog-tab-body {
  background: #ffffff;
  padding: clamp(40px, 7vw, 72px) 0 clamp(52px, 8vw, 88px);
  min-height: 60vh;
}
/* The card grid inside the blog tab */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 3vw, 28px);
}
/* Blog tab loading/empty messages on white bg */
.blog-tab-body .loading-msg,
.blog-tab-body .empty-msg { color: #aaa; }

/* ── Blog cards on white background — override dark defaults ── */
.blog-tab-body .blog-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}
.blog-tab-body .blog-card:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 28px rgba(24, 174, 191, 0.15);
  transform: translateY(-4px);
}
.blog-tab-body .blog-card-title  { color: #1a1a1a; }
.blog-tab-body .blog-card-excerpt { color: #555555; }
.blog-tab-body .blog-card-date   { color: #888888; }
.blog-tab-body .blog-card-img    { background: #f0f0f0; color: #bbb; }

/* ── Blog single on white background ─────────────────────────  */
.blog-single-body-wrap {
  background: #ffffff;
  min-height: 70vh;
  padding: clamp(36px, 6vw, 64px) 0 clamp(52px, 8vw, 88px);
}
.blog-single-body-wrap .blog-back { color: #888; }
.blog-single-body-wrap .blog-back:hover { color: var(--teal); }
.blog-single-body-wrap .blog-single-date { color: #888; }
.blog-single-body-wrap .blog-single-title { color: #1a1a1a; }
.blog-single-body-wrap .blog-single-body p { color: #444444; text-align: justify; hyphens: auto; }
.blog-single-body-wrap .blog-single-body h2,
.blog-single-body-wrap .blog-single-body h3 { color: #1a1a1a; }
.blog-single-body-wrap .blog-single-body blockquote {
  background: #f5f5f5; border-left-color: var(--teal);
}
.blog-single-body-wrap .blog-single-body blockquote p { color: #555; }

/* ══════════════════════════════════════════════════════════════
   Blog — Home preview cards
══════════════════════════════════════════════════════════════ */
.featured-blogs { padding: clamp(52px, 8vw, 80px) 0; background: #f5f5f5; }
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 3vw, 28px);
}
.blog-card {
  background: var(--bg-card); border-radius: 4px; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s; cursor: pointer;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--teal-border); }
.blog-card-img {
  height: clamp(160px, 20vw, 200px); overflow: hidden;
  background: var(--bg-card2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 0.8rem; flex-shrink: 0;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: clamp(18px, 3vw, 26px); display: flex; flex-direction: column; flex: 1; }
.blog-card-date {
  font-size: var(--text-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 8px;
}
.blog-card-title {
  font-size: var(--text-lg);
  color: #1a1a1a; margin-bottom: 8px; line-height: 1.3;
}
.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted); line-height: 1.65; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.blog-card-link {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal);
  margin-top: auto;
}
.blog-card-link::after { content: ' →'; }

/* ══════════════════════════════════════════════════════════════
   Blog — Full list
══════════════════════════════════════════════════════════════ */
.blog-list { display: flex; flex-direction: column; }
.blog-list-item {
  display: flex; align-items: center; gap: 20px;
  padding: clamp(24px, 4vw, 36px) 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.blog-list-item:hover .blog-list-title { color: var(--teal); }
.blog-list-text { flex: 1; min-width: 0; }
.blog-list-date {
  font-size: var(--text-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 6px;
}
.blog-list-title {
  font-size: var(--text-xl);
  color: #1a1a1a; margin-bottom: 6px; line-height: 1.25;
  transition: color 0.2s;
  /* prevent overflow */
  overflow-wrap: break-word; word-break: break-word;
}
.blog-list-excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-list-arrow {
  color: var(--teal); font-size: 1.3rem; opacity: 0.5;
  flex-shrink: 0; transition: opacity 0.2s, transform 0.2s;
}
.blog-list-item:hover .blog-list-arrow { opacity: 1; transform: translateX(5px); }

/* ══════════════════════════════════════════════════════════════
   Blog — Single Post
══════════════════════════════════════════════════════════════ */
.blog-single { max-width: 100%; }
.blog-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); margin-bottom: 32px; cursor: pointer;
  transition: color 0.2s;
}
.blog-back:hover { color: var(--teal); }
.blog-single-date {
  font-size: var(--text-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 12px;
}
.blog-single-title {
  font-size: var(--text-3xl);
  color: #1a1a1a; margin-bottom: 28px; line-height: 1.15;
  overflow-wrap: break-word;
}
.blog-single-cover {
  width: 100%; border-radius: 4px; overflow: hidden; margin-bottom: 40px;
}
.blog-single-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.blog-single-body p {
  color: var(--text-muted);
  font-size: var(--text-base); line-height: 1.9; margin-bottom: 18px;
  text-align: justify;
  hyphens: auto;
}
.blog-single-body h2, .blog-single-body h3 { color: #1a1a1a; margin: 28px 0 12px; }
.blog-single-body blockquote {
  border-left: 3px solid var(--teal); padding: 14px 20px;
  margin: 24px 0; background: var(--bg-card);
}
.blog-single-body blockquote p { font-style: italic; margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════════
   Books
══════════════════════════════════════════════════════════════ */
.featured-books { padding: clamp(52px, 8vw, 80px) 0; background: var(--bg-card); }
.books-preview-grid,
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 3vw, 28px);
}
.book-card {
  background: var(--bg-card2); border-radius: 4px; overflow: hidden;
  border: 1px solid var(--border); transition: transform 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
}
.book-card:hover { transform: translateY(-4px); border-color: var(--teal-border); }
.book-cover {
  aspect-ratio: 3 / 4; background: #e8e8e8;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 24px; text-align: center;
}
.book-cover-placeholder .cover-icon { font-size: clamp(2rem, 4vw, 3rem); opacity: 0.2; }
.book-cover-placeholder .cover-text {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-sm); color: var(--teal); opacity: 0.5;
}
.book-info { padding: clamp(16px, 2.5vw, 22px); flex: 1; display: flex; flex-direction: column; }
.book-title { font-size: var(--text-lg); color: #1a1a1a; margin-bottom: 5px; line-height: 1.3; }
.book-subtitle { font-size: var(--text-sm); color: var(--teal); margin-bottom: 10px; font-style: italic; }
.book-desc {
  font-size: var(--text-sm); color: var(--text-muted);
  line-height: 1.65; margin-bottom: 16px; flex: 1;
}
.book-buy {
  display: inline-block; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal);
  border: 1px solid var(--teal); padding: 8px 18px; border-radius: 3px;
  transition: all 0.2s; align-self: flex-start;
}
.book-buy:hover { background: var(--teal-dim); }

/* ══════════════════════════════════════════════════════════════
   Page Hero (Blogs / Books / Contact header)
══════════════════════════════════════════════════════════════ */
.page-hero {
  padding: clamp(48px, 8vw, 72px) 0 clamp(36px, 6vw, 56px);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-size: var(--text-3xl);
  color: #1a1a1a; margin-bottom: 10px; line-height: 1.15;
}
.page-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: min(700px, 100%); line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   Contact
══════════════════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  /* info col min 240px, form col takes the rest; auto-stacks below ~640px */
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-info-col h3, .contact-form-col h3 {
  font-size: var(--text-xl); color: #1a1a1a; margin-bottom: 20px;
}
.contact-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-detail-icon {
  width: 34px; height: 34px; min-width: 34px;
  background: var(--teal-dim); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; border: 1px solid var(--teal-border);
}
.contact-detail-text { font-size: var(--text-sm); color: var(--text-muted); min-width: 0; overflow-wrap: break-word; }
.contact-detail-label {
  font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); margin-bottom: 3px;
}
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.social-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 3px;
  font-size: var(--text-xs); color: var(--text-muted); transition: all 0.2s;
}
.social-link:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card2); border: 1px solid var(--border); border-radius: 3px;
  padding: 12px 14px; color: var(--text); font-family: inherit;
  font-size: var(--text-sm); outline: none; transition: border-color 0.2s;
  /* prevent overflow on small screens */
  min-width: 0;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status { font-size: var(--text-sm); margin-top: 6px; min-height: 1.2em; }
.form-status.success { color: #27ae60; }
.form-status.error   { color: #e74c3c; }

/* ══════════════════════════════════════════════════════════════
   Footer
══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 60px) 0 0;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 32px;
  margin-bottom: clamp(32px, 5vw, 48px);
  flex-wrap: wrap;
}
.footer-brand p {
  font-size: var(--text-sm); color: var(--text-dim);
  max-width: 280px; margin-top: 10px; line-height: 1.65;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: var(--text-sm); color: var(--text-muted);
  transition: color 0.2s; cursor: pointer;
}
.footer-nav a:hover { color: var(--teal); }
.footer-bottom {
  padding: 16px 0; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: var(--text-xs); color: var(--text-dim); }
.admin-link {
  font-size: var(--text-xs); color: var(--text-dim);
  opacity: 0.4; transition: opacity 0.2s;
}
.admin-link:hover { opacity: 1; color: var(--teal); }

/* ══════════════════════════════════════════════════════════════
   Loading / Empty states
══════════════════════════════════════════════════════════════ */
.loading-msg, .empty-msg {
  text-align: center; color: var(--text-dim);
  padding: 60px 0; font-size: var(--text-sm);
}

/* ══════════════════════════════════════════════════════════════
   Responsive Breakpoints
══════════════════════════════════════════════════════════════ */

/* ── Large tablet (≤900px) — contact stacks ────────────────── */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 48px);
  }
}

/* ── Mid-tablet (≤860px) — about section stacks early ──────── */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 44px);
  }
  .about-image-col { align-items: center; position: static; }
  .about-image-wrap {
    width: min(320px, 75%);
    aspect-ratio: 3 / 4;
    max-height: none;
    border-radius: 6px;
  }
  .about-quote { width: min(320px, 75%); }
}

/* ── Tablet (≤768px) — hamburger nav ───────────────────────── */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* Swap nav to full-width drawer */
  #main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg-header);
    padding: 12px 16px 20px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    z-index: 150;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  #main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-link { padding: 12px 16px; font-size: 0.9rem; border-radius: 3px; }
}

/* ── Mobile (≤520px) ────────────────────────────────────────── */
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .about-image-wrap { width: 100%; }
  .about-quote { width: 100%; }

  /* Social: single column on small phones */
  .social-followers-grid { grid-template-columns: repeat(2, 1fr); }
  .social-follow-card { padding: 28px 12px; }
  .social-follow-count { font-size: clamp(1.6rem, 7vw, 2.2rem); }

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

  .books-preview-grid,
  .books-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

  /* Contact form: no side-by-side rows on mobile */
  .form-row { grid-template-columns: 1fr; gap: 16px; }

  .footer-inner  { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Very small (≤360px) ────────────────────────────────────── */
@media (max-width: 360px) {
  .social-followers-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 14px; }
}

/* ══════════════════════════════════════════════════════════════
   Animations
══════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tab-section.active > * { animation: fadeUp 0.35s ease both; }
