html {
  scrollbar-gutter: stable;
}
/* ------------------------------------------
   1. TOP BAR & STICKY HEADER
   ------------------------------------------ */
.top-bar {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar a:hover {
  color: var(--primary-color);
}
.site-header-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.sticky-header {
  position: relative;
  z-index: 1;
  background-color: #fff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}
.sticky-header.scrolled {
  box-shadow: var(--shadow-md);
}

/* header height জানা থাকলে anchor link click korle header-er niche thik jaygay scroll hobe */
section[id], [id] {
  scroll-margin-top: 90px; /* apnar sticky header-er height onujayi 80-100px rakhun */
}


.nav-link {
  font-weight: 600; /* সবগুলোর জন্য same weight, age theke fix kore rakhun */
  position: relative;
}
.nav-link.active {
  color: #d32f2f; /* apnar saraniRed color code */
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #d32f2f;
}
#mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  /* top is set dynamically by JS to sit exactly below the header row */
}

#mobile-nav.open-full {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#mobile-nav-inner {
  padding-top: 30px; /* 24px theke komiye, faka jayga komar jonno */
}
/* ------------------------------------------
   2. BUTTONS & BADGES
   ------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.35);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: #FFFFFF;
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  box-shadow: 0 8px 20px rgba(85, 85, 85, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.btn-white {
  background-color: #FFFFFF;
  color: var(--secondary-dark);
  border-color: #FFFFFF;
}

.btn-white:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #FFFFFF;
}

.badge-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: max-content;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary-color);
  margin-bottom: 12px;
  white-space: nowrap;
}

/* ------------------------------------------
   3. HERO BANNER AUTO-SLIDER
   ------------------------------------------ */
.hero-slider-wrapper {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: top center;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 10;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(54 44 44 / 60%) 0%, rgb(36 36 36 / 21%) 50%, rgba(36, 36, 36, 0.34) 100%);
}
h1.hero-heading {
    line-height: 52px;
}
.hero-slide .btn-white,
.relative[style*="hero-community"] .btn-white {
  color: var(--secondary-dark);
  box-shadow: 0 6px 18px rgba(36, 36, 36, 0.24);
}

.hero-slide .btn-white:hover,
.relative[style*="hero-community"] .btn-white:hover {
  color: #FFFFFF;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.slider-nav-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.slider-dot.active {
  width: 32px;
  border-radius: 6px;
  background-color: var(--primary-color);
}

/* Inner Page Hero */
.inner-page-hero {
    position: relative;
    padding: 100px 0 80px 0;
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    min-height: 330px;
}

.inner-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(36 36 36 / 49%) 0%, rgb(36 36 36 / 71%) 100%);
}
.hero-heading span {
    display: inline-block;
  color: var(--primary-color) !important;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
}

/* ------------------------------------------
   4. SECTION AUTO-CAROUSELS & CARDS
   ------------------------------------------ */
.carousel-wrapper-relative {
  position: relative;
  display: block;
  width: 100%;
}

/* Keep carousel controls centered on the viewport while placing them at its edges. */
.carousel-wrapper-relative .carousel-nav-prev { left: -20px; }
.carousel-wrapper-relative .carousel-nav-next { right: -20px; }

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Preserve the hidden attribute when carousel button styles set display:flex. */
.carousel-nav-btn[hidden] {
  display: none;
}

.carousel-nav-btn:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.3);
}

.carousel-nav-prev {
  left: -22px;
}

.carousel-nav-next {
  right: -22px;
}

@media (max-width: 1280px) {
  .carousel-nav-prev {
    left: -12px;
  }
  .carousel-nav-next {
    right: -12px;
  }
}

