/* ―――――――――――――――――――――――――――――――――――――――― */
/* Footer Styling */
/* ―――――――――――――――――――――――――――――――――――――――― */
.footer-container {
  background-color: #1b2128;
  color: #ffffff;
}

.footer {
  padding-top: 50px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.footer-section {
  width: 19%;
  margin-bottom: 50px;
}

.footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer-square {
  width: 8px;
  height: 8px;
  background-color: #2c94ff;
  margin-right: 10px;
  border-radius: 2px;
}

.footer-list li a {
  text-decoration: none;
  font-size: 16px;
  color: #adb7be;
  transition: color 0.3s ease;
}

.footer-list li a:hover {
  color: #2c94ff;
}

.instagram-gallery {
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
}

.instagram-grid {
  width: 300px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.instagram-grid img {
  width: 100%;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.instagram-grid img:hover {
  transform: scale(1.1);
}

.twitter-feed {
  list-style: none;
  padding: 0;
  margin: 0;
}

.twitter-feed li {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.twitter-feed li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
  color: #adb7be;
  transition: color 0.3s ease;
}

.twitter-feed li a:hover {
  color: #2c94ff;
}

.twitter-feed li img {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  display: inline-block;
}

.post-date {
  font-size: 12px;
  color: #2c94ff;
  margin-top: 5px;
}

/* Footer Bottom */
.footer-bottom {
  background-color: #161b21;
  padding: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #ffffff;
  margin: 0;
}

.footer-bottom .credit a {
  color: #2c94ff;
  text-decoration: none;
}

.footer-bottom .credit a:hover {
  text-decoration: underline;
}

/* ―――――――――――――――――――――――――――――――――――――――― */
/* Footer Media Queries and Adjustments */
/* ―――――――――――――――――――――――――――――――――――――――― */
/* Small Devices (Tablets, Phones) */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    width: 80%;
    margin-bottom: 50px;
    text-align: center;
  }

  .instagram-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .instagram-grid {
      width: auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, min-content);
      gap: 10px;
      justify-content: center;
  }

  .instagram-grid img {
    width: 100%;
    height: auto;
    max-width: 120px;
    margin: 0 auto;
  }

  .footer-list,
  .twitter-feed {
    padding: 0 20px;
    text-align: left;
  }

  .footer-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .post-date {
    font-size: 14px;
  }

  .footer-list li a,
  .twitter-feed li a {
    font-size: 18px;
  }

  .twitter-feed li {
    align-items: flex-start;
  }
}

/* Extra Small Devices (Small Phones) */
@media (max-width: 480px) {
  .footer-section {
    width: 100%;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: 15px;
  }

  .instagram-grid img {
    max-width: auto;
  }

  .footer-list,
  .twitter-feed {
    padding: 0 15px;
  }
}

/* Medium Devices (Desktops, Larger Tablets) */
@media (min-width: 769px) and (max-width: 1650px) {
  .footer-section {
    width: 40%;
    margin-bottom: 40px;
    text-align: left;
  }

  .footer-content {
    justify-content: space-around;
  }

  .footer-list,
  .twitter-feed {
    padding: 0 15px;
  }
}
