/* ============================================================
   COMPONENTS — Cards, Buttons, Badges, Nav, Footer
   ============================================================ */

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: var(--surface-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   STANDARD CARD
   ============================================================ */
.card {
  background: var(--pure-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
}

.card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-tint);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-default);
}

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

.card__body {
  padding: 1.5rem;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card__title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.card__excerpt {
  font-size: 0.9rem;
  color: var(--text-primary);
  opacity: 0.75;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.card__cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default);
}

.card__cta:hover {
  color: var(--green-dark);
  gap: 0.5rem;
}

/* ============================================================
   PROGRAM CARD (highlight section on homepage)
   ============================================================ */
.program-card {
  background: var(--pure-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
}

.program-card__accent {
  height: 3px;
  width: 100%;
}

.program-card__body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.program-card__title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.program-card__body-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-primary);
  opacity: 0.8;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* ============================================================
   ACTIVITY CARD
   ============================================================ */
.activity-card {
  background: var(--pure-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default);
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
}

/* Stretch the title link to cover the whole card */
.activity-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.activity-card__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 120px;
  overflow: hidden;
}

.activity-card__images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-default);
}

.activity-card:hover .activity-card__images img {
  transform: scale(1.05);
}

.activity-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.activity-card__amount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

/* Secondary currency under the card amount — USD leads on the English side,
   BDT on the Bengali side, so this holds whichever one is not primary. */
.activity-card__amount-alt {
  display: block;
  font-family: var(--font-body, inherit);
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.55;
}

.activity-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.activity-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
  line-height: 1.35;
  flex: 1;
}

.activity-card__meta {
  font-size: 0.82rem;
  color: var(--text-primary);
  opacity: 0.65;
  margin-bottom: 0.75rem;
}

.activity-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-primary);
  opacity: 0.75;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.badge--domain {
  color: var(--pure-white);
}

.badge--year {
  background: var(--surface-tint);
  color: var(--green-primary);
  border: 1px solid var(--border-subtle);
}

.badge--data-flag {
  background: rgba(244, 195, 0, 0.15);
  color: var(--gold-dark);
  border: 1px solid rgba(244, 195, 0, 0.3);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-default);
  white-space: nowrap;
}

.btn:hover {
  transform: scale(1.03);
  text-decoration: none;
}

.btn--primary {
  background: var(--green-primary);
  color: var(--pure-white);
  border-color: var(--green-primary);
}

.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--pure-white);
}

.btn--outline-white,
.btn--red {
  background: var(--red-primary);
  color: var(--pure-white);
  border-color: var(--red-primary);
}

.btn--outline-white:hover,
.btn--red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--pure-white);
}

.btn--gold {
  background: var(--gold-primary);
  color: var(--pure-black);
  border-color: var(--gold-primary);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--pure-black);
}

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

.btn--outline-green:hover {
  background: var(--green-primary);
  color: var(--pure-white);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-dark);
  color: var(--pure-white);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
}

.footer-desc-bn {
  font-family: var(--font-bengali);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

.footer-brand .logo-text {
  color: var(--pure-white);
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.footer-brand .logo-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  max-width: 220px;
  margin-bottom: 1.5rem;
}

.footer-contact address {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}

.footer-contact-list a {
  color: rgba(255,255,255,0.85);
  transition: color var(--duration-fast) var(--ease-default);
}

.footer-contact-list a:hover {
  color: var(--gold-primary);
}

.meta-note {
  font-size: 0.78rem;
  opacity: 0.6;
  font-style: italic;
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  padding: 0.3rem 0;
}

.footer-nav-list a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--duration-fast) var(--ease-default);
}

.footer-nav-list a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-currency-note {
  font-size: 0.78rem;
  opacity: 0.55;
  font-style: italic;
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  transition: color var(--duration-fast) var(--ease-default);
}

.footer-bottom a:hover {
  color: var(--gold-primary);
}

/* Footer responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   DONATE CTA BLOCK
   ============================================================ */
.donate-cta {
  background: var(--green-primary);
  padding: 5rem 1.5rem;
  text-align: center;
  color: var(--pure-white);
}

.donate-cta h2 {
  color: var(--pure-white);
  margin-bottom: 0.5rem;
}

.donate-cta__subtitle-bn {
  font-family: var(--font-bengali);
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.donate-cta__body {
  max-width: 560px;
  margin-inline: auto;
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.donate-cta__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   CURRENCY TOGGLE (focus × year matrix)
   ============================================================ */
.currency-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 1.5rem;
  width: fit-content;
  border: 1px solid rgba(0, 103, 71, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.currency-toggle__btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--green-primary);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.currency-toggle__btn:hover {
  background: rgba(0, 103, 71, 0.08);
}

.currency-toggle__btn.is-active {
  background: var(--green-primary);
  color: var(--pure-white);
}

.currency-toggle__btn:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: -2px;
}
