:root {
  --primary-color: #0d2c4f;
  --secondary-color: #f9a826;
  --dark-color: #1a1a1a;
  --light-color: #ffffff;
  --text-color: #333;
  --text-light: #f4f4f4;
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Roboto", sans-serif;
}

/* --- Base Setup --- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

/* --- Footer Styles --- */
.site-footer {
  background-color: #0a192f;
  color: var(--text-light);
  font-family: var(--font-secondary);
  
  /* RESPONSIVE WIDTH FIXES */
  width: 95%; /* Takes up 95% of screen on mobile */
  max-width: 1380px; /* Stops growing at your desired size */
  margin: 0 auto 20px auto; /* Centers the footer and adds bottom spacing */
  border-radius: 20px;
  
  padding-top: 60px;
  padding-bottom: 20px;
  overflow: hidden; /* Ensures child elements don't spill out of rounded corners */
}

/* Container to handle inner content width */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Prevents text touching edges on mobile */
}

.footer-grid {
  display: grid;
  /* Auto-fit will create as many columns as fit, but wrap if smaller than 250px */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

/* --- Typography & Headings --- */
.footer-col h4 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: #ccd6f6;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-col.footer-about p {
  color: #8892b0;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* --- Logo --- */
.footer-logo {
  max-width: 120px;
  margin-bottom: 15px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  background-color: var(--light-color);
  padding: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Links Lists --- */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: #8892b0;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block; /* Helps with padding transition */
}

.footer-col ul a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

/* --- Contact List Specifics --- */
.footer-col .contact-list li {
  display: flex;
  align-items: flex-start; /* Aligns icon to top of text if text wraps */
  color: #8892b0;
  margin-bottom: 15px;
}

.footer-col .contact-list i {
  margin-right: 12px;
  color: var(--secondary-color);
  width: 20px; /* Fixed width ensures text aligns perfectly */
  margin-top: 5px; /* Slight push down to align with text */
  text-align: center;
}

.footer-col .contact-list a {
  color: #8892b0;
  word-break: break-all; /* Prevents long emails/numbers from breaking layout */
}

.footer-col .contact-list a:hover {
  padding-left: 0; /* Disable padding hover effect for contact links */
  color: var(--secondary-color);
}

/* --- Social Links --- */
.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-color);
  margin-right: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* --- Footer Bottom --- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #8892b0;
}

.footer-bottom p {
  margin: 5px 0;
}

/* --- MOBILE & TABLET RESPONSIVENESS --- */
@media (max-width: 768px) {
  .site-footer {
     width: 100%; /* Full width on mobile */
     border-radius: 0; /* Remove rounded corners on small screens if desired, or keep them */
     padding-top: 40px;
     margin-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr; /* Stack everything vertically */
    gap: 30px;
  }

  .footer-col {
    text-align: center;
    padding: 0 10px;
  }

  /* Center the underline for headings */
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Center the Contact List while keeping icons aligned */
  .footer-col .contact-list {
    display: inline-block; /* Makes the list distinct size of content */
    text-align: left; /* Aligns text left INSIDE the centered block */
    max-width: 100%;
  }
  
  .footer-col .contact-list li {
      justify-content: flex-start;
  }
  
  .social-links {
      margin-top: 10px;
  }
}