@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap");

:root {
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-header: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-dark: #cbd5e1;
  --accent: #059669;
  --accent-dark: #047857;
  --accent-light: #ecfdf5;
  --accent-2: #6366f1;
  --link-color: #059669;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Outfit", "Inter", sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ===== HEADER ===== */
.custom-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-header);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.custom-header .container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  width: 100%;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo h2 {
  border: none;
  margin: 0;
  padding: 0;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  font-family: var(--font-heading);
}

.logo-leaf {
  font-size: 1.4rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-links > a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links > a:hover,
.nav-links > a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* Blogs nav button — just a link, no dropdown */
.nav-blogs-btn {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-blogs-btn:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
  text-decoration: none !important;
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* ===== PAGE LAYOUT ===== */
.page-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ===== HERO WRAP ===== */
.dharitree-wrap {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
  border: 1px solid #d1fae5;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.dharitree-wrap::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.dharitree-title {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #0f172a 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dharitree-intro {
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 1.5rem auto;
  color: var(--text-secondary);
}

.last-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  font-weight: 500;
}

.dharitree-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dharitree-btn {
  background: var(--bg-main);
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  font-family: var(--font-body);
}

.dharitree-btn:hover {
  border-color: var(--accent);
  text-decoration: none;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(5,150,105,0.12);
  transform: translateY(-1px);
}

.btn-primary-green {
  background-color: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
  font-weight: 600 !important;
}

.btn-primary-green:hover {
  background-color: var(--accent-dark) !important;
  color: #fff !important;
  border-color: var(--accent-dark) !important;
  box-shadow: 0 6px 16px rgba(5,150,105,0.28) !important;
  text-decoration: none !important;
}

/* ===== QUICK LINKS / SERVICES ===== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.quick-links a {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.quick-links a:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(5,150,105,0.12);
  transform: translateY(-2px);
  color: var(--accent);
  text-decoration: none;
}

/* ===== SECTIONS ===== */
.dharitree-section {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.content-box {
  margin-bottom: 2rem;
}

.content-box ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
  list-style-type: disc;
}

.content-box li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.official-link-box {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.official-link {
  display: inline-block;
  font-weight: 500;
  color: var(--accent);
  background-color: var(--accent-light);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid #a7f3d0;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.official-link:hover {
  background-color: var(--accent);
  color: #fff;
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(5,150,105,0.22);
}

.main-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  width: 100%;
  overflow: hidden;
}

.main-hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid #e2e8f0;
  margin: 0 auto;
}

/* ===== IMAGES ===== */
img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
  display: block;
}

/* ===== FAQs ===== */
.dharitree-faq {
  padding-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item h3 {
  padding: 1.25rem 0;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  transition: color 0.2s;
}

.faq-item h3:hover {
  color: var(--accent);
}

.faq-item h3::after {
  content: "+";
  color: var(--text-muted);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active h3::after {
  content: "−";
  color: var(--accent);
}

.faq-item p {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.faq-item.active p {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1.25rem;
}

/* ===== TABLE OF CONTENTS ===== */
.dharitree-table {
  background: linear-gradient(135deg, #f8fafc, #f0fdf4);
  border: 1px solid #d1fae5;
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 3rem;
}

.dharitree-table h3 {
  margin-top: 0;
  color: var(--text-primary);
}

.dharitree-table ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}

.dharitree-table a {
  color: var(--accent);
  font-size: 0.93rem;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.custom-footer {
  border-top: 1px solid var(--border-color);
  background: #0f172a;
  padding: 4rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 920px;
  margin: 0 auto;
}

.footer-top-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h2 {
  font-size: 1rem;
  border: none;
  padding: 0;
  margin-bottom: 1.25rem;
  color: #fff;
  font-weight: 700;
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.use-slt-link li {
  margin-bottom: 0.65rem;
}

.use-slt-link a {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.use-slt-link a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom-row {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.35);
}

/* ===== SERVICES SECTION ===== */
.dharitree-services-section {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  :root {
    --header-h: 62px;
  }

  .dharitree-wrap {
    padding: 2.5rem 1.25rem;
  }

  .dharitree-title {
    font-size: 1.9rem;
  }

  .dharitree-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .dharitree-btn {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  /* Mobile Nav */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: #0f172a;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 0.25rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links > a,
  .nav-blogs-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    text-align: left;
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center !important;
    padding: 0.85rem 1rem !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .page-container {
    padding-top: 2rem;
    gap: 3rem;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }
}

/* ===== ARTICLES PAGE ===== */
.articles-hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.articles-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23059669' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.articles-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.articles-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(5,150,105,0.15);
  color: #6ee7b7;
  border: 1px solid rgba(5,150,105,0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.articles-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

.articles-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto 2rem auto;
}

.articles-count-badge {
  display: inline-flex;
  gap: 2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 0.6rem 1.5rem;
  margin-top: 0.5rem;
}

.articles-count-badge span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.articles-count-badge strong {
  color: #6ee7b7;
}

/* Articles page main container */
.articles-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* Search bar */
.articles-search-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.articles-search {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.articles-search input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border: 2px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.articles-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(5,150,105,0.1);
}

.articles-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

/* Article grid */
.grid-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Article card */
.article-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s;
}

.article-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: transparent;
}

.article-card:hover::before {
  opacity: 1;
}

.article-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-light);
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.article-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.article-card h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.article-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.55rem 1rem;
  background: var(--accent-light);
  border-radius: 8px;
  border: 1px solid #a7f3d0;
  transition: all 0.2s;
  align-self: flex-start;
}

.article-read-more:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
  transform: translateX(2px);
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.article-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* No results state */
.no-results {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.no-results.visible {
  display: block;
}

/* Articles section heading */
.articles-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.articles-section-header h2 {
  border: none;
  padding: 0;
  margin: 0;
  font-size: 1.6rem;
}

.articles-total {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border-color);
}

/* ===== MOBILE: Articles page ===== */
@media (max-width: 768px) {
  .articles-hero {
    padding: 3.5rem 1.25rem 3rem;
  }

  .articles-hero h1 {
    font-size: 2rem;
  }

  .articles-hero p {
    font-size: 0.98rem;
  }

  .articles-count-badge {
    gap: 1rem;
    padding: 0.5rem 1.1rem;
  }

  .articles-container {
    padding: 2rem 1rem 3.5rem;
  }

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

  .articles-search-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .articles-search {
    min-width: unset;
  }

  .articles-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .articles-hero h1 {
    font-size: 1.75rem;
  }

  .article-card {
    padding: 1.25rem;
  }
}

/* Dropdown CSS */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown .dropbtn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.75);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.dropdown:hover .dropbtn,
.dropdown .dropbtn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 8px;
    top: 35px;
    left: 0;
    text-align: left;
}
.dropdown-content a {
    color: #333333 !important;
    padding: 12px 16px !important;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 400 !important;
}
.dropdown-content a:hover {
    background-color: #f8fafc;
    color: #059669 !important;
}
.dropdown:hover .dropdown-content {
    display: block;
}
@media (max-width: 768px) {
    .dropdown { display: block; width: 100%; margin: 0; }
    .dropdown .dropbtn { width: 100%; text-align: left; padding: 0.8rem 1rem; border-bottom: none; font-size: 1rem; }
    .dropdown-content { position: static; box-shadow: none; max-height: none; width: 100%; border: 1px solid #e2e8f0; margin-top: 5px; margin-bottom: 10px; display: none; }
    .dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content { display: block; }
}