@media (max-width: 768px) {
  .carousel-wrapper-relative {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .carousel-wrapper-relative .carousel-container {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .carousel-nav-btn {
    position: static;
    transform: none;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    margin-top: 10px;
  }

  .carousel-wrapper-relative .carousel-nav-prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    margin-right: 6px;
  }

  .carousel-wrapper-relative .carousel-nav-next {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-left: 6px;
  }
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s ease-in-out;
}

.carousel-slide-item {
  flex: 0 0 calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
}

@media (max-width: 1023px) {
  .carousel-slide-item {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
  }
}

@media (max-width: 767px) {
  .carousel-slide-item {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

/* Card Container Styles */
.editorial-card, .project-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.editorial-card > .p-6,
.project-card-item > .p-6 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.editorial-card > .p-6 > div,
.project-card-item > .p-6 > div {
  flex: 1;
}

.project-card-item > .p-6 > .btn {
  margin-top: auto;
}

/* When parent section is Ivory, card is White */
.bg-saraniIvory .editorial-card,
.bg-saraniIvory .project-card {
  background-color: #FFFFFF;
}

/* When parent section is White, card is Ivory */
.bg-white .editorial-card,
.bg-white .project-card {
  background-color: var(--bg-light);
}

.editorial-card:hover, .project-card:hover {
  box-shadow: 0 12px 25px rgba(255, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.card-img-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

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

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

/* ------------------------------------------
   5. BANK ACCOUNT DETAILS CARD (Ref: media_1788540739155.png)
   ------------------------------------------ */
.impact-card {
  background: var(--bg-light);
  border: 1px solid rgba(255, 0, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.impact-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 12px 25px rgba(255, 0, 0, 0.12);
}

.impact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.impact-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 8px;
}

.bank-details-card {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-dark) 55%, var(--primary-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 12px 35px rgba(255, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--primary-color);
}

.bank-details-card::before {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.bank-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ------------------------------------------
   6. CONTINUOUS INFINITE PARTNER MARQUEE (Ref: media_1788540844531.png)
   ------------------------------------------ */
.partner-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.partner-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.partner-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-card-udgi {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  min-width: 240px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.partner-card-udgi:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

/* ------------------------------------------
   7. UDGI FOUNDATION INSPIRED FOOTER (Ref: media_1788540785774.png)
   ------------------------------------------ */
.site-footer-udgi {
  position: relative;
  isolation: isolate;
  background-color: var(--bg-dark);
  background-image: linear-gradient(90deg, rgba(36, 36, 36, 0.98) 0%, rgba(36, 36, 36, 0.94) 48%, rgba(36, 36, 36, 0.88) 100%), url('../images/image17.jpg');
  background-size: cover;
  background-position: center;
  color: #9CA3AF;
  padding-top: 80px;
  padding-bottom: 30px;
  font-size: 0.9rem;
}

.site-footer-logo {
  display: inline-block;
  padding: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  filter: brightness(0) invert(1);
}

.site-footer-udgi > * {
  position: relative;
  z-index: 1;
}

.site-footer-udgi > .max-w-7xl > .grid.mb-12 {
  margin-bottom: 32px !important;
}

/* Align the three footer columns across every page. */
@media (min-width: 768px) {
  .site-footer-udgi > .max-w-7xl > .grid.mb-12 > :first-child {
    text-align: left;
  }

  .site-footer-udgi > .max-w-7xl > .grid.mb-12 > :nth-child(2),
  .site-footer-udgi > .max-w-7xl > .grid.mb-12 > :last-child {
    width: max-content;
    text-align: left;
  }

  .site-footer-udgi > .max-w-7xl > .grid.mb-12 > :nth-child(2) {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .site-footer-udgi > .max-w-7xl > .grid.mb-12 > :last-child {
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 767px) {
  .site-footer-udgi > .max-w-7xl > .grid.mb-12 > * {
    text-align: left;
    width: auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.site-footer-udgi .footer-reg-bar.mb-12 {
  margin-bottom: 32px !important;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social-icon:hover {
  background-color: var(--primary-color);
}
.site-footer-udgi ul li a:hover{
      color: var(--primary-color);
}

.site-footer-udgi .footer-link {
  color: #E5E7EB;
}

.site-footer-udgi .footer-link:hover {
  color: var(--primary-light);
}

.site-footer-udgi > .max-w-7xl > .border-gray-800 {
  border-color: rgba(255, 255, 255, 0.24) !important;
}
.footer-reg-bar {
  background-color: var(--bg-dark-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  font-size: 0.8rem;
  color: #D1D5DB;
}

.footer-reg-badge {
  color: var(--primary-light);
  font-weight: 700;
}

/* ------------------------------------------
   9. STATIC CURRENCY DONATION PANELS
   ------------------------------------------ */
.donation-layout {
  align-items: stretch;
}

.currency-panel {
  position: relative;
  overflow: hidden;
}

.currency-panel-inr {
  border-top: 4px solid var(--primary-color);
}

.currency-panel-usd {
  border-top: 4px solid var(--secondary-color);
}

.currency-panel-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.currency-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.currency-panel-usd .currency-symbol {
  background: var(--secondary-light);
  color: var(--secondary-dark);
}

.form-kicker {
  color: var(--primary-color);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.currency-panel-usd .form-kicker {
  color: var(--secondary-dark);
}

.amount-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.amount-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 6px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.amount-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amount-choice span {
  display: block;
  width: 100%;
  text-align: center;
}

.amount-choice:hover,
.amount-choice:has(input:checked) {
  border-color: var(--primary-color);
  background: var(--primary-light);
  color: var(--primary-color);
}

.currency-panel-usd .amount-choice:hover,
.currency-panel-usd .amount-choice.is-selected {
  border-color: var(--secondary-color);
  background: var(--secondary-light);
  color: var(--secondary-dark);
}

.currency-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
  font-weight: 600;
}

.currency-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.currency-panel-usd .currency-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px var(--secondary-light);
}

@media (max-width: 639px) {
  .amount-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-reg-bar {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px 0 24px;
  font-size: 0.8rem;
  color: #D1D5DB;
}

.footer-reg-bar::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.footer-reg-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-reg-heading h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
}

.footer-reg-kicker, .footer-reg-label {
    color: var(--primary-color);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.footer-reg-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 16px 0;
  color: #E5E7EB;
}

.footer-reg-legal strong {
  color: #fff;
  margin-right: 5px;
}

.footer-reg-number {
  color: var(--primary-light);
}

.footer-reg-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.footer-reg-address {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.footer-reg-address strong {
  color: #fff;
  font-size: 0.9rem;
}

.footer-reg-address span:last-child {
  color: #9CA3AF;
}

.footer-reg-phone {
  color: var(--primary-light);
  font-weight: 700;
}

.footer-reg-phone:hover {
  color: #fff;
}

.footer-reg-badge {
  color: var(--primary-light);
  font-weight: 700;
}
/* ------------------------------------------
   8. INTERACTIVE MAP & RIGHT PANEL (Ref: media_1788541053643.png)
   ------------------------------------------ */
.map-region-btn {
  cursor: pointer;
}

.map-region-btn:hover,
.map-region-btn.active {
  fill: #FDE8E8 !important;
  stroke: var(--primary-color) !important;
  stroke-width: 3px !important;
}

.region-detail-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.stat-pill-box {
  background: var(--bg-light);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
}
/* ------------------------------------------
   8. FIELD INITIATIVES
   ------------------------------------------ */
.field-initiatives {
  background-color: var(--bg-dark);
  background-image: url('../images/dark-section-bg-image.png');
  background-size: cover;
  background-position: center;
}
.field-initiatives .project-card{
border: 1px solid var(--secondary-dark);
}
.field-initiatives .project-card:hover{
        border-color: var(--primary-color);
}

/* Equal-height contact form and map panels on larger screens. */
.contact-form-panel,
.contact-map-panel,
.contact-map-card {
  height: 100%;
}

.contact-form-panel {
  display: flex;
  flex-direction: column;
}

.contact-form-panel form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form-panel form > button {
  margin-top: auto;
}

.contact-map-card {
  display: flex;
  flex-direction: column;
}

.contact-map-frame {
  flex: 1;
  min-height: 320px;
}

/* =======about-page============== */
.about-reg{
  padding-top: 0px;
}
