/* =========================================
   FOOTER (SECTION LAYOUT)
========================================= */

:root{
  --footer-h: 52px; /* retained for components using this var */
}

.custom-footer {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  color: #133880;
  padding: clamp(3rem, 6vw, 4.5rem) 2rem 2rem;
  font-size: 0.95rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand p {
  margin: 1rem 0 1.5rem;
  line-height: 1.6;
  color: rgba(19, 56, 128, 0.75);
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(19, 56, 128, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #133880;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: rgba(19, 56, 128, 0.16);
  transform: translateY(-2px);
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: rgba(19, 56, 128, 0.8);
  text-decoration: none;
}

.footer-col a:hover {
  color: #133880;
}

.footer-contact li {
  color: rgba(19, 56, 128, 0.8);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(19, 56, 128, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(19, 56, 128, 0.8);
  font-size: 0.85rem;
}

.custom-footer .footer-links {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
}

.custom-footer .footer-links .footer-link {
  color: #133880;
  background: transparent;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.85rem;
}
.custom-footer .footer-links a:hover,
.custom-footer .footer-links button:hover {
  color: #0045da;
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .custom-footer {
    padding: 2.5rem 1.5rem 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================
   MODAL (single scroll only)
========================================= */

/* Overlay should NOT scroll */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;                 /* top:0 right:0 bottom:0 left:0 */
  background-color: rgba(0,0,0,0.5);

  /* ✅ no overflow here */
  overflow: hidden;

  /* ✅ center modal-content nicely */
  padding: 48px 16px;
}

/* The ONLY scroll container is modal-content */
.modal-content {
  background-color: #fff;
  margin: 0 auto;
  padding: 44px 20px 20px 20px;
  border-radius: 10px;
  width: min(800px, 100%);
  max-height: calc(100vh - 96px); /* based on .modal padding */
  overflow-y: auto;               /* ✅ single scrollbar */
  position: relative;
}

/* Close button */
.modal-content .close {
  position: sticky;   /* stays visible while scrolling */
  top: 0;
  margin-left: auto;
  display: inline-block;

  float: right;       /* keeps it on the right */
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 8px 10px;
  background: #fff;
  border-radius: 8px;
  border: none;
}

.modal-content .close:hover {
  color: #ffcc00;
}

/* Optional: tighten modal on small screens */
@media (max-width: 640px){
  :root{ --footer-h: 52px; }
  .modal{ padding: 32px 12px; }
  .modal-content{ padding: 44px 16px 16px; }
}

/* =========================================
   BODY SCROLL LOCK (used by JS)
========================================= */
body.modal-open{
  overflow: hidden;
}

