/* ==========================================================
   Exam Village — four-column GeneratePress footer
   Palette matched to the supplied homepage reference.
   Uses native GeneratePress footer widgets (footer-1 to footer-4)
   and the native site-info/copyright bar.
========================================================== */
:root {
  --ev-footer-bg: #032b43;
  --ev-footer-bg-deep: #022238;
  --ev-footer-teal: #08c9c8;
  --ev-footer-text: #f4f8fc;
  --ev-footer-muted: #d3e0eb;
  --ev-footer-line: rgba(8, 201, 200, .42);
}

/* Full-bleed navy background */
.site-footer[data-ev-footer-design="four-column"],
.site-footer[data-ev-footer-design="four-column"] .footer-widgets,
.site-footer[data-ev-footer-design="four-column"] .site-info {
  background: var(--ev-footer-bg) !important;
  color: var(--ev-footer-text);
}
.site-footer[data-ev-footer-design="four-column"] a {
  color: var(--ev-footer-text);
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}
.site-footer[data-ev-footer-design="four-column"] a:hover,
.site-footer[data-ev-footer-design="four-column"] a:focus {
  color: var(--ev-footer-teal);
}

/* Main four-column area */
.site-footer[data-ev-footer-design="four-column"] .footer-widgets {
  padding: 46px 0 38px !important;
  border-top: 3px solid var(--ev-footer-teal);
}
.site-footer[data-ev-footer-design="four-column"] .footer-widgets .inside-footer-widgets {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  width: min(100% - 48px, 1360px) !important;
  max-width: 1360px !important;
  margin-inline: auto !important;
  align-items: stretch;
}
.site-footer[data-ev-footer-design="four-column"] .inside-footer-widgets > .footer-widget {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 4px 30px 0;
  box-sizing: border-box;
  border-left: 1px solid var(--ev-footer-line);
}
.site-footer[data-ev-footer-design="four-column"] .inside-footer-widgets > .footer-widget:first-child {
  padding-left: 0;
  border-left: 0;
  padding-right: 38px;
}
.site-footer[data-ev-footer-design="four-column"] .inside-footer-widgets > .footer-widget:last-child {
  padding-right: 0;
}

/* Widget headings and teal underline */
.site-footer[data-ev-footer-design="four-column"] .widget-title,
.site-footer[data-ev-footer-design="four-column"] .footer-widgets h2,
.site-footer[data-ev-footer-design="four-column"] .footer-widgets h3 {
  position: relative;
  color: #fff !important;
  font-family: 'Sora', 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 25px;
  padding: 0 0 15px;
}
.site-footer[data-ev-footer-design="four-column"] .widget-title::after,
.site-footer[data-ev-footer-design="four-column"] .footer-widgets h2::after,
.site-footer[data-ev-footer-design="four-column"] .footer-widgets h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58px;
  height: 5px;
  border-radius: 99px;
  background: var(--ev-footer-teal);
}

/* Base widget text and spacing */
.site-footer[data-ev-footer-design="four-column"] .footer-widgets .widget {
  margin-bottom: 0;
  color: var(--ev-footer-muted);
  font-size: 14px;
  line-height: 1.7;
}
.site-footer[data-ev-footer-design="four-column"] .footer-widgets p {
  color: var(--ev-footer-muted);
  margin: 0 0 16px;
}
.site-footer[data-ev-footer-design="four-column"] .footer-widgets ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer[data-ev-footer-design="four-column"] .footer-widgets li {
  margin: 0;
  padding: 0;
}
.site-footer[data-ev-footer-design="four-column"] .footer-widgets li + li {
  margin-top: 9px;
}
.site-footer[data-ev-footer-design="four-column"] .footer-widgets li a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.55;
}
.site-footer[data-ev-footer-design="four-column"] .footer-widgets li a::before {
  content: '›';
  flex: 0 0 auto;
  color: var(--ev-footer-teal);
  font-size: 23px;
  font-weight: 700;
  line-height: .8;
}

