:root {
  --djk-green: #075c43;
  --djk-green-deep: #043a2b;
  --djk-orange: #f87508;
  --djk-cream: #fff5a3;
  --djk-yellow: #f5d529;
  --djk-indigo: #35317c;
  --djk-text: #263238;
  --djk-muted: #64706f;
  --djk-surface: #fffdf2;
  --djk-border: #dde6dd;
  --shadow-soft: 0 18px 45px rgba(7, 92, 67, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--djk-text);
  font-family: "Poppins", Calibri, Arial, sans-serif;
  background: #fffefa;
  font-size: 16px;
  line-height: 1.65;
}

.lang-ta {
  font-family: "Noto Sans Tamil", "Poppins", Arial Unicode MS, sans-serif;
  line-height: 1.75;
}

a {
  color: var(--djk-green);
}

img,
video {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background: #fff;
  color: var(--djk-green);
  padding: .75rem 1rem;
  border-radius: .5rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(7, 92, 67, .12);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: 78px;
  padding: .55rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  color: var(--djk-green);
  text-decoration: none;
}

.brand-lockup span {
  display: block;
  min-width: 0;
}

.brand-lockup img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.brand-lockup strong {
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-lockup small {
  color: var(--djk-muted);
  font-size: .78rem;
}

.brand-lockup.compact img {
  width: 42px;
  height: 42px;
}

.main-nav {
  gap: .15rem;
}

.nav-link {
  color: #1e3b35;
  font-weight: 500;
  border-radius: 999px;
  padding: .55rem .85rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--djk-green);
  background: rgba(7, 92, 67, .08);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 42px;
  color: var(--djk-muted);
  font-size: .9rem;
  white-space: nowrap;
}

.language-switch a {
  color: var(--djk-muted);
  text-decoration: none;
  font-weight: 600;
}

.language-switch a.active {
  color: var(--djk-orange);
}

.btn {
  border-radius: .55rem;
  font-weight: 600;
}

