/*
Theme Name: Prabanjas Blog
Theme URI: https://blog.prabanjas.in/
Author: Digital Tamila
Author URI: https://digitaltamila.com/
Description: A fast, clean Tamil health and wellness magazine theme for Prabanjas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: prabanjas
*/

:root {
  --color-bg: #f8fbf6;
  --color-surface: #ffffff;
  --color-text: #101514;
  --color-muted: #52625f;
  --color-border: #dce7df;
  --color-brand: #0b7f70;
  --color-brand-dark: #075f55;
  --color-accent: #c96f1a;
  --color-soft: #eaf7ef;
  --color-soft-warm: #fff6e8;
  --color-soft-blue: #edf7fb;
  --shadow-soft: 0 18px 50px rgba(43, 69, 58, 0.09);
  --shadow-card: 0 12px 30px rgba(28, 45, 39, 0.07);
  --font-sans: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-tamil: "Noto Sans Tamil", Latha, "Nirmala UI", sans-serif;
  --container: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fbfff9 0%, var(--color-bg) 36%, #fffaf0 100%);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-brand-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.section {
  padding-block: clamp(2.5rem, 5vw, 5rem);
}

.section-tight {
  padding-block: clamp(1.75rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0;
  color: var(--color-brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.surface,
.blog-card,
.category-card,
.widget-card,
.comment-respond,
.comment-body {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius);
  background: var(--color-brand);
  color: #fff;
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(11, 127, 112, 0.18);
  cursor: pointer;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--color-brand-dark);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--color-brand-dark);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--color-soft);
  color: var(--color-brand-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 231, 223, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-brand), #0d9488);
  color: #fff;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-menu a,