/* First column: logo/title, description and social links */
.site-footer[data-ev-footer-design="four-column"] .footer-widget-1 img,
.site-footer[data-ev-footer-design="four-column"] .footer-widget-1 .custom-logo {
  max-width: 100%;
  height: auto;
}
.site-footer[data-ev-footer-design="four-column"] .footer-widget-1 .widget-title {
  font-size: 0;
  margin-bottom: 15px;
}
.site-footer[data-ev-footer-design="four-column"] .footer-widget-1 .widget-title::after {
  display: none;
}
.site-footer[data-ev-footer-design="four-column"] .footer-widget-1 .textwidget,
.site-footer[data-ev-footer-design="four-column"] .footer-widget-1 .wp-block-group,
.site-footer[data-ev-footer-design="four-column"] .footer-widget-1 .wp-block-image {
  max-width: 100%;
}
.site-footer[data-ev-footer-design="four-column"] .footer-widget-1 .social-icons,
.site-footer[data-ev-footer-design="four-column"] .footer-widget-1 .ev-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.site-footer[data-ev-footer-design="four-column"] .footer-widget-1 .social-icons a,
.site-footer[data-ev-footer-design="four-column"] .footer-widget-1 .ev-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* Bottom copyright bar */
.site-footer[data-ev-footer-design="four-column"] .site-info {
  border-top: 1px solid var(--ev-footer-line);
  background: var(--ev-footer-bg-deep) !important;
  padding: 17px 0 !important;
  font-size: 13px;
  color: var(--ev-footer-muted);
}
.site-footer[data-ev-footer-design="four-column"] .inside-site-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 48px, 1360px) !important;
  max-width: 1360px !important;
  margin-inline: auto !important;
  padding: 0 !important;
}
.site-footer[data-ev-footer-design="four-column"] .copyright-bar {
  color: var(--ev-footer-muted);
}
.site-footer[data-ev-footer-design="four-column"] .copyright-bar strong,
.site-footer[data-ev-footer-design="four-column"] .copyright-bar a {
  color: var(--ev-footer-teal);
}

/* Tablet: two columns, retaining separators */

/* Automatically rendered site logo in the first footer widget area. */
.site-footer[data-ev-footer-design="four-column"] .ev-footer-brand-logo {
  display: block;
  margin: 0 0 22px;
  max-width: 100%;
}
.site-footer[data-ev-footer-design="four-column"] .ev-footer-brand-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  line-height: 0;
}
.site-footer[data-ev-footer-design="four-column"] .ev-footer-brand-logo img.custom-logo {
  display: block;
  width: auto;
  max-width: min(100%, 290px);
  max-height: 86px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.site-footer[data-ev-footer-design="four-column"] .ev-footer-brand-tagline {
  margin: 8px 0 0;
  color: var(--ev-footer-muted);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .01em;
}
@media (max-width: 768px) {
  .site-footer[data-ev-footer-design="four-column"] .ev-footer-brand-logo img.custom-logo {
    max-width: 240px;
    max-height: 72px;
  }
}

@media (max-width: 900px) {
  .site-footer[data-ev-footer-design="four-column"] .footer-widgets .inside-footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px !important;
    width: min(100% - 40px, 720px) !important;
  }
  .site-footer[data-ev-footer-design="four-column"] .inside-footer-widgets > .footer-widget {
    padding: 0 22px !important;
  }
  .site-footer[data-ev-footer-design="four-column"] .inside-footer-widgets > .footer-widget:nth-child(odd) {
    border-left: 0;
    padding-left: 0 !important;
  }
  .site-footer[data-ev-footer-design="four-column"] .inside-footer-widgets > .footer-widget:nth-child(even) {
    border-left: 1px solid var(--ev-footer-line);
  }
}

/* Mobile: one readable column, no vertical dividers */
@media (max-width: 600px) {
  .site-footer[data-ev-footer-design="four-column"] .footer-widgets {
    padding: 32px 0 28px !important;
  }
  .site-footer[data-ev-footer-design="four-column"] .footer-widgets .inside-footer-widgets {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px !important;
    width: calc(100% - 36px) !important;
  }
  .site-footer[data-ev-footer-design="four-column"] .inside-footer-widgets > .footer-widget,
  .site-footer[data-ev-footer-design="four-column"] .inside-footer-widgets > .footer-widget:first-child,
  .site-footer[data-ev-footer-design="four-column"] .inside-footer-widgets > .footer-widget:last-child {
    border-left: 0 !important;
    border-top: 1px solid var(--ev-footer-line);
    padding: 24px 0 0 !important;
  }
  .site-footer[data-ev-footer-design="four-column"] .inside-footer-widgets > .footer-widget:first-child {
    border-top: 0;
    padding-top: 0 !important;
  }
  .site-footer[data-ev-footer-design="four-column"] .widget-title,
  .site-footer[data-ev-footer-design="four-column"] .footer-widgets h2,
  .site-footer[data-ev-footer-design="four-column"] .footer-widgets h3 {
    font-size: 18px;
    margin-bottom: 18px;
  }
  .site-footer[data-ev-footer-design="four-column"] .inside-site-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: calc(100% - 36px) !important;
  }
}
