/* ================================================================
   MOZHIYAAZHI (மொழியாழி) — The Ocean of Languages
   Karky Research Foundation, Chennai
   Visual Style: Inspired by Alphonse Mucha's Art Nouveau
   ================================================================ */

/* Google Fonts imported in HTML */

:root {
  --cream:       #F5ECD7;
  --parchment:   #EDE0C4;
  --parchment-dark: #D9C9A8;
  --gold:        #C9A84C;
  --gold-dark:   #9B7D2A;
  --gold-light:  #E8C96A;
  --brown:       #8B5E3C;
  --dark:        #2B1F3A;
  --purple:      #4A2D6F;
  --teal:        #2E7D8C;
  --rust:        #9B4D3E;
  --rust-light:  #C4614E;
  --text:        #3A2A1A;
  --text-light:  #6B5040;
  --border:      #D5B87A;
  --white:       #FFFDF6;
}

/* ================================================================
   RESET & BASE
   ================================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', Georgia, serif;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 30px 30px, rgba(201, 168, 76, 0.06) 2px, transparent 0),
    radial-gradient(circle at 80px 80px, rgba(201, 168, 76, 0.04) 2px, transparent 0);
  background-size: 110px 110px;
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ================================================================
   UTILITY
   ================================================================ */

.ornament {
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 0.6em;
  margin: 0.5rem 0;
  user-select: none;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.section-heading + .ornament {
  margin-bottom: 1.8rem;
}

.tag-pill {
  display: inline-block;
  font-family: 'IM Fell English SC', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 0.18rem 0.65rem;
  border: 1px solid var(--gold);
  background: rgba(201, 168, 76, 0.12);
  color: var(--brown);
  transition: background 0.25s, color 0.25s;
}

a.tag-pill:hover,
a.tag-pill.active {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
}

.categories-list a.active {
  color: var(--rust);
  font-weight: 600;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 0.55rem 1rem;
  margin: 1rem 0 1.5rem;
  font-family: 'IM Fell English SC', serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--brown);
}

.filter-bar strong {
  color: var(--rust);
}

.clear-filter {
  margin-left: auto;
  font-family: 'IM Fell English SC', serif;
  font-size: 0.78rem;
  color: var(--rust);
  border: 1px solid var(--rust);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  transition: all 0.2s;
}

.clear-filter:hover {
  background: var(--rust);
  color: #fff;
}

a.tag-pill:hover {
  background: var(--gold);
  color: var(--dark);
}

.read-more-link {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--rust);
  transition: color 0.25s;
}

.read-more-link:hover { color: var(--dark); }

/* ================================================================
   KAREFO LOGO IMAGE
   ================================================================ */

.karefo-logo-img {
  height: 82px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: filter 0.3s;
}

.karefo-logo-img:hover {
  filter: drop-shadow(0 2px 12px rgba(201,168,76,0.5));
}

.series-icon-img {
  height: 82px;
  width: auto;
  display: block;
}

.karefo-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fallback if logo image fails to load */
.logo-box-fallback {
  width: 110px;
  min-width: 110px;
  height: 90px;
  border: 1.5px dashed rgba(201, 168, 76, 0.5);
  border-radius: 6px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(201, 168, 76, 0.6);
  font-family: 'IM Fell English SC', serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.5rem;
}

/* Tamil script for series name */
.series-name-tamil {
  font-family: 'Noto Sans Tamil', 'Latha', 'Tamil MN', serif;
  font-size: 3.6rem;
  color: var(--rust);
  letter-spacing: 0.05em;
  margin-top: 0;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(155, 77, 62, 0.25);
}

/* ================================================================
   AUTHORS — TEAM PAGE
   ================================================================ */

