/* ==========================================================================
   Shree Jalaram Gaushala – main stylesheet
   Colours and fonts follow the original 2017 site.
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --green: #1d5926;
  --green-dark: #17481f;
  --crimson: #a6052e;
  --red: #d93636;
  --brown: #503725;
  --olive: #bec17a;
  --orange: #e8a321;
  --lime: #bdd90a;
  --grey-bg: #efefef;
  --text: #747474;
  --heading-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --body-font: Arial, Helvetica, sans-serif;
  --container: 1170px;
  --radius: 30px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: #fff;
}

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

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

a:hover {
  color: var(--red);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 15px;
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0 0 20px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.text-center { text-align: center; }
.muted { color: #999; }

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.align-center { align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--crimson);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green);
  color: #fff;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--crimson);
}

.text-link {
  text-decoration: underline;
}

/* ---------- Sections ---------- */
.section {
  padding: 70px 0;
}

.section-tight {
  padding: 40px 0;
}

.section-grey {
  background: var(--grey-bg);
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  display: inline-block;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--crimson);
  color: var(--crimson);
  font-size: 30px;
  text-transform: uppercase;
}

.section-heading.text-left {
  text-align: left;
}

.section-heading.text-left h2 {
  display: block;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  position: relative;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  flex-shrink: 0;
  margin: 0 40px;
  padding: 10px 0;
}

.logo img {
  width: 180px;
}

.menu {
  display: flex;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-left { justify-content: flex-end; }
.menu-right { justify-content: flex-start; }

.menu > li {
  position: relative;
}

.menu > li > a {
  display: block;
  padding: 36px 14px;
  color: #fff;
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.menu > li > a:hover,
.menu > li.is-active > a {
  color: var(--lime);
}

.submenu-toggle {
  display: none;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-top: 3px solid var(--crimson);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.has-children:hover > .sub-menu,
.has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu a {
  display: block;
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 13px;
}

.sub-menu a:hover,
.sub-menu .is-current > a {
  background: var(--grey-bg);
  color: var(--crimson);
}

.menu-toggle {
  display: none;
  position: absolute;
  top: 40px; /* half of the mobile logo row, stays put when the menu opens */
  right: 15px;
  transform: translateY(-50%);
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* ---------- Hero slider ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1920 / 700;
  background: #333;
}

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

.slide.is-active {
  opacity: 1;
}

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

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-prev:hover,
.slider-next:hover {
  background: var(--crimson);
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.slider-dots button.is-active {
  background: #fff;
}

/* ---------- Video ---------- */
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Feature cards (Gau Protection / History / Seva) ---------- */
.feature-card {
  display: flex;
  flex-direction: column;
  color: #fff;
  text-align: center;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 600 / 340;
  object-fit: cover;
}

.feature-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 0 25px 30px;
}

.feature-card h3 {
  width: calc(100% + 50px);
  margin: 0 -25px 25px;
  padding: 20px 15px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.7);
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
}

.feature-card p {
  flex: 1;
  font-size: 16px;
}

.card-red { background: var(--red); }
.card-green { background: var(--green); }
.card-brown { background: var(--brown); }

/* ---------- Donations ---------- */
.donations {
  position: relative;
  background-color: #2b2b22;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
}

.donations::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.donations .container {
  position: relative;
}

.donations-title {
  color: #fff;
  font-size: 28px;
  text-transform: uppercase;
}

.donations-quote {
  max-width: 1000px;
  margin: 0 auto 40px;
  font-size: 20px;
  line-height: 1.6;
}

.counter-box {
  padding: 25px 15px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.3);
}

.counter-box .fa {
  font-size: 48px;
}

.counter-value {
  display: block;
  font-size: 50px;
  line-height: 1.2;
}

.counter-box p {
  margin: 10px 0 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}

.counter-olive { color: var(--olive); }
.counter-orange { color: var(--orange); }
.counter-crimson { color: var(--crimson); }
.counter-red { color: #e3260f; }

/* ---------- Our Main Aim ---------- */
.rounded-img {
  width: 100%;
}

.check-list {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 15px;
  padding-left: 30px;
}

.check-list li::before {
  content: '\f00c';
  position: absolute;
  top: 0;
  left: 0;
  color: var(--crimson);
  font-family: FontAwesome;
}

/* ---------- News cards ---------- */
.news-card h4 {
  margin: 20px 0 5px;
  font-size: 16px;
  font-weight: 400;
}

.news-card h4 a {
  color: #333;
}

.news-card h4 a:hover {
  color: var(--crimson);
}

.news-meta {
  margin-bottom: 15px;
  font-size: 13px;
  color: #999;
}

.news-card p:last-child {
  font-size: 14px;
}

/* ---------- Inner page title bar ---------- */
.page-title {
  padding: 28px 0;
  background: #a9dcb6;
  border-bottom: 1px solid #94c9a2;
}

.page-title-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-title h1 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 400;
}

.breadcrumb {
  font-size: 13px;
  color: #333;
}

.breadcrumb a {
  color: #333;
}

.breadcrumb a:hover {
  color: var(--crimson);
}

.breadcrumb span[aria-hidden] {
  margin: 0 5px;
}

.container-narrow {
  max-width: 1010px;
}

/* Side image that stays in view next to long text (desktop only) */
.sticky-media {
  position: sticky;
  top: 20px;
  width: 100%;
}

/* Curved top edge used between sections */
.section-curved {
  position: relative;
  overflow: hidden;
  padding-top: 110px;
}

.section-curved::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -10%;
  width: 120%;
  height: 70px;
  background: #fff;
  border-radius: 0 0 50% 50%;
}

