/* ============================================================
   GWA – Girinagar Welfare Association
   Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #19b5fe;
  --accent-dark: #0d9de2;
  --green: #3a7d2c;
  --dark: #111827;
  --footer-bg: #161c2d;
  --text: #333333;
  --text-light: #555555;
  --bg-alt: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(0, 0, 0, .10);
  --radius: 4px;
  --nav-h: 70px;
  --font: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  background: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 16px;
}

/* Logo */
.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

/* Nav */
.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* Search toggle */
.search-toggle {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}

.search-toggle:hover {
  background: var(--accent-dark);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Search bar */
.search-bar {
  display: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.search-bar.visible {
  display: block;
}

.search-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent);
}

.search-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
}

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--dark);
  height: 420px;
}

.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Slider Arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  border: none;
  font-size: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  border: none;
  cursor: pointer;
  transition: background .3s;
}

.dot.active {
  background: var(--white);
}

/* ---------- Features (3-col) ---------- */
.features-section {
  padding: 52px 0 60px;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.feature-card:hover .feature-img {
  transform: scale(1.04);
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.feature-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.btn-readmore {
  display: inline-block;
  padding: 8px 22px;
  border: 2px solid var(--dark);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: var(--radius);
  transition: background .2s, color .2s, border-color .2s;
  margin-top: auto;
}

.btn-readmore:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ---------- Page Banner ---------- */
.page-banner {
  background: var(--dark);
  padding: 36px 0;
}

.page-banner-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}

/* ---------- Page Content (inner pages) ---------- */
.page-content {
  padding: 52px 0 64px;
}

/* About Girinagar – content with images */
.content-with-images {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.content-row.reverse {
  direction: rtl;
}

.content-row.reverse>* {
  direction: ltr;
}

.inline-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

/* ---------- VMV (Vision/Mission/Values) ---------- */
.vmv-section {
  margin-bottom: 52px;
}

.vmv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vmv-card {
  background: var(--bg-alt);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.vmv-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

/* ---------- Timeline ---------- */
.section-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  min-width: 90px;
  padding-top: 2px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.75;
}

/* ---------- Executive Committee ---------- */
.office-bearers-section {
  margin-bottom: 52px;
}

.bearers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bearer-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}

.bearer-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--accent);
}

.bearer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
}

.bearer-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.bearer-role {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

/* Committee Members Grid */
.committee-members-section {
  margin-top: 8px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow .2s, border-color .2s;
}

.member-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #9ca3af;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
}

.member-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

/* ---------- Contact ---------- */
.contact-container {
  max-width: 780px;
}

.contact-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.contact-section:last-child {
  border-bottom: none;
}

.contact-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-heading i {
  color: var(--accent);
}

.contact-section p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 8px;
}

.contact-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}

.contact-link:hover {
  color: var(--accent-dark);
}

.doc-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-list li {
  font-size: 15px;
  color: var(--text-light);
  list-style: none;
}

/* ---------- Latest News ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.news-card:first-child {
  border-top: 1px solid var(--border);
}

.news-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #9ca3af;
}

.news-meta i {
  margin-right: 4px;
}

.news-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 14px;
}

.news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap .2s;
}

.news-readmore:hover {
  gap: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--accent);
  padding: 14px 0;
  text-align: center;
}

.footer-credit {
  font-size: 13px;
  color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

  .content-row {
    grid-template-columns: 1fr;
  }

  .content-row.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    z-index: 99;
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    padding: 12px 0;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
  }

  .hamburger {
    display: flex;
  }

  .search-toggle {
    display: none;
  }

  .hero-slider {
    height: 240px;
  }

  .page-banner-title {
    font-size: 22px;
  }

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

@media (max-width: 480px) {
  .members-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    height: 200px;
  }
}