.team-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.team-page-intro {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  font-size: 1.02rem;
  line-height: 1.9;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.author-team-card {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-top: 3px solid var(--gold);
  padding: 2rem 1.8rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.author-team-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.author-team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(43, 31, 58, 0.1);
}

.author-team-card:hover::after { opacity: 0.5; }

.team-portrait-frame {
  width: 110px;
  height: 130px;
  margin: 0 auto 1.3rem;
  border: 2.5px solid var(--gold);
  border-radius: 50% 50% 48% 48% / 58% 58% 42% 42%;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.team-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: inherit;
  pointer-events: none;
}

.team-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.team-portrait-label {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.62rem;
  color: var(--text-light);
  text-align: center;
  padding: 0.4rem;
  line-height: 1.6;
}

.author-team-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.author-team-role {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--rust);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.author-team-bio {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.78;
  margin-bottom: 1.3rem;
  text-align: left;
}

/* ================================================================
   SIDEBAR — MINI AUTHOR CARDS
   ================================================================ */

.mini-authors-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mini-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--parchment-dark);
}

.mini-author:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-portrait {
  width: 52px;
  min-width: 52px;
  height: 62px;
  border: 2px solid var(--gold);
  border-radius: 50% 50% 48% 48% / 58% 58% 42% 42%;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.mini-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.mini-portrait-label {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.5rem;
  color: var(--text-light);
  text-align: center;
  padding: 0.2rem;
  line-height: 1.5;
}

.mini-author-info .author-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--dark);
  display: block;
  margin-bottom: 0.1rem;
}

.mini-author-info .author-role {
  font-size: 0.73rem;
  color: var(--text-light);
  font-style: italic;
  display: block;
  margin-bottom: 0.3rem;
}

/* ================================================================
   INDIVIDUAL AUTHOR PAGE
   ================================================================ */

.author-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.author-page-header {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.author-page-portrait {
  width: 140px;
  min-width: 140px;
  height: 170px;
  border: 3px solid var(--gold);
  border-radius: 50% 50% 48% 48% / 58% 58% 42% 42%;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.author-page-portrait::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.author-page-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.author-portrait-placeholder {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.68rem;
  color: var(--text-light);
  text-align: center;
  padding: 0.5rem;
  line-height: 1.6;
}

.author-page-meta h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.author-page-role {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--rust);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.author-page-institution {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1rem;
}

.author-articles-count {
  display: inline-block;
  background: var(--parchment);
  border: 1px solid var(--border);
  font-family: 'IM Fell English SC', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--brown);
  padding: 0.2rem 0.8rem;
}

.author-page-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--dark);
  margin: 2rem 0 0.8rem;
}

.author-page-body p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
  line-height: 1.9;
}

.author-page-body ul {
  list-style: none;
  margin-bottom: 1.2rem;
}

.author-page-body ul li {
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}

.author-page-body ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: 0.55rem;
}

/* Article card author line */
.card-author {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.3rem;
}

.card-author a {
  color: var(--teal);
  transition: color 0.25s;
}

.card-author a:hover { color: var(--rust); }

@media (max-width: 680px) {
  .author-page-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-page-meta h1 { font-size: 1.9rem; }
}

/* ================================================================
   ARTICLE FEATURED IMAGE
   ================================================================ */

.article-featured-image {
  width: 100%;
  margin: 0 0 2.5rem 0;
  position: relative;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--parchment-dark);
}

/* Placeholder shown when image file is not yet placed */
.article-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--parchment) 0%, var(--cream) 100%);
  border: 2px dashed var(--parchment-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text-light);
}

.article-image-placeholder .placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.35;
}

.article-image-placeholder .placeholder-filename {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--brown);
  background: var(--parchment-dark);
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.04em;
}

.article-image-placeholder .placeholder-hint {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-light);
  opacity: 0.7;
}

/* Caption below image */
.article-image-caption {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.6rem;
  padding: 0 1rem;
}

/* ================================================================
   SITE HEADER
   ================================================================ */

