body {
  font-family: Poppins, sans-serif;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Header styling  */

header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url("../images/florida.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 260px 0;
}

header h1 {
  font-weight: 70px;
  font-size: 45px;
  line-height: 1.5;
  margin: 0;
}

header h2 {
  font-weight: 400;
  font-size: 40px;
  line-height: 1.5;
  margin: 0;
}

header h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 5px;
}

header a {
  font-weight: 700;
  font-size: 14px;
  line-height: 1, 5;
  text-align: center;
  color: black;
  padding: 16px 32px;
  display: inline-block;
  letter-spacing: 3px;
  text-decoration: none;
  text-transform: uppercase;
  background: white;
}

/* Main styling */
main h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 5px;
  color: #272044;
  opacity: 0.3;
  margin: 0;
}

main h2 {
  font-weight: 400;
  font-size: 36px;
  line-height: 1.5;
  color: #272044;
  margin: 0;
}

main p {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #272044;
}

.grid-2-columns {
  display: grid;
  grid-template-columns: 2fr 2fr;
  grid-gap: 64px;
  align-items: center;
  margin: 30px;
}

.grid-3-columns-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.card h4 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  color: #272044;
}
.card h5 {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
  color: #272044;
}

.btn {
  display: inline-block;
  color: white;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 28px;
  background-color: #272044;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background-color: #1f1a3a;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card {
  background-color: white;
}

.img-responsive {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth transition */
}

.img-responsive:hover {
  transform: scale(1.05); /* slightly zoom in */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* stronger shadow */
}

/* Section 3 styling */
.secondary-section {
  text-align: center;
  padding: 0;
  background-color: #f8f8f8;
  margin-top: 40px;
  margin-bottom: 40px;
}
.secondary-section h2 {
  font-weight: 400;
  font-size: 36px;
  line-height: 1.5;
  color: #272044;
  margin: 0;
  margin-bottom: 10px;
}

.secondary-section h3 {
  font-size: 24px;
}

/* Instagram posts styling  */
.grid-instagram-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px;
}

.instagram-media {
  width: 100% !important;
  max-width: 100% !important;
  min-width: auto !important;
  margin: 0 auto !important;
  height: 450px !important;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-grid {
  text-align: center;
  margin: 20px;
}

/* Footer Styling */
footer {
  color: white;
  background-image: linear-gradient(
      rgba(39, 32, 68, 0.85),
      rgba(0, 0, 0, 0.9)
    ),
    url("../images/islamorada.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 60px 20px 30px;
  font-family: 'Poppins', sans-serif;
}

/* Footer Grid */
.grid-3-columns-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: auto;
}

/* Footer Headings */
footer h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 15px;
  position: relative;
}

footer h3::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background-color: #ffdf00; 
  margin-top: 6px;
  border-radius: 2px;
}

/* Footer Links */
footer ul {
  padding: 0;
  margin: 0;
}

footer li {
  list-style: none;
  margin-bottom: 10px;
}

footer a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease;
}

footer a:hover {
  color: #ffdf00;
  opacity: 1;
}

/* Footer Paragraphs */
footer p {
  font-weight: 400;
  font-size: 16px;
  opacity: 0.8;
  line-height: 24px;
  margin-bottom: 10px;
}

/* Footer Bottom Section */
footer .footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  opacity: 0.7;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .grid-3-columns-footer {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer h3::after {
    width: 30px;
  }
}

/* Images styling */

.img-dock {
  max-width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
.img-dock:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Media queries for responsiveness */

@media (max-width: 900px) {
  header {
    padding: 60px 0;
  }

  header h1 {
    font-size: 30px;
  }

  header h2 {
    font-size: 24px;
  }

  header h3 {
    font-size: 18px;
  }

  header a {
    font-size: 12px;
    padding: 12px 24px;
    letter-spacing: 2px;
  }
  .grid-2-columns {
    grid-template-columns: 1fr;
    grid-gap: 32px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid white;
  }
  .grid-3-columns {
    grid-template-columns: 1fr;
    grid-gap: 32px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid white;
  }
  section {
    display: block;
    padding: 10px;
    max-width: 600px;
    margin: 0 auto;
  }

  .grid {
    grid-template-columns: 1fr;
    grid-gap: 32px;
  }

  .card-header img {
    display: none;
  }

  .card-header.grid .embed {
    width: 100%;
    height: 300px;
  }
  .embed {
    aspect-ratio: 16 / 9;
  }
  .grid-instagram-posts {
    grid-template-columns: 1fr;
  }
}
