body {
  font-family: "Poppins", sans-serif;
  background: #ffffff;
}

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

.text-center {
  text-align: center;
}

.grid {
  display: grid;
  grid-gap: 64px;
}

.img-responsive {
  width: 100%;
  height: auto; /* Ensure images retain their aspect ratio */
  display: block; /* Ensures the image is rendered as a block-level element */
  border-radius: 8px; /* Optional: rounded corners for images */
  margin-bottom: 20px; /* Space below image */
}

.grid-2-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px; /* Adjust gap as needed */
}

.grid-3-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 32px; /* Adjust the grid gap for better spacing */
}

.embed {
  width: 100%;
  height: 200px; /* Ensure maps have consistent height */
  border-radius: 8px; /* Optional: rounded corners for embeds */
}

.instagram-embeds {
  margin: 30px 0;
}

.card-header {
  display: flex; /* Use Flexbox */
  gap: 16px; /* Adjust gap as needed */
}

.image-container, .map-container {
  flex: 1; /* Ensure both containers take equal space */
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-header img, .card-header .embed {
  width: 100%;
  height: 200px; /* Fixed height for both images and maps */
  object-fit: cover; /* Ensures images cover the container */
  border-radius: 8px; /* Optional: rounded corners for consistency */
}

.card {
  background: white;
  margin: 30px 0;
  display: flex; /* Add display: flex */
  flex-direction: column; /* Align items vertically */
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center text within the card */
  padding: 20px; /* Add padding */
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-height: 500px; /* Ensure all cards have a minimum height */
}

.card-body {
  flex: 1; /* Take up remaining space */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute space evenly */
  padding: 30px;
}

/* Card Title */
.card h4 {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 10px; /* Space below title */
  color: #272044;
}

.card-footer {
  width: 100%;
  padding: 0 30px 30px;
}

/* Card button */
.btn {
  display: block;
  color: white;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px;
  background-color: #012dd1;
  border-radius: 10px;
  text-decoration: none;
}

.btn:hover {
  background-color: #333;
}

section {
  max-width: 100%;
  margin: 0 auto;
  padding: 100px;
}

section.secondary {
  background: #f8f8f8;
}

header h1, header h2 {
  position: relative;
  top: -200px; /* Moves the h1 and h2 text upwards */
}

header a {
  position: relative;
  top: -175px; /* Keeps the link aligned with other elements */
  margin-top: 20px;
  border-radius: 75px;
}

header {
  background-image: url(../Images/EdinburughIllustration.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center; /* Centers the background image */
  width: 100%;
  color: #012dd1;
  text-align:center;
  padding: 260px 0; /* Corrected padding */
}

header h1 {
  font-family: "pf-marlet-display", sans-serif;
  font-weight: 700;
  font-size: 60px;
  font-style: normal;
  line-height: 1.5;
  margin: 0;
}

header h2 {
  font-family: "pf-marlet-display", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.5;
  margin: 0;
}

header a {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: #ffffff;
  padding: 16px 32px;
  margin-top: 32px;
  display: inline-block;
  letter-spacing: 3px;
  text-decoration: none;
  text-transform: uppercase;
  background: #012dd1;
}

main {
  background-color: white;
}

main h2 {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 5px;
  color: #272044;
  opacity: 0.3;
  text-transform: uppercase;
}

main h3 {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.5;
  color: #272044;
  margin: 0;
}

main h4 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: #272044;
  margin: 0;
}

main h5 {
  font-weight: 700;
  font-size: 13px;
  margin: 0;
  line-height: 1;
  color: #272044;
}

main p {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #272044;
  opacity: 0.7;
}

/* Footer Styling */
footer {
  background-color: #f8f9fa; /* Light background color for contrast */
  padding: 40px 0; /* Increased padding for more space */
}

.footer-bottom {
  text-align: center; /* Centers the text */
  padding: 20px 40px; /* Adds more padding */
  background-color: #e9ecef; /* Slightly darker background for separation */
  margin-top: 20px; /* Adds space above the footer bottom section */
}

.footer-bottom p {
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 16px; /* Increased font size */
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 20px; /* Increased space between social buttons */
}

.social-icons a {
  display: inline-block;
  width: 50px; /* Increased width */
  height: 50px; /* Increased height */
  border-radius: 50%;
  background-color: #012dd1; /* Adjust as needed */
  color: #ffffff;
  text-align: center;
  line-height: 50px; /* Centers the icons vertically */
  font-size: 24px; /* Increased font size */
  transition: background-color 0.3s;
}

.social-icons a:hover {
  background-color: #333; /* Darker color on hover */
}
@media (max-width: 960px) {
  header {
    padding: 60px 0;
  }

  header h1 {
    font-size: 48px;
  }

  header h2 {
    font-size: 20px;
  }

  header h3 {
    font-size: 12px;
  }

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

  section {
    padding: 30px;
  }

  .card-header {
    display: flex; /* Use Flexbox for stacking */
    flex-direction: column; /* Stack items vertically */
    gap: 16px; /* Add space between the image and map */
  }

  .card-header img {
    display: block; /* Ensure the image remains visible */
    width: 100%; /* Adjust width to fit container */
    height: auto; /* Maintain aspect ratio */
  }

  .embed {
    aspect-ratio: 16 / 9; /* Maintain the aspect ratio for the map */
  }
}