.site-header {
  background: linear-gradient(to bottom, #F5ECD7 0%, #EDD5A8 100%);
  border-bottom: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}

/* Subtle Mucha-style radial glow behind the title */
.site-header::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 200px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* Decorative top line pattern */
.site-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0px, var(--gold) 12px,
    transparent 12px, transparent 22px,
    var(--rust) 22px, var(--rust) 28px,
    transparent 28px, transparent 38px
  );
  opacity: 0.7;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem 1.5rem;
  max-width: 1220px;
  margin: 0 auto;
  gap: 1.5rem;
}

/* Logo / Icon Placeholder boxes */
.logo-box {
  width: 110px;
  min-width: 110px;
  height: 90px;
  border: 1.5px dashed rgba(201, 168, 76, 0.5);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(201, 168, 76, 0.6);
  font-family: 'IM Fell English SC', serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.5rem;
  line-height: 1.5;
}

.logo-box .box-label {
  font-size: 0.55rem;
  opacity: 0.6;
  margin-top: 0.3rem;
}

.header-center {
  flex: 1;
  text-align: center;
}

.series-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.28em;
  line-height: 1;
  margin-top: 0.35rem;
  text-transform: uppercase;
}

.series-tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  color: rgba(43, 31, 58, 0.65);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  margin-top: 0.45rem;
}

.series-attribution {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(155, 77, 62, 0.55);
  margin-top: 0.5rem;
}

/* Navigation */
.main-nav {
  background: rgba(43, 31, 58, 0.06);
  border-top: 1px solid rgba(43, 31, 58, 0.12);
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  max-width: 1220px;
  margin: 0 auto;
}

.main-nav li a {
  display: block;
  padding: 0.75rem 2rem;
  font-family: 'IM Fell English SC', serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: rgba(43, 31, 58, 0.7);
  border-right: 1px solid rgba(43, 31, 58, 0.12);
  transition: all 0.3s;
}

.main-nav li:first-child a { border-left: 1px solid rgba(43, 31, 58, 0.12); }
.main-nav li a:hover { background: rgba(43, 31, 58, 0.07); color: var(--dark); }
.main-nav li a.active { color: var(--rust); background: rgba(155, 77, 62, 0.08); }

/* ================================================================
   HERO SECTION
   ================================================================ */

