/**
 * POPULAR'S SEVAK TRUST - Variation A Footer Stylesheet
 * Recreating Variation A: Balanced 4-Column Grid with vertical dividers,
 * accent bars, circular icon badges, two-subcolumn links, and pill CTA.
 */

/* ==========================================================================
   1. FOOTER CONTAINER & WRAPPER
   ========================================================================== */
.footer {
  background-color: #171d2b !important;
  color: #a9a9ab;
  padding: 60px 0 0 0 !important;
  position: relative;
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

.footer .container {
  max-width: 1220px;
}

/* ==========================================================================
   2. FOUR-COLUMN GRID LAYOUT & VERTICAL DIVIDERS
   ========================================================================== */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

.footer-col {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Desktop Column Padding & Vertical Dividers */
@media (min-width: 901px) {
  .footer-col:nth-child(1) {
    padding-right: 24px;
    padding-left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-col:nth-child(2) {
    padding-left: 28px;
    padding-right: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-col:nth-child(3) {
    padding-left: 28px;
    padding-right: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-col:nth-child(4) {
    padding-left: 28px;
    padding-right: 0;
    border-right: none;
  }
}

/* ==========================================================================
   3. HEADINGS & ACCENT UNDERLINES
   ========================================================================== */
.footer__heading {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25;
}

.footer__heading-bar {
  width: 32px;
  height: 3.5px;
  background-color: #fdb913;
  border-radius: 2px;
  margin-top: 10px;
  margin-bottom: 22px;
}

/* ==========================================================================
   4. COLUMN 1: BRAND LOGO & SOCIAL ICONS
   ========================================================================== */
.footer-logo {
  margin-bottom: 24px;
}

.footer-logo__link {
  display: inline-block;
  text-decoration: none;
}

.footer-logo__img {
  max-width: 195px;
  height: auto;
  display: block;
}

.footer-socials {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-socials__item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer-socials__link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #242c3d;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.25s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-socials__link:hover,
.footer-socials__link:focus {
  background-color: #fdb913 !important;
  color: #171d2b !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 185, 19, 0.3);
  opacity: 1 !important;
}

/* ==========================================================================
   5. COLUMN 2: CONTACTS
   ========================================================================== */
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 !important;
  padding: 0 !important;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-badge {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background-color: #253143;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.footer-contact-text {
  font-size: 16px;
  line-height: 1.45;
  color: #94a3b8;
  word-break: normal;
}

.footer-contact-link {
  font-size: 18px;
  line-height: 1.45;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
  white-space: nowrap;
  align-self: center;
}

.footer-contact-link:hover,
.footer-contact-link:focus {
  color: #fdb913 !important;
  text-decoration: none !important;
}

/* ==========================================================================
   6. COLUMN 3: MENU & LINKS (2 SUBCOLUMNS)
   ========================================================================== */
.footer-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
}

.footer-menu-col {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer-menu-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 17px;
  line-height: 1.4;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.footer-menu-arrow {
  color: #fdb913;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-menu-link:hover,
.footer-menu-item--active .footer-menu-link {
  color: #fdb913 !important;
  text-decoration: none !important;
}

.footer-menu-link:hover .footer-menu-arrow {
  transform: translateX(2px);
}

/* ==========================================================================
   7. COLUMN 4: DONATE (SUPPORTING TEXT & PILL BUTTON)
   ========================================================================== */
.footer-donate__desc {
  font-size: 17px;
  line-height: 1.45;
  color: #cbd5e1;
  margin-bottom: 8px !important;
}

.footer-donate__darpan {
  font-size: 18px;
  line-height: 1.4;
  color: #8a99ad;
  margin-bottom: 22px !important;
  white-space: nowrap;
}

.footer-donate__darpan strong {
  color: #cbd5e1;
}

.footer-donate__btn {
  background-color: #fdb913 !important;
  color: #171d2b !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: 9999px !important;
  padding: 13px 24px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(253, 185, 19, 0.25);
  transition: all 0.25s ease-in-out;
  border: none;
}

.footer-donate__btn i {
  font-size: 13px;
  transition: transform 0.2s ease;
}

.footer-donate__btn:hover,
.footer-donate__btn:focus {
  background-color: #f5b00c !important;
  color: #111827 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(253, 185, 19, 0.35);
  text-decoration: none !important;
}

.footer-donate__btn:hover i {
  transform: translateX(3px);
}

/* ==========================================================================
   8. BOTTOM COPYRIGHT BAR
   ========================================================================== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 45px;
  padding-top: 22px;
  padding-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  text-align: center;
}

.footer-bottom__left {
  flex: 1 1 auto;
}

.footer-bottom__copyright {
  color: #8a99ad !important;
  font-size: 16px !important;
  margin: 0 !important;
  line-height: 1.5;
}

.footer-bottom__right {
  flex: 0 0 auto;
}

.footer-bottom__privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8a99ad;
  font-size: 13px;
}

.footer-bottom__link {
  color: #8a99ad !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.footer-bottom__link:hover,
.footer-bottom__link:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

.footer-bottom__divider {
  color: #3f4a5e;
}

/* ==========================================================================
   9. RESPONSIVE BEHAVIOR
   ========================================================================== */

/* Tablet Breakpoint (561px – 900px): 2 Columns per row */
@media (max-width: 900px) and (min-width: 561px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 0;
  }

  .footer-col:nth-child(odd) {
    padding-right: 28px;
    padding-left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-col:nth-child(even) {
    padding-left: 28px;
    padding-right: 0;
    border-right: none;
  }

  .footer-col:nth-child(1),
  .footer-col:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 32px;
  }
}

/* Mobile Breakpoint (≤ 560px): 1 Column stacked */
@media (max-width: 560px) {
  .footer {
    padding-top: 50px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col {
    padding: 0 0 28px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .footer-col:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
  }

  .footer-menu-grid {
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    gap: 10px;
  }

  .footer-bottom__privacy {
    justify-content: center;
  }
}
