/* ============================================
   FOOTER COMPONENT — ENHANCED & ANIMATED
   ============================================ */

.footer {
  background: #2A3A8C;
  color: #FFFFFF;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* Subtle animated gradient overlay at top */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E48A24, #2A3A8C, #E48A24);
  background-size: 200% 100%;
  animation: shimmerBorder 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes shimmerBorder {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 3.5rem 2.5rem;
  }
}

@media (min-width: 1920px) {
  .footer-inner {
    padding: 4.5rem 3rem;
  }
}

@media (min-width: 2560px) {
  .footer-inner {
    padding: 5rem 4rem;
  }
}

/* Mobile-first compact footer */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

  .footer-brand-desc {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .footer-links,
  .footer-program-list {
    gap: 0.6rem;
  }

  .footer-title {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
  }
}

/* ── Brand Section ── */
.footer-brand {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo-image {
  width: 180px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.footer-brand-logo:hover .footer-logo-image {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .footer-logo-image {
    width: 152px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .footer-logo-image {
    width: 152px;
    height: 52px;
  }
}

@media (max-width: 360px) {
  .footer-logo-image {
    width: 146px;
    height: 46px;
  }
}

@media (min-width: 1920px) {
  .footer-logo-image {
    width: 184px;
    height: 84px;
  }
}

@media (min-width: 2560px) {
  .footer-logo-image {
    width: 196px;
    height: 96px;
  }
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-title {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1;
}

@media (min-width: 1920px) {
  .footer-brand-title {
    font-size: 13px;
  }
}

@media (min-width: 2560px) {
  .footer-brand-title {
    font-size: 15px;
  }
}

.footer-brand-subtitle {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
  margin-top: 2px;
}

@media (min-width: 1920px) {
  .footer-brand-subtitle {
    font-size: 11px;
  }
}

@media (min-width: 2560px) {
  .footer-brand-subtitle {
    font-size: 13px;
  }
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  max-width: 320px;
  transition: color 0.3s ease;
}

.footer-brand:hover .footer-brand-desc {
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 1920px) {
  .footer-brand-desc {
    font-size: 16px;
    max-width: 380px;
  }
}

@media (min-width: 2560px) {
  .footer-brand-desc {
    font-size: 18px;
    max-width: 440px;
  }
}

/* ── Social Icons ── */
.footer-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap; /* let icons wrap on the narrowest phones instead of overflowing */
}

@media (min-width: 1920px) {
  .footer-social {
    gap: 0.75rem;
  }
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Hover glow effect */
.footer-social-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(228, 138, 36, 0.2), transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s ease;
}

.footer-social-link:hover::after {
  opacity: 1;
  transform: scale(1.5);
}

@media (min-width: 1920px) {
  .footer-social-link {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 2560px) {
  .footer-social-link {
    width: 56px;
    height: 56px;
  }
}

.footer-social-link svg {
  display: block;
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* Real brand-logo image files (YouTube, TikTok, Instagram) live in
   assets/icons/. The PNG/AVIF sources include transparent padding
   around the artwork, which used to show as a white halo inside the
   dark footer. Two fixes layered together:

   1. The link itself gets a white background, so the circular button
      reads as a clean white disc against the dark footer.
   2. The image is masked into the same circle (border-radius: 50%)
      and `object-fit: cover` crops any inner padding, so the logo
      fills the circle edge-to-edge — no white space outside the
      artwork, and no awkward padding inside it. */
.footer-social-link img.footer-social-img {
  display: block;
  width: 37px;
  height: 37px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  object-fit: cover;
  border-radius: 50%;
  background: #ffffff;
}

.footer-social-link img.footer-social-img1 {
  display: block;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  object-fit: cover;
  border-radius: 50%;
  background: #ffffff;
}

/* The image-bearing links get a solid white background so the
   circular crop has no transparent edges visible against the dark
   footer. The SVGs (Facebook, WhatsApp) keep the transparent bg +
   outline look. We use both `:has()` (modern browsers) AND an
   explicit modifier class (`.footer-social-link--img`) as a fallback
   so the styling works everywhere. */
.footer-social-link:has(img.footer-social-img),
.footer-social-link--img {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-social-link:has(img.footer-social-img),
.footer-social-link--img1 {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
@media (min-width: 1920px) {
  .footer-social-link svg {
    width: 26px;
    height: 26px;
  }
  .footer-social-link img.footer-social-img {
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 2560px) {
  .footer-social-link svg {
    width: 40px;
    height: 40px;
  }
  .footer-social-link img.footer-social-img {
    width: 50px;
    height: 50px;
  }
}

.footer-social-link:hover {
  color: #E48A24;
  border-color: #E48A24;
  background: rgba(228, 138, 36, 0.08);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(228, 138, 36, 0.25);
}

/* Image-bearing links keep their white circular background even on
   hover — the artwork stays clearly visible inside the orange ring
   instead of the white circle disappearing into the orange tint. */
.footer-social-link:has(img.footer-social-img):hover,
.footer-social-link--img:hover {
  background: #ffffff;
  border-color: #E48A24;
}

.footer-social-link:hover svg,
.footer-social-link:hover img.footer-social-img {
  transform: scale(1.1);
}

/* ── Navigation Section ── */
.footer-nav {
  grid-column: span 1;
}

.footer-title {
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E48A24;
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

/* Decorative underline for titles */
.footer-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #E48A24;
  transition: width 0.4s ease;
}

.footer-nav:hover .footer-title::after,
.footer-programs:hover .footer-title::after,
.footer-contact:hover .footer-title::after {
  width: 50px;
}

@media (min-width: 1920px) {
  .footer-title {
    font-size: 13px;
    margin-bottom: 1.75rem;
  }
}

@media (min-width: 2560px) {
  .footer-title {
    font-size: 15px;
    margin-bottom: 2rem;
  }
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  list-style: none;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  padding: 0.2rem 0;
}

/* Underline slide effect */
.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #E48A24;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-link:hover::after {
  width: 100%;
}

@media (min-width: 1920px) {
  .footer-link {
    font-size: 16px;
  }
}

@media (min-width: 2560px) {
  .footer-link {
    font-size: 18px;
  }
}

.footer-link:hover {
  color: #E48A24;
  transform: translateX(4px);
}

.footer-link-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s ease;
  font-size: 10px;
  color: #E48A24;
}

.footer-link:hover .footer-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Programs Section ── */
.footer-programs {
  grid-column: span 1;
}

.footer-program-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-program-list li {
  list-style: none;
}

.footer-program-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0.2rem 0;
  display: inline-block;
  position: relative;
}

/* Underline slide effect */
.footer-program-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #E48A24;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-program-link:hover::after {
  width: 100%;
}

@media (min-width: 1920px) {
  .footer-program-link {
    font-size: 16px;
  }
}

@media (min-width: 2560px) {
  .footer-program-link {
    font-size: 18px;
  }
}

.footer-program-link:hover {
  color: #E48A24;
  transform: translateX(4px);
}

/* ── Contact Section ── */
.footer-contact {
  grid-column: span 1;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.footer-contact-item:hover {
  transform: translateX(4px);
}

.footer-contact-icon {
  color: #E48A24;
  margin-top: 2px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
  transform: scale(1.15);
}

.footer-contact-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

@media (min-width: 1920px) {
  .footer-contact-text {
    font-size: 16px;
  }
}

@media (min-width: 2560px) {
  .footer-contact-text {
    font-size: 18px;
  }
}

.footer-location-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-location-link:hover {
  color: #E48A24;
}

/* ── CTA Button ── */
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  background: #E48A24;
  color: #FFFFFF;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 1rem;
  border: 1px solid #E48A24;
  text-decoration: none;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

/* Button glow pulse on hover */
.footer-cta::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  background: linear-gradient(135deg, #E48A24, #2A3A8C, #E48A24);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.footer-cta:hover::before {
  opacity: 1;
}

.footer-cta:hover {
  background: #E48A24;
  color: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(228, 138, 36, 0.4);
}

.footer-cta:active {
  transform: scale(0.97);
}

@media (min-width: 1920px) {
  .footer-cta {
    font-size: 13px;
    padding: 0.95rem 1.85rem;
  }
}

@media (min-width: 2560px) {
  .footer-cta {
    font-size: 15px;
    padding: 1.1rem 2.25rem;
  }
}

.footer-cta svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.footer-cta:hover svg {
  transform: translateX(4px) rotate(-6deg);
}

@media (min-width: 1920px) {
  .footer-cta svg {
    width: 14px;
    height: 14px;
  }
}

/* ── Footer Bottom ── */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

/* Subtle separator glow */
.footer-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #E48A24, transparent);
  opacity: 0.3;
}

.footer-bottom-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom-inner {
    flex-direction: row;
  }
}

@media (min-width: 1920px) {
  .footer-bottom-inner {
    padding: 2rem 3rem;
  }
}

@media (min-width: 2560px) {
  .footer-bottom-inner {
    padding: 2.5rem 4rem;
  }
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.footer-copyright:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-location {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.footer-location:hover {
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 1920px) {
  .footer-copyright,
  .footer-location {
    font-size: 14px;
  }
}

@media (min-width: 2560px) {
  .footer-copyright,
  .footer-location {
    font-size: 16px;
  }
}

/* ── Responsive refinements ── */
@media (max-width: 639px) {
  .footer-grid {
    gap: 1.5rem;
  }

  .footer-brand-desc {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .footer-title {
    font-size: 14px;
  }

  .footer-link,
  .footer-program-link,
  .footer-contact-text {
    font-size: 13px;
  }

  .footer-social-link {
    width: 48px;
    height: 48px;
  }

  .footer-social-link svg {
    width: 22px;
    height: 22px;
  }

  .footer-social-link img.footer-social-img {
    width: 42px;
    height: 42px;
  }

  .footer-cta {
    font-size: 10px;
    padding: 0.6rem 1.2rem;
  }

  .footer-bottom-inner {
    padding: 1rem 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 380px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-logo-image {
    width: 152px;
    height: 52px;
  }

  .footer-brand-desc {
    font-size: 13px;
  }

  .footer-title {
    font-size: 13px;
  }

  .footer-link,
  .footer-program-link,
  .footer-contact-text {
    font-size: 12px;
  }

  /* Brand logos stay prominent on the smallest screens — 5 icons
     need to fit comfortably inside the grid column, so we trim them
     down a touch here and let the row wrap if it still overflows. */
  .footer-social {
    gap: 0.4rem;
  }

  .footer-social-link {
    width: 44px;
    height: 44px;
  }

  .footer-social-link svg {
    width: 20px;
    height: 20px;
  }

  .footer-social-link img.footer-social-img {
    width: 40px;
    height: 40px;
  }
}

  .footer-social-link img.footer-social-img1 {
    width: 30px;
    height: 30px;
  }
