body {
  background-image: url("../assets/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  height: 100vh;

  font-family: "Baskervville", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
}

a,
a:visited {
  color: #754b35;
}

button {
  display: inline-block;
  background-color: #4caf50; /* Green background */
  color: white; /* White text */
  font-size: 16px; /* Readable font size */
  padding: 12px 24px; /* Padding for touch-friendly size */
  border: none; /* Remove border */
  border-radius: 8px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
  width: 100%; /* Full width on mobile */
  max-width: 300px; /* Limit width on larger screens */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 16px 0 0 0;
}

/* Hover effect for desktop users */
button:hover {
  background-color: #45a049; /* Darker green */
  transform: translateY(-2px); /* Lift effect */
}

/* Make button look good on mobile */
@media (max-width: 600px) {
  button {
    font-size: 18px; /* Increase font size for readability */
    padding: 16px 24px; /* Larger padding for mobile */
  }
}

input[type="text"],
input[type="tel"] {
  width: 100%; /* Full width on mobile */
  max-width: 300px; /* Limit width on larger screens */
  padding: 12px 16px; /* Comfortable padding for touch interaction */
  font-size: 16px; /* Readable font size */
  border: 2px solid #ccc; /* Light grey border */
  border-radius: 8px; /* Rounded corners */
  outline: none; /* Remove default outline */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't overflow */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Soft shadow */
}

/* Focus effect for improved accessibility */
input[type="text"]:focus,
input[type="tel"]:focus {
  border-color: #4caf50; /* Green border on focus */
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.3); /* Glow effect */
}

/* Styling for mobile breakpoints */
@media (max-width: 600px) {
  input[type="text"],
  input[type="tel"] {
    font-size: 18px; /* Increase font size for readability */
    padding: 14px 18px; /* Larger padding for touch devices */
  }
}

div.flex-col {
  display: flex;
  flex-direction: column;
}

div.hero {
  display: flex;
  justify-content: center;

  background-image: url("../assets/masjid-nabawi-green-dome.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  height: 100vh;
}

/* Default styling for desktop */
img.text {
  width: 100%; /* Full width for the image */
  max-width: 600px; /* Limits the width on large screens */
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%); /* Centers the image */
}

div.content {
  /* height: 100%; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 64px;
}

div.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  grid-column-gap: 24px;
  grid-row-gap: 0px;
  padding: 0 64px;
}

img.image-01-weekly-classes,
img.image-02-madrassah,
img.image-03-saturday-school,
img.image-04-umrah-2024 {
  height: 100vh;
}

h1 {
  font-family: "Baskervville", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 48px;
  margin-block-start: 0;
  margin-block-end: 0;
  color: #000;
  line-height: 1.2;
}

h1.hero {
  position: absolute;
  bottom: 0;
  color: #754b35;
  margin: 0 0 32px 0;
}
/* Media query for smaller devices (mobile viewports) */
@media only screen and (max-width: 768px) {
  body {
    /* height: 100%; */
    /* background-size: contain; */
    background-attachment: scroll;
    background-repeat: repeat-y;
  }

  div.hero {
    background-size: cover;
    background-attachment: scroll; /* Ensure image scrolls with content */
  }

  img.text {
    width: 80%; /* Makes the image larger on mobile */
    max-width: none; /* Removes the width limit on mobile */
    position: absolute;
    top: 40px; /* Adjust the vertical position if needed */
    left: 50%;
    transform: translateX(-50%); /* Keeps the image centered */
  }

  h1.hero {
    margin: 0 auto;
    text-align: center;
    color: #fff;
    font-size: 32px;
  }

  div.content {
    margin: 32px 0 0 0;
  }

  div.details {
    margin: 0;
  }

  div.info {
    padding: 32px;
  }

  h1.content-title {
    text-align: center;
    font-size: 32px;
  }

  div.details {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  img.image-01-weekly-classes,
  img.image-02-madrassah,
  img.image-03-saturday-school,
  img.image-04-umrah-2024 {
    width: 100vw;
    height: auto;
  }
}