.section-curved > .container {
  position: relative;
  z-index: 1;
}

.section-heading-light h2 {
  font-weight: 400;
}

/* ---------- Person cards (trustees / managers) ---------- */
.person-grid {
  gap: 20px 25px;
}

.person-card {
  padding: 18px 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.person-card h3 {
  margin-bottom: 6px;
  color: var(--crimson);
  font-size: 13px;
  text-transform: uppercase;
}

.person-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  font-size: 13px;
  color: #333;
}

.person-meta a {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}

.person-meta a:hover {
  color: var(--crimson);
}

.person-card-lg h3 {
  font-size: 17px;
  font-weight: 400;
}

/* ---------- Our Activities ---------- */
.activities {
  background-color: #3a3a2e;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
}

.activities::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.activities-title {
  margin-bottom: 30px;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
}

.activities p {
  color: #fff;
}

.activities-callout {
  max-width: 620px;
  margin: 30px auto;
  padding: 10px 15px;
  background: #fff;
  color: var(--crimson) !important;
  font-size: 14px;
  font-style: italic;
}

.activities-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.activities-list li {
  margin-bottom: 14px;
}

/* ---------- Donate page ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-heading h2.heading-normal {
  text-transform: none;
}

.donate-media img {
  width: 100%;
}

.donate-media .upi-qr {
  width: 220px;
  margin-top: 25px;
}

.donate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.donate-table th,
.donate-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
}

.donate-table th {
  background: var(--crimson);
  color: #fff;
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.donate-table td:last-child,
.donate-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.donate-table td:last-child {
  color: var(--green);
  font-weight: 700;
}

.donate-table tbody tr:nth-child(even) {
  background: #f7f7f7;
}

.bank-section {
  position: relative;
  background-color: #2b2b22;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
}

.bank-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.bank-section .container {
  position: relative;
}

.bank-title {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  font-size: 26px;
}

.bank-title::before,
.bank-title::after {
  content: '';
  flex: 1;
  border-top: 1px dashed rgba(255, 255, 255, 0.7);
}

.bank-subtitle {
  margin: 25px 0 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
}

.bank-list {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-family: var(--heading-font);
  font-size: 15px;
  line-height: 1.9;
}

.bank-list a {
  color: #fff;
}

.bank-list a:hover {
  color: var(--lime);
}

.bank-section .btn {
  margin-top: 20px;
}

/* ---------- Popup ---------- */
.modal {
  width: min(680px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  color: var(--crimson);
  font-size: 18px;
  font-weight: 400;
}

.modal-close {
  border: 0;
  background: transparent;
  color: #999;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--crimson);
}

.modal-form {
  padding: 20px;
}

.modal-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #555;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 8px 10px;
  border: 1px solid #d2d2d2;
  font: inherit;
  color: #333;
}

