/* Parent Information Page CSS — Updated for UHD / QHD responsiveness and button centering */

.childcare-provider {
  background-color: var(--heroBackground);
  padding: 40px 0;
}

.childcare-provider .text-wrapper {
  padding-top: 70px;
  padding-bottom: 70px;
}

.childcare-provider .text-wrapper h1 {
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  color: var(--logoBlue);
  margin-bottom: 20px;
}

/* Hero image responsive fix */
.childcare-provider .img-wrapper {
  background-image: url(media/parent-info/for-parents.png);
  background-size: cover;
  background-position: center;
  min-height: 350px;
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .childcare-provider .img-wrapper {
    min-height: 250px;
    margin-top: 30px;
  }
}

/* EYLOG Section */
.eylog {
  margin-top: 30px;
}

.eylog .top-wrapper {
  text-align: center;
  padding: 20px clamp(20px, 6vw, 120px);
}

.eylog .top-wrapper h2 {
  font-size: clamp(2.5rem, 3vw, 3.5rem);
  color: var(--logoBlue);
}

.eylog .top-wrapper h3 {
  font-size: clamp(1.8rem, 2.3vw, 2.5rem);
  color: var(--logoRed);
  margin-bottom: 30px;
}

.eylog .bottom-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.left-text-wrapper,
.right-text-wrapper,
.eylog .bottom-wrapper .img-wrapper {
  flex: 1 1 300px;
}

.eylog .bottom-wrapper .img-wrapper img {
  width: 100%;
  border-radius: 50%;
}

.left-text-wrapper,
.right-text-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.left-text-wrapper h4,
.right-text-wrapper h4 {
  color: var(--logoBlue);
  font-size: clamp(1.3rem, 1.5vw, 1.8rem);
}

.bottom-text {
  text-align: center;
  padding: 20px clamp(20px, 6vw, 120px);
}

/* Tax Free Childcare */
.tax-free-childcare {
  margin-top: 30px;
  padding: 20px;
}

.tax-free-childcare h3 {
  text-align: center;
  font-size: clamp(2.5rem, 3vw, 3.5rem);
  color: var(--logoBlue);
}

.tax-free-childcare h4 {
  font-size: clamp(1.8rem, 2.3vw, 2.5rem);
  color: var(--logoRed);
  text-align: center;
  margin-top: 30px;
}

.tax-free-childcare p {
  text-align: center;
  margin-top: 30px;
}

.link-btns-wrapper {
  display: flex;
  margin: 70px auto;
  max-width: 900px;
  width: 100%;
  gap: 20px;
}

.link-btn {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
}

/* Policies */
.our-policies {
  padding: 40px;
  text-align: center;
  color: white;
  background-color: var(--backgroundBlue);
  margin-bottom: 20px;
}

.our-policies h3 {
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin-bottom: 20px;
}

.policy-btns-wrapper {
  display: flex;
  margin: 70px auto;
  max-width: 900px;
  width: 100%;
  gap: 20px;
}

.policy-btn {
  flex: 1 1 calc(50% - 20px);
  display: flex;
  justify-content: center;
}

/* Remove black browser button focus borders */
.policy-btn button,
.policy-btn button:focus,
.policy-btn button:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Modal Styling */
.custom-modal {
  padding: 10px 10px;
  width: 600px;
  max-width: 95%;
  height: 90%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: none;
  background-color: var(--backgroundBlue);
}

.custom-modal i {
  position: sticky;
  left: 90%;
  top: 2%;
  font-size: 1.7rem;
  color: white;
  cursor: pointer;
}

.modal-heading {
  padding-top: 50px;
  text-align: center;
}

.modal-heading h3 {
  color: white;
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin-bottom: 30px;
}

.links-wrapper {
  display: flex;
  column-gap: 10px;
  row-gap: 15px;
  flex-wrap: wrap;
}

.links-wrapper a {
  flex-basis: calc(50% - 5px);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Menu */
.menu {
  padding-top: 70px;
  padding-bottom: 70px;
  text-align: center;
}

.menu h3 {
  font-size: clamp(2.5rem, 3vw, 3.5rem);
  color: var(--logoBlue);
  margin-bottom: 25px;
}

.menu p {
  width: 90%;
  margin: 0 auto 35px auto;
}

.menu a {
  display: block;
  width: 80%;
  margin: 0 auto;
}

/* MOBILE FIXES — keep buttons centered */
@media (max-width: 800px) {
  .link-btns-wrapper,
  .policy-btns-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .link-btn,
  .policy-btn {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .eylog .bottom-wrapper {
    display: block;
  }

  .eylog .bottom-wrapper .img-wrapper img {
    width: 60%;
    margin: 0 auto;
  }

  .eylog .bottom-wrapper .left-text-wrapper h4,
  .eylog .bottom-wrapper .right-text-wrapper h4 {
    width: 85%;
    font-size: 1.4rem;
    margin: 15px auto;
  }
}