.hero {
  background: linear-gradient(to bottom, var(--parchment) 0%, var(--cream) 100%);
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  border-bottom: 2px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 60%, rgba(155, 77, 62, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 40%, rgba(46, 125, 140, 0.07) 0%, transparent 45%);
  pointer-events: none;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.hero-frame {
  border: 1.5px solid var(--gold);
  padding: 3rem 2.5rem;
  position: relative;
}

/* Mucha-style corner ornaments */
.hero-frame::before,
.hero-frame::after {
  content: '✦';
  position: absolute;
  color: var(--gold);
  font-size: 1rem;
}
.hero-frame::before { top: -0.6rem; left: 50%; transform: translateX(-50%); background: var(--parchment); padding: 0 0.8rem; }
.hero-frame::after  { bottom: -0.6rem; left: 50%; transform: translateX(-50%); background: var(--cream); padding: 0 0.8rem; }

.hero-eyebrow {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--rust);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.hero-title em {
  color: var(--rust);
  font-style: italic;
}

.hero-body {
  font-style: italic;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.9;
}

.hero-cta {
  display: inline-block;
  background: var(--dark);
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 0.75rem 2.8rem;
  font-family: 'IM Fell English SC', serif;
  letter-spacing: 0.15em;
  font-size: 0.82rem;
  transition: all 0.3s;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ================================================================
   MAIN CONTENT WRAPPER
   ================================================================ */

.page-wrapper {
  max-width: 1220px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* ================================================================
   FEATURED ARTICLE
   ================================================================ */

.featured-section {
  margin-bottom: 3.5rem;
}

.featured-card {
  background: var(--dark);
  border: 2px solid var(--gold);
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(201, 168, 76, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(74, 45, 111, 0.4) 0%, transparent 55%);
  pointer-events: none;
}

.featured-label {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  display: inline-block;
  padding: 0.22rem 0.85rem;
  margin-bottom: 1.2rem;
}

.featured-category {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: rgba(201, 168, 76, 0.6);
  margin-bottom: 0.6rem;
}

.featured-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.featured-card h2 a {
  color: var(--parchment);
  transition: color 0.3s;
}

.featured-card h2 a:hover { color: var(--gold); }

.featured-meta {
  font-size: 0.78rem;
  color: rgba(245, 236, 215, 0.5);
  font-style: italic;
  margin-bottom: 1.2rem;
}

.featured-excerpt {
  color: rgba(245, 236, 215, 0.82);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.8rem;
  max-width: 640px;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.featured-tags .tag-pill {
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.1);
  color: rgba(245, 236, 215, 0.7);
}

/* ================================================================
   ARTICLES GRID
   ================================================================ */

.articles-section {
  margin-bottom: 2rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-top: 3px solid var(--gold);
  padding: 1.6rem;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.article-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(43, 31, 58, 0.12);
}

.article-card:hover::after { opacity: 0.5; }

.article-card.coming-soon {
  border-top-color: var(--parchment-dark);
  opacity: 0.72;
}

.card-category {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.card-coming-label {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.article-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.article-card h3 a {
  color: var(--dark);
  transition: color 0.25s;
}

.article-card h3 a:hover { color: var(--rust); }

.card-date {
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 0.8rem;
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

/* ================================================================
   SIDEBAR
   ================================================================ */

.sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  padding: 1.5rem;
  position: relative;
}

.widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--rust), var(--purple));
}

.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--dark);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--parchment-dark);
  margin-bottom: 1.1rem;
}

/* Author Widget */
.author-portrait-frame {
  width: 100px;
  height: 120px;
  margin: 0 auto 1rem;
  border: 2.5px solid var(--gold);
  border-radius: 50% 50% 48% 48% / 58% 58% 42% 42%;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.author-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: inherit;
}

.portrait-label {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
  padding: 0.5rem;
}

.author-widget p {
  font-size: 0.84rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Tags Widget */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Categories Widget */
.categories-list {
  list-style: none;
}

.categories-list li {
  border-bottom: 1px dashed var(--parchment-dark);
}

.categories-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.87rem;
  color: var(--text);
  transition: color 0.25s;
}

.categories-list li a:hover { color: var(--rust); }

.categories-list li a .count {
  background: var(--parchment);
  color: var(--text-light);
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 12px;
  font-family: 'IM Fell English SC', serif;
}

/* Foundation Widget */
.foundation-link {
  display: block;
  margin-bottom: 0.8rem;
}

.foundation-logo-box {
  width: 100%;
  height: 62px;
  border: 1.5px dashed var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IM Fell English SC', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  text-align: center;
  padding: 0.5rem;
  transition: background 0.3s;
}

.foundation-link:hover .foundation-logo-box {
  background: rgba(201, 168, 76, 0.1);
}

.foundation-note {
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  line-height: 1.6;
}

/* ================================================================
   ABOUT PAGE
   ================================================================ */

.about-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-portrait-frame {
  width: 160px;
  height: 200px;
  margin: 0 auto 2rem;
  border: 3px solid var(--gold);
  border-radius: 50% 50% 48% 48% / 58% 58% 42% 42%;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-portrait-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: inherit;
}

.about-portrait-label {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
  padding: 0.5rem;
}

.about-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.about-title {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--rust);
  margin-bottom: 0.3rem;
}

.about-institution {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

.about-body {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.about-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--dark);
  margin: 2rem 0 0.8rem;
}

.about-body p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
  line-height: 1.9;
}

.about-body ul {
  list-style: none;
  margin-bottom: 1.2rem;
}

.about-body ul li {
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
  color: var(--text-light);
}

