footer {
  background: var(--Light-Pink, #ffe1d7);
  padding: 3rem;
  color: #222;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: auto;
}

/* Logo */
.footer-logo img {
  max-width: 100px;
}

/* Subscribe Section */
.subscribe {
  flex-basis: 100%;
  /* text-align: center; */
  margin-bottom: 20px;
}

.subscribe h3 {
  color: var(--Charcoal, #222);
  /* H4 */
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  /* 24px */
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.subscribe-box {
  display: flex;
  /* align-items: center; */
  border: 1px solid white;
  border-radius: 4px;
  padding: 5px;
  /* max-width: 300px; */
  margin-top: 10px;
}

.subscribe-box input {
  border: none;
  flex-grow: 1;
  padding: 10px;
  font-size: 16px;
  background-color: #fceae4;
  color: #222222;
  outline: none;
}

.subscribe-box input::placeholder {
  color: #222222;
  background-color: transparent;
  font-family: Montserrat;
}

.subscribe-box button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #222222;
  padding: 0 10px;
  font-weight: bold;
  outline: none;
}

.subscribe-box button:hover {
  color: #ff6666;
  /* Add hover effect for button */
}

/* Links Sections */
.footer-links {
  display: flex;
  flex-grow: 1;
  justify-content: space-around;
}

.info-section,
.policy-section {
  min-width: 150px;
  font-family: Montserrat;
}

/* Footer Grid Layout */
.footer-container {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr 1.5fr 1.5fr;
  gap: 30px;
  margin: 0 auto;
  align-items: flex-start;
}

.footer-logo img {
  max-width: 80px;
  margin-bottom: 20px;
}

/* Section Headings */
.info-section h3,
.policy-section h3,
.subscribe h3 {
  color: var(--Charcoal, #222);
  /* H4 */
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  /* 24px */
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Links Styling */
.info-section ul,
.policy-section ul {
  list-style: none;
  padding: 0;
}

.info-section ul li,
.policy-section ul li {
  margin-bottom: 8px;
}

.info-section ul li a,
.policy-section ul li a {
  text-decoration: none;
  color: #222;
  font-size: 18px;
  transition: color 0.3s ease;
  font-family: Montserrat;
  line-height: 140%;
  /* 25.2px */
}

.info-section ul li a:hover,
.policy-section ul li a:hover {
  color: #ff6666;
  /* Add subtle hover effect */
}

/* Subscribe Section */
.subscribe-box {
  display: flex;
  align-items: center;
  border: 1px solid white;
  border-radius: 4px;
  padding: 5px;
  /* max-width: 300px; */
  margin-top: 10px;
}

.subscribe-box input {
  border: none;
  flex-grow: 1;
  padding: 10px;
  font-size: 14px;
  outline: none;
  background: transparent;
}

.subscribe-box button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #222;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.subscribe-box button:hover {
  color: #ff6666;
}

.cert-section {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

/* Footer Bottom Section */
.footer-bottom {
  margin-top: 40px;
  font-size: 12px;
  /* color: #222; */
  line-height: 1.6;
  border-top: 1px solid #fff9f5;
  padding-top: 10px;

  display: grid;
  grid-template-columns: 30% 70%;
  /* 30% for first <p>, 70% for second <p> */
  gap: 10px;
  /* Adjust the spacing between columns */
  /* Aligns text in the center */
}

.footer-bottom p {
  margin: 10px 0;
}

.footer-bottom a {
  color: #222;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
  color: #ff6666;
}

/* ✅ Responsive Design for Tablet & Mobile */
@media (max-width: 768px) {
  footer {
    padding: 2rem;
  }

  .footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    align-items: start;
    justify-content: center;
  }

  /* Move Subscribe to the Top Left */
  .subscribe {
    grid-column: 1 / span 1;
    grid-row: 1;
  }

  /* Move Logo to the Right of Subscribe */
  .footer-logo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  /* Make Policies and Info Section Side by Side (70% Width) */
  .policy-section,
  .info-section {
    grid-row: 2;
    width: 70%;
  }

  .policy-section {
    grid-column: 1;
  }

  .info-section {
    grid-column: 2;
  }

  .info-section ul li a,
  .policy-section ul li a {
    font-size: 14px;
  }
}

/* Responsive Mobile Design */
@media (max-width: 425px) {
  footer {
    padding: 1rem;
  }

  .footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 15px;
    justify-content: center;
  }

  /* Move Logo to the Left */
  .footer-logo {
    grid-row: 1;
    display: flex;
    justify-content: flex-start;
    grid-column: 1;
  }

  /* Move Subscribe Section Below the Logo */
  .subscribe {
    grid-row: 2;
    grid-column: 1 / sp;
  }

  .subscribe-box {
    margin: 0 auto;
    max-width: 100%;
  }

  /* Arrange Info & Policies Side by Side */
  .info-section,
  .policy-section {
    grid-row: 3;
    width: 100%;
  }

  .cert-section {
    display: grid;
    justify-content: flex-start;
    align-items: flex-start;
    grid-row: 4;
    grid-column: 1;
  }

  .footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-content: center;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
  }

  /* Move Legal Text Above Powered By */
  .footer-bottom p.legal-text {
    order: -1;
  }

  /* Keep Powered By Text Below */
  .footer-bottom p {
    order: 2;
  }
}
