/* ============================================================
   ANCF — custom styles
   Extends the Material for MkDocs theme defined in mkdocs.yml.
   Conventions match the Spatial Thoughts portfolio template:
   class names are kept short and semantic; component selectors
   are reused on multiple pages.
   ============================================================ */

/* Header logo sits on the green primary header.
   The ANCF logo is green-on-transparent, so put it on a small
   white pill to keep it visible. */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  background: #ffffff;
  border-radius: 50%;
  padding: 3px;
  box-sizing: content-box;
}

/* Footer in the brand green to match the top header.
   The lower copyright strip gets a darker green for visual depth. */
.md-footer {
  background-color: var(--md-primary-fg-color);
}

.md-footer-meta {
  background-color: var(--md-primary-fg-color--dark);
}

/* Hero on the Home page.
   The banner (which already includes the ANCF logo and wordmark)
   is rendered as a full-width <img> at the top. The light-green
   panel wraps both the banner and the text below so the whole
   section reads as one card with a soft green border. */
.hero {
  text-align: center;
  padding: 0.25rem 0.25rem 0.75rem 0.25rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #dcedc8 100%);
  border: 1px solid #aed581;
  border-radius: 8px;
  overflow: hidden;
}

.hero .hero-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 0.75rem 0;
  border-radius: 6px;
}

.hero h1 {
  font-size: 1.4rem;
  margin: 0.25rem 0;
}

.hero h1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.hero p {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.hero + hr {
  margin-top: 0.5rem;
}

/* Bilingual subtitle in the hero (Bangla word "অভয়ারণ্য"). */
.hero .hero-bn {
  font-size: 1.1rem;
  color: var(--md-primary-fg-color);
  margin-bottom: 0.25rem;
}

/* About ANCF section on the Home page (illustration alongside text). */
.about-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;     /* top-align the columns */
  margin-top: 0.5rem;
}

.about-text {
  flex: 1;
}

.about-text p:first-child {
  margin-top: 0;
}

.about-image {
  flex: 0 0 240px;             /* compact fixed-width illustration column */
  margin-top: -2rem;           /* lift the illustration slightly above the text top */
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    align-items: center;
  }
  .about-image {
    flex: 0 0 auto;
    max-width: 280px;
    width: 100%;
  }
}

/* Stats strip: a row of big numbers (years active, seedlings, upazilas). */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  text-align: center;
  margin: 1.5rem 0;
}

.stats .stat {
  background-color: #f1f8e9;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 1rem 0.5rem;
}

.stats .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  line-height: 1.1;
}

.stats .stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
  margin-top: 0.25rem;
}

/* Timeline (used on the About and history sections). */
.timeline {
  padding-left: 1.75rem;
  border-left: 3px solid var(--md-primary-fg-color--light);
}

.timeline-entry {
  position: relative;
  margin-bottom: 1.75rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2.2rem;
  top: 0.45rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background-color: var(--md-primary-fg-color);
  border: 2px solid var(--md-default-bg-color);
}

.timeline-entry h3 {
  margin-top: 0;
}

/* Material "grid cards" — used for What We Do and Team. */
.md-typeset .grid.cards > ul > li {
  background-color: #f1f8e9;
}

/* Project / Story cards on gallery pages. */
.project-card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 1rem;
  background-color: #f1f8e9;
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* Team member cards (round portrait + name + role + bio). */
.team-card {
  text-align: center;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 1rem;
  background-color: #f1f8e9;
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.75rem auto;
}

.team-card .role {
  font-style: italic;
  color: var(--md-default-fg-color--light);
  margin-top: -0.5rem;
}