.modal-form input[type='file'] {
  padding: 0;
  border: 0;
}

.modal-form .form-note {
  margin: 15px 0 0;
  color: var(--green);
}

/* ---------- Donation box page ---------- */
.contact-card {
  padding: 18px 20px;
  border-left: 4px solid var(--crimson);
  background: var(--grey-bg);
}

.contact-card h3 {
  margin-bottom: 8px;
  color: var(--crimson);
  font-size: 16px;
}

.contact-card p {
  margin: 0 0 4px;
  color: #333;
}

.contact-card .fa {
  width: 18px;
  color: var(--green);
}

/* ---------- News listing ---------- */
.news-grid {
  row-gap: 45px;
}

.news-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eee;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-thumb:hover img {
  transform: scale(1.04);
}

.news-grid .video-wrap {
  aspect-ratio: 16 / 10;
}

.read-more {
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

/* ---------- News single post ---------- */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 50px;
  align-items: start;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
}

.post-nav a {
  color: #333;
}

.post-nav a:hover {
  color: var(--crimson);
}

.post-media {
  width: 100%;
  margin-bottom: 20px;
}

.post-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.post-gallery img {
  width: 100%;
}

.post-title {
  color: #333;
  font-size: 22px;
  text-transform: uppercase;
}

.post-content {
  padding: 20px 0 30px;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  color: #444;
}

.post-note {
  padding: 10px 15px;
  background: var(--grey-bg);
  color: #777;
  font-size: 14px;
}

.related-title {
  margin-top: 35px;
  color: var(--crimson);
  font-size: 18px;
  text-transform: uppercase;
}

.related-grid {
  gap: 20px;
}

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

.related-card h4 {
  margin: 10px 0 4px;
  color: #333;
  font-size: 13px;
  font-weight: 400;
}

.related-card a:hover h4 {
  color: var(--crimson);
}

.post-sidebar .sidebar-widget {
  margin-bottom: 35px;
}

.sidebar-widget h3 {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--crimson);
  color: var(--crimson);
  font-size: 15px;
  text-transform: uppercase;
}

.sidebar-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-links a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}

.sidebar-links a:hover,
.sidebar-links .is-current a {
  color: var(--crimson);
}

/* ---------- Events ---------- */
.event-bar {
  padding: 25px 0;
  background: #f6f6f6;
  border-bottom: 1px solid #eee;
}

.event-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px 25px;
}

.event-field {
  flex: 1 1 200px;
}

