.footer-section {
  background-color: var(--bg-light);
  border-top: 0.053rem solid var(--border-gray); /* 1px / 19 */
  padding-top: 6.316rem; /* 120px / 19 */
  position: relative;
  width: 100%;
}

.footer-container {
  width: 100%;
  max-width: 101.263rem; /* 1924px / 19 */
  margin: 0 auto;
  padding: 0 7.895rem; /* 150px / 19 */
}

@media (max-width: 1600px) {
  .footer-container {
    padding: 0 4rem;
  }
}

@media (max-width: 1200px) {
  .footer-container {
    padding: 0 2rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.5fr;
  gap: 2.105rem; /* 40px / 19 */
  padding-bottom: 5.263rem; /* 100px / 19 */
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-family: var(--font-secondary); /* Poppins */
  font-weight: 700;
  font-size: 0.842rem; /* 16px / 19 */
  color: var(--neutral-dark); /* #191d23 */
  text-transform: capitalize;
  margin-bottom: 1.579rem; /* 30px / 19 */
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.947rem; /* 18px / 19 */
}

.footer-links a {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 0.842rem; /* 16px / 19 */
  color: var(--base-dark);
}

.footer-links a:hover {
  color: var(--primary-blue);
  padding-left: 0.263rem; /* 5px / 19 */
  font-weight: 400;
}

/* Branding & Address styling */
.footer-branding-col {
  padding-left: 2.37rem; /* 20px / 19 */
  border-left: 0.123rem solid #000;
}

.footer-logo {
  width: 21.75rem; /* 250px / 19 */
  margin-bottom: 2.105rem; /* 40px / 19 */
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.address-container {
  display: flex;
  flex-direction: row;        /* change from column to row */
  gap: 1.053rem;
  /* padding-left: 1.579rem; */
  align-items: flex-start;   /* align to top */
}

.address-header {
  display: flex;
  flex-direction: column;    /* stack flag above country name */
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;            /* prevent it from shrinking */
  padding-top: 0.1rem;       /* slight top alignment tweak */
}

.address-details {
  display: flex;
  flex-direction: column;
  gap: 0.789rem;
}

/* Flag shape */
.flag-icon svg {
  width: 2.375rem;
height: 1.8125rem;
}

.flag-stripe {
  flex: 1;
  width: 100%;
}

.flag-stripe.orange {
  background-color: #ff9933;
}

.flag-stripe.white {
  background-color: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flag-stripe.white .wheel {
  width: 0.211rem; /* 4px / 19 */
  height: 0.211rem;
  border-radius: 50%;
  border: 0.053rem solid #000080;
}

.flag-stripe.green {
  background-color: #128807;
}

.country-name {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.842rem; /* 16px / 19 */
  color: var(--neutral-dark);
}

.address-text {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 0.842rem; /* 16px / 19 */
  color: var(--text-sub);
  line-height: 1.368rem; /* 26px / 19 */
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.789rem; /* 15px / 19 */
}

body.dark-theme .contact-icon path {
  stroke: var(--base-dark);
}

.contact-icon {
  width: 1rem; /* 19px / 19 */
  height: 1rem;
}

.contact-link {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.842rem; /* 16px / 19 */
  color: var(--neutral-dark);
}

.contact-link:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Copyright Band styling */
.footer-copyright-band {
  background-color: var(--primary-blue); /* #084b80 */
  padding: 1.579rem 0; /* 30px / 19 */
}

.copyright-text {
  font-family: var(--font-tertiary); /* DM Sans */
  font-size: 0.842rem; /* 16px / 19 */
  color: var(--bg-white);
  text-align: center;
}

.copyright-text a {
  color: var(--bg-white);
  text-decoration: underline;
}

.copyright-text a:hover {
  opacity: 0.8;
}

/* Responsive configurations */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.158rem; /* 60px / 19 */
  }

  .footer-branding-col {
    grid-column: span 2;
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-branding-col {
    grid-column: span 1;
  }
}