.btn-brand {
  --bs-btn-bg: var(--djk-orange);
  --bs-btn-border-color: var(--djk-orange);
  --bs-btn-hover-bg: #d96200;
  --bs-btn-hover-border-color: #d96200;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}

.btn-link-brand {
  color: var(--djk-green);
  padding-left: 0;
  text-decoration: none;
}

.hero-section {
  position: relative;
  min-height: 0;
  display: block;
  overflow: hidden;
  background: var(--djk-green-deep);
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #031f17;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  display: none;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--djk-orange);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-pad {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.about-band,
.updates-band {
  background: linear-gradient(180deg, #fffdf3, #ffffff);
}

.leadership-band,
.join-band {
  background: #f4fbf4;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2,
.section-pad h2,
.page-hero h1 {
  color: var(--djk-green-deep);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-image {
  width: 100%;
  border-radius: .75rem;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.feature-card,
.update-card,
.timeline-preview,
.district-preview,
.form-panel,
.profile-card,
.status-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--djk-border);
  border-radius: .75rem;
  box-shadow: 0 12px 30px rgba(38, 50, 56, .06);
}

.feature-card,
.update-card,
.timeline-preview,
.district-preview,
.form-panel,
.status-card {
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
}

.feature-card i {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: #fff;
  background: var(--djk-green);
  border-radius: .65rem;
  font-size: 1.35rem;
}

.feature-card h3,
.feature-card h2,
.update-card h3,
.leader-card h3,
.profile-card h2 {
  color: var(--djk-green-deep);
  font-size: 1.25rem;
  font-weight: 700;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.25rem 0;
}

.info-strip span {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--djk-border);
  border-radius: 999px;
  padding: .45rem .75rem;
  font-size: .9rem;
}

.leader-card {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--djk-green);
  color: #fff;
  border-radius: .85rem;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.leader-card img,
.profile-card img {
  width: 100%;
  border-radius: .65rem;
  object-fit: cover;
}

.leader-card h3,
.leader-card p {
  color: #fff;
}

.leader-card span,
.update-card span,
.profile-card span {
  color: var(--djk-orange);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin-top: 1.2rem;
  padding: 1.5rem;
  color: var(--djk-muted);
  text-align: center;
  background: #f8fbf8;
  border: 1px dashed #b8c9bd;
  border-radius: .75rem;
}

.empty-state i {
  color: var(--djk-green);
  font-size: 2rem;
}

.empty-state.compact {
  min-height: auto;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.media-grid img,
.media-grid video {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  background: #032019;
  border-radius: .75rem;
  box-shadow: var(--shadow-soft);
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: .75rem;
  text-align: left;
}

.gallery-trigger:focus-visible {
  outline: 3px solid var(--djk-orange);
  outline-offset: 4px;
}

.poster-thumb img,
.poster-card img {
  object-fit: contain;
  background: #fffdf2;
}

.media-grid > *:nth-child(1),
.media-grid > *:nth-child(4) {
  grid-column: span 6;
}

.media-grid > *:nth-child(2),
.media-grid > *:nth-child(3) {
  grid-column: span 3;
}

.page-hero {
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: #fff;
  background: linear-gradient(135deg, var(--djk-green), var(--djk-green-deep));
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.page-hero p {
  max-width: 760px;
  margin: .75rem 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 1.1rem;
}

.check-list {
  padding-left: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: .6rem;
  margin-bottom: .75rem;
}

.check-list li::before {
  content: "\F26A";
  color: var(--djk-orange);
  font-family: bootstrap-icons;
}

.profile-card {
  overflow: hidden;
}

.profile-card div {
  padding: 1.25rem;
}

.directory-tools {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 260px);
  gap: .8rem;
}

.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-card strong {
  color: var(--djk-orange);
  font-size: 2rem;
}

.gallery-category + .gallery-category {
  margin-top: clamp(2rem, 5vw, 4rem);
}

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

.gallery-card {
  overflow: hidden;
  color: var(--djk-text);
  background: #fff;
  border: 1px solid var(--djk-border);
  border-radius: .75rem;
  box-shadow: 0 12px 30px rgba(38, 50, 56, .06);
  text-decoration: none;
}

.gallery-card img,
.gallery-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fffdf2;
}

.poster-card img {
  aspect-ratio: 3 / 4;
}

.video-card video {
  aspect-ratio: 16 / 9;
}

.gallery-card span {
  display: block;
  padding: .8rem .9rem;
  font-weight: 600;
}

.gallery-modal .modal-content {
  border: 0;
  border-radius: .75rem;
}

.gallery-modal .modal-title {
  color: var(--djk-green-deep);
  font-size: 1rem;
}

.gallery-modal .modal-body {
  text-align: center;
}

.gallery-modal img {
  max-height: 72vh;
  width: 100%;
  object-fit: contain;
  background: #fffdf2;
  border-radius: .5rem;
}

.gallery-modal p {
  margin: .8rem 0 0;
  color: var(--djk-muted);
}

.form-panel.wide {
  max-width: 960px;
  margin: 0 auto;
}

.join-form {
  display: grid;
  gap: 1.3rem;
}

.join-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.join-form legend {
  margin-bottom: .8rem;
  color: var(--djk-green);
  font-size: 1rem;
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 46px;
  border-color: #cfdad2;
  border-radius: .55rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--djk-green);
  box-shadow: 0 0 0 .2rem rgba(7, 92, 67, .16);
}

.form-status:not(:empty) {
  padding: .8rem 1rem;
  border-radius: .55rem;
  background: #eef8ef;
  color: var(--djk-green);
}

.form-status.error {
  background: #fff0ed;
  color: #9d2b10;
}

.narrow {
  max-width: 900px;
}

.site-footer {
  padding: 3rem 0 1.5rem;
  color: rgba(255, 255, 255, .84);
  background: var(--djk-green-deep);
}

.footer-brand {
  display: flex;
  gap: 1rem;
}

.footer-brand img {
  flex: 0 0 auto;
  border-radius: 50%;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
}

.site-footer li {
  margin-bottom: .45rem;
}

.footer-contact {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .9rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-video {
    display: none;
  }

  .hero-media {
    background: url("../images/leader-banner.jpeg") center / contain no-repeat #031f17;
    aspect-ratio: 16 / 9;
  }
}