.event-field label {
  display: block;
  margin-bottom: 4px;
  color: #333;
  font-family: var(--heading-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.event-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  background: #fff;
  font: inherit;
  color: #333;
}

.event-search .btn {
  border-radius: 0;
}

.event-heading {
  padding: 15px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  color: var(--crimson);
  font-size: 15px;
  font-weight: 400;
  text-align: center;
}

.event-list {
  margin: 25px 0;
}

.event-empty {
  padding: 20px;
  border: 1px solid #ddd;
  color: #555;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
}

.event-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 25px;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.event-item:not(:has(img)) {
  grid-template-columns: 1fr;
}

.event-item h3 {
  margin-bottom: 5px;
  color: #333;
  font-size: 18px;
}

.event-venue {
  margin-bottom: 10px;
  color: #555;
  font-size: 14px;
}

.event-nav {
  padding-top: 15px;
  border-top: 1px solid #ddd;
  font-size: 13px;
}

.event-nav a {
  color: #333;
}

.event-nav a.is-next {
  display: block;
  text-align: right;
}

.event-nav a:hover {
  color: var(--crimson);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #eee;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

a.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

.lightbox {
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.lightbox figure {
  margin: 0;
  text-align: center;
}

/* Most archived gallery photos are small thumbnails, so scale them up to a viewable size */
.lightbox img {
  width: min(800px, 85vw);
  max-height: 80vh;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 10px;
  color: #ddd;
  font-size: 14px;
}

.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: fixed;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  padding: 10px 18px;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-close {
  top: 10px;
  right: 20px;
  font-size: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  color: var(--lime);
}

/* ---------- Contact page ---------- */
.contact-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #555;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 9px 12px;
  border: 1px solid #d2d2d2;
  font: inherit;
  color: #333;
}

.contact-form input:focus,
.contact-form textarea:focus,
.modal-form input:focus,
.modal-form textarea:focus,
.quick-contact input:focus,
.quick-contact textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: -1px;
}

.contact-form .btn {
  border-radius: 0;
}

.contact-form .form-note {
  margin: 15px 0 0;
  color: var(--green);
}

.contact-map {
  margin-top: 35px;
  aspect-ratio: 16 / 9;
  background: #eee;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-sidebar address {
  margin-bottom: 10px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
}

.contact-sidebar p {
  margin: 0 0 6px;
  font-size: 14px;
}

.contact-sidebar .fa {
  width: 16px;
  color: var(--green);
}

.contact-sidebar .social-links .fa {
  width: auto;
  color: #fff;
}

.contact-place {
  color: var(--crimson);
  font-weight: 700;
}

.contact-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---------- Form helpers ---------- */
/* Spam trap field: hidden from people, filled in by bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note.is-error {
  color: #ffb3b3;
}

.contact-form .form-note.is-error,
.modal-form .form-note.is-error {
  color: var(--red);
}

button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

/* ---------- Privacy policy ---------- */
.policy-content h3 {
  margin: 35px 0 12px;
  color: var(--crimson);
  font-size: 18px;
}

.policy-content h4 {
  margin: 22px 0 8px;
  color: #333;
  font-size: 15px;
}

.policy-content p,
.policy-list li {
  color: #555;
}

.policy-list {
  margin: 0 0 20px;
  padding-left: 22px;
}

.policy-list li {
  margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green);
  color: #fff;
  border-top: 12px solid var(--green-dark);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-top: 60px;
  padding-bottom: 50px;
}

.footer-logo {
  width: 180px;
  margin-bottom: 15px;
}

.footer-quote {
  font-size: 18px;
  line-height: 1.6;
}

.footer-trust {
  color: var(--lime);
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 700;
}

.bank-details {
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.bank-details li {
  margin-bottom: 6px;
}

.footer-title {
  margin-bottom: 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
}

.footer-links {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--lime);
}

