.navbar {
  display: flex;
  justify-content: flex-end; /* Pushes the logo to the left and links to the right */
  align-items: center;
  background-color: #ececec;
  color: black;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hamburger {
  display: none;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  text-decoration: none;
  color: #59493b;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.nav-links a:hover {
  text-decoration: underline;
}

  .footer-inner {
    display: flex;
    width: 100%;
    height: 100%;
  }

  .footer-left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 100%;
  }

  .footer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
  }

  .footer-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    height: 100%;
    position: relative;
  }

  /* Position the main footer heading centered and in the top quarter */
  .footer-right h2 {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    text-align: center;
    width: 100%;
    font-family: 'Cormorant Garamond', serif;
    color: #59493b;
  }

  .contact-columns {
    display: flex;
    gap: 40px;
    margin-top: 80px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .contact-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    align-items: center;
  }

  .contact-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }

  .contact-icons img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    background-color: transparent;
    display: block;
  }

  .contact-left a {
    color: black;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
  }

  .contact-left a:hover {
    text-decoration: underline;
    color: brown;
  }

  .contact-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
  }

  .footer-list {
    list-style: decimal;
    text-align: left;
    padding-left: 1.25rem;
    margin: 0;
  }

  .footer-list li {
    margin: 0.5rem 0;
  }

.Div1 {
  width: 100%;
  height: 650px;
  position: relative;
}

.name-text {
  position: absolute;
  top: 1%;
  left: 0;
  font-size: 213px;
  width: 100%;
  max-width: none;
  padding: 0 6%;
  color: #59493b;
  font-family: 'Cormorant Garamond', serif;
}

@media (min-width: 601px) {
  .name-text {
    text-align: right;
    padding-left: 0;
    padding-right: 10%;
  }
}

.tagline {
  position: absolute;
  bottom: 38%;
  left: 8%;
  font-size: 14px;
  color: #59493b;
  font-family: 'Montserrat', sans-serif;
}

.three-images {
  display: flex;
  gap: 40px;
  padding: 15px;
  height: auto;
}

.three-images img {
  flex: 1 1 0;
  min-width: 0;
  height: 66vw;
  max-height: 600px;
  object-fit: cover;
  display: block;
  opacity: 0.6;
  border-radius: 15px;
}

.gallery-item {
  position: relative;
  flex: 0 0 33.3333%;
}

.gallery-item img {
  width: 100%;
  height: 66vw;
  max-height: 600px;
  object-fit: cover;
  display: block;
  opacity: 0.6;
}

.gallery-title-overlay {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: brown;
  text-align: center;
  z-index: 15;
}

.programs-overlay {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 70%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  background-color: transparent;
  z-index: 15;
}

.programs-overlay .programs-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  color: #59493b;
  width: 90%;
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.programs-overlay ul {
  margin: 0;
  padding-left: 18px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #59493b;
}

.programs-overlay li {
  margin: 6px 0;
}

.center-title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent;
  padding: 8px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: #59493b;
  text-align: center;
  z-index: 15;
}

.center-subtitle-overlay {
  position: absolute;
  top: calc(50% + 36px);
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent;
  padding: 6px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  color: #59493b;
  text-align: center;
  width: 100%;
  max-width: 100%;
  line-height: 1.25;
  z-index: 15;
}
.gallery-item-1 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  opacity: 0.6;
}

.button-overlay {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  text-align: center;
}

.gallery-item-1 .button-overlay {
  bottom: 26px;
}

button {
  padding: 10px;
  background-color: transparent;
  border: 2px solid #59493b;
  color: black;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
}

.button-overlay button {
  width: 100%;
}

.section {
  height: 27%;
  display: inline-block;
}

.faded {
  opacity: 0.5;
  width: 95%;
  display: block;
  height: auto;
  margin: auto;
  object-fit: contain;
}

.faded-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 601px) {
  .gallery-item-1 {
    position: relative;
    width: 33.3333%;
    margin: 0 auto;
  }

  .gallery-item-1 .faded {
    width: 100%;
    height: 66vw;
    max-height: 600px;
    object-fit: cover;
    border-radius: 15px;
    opacity: 0.6;
  }
}

.last-image {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 80vh;
}

.footer {
  background-color: #FFE7E9;
  color: rgb(244, 241, 241);
  text-align: center;
  height: 30vh;
  position: relative;
}

.testimonials-section {
  background-color: white;
  height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.testimonials-content {
  max-width: 800px;
}

.testimonials-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: #59493b;
  margin-bottom: 10px;
}

.testimonials-quote {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: black;
  margin-bottom: 8px;
}

.testimonials-author {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: black;
}

.testimonials-button {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  border: 2px solid #59493b;
  color: black;
  text-decoration: none;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

.training-title {
  font-size: 4rem;
  font-style: oblique 12deg;
  font-weight: bold;
  font-family: 'Cormorant Garamond', serif;
}

.social-flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
  
}

.social-flex img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.modal-backdrop.is-visible {
  display: flex;
}

.modal-content {
  background: #FFE7E9;
  border: 2px solid #59493b;
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', serif;
  color: #59493b;
  font-size: 28px;
}

.modal-content p {
  margin: 0 0 18px;
  font-family: 'Montserrat', sans-serif;
  color: #59493b;
  font-size: 15px;
  line-height: 1.4;
}

.modal-close {
  border-color: #59493b;
  color: #59493b;
  background: transparent;
  min-width: 140px;
}

/* Responsive adjustments for small screens */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: flex-end;
  }

  .hamburger {
    display: block;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: right;
    gap: 0;
    margin-top: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ececec;
    z-index: 1000;
  }

  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 10px 20px;
    display: block;
  }

  .image1-page1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% center;
  }

  .name-text {
    font-size: 50px;
  }

  .tagline {
    bottom: 38%;
    left: 8%;
    font-size: 14px;
  }

  .three-images img,
  .gallery-item img {
    width: 100%;
    height: 80vw;
    max-height: 700px;
    border-radius: 15px;
    object-fit: cover;
  }

  .gallery-item-1 img {
    height: auto;
    max-height: none;
  }

  .three-images img:nth-child(2) {
    object-fit: cover;
    object-position: top;
  }

  .three-images {
    flex-direction: column;
    height: auto;
    gap: 20px;
  }

  .faded {
    width: 100%;
    margin: 0;
  }

  .last-image {
    width: 100%;
    height: 33vw;
    max-height: 300px;
    object-fit: cover;
  }
  .social-links{
    border-radius: 50%;
  }
}
