/* ========================================
   CANADA SKILL ACADEMY — SHARED FOOTER
======================================== */

.csp-footer {
  width: 100%;
  background: #014BAC; /* Solid Secondary Brand Blue */
  color: #ffffff;
  font-family: "Inter", Arial, sans-serif;
  border-top: 4px solid #FD040A; /* Prominent Primary Red Top Border */
}

.csp-footer,
.csp-footer * {
  box-sizing: border-box;
}

.csp-footer-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.csp-footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding: 70px 0 50px;
}

.csp-footer-brand {
  min-width: 0;
}

.csp-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: 65px;
  margin-bottom: 20px;
  padding: 6px 12px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.csp-footer-logo img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.csp-footer-brand p {
  max-width: 380px;
  margin: 0;
  color: #f1f5f9;
  font-size: 14px;
  line-height: 1.8;
}

.csp-footer-column {
  min-width: 0;
}

.csp-footer-column h3 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.4;
}

.csp-footer-links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.csp-footer-links li {
  margin: 0;
  padding: 0;
}

.csp-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f1f5f9;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

.csp-footer-links a:hover,
.csp-footer-bottom a:hover {
  color: #ffffff;
}

.csp-footer-links a:hover {
  transform: translateX(4px);
}

.csp-footer .csp-footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  color: #FD040A; /* Solid Primary Red Icon */
  background: #ffffff;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  transition: transform .3s ease;
}

.csp-footer-links a:hover .csp-footer-icon {
  transform: scale(1.15);
}

.csp-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  font-size: 13px;
}

.csp-footer-bottom p {
  margin: 0;
}

.csp-footer-bottom a {
  color: #ffffff;
  background: #FD040A;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

.csp-footer-bottom a:hover {
  background: #d60308;
}

@media (max-width: 850px) {
  .csp-footer-container { width: calc(100% - 32px); }
  .csp-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; padding: 60px 0 45px; }
  .csp-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .csp-footer-container { width: calc(100% - 32px); }
  .csp-footer-main { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 35px; }
  .csp-footer-brand { grid-column: auto; }
  .csp-footer-logo { height: 55px; margin-bottom: 20px; }
  .csp-footer-column h3 { margin-bottom: 16px; }
  .csp-footer-links { gap: 12px; }
  .csp-footer-bottom { flex-direction: column; align-items: center; text-align: center; padding: 20px 0; }
}