.contact-info {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.contact-info a {
  color: #fff;
}

.contact-info a:hover {
  color: var(--lime);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  color: #fff;
  font-size: 17px;
  transition: opacity 0.2s ease;
}

.social-links a:hover {
  opacity: 0.8;
  color: #fff;
}

.social-facebook { background: #3b5998; }
.social-youtube { background: #cd201f; }
.social-instagram { background: #c13584; }
.social-whatsapp { background: #25d366; }

.footer-badge-img {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.footer-badge-img:hover {
  opacity: 0.85;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 12px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-family: var(--heading-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-badge .fa {
  font-size: 28px;
}

.footer-badge:hover {
  background: var(--crimson);
  color: #fff;
}

.quick-contact label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.quick-contact input,
.quick-contact textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 8px 10px;
  border: 1px solid #d2d2d2;
  background: #fff;
  font: inherit;
  color: #333;
}

.quick-contact .btn {
  border-radius: 0;
}

.quick-contact .btn:hover {
  background: var(--red);
}

.form-note {
  margin: 15px 0 0;
  color: var(--lime);
}

.footer-copyright {
  /* extra bottom space so the fixed donate/back-to-top buttons don't cover the text */
  padding: 20px 0 70px;
  background: var(--green-dark);
  font-size: 13px;
}

.copyright-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.copyright-inner p {
  margin: 0;
}

.copyright-inner a {
  color: var(--lime);
}

/* ---------- Floating donate widget ---------- */
/* Matches the original site's bottom "DONATE NOW" tab: red bar with a round cow badge on top */
.donate-widget {
  position: fixed;
  right: 5px;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.donate-toggle {
  position: relative;
  width: 200px;
  height: 40px;
  padding: 0;
  border: 0;
  background: var(--red);
  color: #fff;
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  text-transform: uppercase;
  cursor: pointer;
}

.donate-toggle img {
  position: absolute;
  top: -35px;
  left: 50%;
  width: 60px;
  height: 60px;
  padding: 9px;
  border-radius: 50%;
  background: var(--red);
  object-fit: contain;
  transform: translateX(-50%);
}

.donate-toggle span {
  position: relative;
  display: block;
  padding-top: 8px;
}

.donate-panel {
  width: 260px;
  margin-bottom: 50px;
  padding: 20px;
  background: #fff;
  border-top: 4px solid var(--red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  color: #333;
}

.donate-panel p {
  margin: 0 0 6px;
}

.donate-panel .btn {
  margin-top: 10px;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 240px;
  bottom: 15px;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 40px;
  border-radius: 4px 4px 0 0;
  background: #333;
  color: #fff;
  font-size: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 0.9;
  visibility: visible;
}

.back-to-top:hover {
  color: #fff;
  opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .menu > li > a {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
  }

  .logo {
    margin: 0 20px;
  }
}

@media (max-width: 991px) {
  .menu-toggle {
    display: block;
  }

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

  .logo {
    order: -1;
    margin: 0;
  }

  .logo img {
    width: 150px;
  }

  .menu {
    display: none;
    flex-direction: column;
  }

  .main-nav.is-open .menu {
    display: flex;
  }

  .main-nav.is-open .menu-right {
    padding-bottom: 15px;
  }

  .menu > li > a {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
  }

  .submenu-toggle {
    display: block;
    position: absolute;
    top: 4px;
    right: 0;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }

  .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    border-top: 0;
    background: var(--green-dark);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-children:hover > .sub-menu {
    transform: none;
  }

  .submenu-open > .sub-menu {
    display: block;
  }

  .sub-menu a {
    padding-left: 20px;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .sub-menu a:hover {
    background: transparent;
    color: var(--lime);
  }

  .grid-3 {
    gap: 20px;
  }

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

  .post-layout {
    grid-template-columns: 1fr;
  }

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

  .donations,
  .activities,
  .bank-section {
    background-attachment: scroll;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 50px 0;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 22px;
  }

  .grid-2,
  .grid-3,
  .footer-widgets {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    aspect-ratio: 4 / 3;
  }

  .section-curved {
    padding-top: 80px;
  }

  .section-curved::after {
    height: 40px;
  }

  .slider-prev,
  .slider-next {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .donations-quote {
    font-size: 17px;
  }

  .bank-title {
    display: block;
    font-size: 21px;
  }

  .bank-title::before,
  .bank-title::after {
    display: none;
  }

  .donate-table th,
  .donate-table td {
    padding: 8px;
  }

  .event-item {
    grid-template-columns: 1fr;
  }

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

  .counter-value {
    font-size: 36px;
  }

  .copyright-inner {
    flex-direction: column;
    text-align: center;
  }

  .donate-widget {
    right: 10px;
  }

  .donate-toggle {
    width: 150px;
    font-size: 13px;
  }

  .back-to-top {
    right: auto;
    left: 10px;
  }
}

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