/* ===== FOOTER ===== */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-white);
  padding: var(--spacing-xl) 0 var(--spacing-sm);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
}

/* ----- Footer Grid (4 columns) ----- */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

/* ----- Column 1: Branding (logo on top, text below, centered) ----- */
.footer-branding {
  width: 100%;
}

.footer-branding-row {
  display: flex;  
  justify-content: space-between;    /* stacks logo on top, text below */
  align-items: center;         /* centers both horizontally */
  gap: 20px;      /* small gap between logo and text */
  width: 100%;
}

.footer-branding-colunm{

  display: flex;
  flex-direction: column;
  

}

.footer-branding-row .footer-logo {
  max-height: 200px;
  width: auto;
  display: block;
}

.footer-description {
  text-align: center;
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* ----- Columns 2 & 3: Quick Links & Resources (centered) ----- */
.footer-grid > div:nth-child(2),
.footer-grid > div:nth-child(3) {
  text-align: center;
}

.footer-grid > div:nth-child(2) .footer-heading::after,
.footer-grid > div:nth-child(3) .footer-heading::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ----- Column 4: Contact (centered text, logo on right) ----- */
.cont-zee {
  display: flex;
  justify-content: space-between;  /* pushes content to left, logo to right */
  align-items: center;             /* vertically centers everything */
  width: 100%;
  gap: var(--spacing-md);
}

.contact-left {
  display: flex;
  flex-direction: column;
  align-items: center;             /* centers heading + links horizontally */
  flex: 1;                         /* takes available space */
  text-align: center;              /* centers the text */
}

.contact-left .footer-heading {
  text-align: center;              /* centers the heading */
}

.contact-left .footer-heading::after {
  left: 50%;                       /* centers the underline */
  transform: translateX(-50%);
}

.contact-left .footer-links {
  text-align: center;              /* centers the links */
}

.cont-zee .footer-logo {
  max-height: 60px;
  width: auto;
  flex-shrink: 0;                  /* prevents logo from shrinking */
}

/* ----- Headings & links (shared) ----- */
.footer-heading {
  color: white;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

/* ----- Social icons ----- */
.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
  color: white;
  font-size: var(--font-size-xl);
  transition: all var(--transition-fast);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* ----- Bottom bar ----- */
.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-size-sm);
}

/* ===== RESPONSIVE ===== */

/* Tablets: 2 columns */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3),
  .footer-grid > div:nth-child(4) {
    text-align: center;
  }

  .footer-grid > div:nth-child(2) .footer-heading::after,
  .footer-grid > div:nth-child(3) .footer-heading::after,
  .footer-grid > div:nth-child(4) .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-left {
    align-items: center;
  }
}

/* Mobile: single column, everything centered */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Branding: keep logo on top, text below */
  .footer-branding-row {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .footer-branding-row .footer-logo {
    max-height: 60px;
  }

  .footer-description {
    text-align: center;
  }

  /* All columns centered */
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3),
  .footer-grid > div:nth-child(4) {
    text-align: center;
  }

  .footer-heading::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  /* Contact: keep logo on right, but stack if needed */
  .cont-zee {
    flex-wrap: wrap;
    justify-content: center;
  }

 /* ----- Column 1: IRIC Logo (larger) ----- */


/* ----- Column 4: AiT Logo (larger) ----- */
.cont-zee .footer-logo {
  max-height: 80px;           /* was 55px – increased */
  max-width: 180px;           /* was 120px – increased */
  flex-shrink: 0;
  width: auto;
}

  .contact-left {
    align-items: center;
    flex: 1 1 100%;
  }

  .cont-zee .footer-logo {
    max-height: 50px;
    margin-top: var(--spacing-sm);
  }

  .footer-links a:hover {
    transform: translateX(0) scale(1.05);
  }

  .footer-social {
    flex-wrap: wrap;
  }
}


.footer-bottom .developer-credit {
    margin-top: 8px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-bottom .developer-credit a {
    color: #e67e22;
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom .developer-credit a:hover {
    text-decoration: underline;
    opacity: 1;
}