.about-body ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: 0.55rem;
}

/* ================================================================
   ARTICLE PAGE
   ================================================================ */

.article-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.article-breadcrumb {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.article-breadcrumb a {
  color: var(--rust);
  transition: color 0.25s;
}

.article-breadcrumb a:hover { color: var(--dark); }

.article-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-series-label {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--rust);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 1rem;
}

.article-subtitle {
  font-style: italic;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.article-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  font-family: 'IM Fell English SC', serif;
  letter-spacing: 0.08em;
}

.article-meta .meta-sep { margin: 0 0.6rem; color: var(--gold); }

.article-body {
  margin-bottom: 3rem;
}

.article-body p {
  margin-bottom: 1.5rem;
  line-height: 1.95;
  color: var(--text);
  font-size: 1.02rem;
}

.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--dark);
  margin: 2.5rem 0 1rem;
}

.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(201, 168, 76, 0.07);
  font-style: italic;
  color: var(--text-light);
}

/* Fun Fact Box */
.fun-fact-box {
  background: var(--dark);
  border: 1.5px solid var(--gold);
  padding: 1.5rem 1.8rem;
  margin: 2.5rem 0;
  position: relative;
}

.fun-fact-box::before {
  content: 'Did You Know?';
  font-family: 'IM Fell English SC', serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  position: absolute;
  top: -0.6rem;
  left: 1.5rem;
  background: var(--dark);
  padding: 0 0.5rem;
}

.fun-fact-box p {
  color: rgba(245, 236, 215, 0.88) !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
}

/* Language word highlight */
.lang-word {
  font-style: italic;
  color: var(--rust);
}

.lang-script {
  font-style: normal;
  color: var(--teal);
}

/* Article Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

/* Further Reading */
.further-reading {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-top: 3px solid var(--rust);
  padding: 1.5rem 1.8rem;
  margin-bottom: 2.5rem;
}

.further-reading h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.book-item {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--parchment-dark);
  font-size: 0.88rem;
  color: var(--text-light);
}

.book-item:last-child { border-bottom: none; }

.book-item strong {
  color: var(--text);
  font-style: italic;
}

/* Midjourney Prompt Box */
.midjourney-box {
  background: #1A1226;
  border: 1.5px solid var(--purple);
  padding: 1.5rem 1.8rem;
  margin-bottom: 2rem;
  position: relative;
}

.midjourney-box::before {
  content: 'Midjourney Image Prompt';
  font-family: 'IM Fell English SC', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(201, 168, 76, 0.7);
  position: absolute;
  top: -0.6rem;
  left: 1.5rem;
  background: #1A1226;
  padding: 0 0.5rem;
}

.midjourney-box p {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: rgba(201, 168, 76, 0.85);
  line-height: 1.75;
  margin: 0;
}

/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  background: var(--dark);
  border-top: 3px solid var(--gold);
  text-align: center;
  padding: 2.5rem 2rem;
  margin-top: 3rem;
}

.footer-ornament {
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 0.6em;
  display: block;
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'IM Fell English SC', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(245, 236, 215, 0.6);
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(245, 236, 215, 0.45);
  margin-bottom: 0.4rem;
}

.footer-copy a {
  color: var(--gold);
  transition: color 0.25s;
}

.footer-copy a:hover { color: var(--gold-light); }

.footer-tagline {
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(245, 236, 215, 0.3);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 960px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .series-name-tamil { font-size: 2.8rem; }

  .main-nav ul { flex-wrap: wrap; justify-content: center; }
  .main-nav li a { padding: 0.6rem 1.2rem; }
}

@media (max-width: 580px) {
  .series-name-tamil { font-size: 2.1rem; }
  .hero-title { font-size: 1.9rem; }
  .featured-card { padding: 1.8rem; }
  .featured-card h2 { font-size: 1.6rem; }
  .article-title { font-size: 1.8rem; }
}