.search-link {
  display: block;
  border-radius: var(--radius);
  color: var(--color-muted);
  padding: 0.6rem 0.72rem;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.search-link:hover {
  background: var(--color-soft);
  color: var(--color-brand-dark);
}

.search-link {
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.85);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  background: linear-gradient(135deg, rgba(234, 247, 239, 0.78), rgba(255, 246, 232, 0.5));
  padding-block: clamp(2.25rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.hero h1,
.page-title h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.14;
  letter-spacing: 0;
  font-weight: 800;
}

.hero p,
.page-title p {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-feature {
  overflow: hidden;
  color: var(--color-text);
  text-decoration: none;
}

.hero-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-feature div {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
}

.hero-feature span,
.card-meta a {
  color: var(--color-brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.hero-feature h2,
.blog-card h2,
.post-nav strong {
  margin: 0;
  font-family: var(--font-tamil);
  line-height: 1.45;
  letter-spacing: 0;
  font-weight: 700;
}

.hero-feature h2 {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.hero-feature p,
.blog-card p {
  margin: 0;
  color: #2f3c39;
  font-family: var(--font-tamil);
  line-height: 1.75;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.16;
}

.section-heading a {
  color: var(--color-brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.category-band {
  background: linear-gradient(180deg, rgba(237, 247, 251, 0.62), rgba(234, 247, 239, 0.72));
}

.blog-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.blog-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.blog-card .media-link {
  display: block;
  background: var(--color-soft);
  text-decoration: none;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body {
  display: grid;
  gap: 0.7rem;
  padding: 1.05rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.blog-card h2 {
  font-size: clamp(1rem, 1vw, 1.16rem);
}

.blog-card h2 a {
  text-decoration: none;
}

.blog-card p {
  font-size: 0.96rem;
}

.latest-layout,
.content-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
}

.home-sidebar,
.article-side {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 96px;
}

.widget-card {
  padding: 1rem;
}

.widget-card h2,
.widget-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.post-list {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.post-list a {
  display: grid;
  gap: 0.2rem;
  color: var(--color-text);
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.post-list span {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.category-card {
  display: block;
  min-height: 150px;
  padding: 1.2rem;
  text-decoration: none;
}

.category-card h2,
.category-card h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.2rem;
}

.category-card p {
  margin: 0;
  color: var(--color-muted);
}

.page-head {
  padding-block: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(135deg, rgba(234, 247, 239, 0.72), rgba(255, 246, 232, 0.42));
}

.article {
  background: linear-gradient(180deg, rgba(234, 247, 239, 0.5), rgba(248, 251, 246, 0) 420px);
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.article-head {
  max-width: 880px;
}

.article h1 {
  max-width: 800px;
  margin: 0.25rem 0 0.85rem;
  font-family: var(--font-tamil);
  font-size: clamp(1.48rem, 1.7vw + 0.95rem, 2rem);
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: 0;
}

.article-excerpt {
  max-width: 760px;
  margin: 0;
  color: #2f3c39;
  font-family: var(--font-tamil);
  font-size: clamp(0.95rem, 0.5vw + 0.84rem, 1.02rem);
  line-height: 1.78;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.article-meta a {
  color: var(--color-brand-dark);
  text-decoration: none;
}

.article-hero {
  width: 100%;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.article-main {
  display: grid;
  gap: 1.6rem;
}

.prose,
.entry-content {
  color: #0d1110;
  font-family: var(--font-tamil);
  font-size: clamp(0.96rem, 0.55vw + 0.84rem, 1.03rem);
  font-weight: 400;
  line-height: 1.9;
}

.prose h2,
.prose h3,
.entry-content h2,
.entry-content h3 {
  color: var(--color-text);
  font-family: var(--font-tamil);
  line-height: 1.38;
  letter-spacing: 0;
  scroll-margin-top: 6rem;
  font-weight: 700;
}

.prose h2,
.entry-content h2 {
  margin: 2.35rem 0 0.65rem;
  font-size: clamp(1.26rem, 1.45vw, 1.58rem);
}

.prose h3,
.entry-content h3 {
  margin: 1.75rem 0 0.55rem;
  font-size: clamp(1.08rem, 1.1vw, 1.24rem);
}

.prose p,
.prose ul,
.prose ol,
.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-block: 1.08rem;
}

.entry-content a {
  color: var(--color-brand-dark);
  font-weight: 700;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  border-left: 4px solid var(--color-accent);
  background: var(--color-soft-warm);
  padding: 0.8rem 1rem;
}

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.share > span {
  color: var(--color-muted);
  font-weight: 800;
}

.share a,
.share button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  color: var(--color-brand-dark);
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}

.share svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.facebook { color: #1877f2; }
.whatsapp { color: #128c7e; }
.telegram { color: #229ed9; }
.copy-link { color: #293835; }

.toc {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f5fbf7);
  box-shadow: 0 14px 34px rgba(28, 45, 39, 0.08);
  padding: 0.75rem;
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  list-style: none;
  text-transform: uppercase;
}

.toc-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.toc-title svg {
  width: 18px;
  height: 18px;
  fill: var(--color-brand-dark);
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc ol {
  display: grid;
  counter-reset: toc;
  gap: 0.35rem;
  max-height: min(56vh, 520px);
  overflow: auto;
  padding: 0.7rem 0 0.1rem;
  margin: 0.2rem 0 0;
  list-style: none;
}

.toc a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 0.45rem;
  border-radius: 6px;
  color: #33413e;
  font-family: var(--font-tamil);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.52;
  padding: 0.45rem 0.5rem;
  text-decoration: none;
}

.toc a::before {
  counter-increment: toc;
  content: counter(toc);
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-soft);
  color: var(--color-brand-dark);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.toc a:hover {
  background: var(--color-soft);
  color: var(--color-brand-dark);
}

.author-box {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box h2,
.author-box p {
  margin: 0;
}

.author-box p {
  color: var(--color-muted);
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.post-nav a {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  padding: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.post-nav .next {
  text-align: right;
}

.post-nav span {
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.comments-area {
  display: grid;
  gap: 1rem;
}

.comment-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.comment-body {
  padding: 1rem;
}

.comment-meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.comment-respond {
  padding: 1rem;
}

.comment-form {
  display: grid;
  gap: 0.8rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.comment-form input,
.comment-form textarea,
.search-form input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  padding: 0.72rem 0.85rem;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.search-form label {
  flex: 1 1 260px;
}

.footer {
  border-top: 1px solid var(--color-border);
  background: #10201d;
  color: #e8f3ef;
  padding: 1.1rem 0;
}

.footer-bottom {
  color: #dcece8;
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-grid,
  .latest-layout,
  .content-sidebar,
  .article-layout,
  .post-nav {
    grid-template-columns: 1fr;
  }

  .home-sidebar,
  .article-side {
    position: static;
  }

  .article-side {
    order: -1;
  }

  .post-nav .next {
    text-align: left;
  }
}

@media (max-width: 860px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 2.25rem;
  }

}

@media (max-width: 820px) {
  .nav {
    position: relative;
    min-height: 68px;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    right: 0;
    top: 12px;
  }

  .brand {
    justify-content: center;
    text-align: center;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .nav-menu-wrap {
    display: none;
    width: 100%;
    flex-basis: 100%;
    border-top: 1px solid var(--color-border);
    padding: 0.7rem 0 0.9rem;
  }

  .nav-menu-wrap[data-open] {
    display: block;
  }

  .nav-menu {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-menu a,
  .search-link {
    padding: 0.82rem;
  }
}
