.footer {
  background-color: #0d0f13;
  color: #ffffff;
  padding: 20px 20px 20px;
  font-family: 'Mulish', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-logo {
  width: 100px;
  margin-bottom: 15px;
}

.footer-add {
  flex: 1 1 300px;
  margin: 15px;
  margin-top: 18px;
}

.footer-address {
  flex: 1 1 300px;
  margin: 15px;
  margin-top: -44px;
}

.footer-about,
.footer-offices,
.footer-contact {
  flex: 1 1 300px;
  margin: 15px;
}

.footer-offices h4 {
  text-decoration: underline;
  font-size: 1.3rem;
}

.footer-offices h3,
.footer-contact h3 {
  font-size: 1.3rem;
}

.footer-about p {
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
}

.footer-center h4 {
  color: #fff;
  margin-bottom: 18px;
  text-decoration: underline;
  font-size: 1.3rem;
}

.footer-add h5,
.footer-address h5,
.footer-pune h5 {
  font-size: 1.1rem;
}

.footer-add p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.footer-social {
  margin-bottom: 10px;
}

.footer-social a {
  margin-right: 10px;
  font-size: 18px;
  color: #fff;
}

.footer-social a:hover {
  color: #e63946;
}

.footer-links a {
  margin-right: 15px;
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  color: #e63946;
}

.footer h3,
.footer h4,
.footer h5 {
  color: #fff;
  margin-bottom: 18px;
  font-size: 19px;
}

.footer h3 {
  margin-bottom: 10px;
}

.footer p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 11px;
}

.mail-list {
  margin-top: 20px;
}

.mail-list input {
  padding: 8px;
  border: none;
  border-radius: 20px;
  outline: none;
  width: 50%;
}

.subscribe-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  background-color: #e63946;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.subscribe-btn:hover {
  background-color: #ff4757;
}

.footer-contact .foot p,
.footer-offices .foot p,
.footer-address .foot p {
  margin-bottom: 5px;
  font-weight: 800;
}

.footer-address .foot,
.footer-offices .foot {
  margin-bottom: 25px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 13px;
  color: #aaa;
}

/* Flag sizes */
.footer-offices .flag {
  width: 25px;
}

.footer-contact .flag {
  width: 100px;
}

.flag {
  width: 27px;
  height: auto;
  vertical-align: middle;
  margin-left: 6px;
  border-radius: 2px;
}

/* === NEW: Group Pune + Chennai vertically === */
.footer-pune-group {
  flex: 1 1 300px;
  margin: 15px;
  margin-top: -47px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.footer-pune {
  margin-top: -44px;
}

.footer-chennai h5 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.footer-chennai p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ================================
   RESPONSIVE (max-width: 768px)
================================ */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 25px;
  }

  .footer-add,
  .footer-address,
  .footer-pune-group,
  .footer-about,
  .footer-offices,
  .footer-contact {
    flex: 1 1 100%;
    margin: 10px 0;
  }

  .footer p,
  .footer h3,
  .footer h4,
  .footer h5 {
    text-align: left;
  }

  /* ✅ Move mail list under Pune-Chennai only in mobile view */
  .mail-list {
    order: 3;
    /* ensures it comes last */
    align-self: flex-start;
    width: 100%;
    margin-top: 15px;
  }

  .footer-pune-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .mail-list h5 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #fff;
  }

  .mail-list input {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: none;
    border-radius: 20px;
    outline: none;
  }

  .subscribe-btn {
    width: 100%;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background-color: #e63946;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
  }

  .subscribe-btn:hover {
    background-color: #ff4757;
  }

  .flag {
    width: 22px;
    margin-left: 4px;
  }

  .footer-center h4 {
    font-size: 1.1rem;
  }

  .footer-bottom {
    font-size: 12px;
  }
}