/* =========================
   GLOBAL BASE (SAFE)
   ========================= */
* { box-sizing: border-box; }
body { margin: 0; }

/* Do NOT use global header/section rules anymore because
   your index.html now has its own modern layout styles inline.
   We scope old styles to .legacy-page so other older pages still work.
*/

/* =========================
   LEGACY PAGES ONLY
   Add class="legacy-page" on <body> for older pages that need these styles
   ========================= */
.legacy-page {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #ffffff;
  color: #222;
}

.legacy-page header {
  background: #003366;
  color: white;
  padding: 2rem;
  text-align: center;
}

.legacy-page h1,
.legacy-page h2 {
  margin: 0.5rem 0;
}

.legacy-page section {
  padding: 2rem;
}

.legacy-page .company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.legacy-page .company-grid a {
  display: block;
  background: #f4f4f4;
  padding: 1rem;
  text-decoration: none;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: 0.3s;
}

.legacy-page .company-grid a:hover {
  background: #e0e0e0;
}

/* =========================
   FOOTER (APPLIES TO ALL PAGES)
   Your index.html also has footer styling inline,
   but this is fine because it mostly targets footer layout.
   ========================= */
footer {
  background: linear-gradient(135deg, #001f3f, #003366);
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 4rem 1rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
}

.footer-left {
  flex: 1 1 250px;
}

.footer-left h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  color: #00aced;
}

.footer-left p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #ccc;
}

.footer-columns {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  flex: 2 1 500px;
}

.footer-columns div {
  min-width: 150px;
}

.footer-columns h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #ffffff;
  border-bottom: 2px solid #00aced;
  padding-bottom: 5px;
  width: fit-content;
}

.footer-columns p {
  margin: 0.4rem 0;
}

.footer-columns a {
  color: #ccc;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-columns a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.social-icons a {
  margin-right: 15px;
  font-size: 1.2rem;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #00aced;
}

footer > p {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #aaa;
  letter-spacing: 0.5px;
}

