/* ══════════════════════════════════════════════════════════════
   SITE FOOTER — LIGHT MODE SECTION
   preCICE brand colors:
     Blue:    #0a76bb  /  #1a3a6e
     Orange:  #e87722  /  #c45a10
     Light bg: #f5f1ed
══════════════════════════════════════════════════════════════ */

.site-footer {
  font-family: 'Figtree', sans-serif;
  margin-top: 0;
  padding-bottom: 0;
}

/* ══════════════════════════════
   DIV 1 — Logo + bars
══════════════════════════════ */
.footer-top {
  position: relative;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    to right,
    #dce3f9 0%,
    #e8e2f5 25%,
    #f4ece8 50%,
    #f8e8d8 75%,
    #f9dcc0 100%
  );
}

/* ── Vertical color bars ── */
.footer-bars {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  z-index: 0;
}

.bar_short { flex: 1; height: 100%; }
.bar_long  { flex: 3; height: 100%; }

.bar-1  { background: linear-gradient(to bottom, #6a7fd4 50%, transparent 100%); opacity: 0.30; }
.bar-2  { background: linear-gradient(to bottom, #7b8ee0 45%, transparent 100%); opacity: 0.25; }
.bar-3  { background: linear-gradient(to bottom, #5566cc 40%, transparent 100%); opacity: 0.28; }
.bar-4  { background: linear-gradient(to bottom, #6677d4 45%, transparent 100%); opacity: 0.22; }
.bar-5  { background: transparent; }
.bar-6  { background: linear-gradient(to bottom, #c47a5a 40%, transparent 100%); opacity: 0.22; }
.bar-7  { background: linear-gradient(to bottom, #d4844a 38%, transparent 100%); opacity: 0.25; }
.bar-8  { background: linear-gradient(to bottom, #e09050 35%, transparent 100%); opacity: 0.28; }
.bar-9  { background: linear-gradient(to bottom, #d48848 38%, transparent 100%); opacity: 0.25; }
.bar-10 { background: linear-gradient(to bottom, #cc7e44 40%, transparent 100%); opacity: 0.22; }
.bar-11 { background: linear-gradient(to bottom, #8899dd 45%, transparent 100%); opacity: 0.20; }
.bar-12 { background: linear-gradient(to bottom, #7788d0 40%, transparent 100%); opacity: 0.18; }
.bar-13 { background: transparent; }
.bar-14 { background: linear-gradient(to bottom, #c47e60 40%, transparent 100%); opacity: 0.18; }
.bar-15 { background: linear-gradient(to bottom, #d48858 38%, transparent 100%); opacity: 0.20; }
.bar-16 { background: linear-gradient(to bottom, #e09654 35%, transparent 100%); opacity: 0.22; }

/* ── Logo + button centered ── */
.footer-top-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  gap: 20px;
}

.footer-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 18px 40px;
  box-sizing: border-box;
  margin: 0 auto;
}

.footer-logo-box img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-logo-box span {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

/* ── Newsletter button ── */
.footer-newsletter-btn {
  display: inline-block;
  background: #e87722;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 32px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s ease;
}
.footer-newsletter-btn:hover  { background: #c45a10; }
.footer-newsletter-btn::after { content: none !important; }

/* ══════════════════════════════
   DIV 2 — Links + legal
══════════════════════════════ */
.footer-bottom-section {
  background: linear-gradient(
    to right,
    #dce3f9 0%,
    #e8e2f5 25%,
    #f4ece8 50%,
    #f8e8d8 75%,
    #f9dcc0 100%
  );
  padding: 32px 32px 0;
  text-align: center;
  border-top: 1.5px solid rgba(255, 255, 255, 0.7);
}

.footer-links-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-links-col ul { list-style: none; padding: 0; margin: 0; }
.footer-links-col ul li { margin: 7px 0; }

.footer-links-heading {
  color: #1a3a6e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.footer-links-col ul li a {
  color: #1a1a2e !important;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}
.footer-links-col ul li a:hover  { color: #0a76bb !important; }
.footer-links-col ul li a::after { content: none !important; }

/* ── Legal row ── */
.footer-legal {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: transparent;
}
.footer-legal img { opacity: 0.7; height: 36px; width: auto; }
.footer-legal p   { color: #2a2a3e; font-size: 0.8rem; margin: 0; line-height: 1.5; }

/* ══════════════════════════════
   RESPONSIVE — light
══════════════════════════════ */
@media (max-width: 768px) {
  .footer-top { height: auto; padding: 40px 24px; }
  .footer-logo-box span { font-size: 1.6rem; }
  .footer-newsletter-btn { font-size: 1rem; padding: 12px 32px; }
  .footer-links-row { gap: 60px; }
}

@media (max-width: 576px) {
  .footer-top { height: auto; padding: 36px 20px; }
  .footer-logo-box { padding: 14px 24px; }
  .footer-logo-box img { height: 32px; }
  .footer-logo-box span { font-size: 1.35rem; }
  .footer-newsletter-btn { font-size: 0.95rem; padding: 11px 28px; }
  .footer-links-row { flex-direction: column; gap: 36px; }
  .footer-links-heading { font-size: 0.78rem; }
  .bar_short { flex: 1; }
  .bar_long  { flex: 2; }
}


/* ══════════════════════════════════════════════════════════════
   SITE FOOTER — DARK MODE SECTION
   preCICE brand colors:
     Blue:    #0a76bb  /  #1a3a6e
     Orange:  #e87722  /  #c45a10
     Dark bg: #0d0d1a
══════════════════════════════════════════════════════════════ */

.site-footer-dark {
  font-family: 'Figtree', sans-serif;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
}

.footer-top-dark {
  position: relative;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d1a;
}

.footer-bars-dark {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  z-index: 0;
}

.footer-bars-dark .bar_short { flex: 1; height: 100%; }
.footer-bars-dark .bar_long  { flex: 3; height: 100%; }

/* Dark bars — all opacities reduced by ~60% from original */
.bar-d1  { background: linear-gradient(to bottom, #1a2a5e 40%, transparent 100%); opacity: 0.28; }
.bar-d2  { background: linear-gradient(to bottom, #1a3a7e 40%, transparent 100%); opacity: 0.24; }
.bar-d3  { background: linear-gradient(to bottom, #0a76bb 30%, transparent 100%); opacity: 0.22; }
.bar-d4  { background: linear-gradient(to bottom, #1a2a5e 40%, transparent 100%); opacity: 0.18; }
.bar-d5  { background: transparent; }
.bar-d6  { background: linear-gradient(to bottom, #8a3a08 30%, transparent 100%); opacity: 0.18; }
.bar-d7  { background: linear-gradient(to bottom, #c45a10 30%, transparent 100%); opacity: 0.20; }
.bar-d8  { background: linear-gradient(to bottom, #e87722 25%, transparent 100%); opacity: 0.18; }
.bar-d9  { background: linear-gradient(to bottom, #c45a10 30%, transparent 100%); opacity: 0.16; }
.bar-d10 { background: linear-gradient(to bottom, #8a3a08 35%, transparent 100%); opacity: 0.14; }
.bar-d11 { background: linear-gradient(to bottom, #1a2a5e 40%, transparent 100%); opacity: 0.12; }
.bar-d12 { background: linear-gradient(to bottom, #0a76bb 30%, transparent 100%); opacity: 0.10; }
.bar-d13 { background: transparent; }
.bar-d14 { background: linear-gradient(to bottom, #8a3a08 30%, transparent 100%); opacity: 0.10; }
.bar-d15 { background: linear-gradient(to bottom, #c45a10 25%, transparent 100%); opacity: 0.12; }
.bar-d16 { background: linear-gradient(to bottom, #e87722 20%, transparent 100%); opacity: 0.14; }

.footer-top-content-dark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  gap: 20px;
}

.footer-logo-box-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 28px;
  box-sizing: border-box;
  margin: 0 auto;
}

.footer-logo-box-dark img { height: 32px; width: auto; display: block; }

.footer-logo-box-dark span {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.footer-newsletter-btn-dark {
  display: inline-block;
  background: #e87722;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 32px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s ease;
}
.footer-newsletter-btn-dark:hover  { background: #c45a10; }
.footer-newsletter-btn-dark::after { content: none !important; }

.footer-bottom-section-dark {
  background: linear-gradient(
    to right,
    rgba(26, 42, 94, 0.35) 0%,
    rgba(26, 58, 126, 0.25) 25%,
    rgba(13, 13, 26, 0.1) 50%,
    rgba(138, 58, 8, 0.25) 75%,
    rgba(196, 90, 16, 0.35) 100%
  ), #0d0d1a;
  padding: 32px 32px 0;
  text-align: center;
  border-top: 1.5px solid rgba(255, 255, 255, 0.08);
}

.footer-links-row-dark {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-links-col-dark ul { list-style: none; padding: 0; margin: 0; }
.footer-links-col-dark ul li { margin: 7px 0; }

.footer-links-heading-dark {
  color: #0a76bb;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.footer-links-col-dark ul li a {
  color: #cccccc !important;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links-col-dark ul li a:hover  { color: #ffffff !important; }
.footer-links-col-dark ul li a::after { content: none !important; }

.footer-legal-dark {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: transparent;
}
.footer-legal-dark img { opacity: 0.5; height: 31px; width: auto; }
.footer-legal-dark p   { color: #555555; font-size: 0.8rem; margin: 0; }

/* ══════════════════════════════
   RESPONSIVE — dark
══════════════════════════════ */
@media (max-width: 768px) {
  .footer-top-dark { height: auto; padding: 40px 24px; }
  .footer-links-row-dark { gap: 60px; }
}

@media (max-width: 576px) {
  .footer-top-dark { height: auto; padding: 36px 20px; }
  .footer-logo-box-dark { padding: 10px 20px; }
  .footer-links-row-dark { flex-direction: column; gap: 36px; }
  .footer-bars-dark .bar_short { flex: 1; }
  .footer-bars-dark .bar_long  { flex: 2; }
}


/* ══════════════════════════════════════════════════════════════
   VISIBILITY SWITCHING
   Reads data-bs-theme on <body> or <html>
══════════════════════════════════════════════════════════════ */

/* Default: show light, hide dark */
body .footer-light { display: block; }
body .footer-dark  { display: none;  }

/* Dark mode active */
body[data-bs-theme="dark"] .footer-light,
html[data-bs-theme="dark"] .footer-light { display: none;  }

body[data-bs-theme="dark"] .footer-dark,
html[data-bs-theme="dark"] .footer-dark  { display: block; }

/* Kill Bootstrap's default footer padding */
footer.site-footer,
footer.site-footer-dark {
  padding-top: 0 !important;
}

.site-footer.footer-light,
.site-footer-dark.footer-dark {
  padding-top: 0 !important;
  margin-top: 0 !important;
}