* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f5f5;
    overflow-x: hidden;
}
.Hero-Div {
  margin: 22.78px 20px 0px 20px;
  background: linear-gradient(
    180deg,
    rgba(197, 255, 253, 0.6) 32.43%,
    #4190ad 119.75%
  );
  border-radius: 38px;
  padding: 25.22px 22px 0px 22px;
}

/* Navbar styles moved to shared.css */

.hero-bottom-content {
  padding: 90px 30px 88px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  background: #ffffff99;
  border: 1.31px solid #4190ad47;
  padding: 18px 27px;
  font-family: Montserrat;
  font-weight: 700;
  font-style: Bold;
  font-size: 20px;
  leading-trim: CAP_HEIGHT;
  line-height: 20px;
  letter-spacing: 15%;
  text-align: center;
  text-transform: uppercase;
  color: #4190ad;
  border-radius: 65.28px;
  margin-bottom: 45px;
}

.hero-title {
  font-family: Georgia;
  font-weight: 400;
  font-style: Regular;
  font-size: 120px;
  leading-trim: CAP_HEIGHT;
  line-height:100%;
  letter-spacing: 0%;
  text-align: center;
  color: #000000;
  margin-bottom: 50px;
}

/* Matches the homepage hero description exactly. */
.hero-desc {
  font-family: Montserrat;
  font-weight: 400;
  font-style: Regular;
  font-size: 20px;
  leading-trim: CAP_HEIGHT;
  line-height: 30px;
  letter-spacing: 0%;
  text-align: center;
  color: #2c2c2c;
  max-width: 951px;
}

/* Contact section and footer moved to shared.css */

.image-card {
  width: 100%;
  height: 456px;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  box-shadow: 0px 5px 15px 0px #0000008c;
  cursor: pointer;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 0 30px;

  border-radius: 38px;

  /* Hidden by default */
  opacity: 0;
  transition: 0.4s ease;

  /* Gradient */
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    linear-gradient(0deg, rgba(65, 144, 173, 0.7), rgba(65, 144, 173, 0.7));
}

/* Hover Effect */
.image-card:hover .overlay {
  opacity: 1;
}

/* Text */
.overlay h2 {
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 100%;
  margin: 0;
}

.Gallerrow {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.gallery {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.trachingpilospy {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 20px 0px 20px;
}

.image-traching {
  width: 783px;
  height: auto;
  border-top-left-radius: 38px;
  border-bottom-left-radius: 38px;
}

.trachingpilospy-div {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teachingtext {
  font-family: Montserrat;
  font-weight: 700;
  font-style: Bold;
  font-size: 24px;
  leading-trim: CAP_HEIGHT;
  line-height: 24px;
  letter-spacing: 15%;
  text-transform: uppercase;
  color: #4190ad;
}

.internationaltext {
  font-family: Georgia;
  font-weight: 400;
  font-style: Regular;
  font-size: 58px;
  leading-trim: NONE;
  line-height: 120%;
  letter-spacing: 0%;
  vertical-align: middle;
  text-transform: capitalize;
  color: #000000;
}

.Overalltext {
  font-family: Montserrat;
  font-weight: 500;
  font-style: Italic;
  font-size: 24px;
  leading-trim: NONE;
  line-height: 153%;
  letter-spacing: 0%;
  vertical-align: middle;
  margin-top: 3px;
  color: #545454;
  margin-right: 61px;
}

.one {
  max-width: 783px;
  max-height: auto;
}

.two {
  max-width: 523px;
  max-height: auto;
}

.three {
  max-width: 523px;
  max-height: auto;
}

.five {
  max-width: 378px;
  max-height: auto;
}

.six {
  max-width: 679px;
  max-height: auto;
}

/* Responsive overrides for this page if needed */

@media (min-width: 1451px) and (max-width: 1500px) {
  .hero-badge {
    margin-bottom: 40px;
    font-size: 18px;
    padding: 15px 25px;
  }
  .hero-title {
    font-size: 100px;
    margin-bottom: 40px;
  }
  .hero-desc {
    font-size: 18px;
  }
  .hero-bottom-content {
    padding: 70px 30px 70px 30px;
  }
}

@media (min-width: 1351px) and (max-width: 1450px) {
  .hero-badge {
    margin-bottom: 30px;
    font-size: 16px;
  }
  .hero-title {
    font-size: 90px;
    margin-bottom: 30px;
  }
  .hero-desc {
    font-size: 16px;
  }
  .hero-bottom-content {
    padding: 60px 30px 60px 30px;
  }
}

@media (min-width: 1201px) and (max-width: 1350px) {
  .hero-desc {
    max-width: 700px;
  }
  .hero-badge {
    margin-bottom: 20px;
    font-size: 14px;
    padding: 12px 20px;
  }
  .hero-title {
    font-size: 70px;
    margin-bottom: 20px;
  }
  .hero-desc {
    font-size: 13px;
    line-height: 20px;
  }
  .hero-bottom-content {
    padding: 40px 20px 40px 20px;
  }
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: 60px;
  }
  .hero-badge {
    margin-bottom: 15px;
    font-size: 13px;
  }
}

@media (max-width: 1000px) {
  .hero-title {
    font-size: 50px;
    line-height: 60px;
  }
  .hero-desc {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .Hero-Div {
    margin: 12px 10px 0 10px;
    padding: 16px 12px 0 12px;
    border-radius: 24px;
  }
  .hero-bottom-content {
    padding: 30px 16px 30px 16px;
  }
  .hero-badge {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 14px;
    padding: 10px 16px;
  }
  .hero-title {
    font-size: 44px;
    line-height: 48px;
  }
  .hero-desc {
    font-size: 14px;
    line-height: 22px;
  }

  /* Teaching Philosophy */
  .trachingpilospy {
    flex-direction: column;
    gap: 20px;
    padding: 16px 16px 0 16px;
  }
  .image-traching {
    width: 100%;
    border-radius: 24px;
  }
  .teachingtext {
    font-size: 18px;
  }
  .internationaltext {
    font-size: 34px;
  }
  .Overalltext {
    font-size: 16px;
    margin-right: 0;
  }
  .trachingpilospy-div {
    gap: 12px;
    padding: 0 4px;
  }

  /* Gallery */
  .gallery {
    padding: 12px;
    gap: 12px;
  }
  .Gallerrow {
    flex-direction: column;
    gap: 12px;
  }
  .image-card {
    height: 280px;
    border-radius: 20px;
  }
  .overlay h2 {
    font-size: 28px;
  }
  .one, .two, .three, .five, .six {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .Hero-Div {
    margin: 8px 6px 0 6px;
    padding: 12px 8px 0 8px;
    border-radius: 16px;
  }
  .hero-bottom-content {
    padding: 20px 10px 20px 10px;
  }
  .hero-title {
    font-size: 34px;
    line-height: 40px;
  }
  .hero-badge {
    font-size: 11px;
    padding: 8px 14px;
    margin-bottom: 8px;
  }
  .hero-desc {
    font-size: 13px;
    line-height: 20px;
  }

  .trachingpilospy {
    padding: 12px 10px 0 10px;
    gap: 14px;
  }
  .teachingtext {
    font-size: 16px;
  }
  .internationaltext {
    font-size: 26px;
  }
  .Overalltext {
    font-size: 14px;
    line-height: 145%;
  }

  .image-card {
    height: 220px;
    border-radius: 16px;
  }
  .overlay h2 {
    font-size: 22px;
  }
  .gallery {
    padding: 8px;
    gap: 8px;
  }
}

@media (max-width: 375px) {
  .hero-title {
    font-size: 28px;
    line-height: 34px;
  }
  .hero-badge {
    font-size: 10px;
    padding: 7px 12px;
  }
  .internationaltext {
    font-size: 22px;
  }
  .Overalltext {
    font-size: 13px;
  }
  .image-card {
    height: 180px;
    border-radius: 14px;
  }
  .overlay h2 {
    font-size: 18px;
  }
}

@media (max-width: 320px) {
  .Hero-Div {
    margin: 4px 4px 0 4px;
    padding: 8px 6px 0 6px;
    border-radius: 12px;
  }
  .hero-bottom-content {
    padding: 14px 8px 14px 8px;
  }
  .hero-title {
    font-size: 24px;
    line-height: 30px;
  }
  .hero-badge {
    font-size: 9px;
    padding: 6px 10px;
    margin-bottom: 6px;
  }
  .hero-desc {
    font-size: 11px;
    line-height: 17px;
  }

  .trachingpilospy {
    padding: 8px 8px 0 8px;
    gap: 10px;
  }
  .teachingtext {
    font-size: 13px;
  }
  .internationaltext {
    font-size: 18px;
    line-height: 110%;
  }
  .Overalltext {
    font-size: 12px;
    line-height: 140%;
  }

  .gallery {
    padding: 6px;
    gap: 6px;
  }
  .Gallerrow {
    gap: 6px;
  }
  .image-card {
    height: 150px;
    border-radius: 12px;
  }
  .overlay h2 {
    font-size: 15px;
  }
}

/* Keep the content layout as fluid as the homepage between desktop and mobile. */
body {
  overflow-x: clip;
}

@media (min-width: 1451px) and (max-width: 1500px) {
  .hero-title { font-size: 72px; line-height: 1.15; }
}

@media (min-width: 1351px) and (max-width: 1450px) {
  .hero-title { font-size: 66px; }
}

@media (min-width: 1201px) and (max-width: 1350px) {
  .hero-title { font-size: 60px; }
}

@media (min-width: 769px) and (max-width: 1350px) {
  .trachingpilospy {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 0;
  }

  .image-traching {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 30px;
  }

  .trachingpilospy-div {
    max-width: 760px;
    margin: 0 auto;
  }

  .Overalltext { margin-right: 0; }

  .Gallerrow { align-items: stretch; }
  .image-card { min-width: 0; }
}

/* Desktop text scale, matching the homepage breakpoints. */
@media (min-width: 1451px) and (max-width: 1700px) {
  .teachingtext { font-size: 20px; }
  .internationaltext { font-size: 50px; }
  .Overalltext { font-size: 20px; }
}

@media (min-width: 1201px) and (max-width: 1450px) {
  .teachingtext { font-size: 18px; }
  .internationaltext { font-size: 45px; }
  .Overalltext { font-size: 18px; }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .teachingtext { font-size: 16px; }
  .internationaltext { font-size: 40px; }
  .Overalltext { font-size: 16px; }
}

/* Homepage-matched text scaling for the Teaching hero description. */
@media (min-width: 1501px) and (max-width: 1700px) {
  .hero-desc { font-size: 18px; }
}

@media (min-width: 1451px) and (max-width: 1500px) {
  .hero-desc { font-size: 16px; }
}

@media (min-width: 1351px) and (max-width: 1450px) {
  .hero-desc { font-size: 15px; }
}

@media (min-width: 1201px) and (max-width: 1350px) {
  .hero-desc {
    max-width: 700px;
    font-size: 13px;
    line-height: 20px;
  }
}

@media (min-width: 1001px) and (max-width: 1200px) {
  .hero-desc {
    max-width: 700px;
    font-size: 13px;
    line-height: 20px;
  }
}

@media (min-width: 769px) and (max-width: 1000px) {
  .hero-desc {
    max-width: 500px;
    font-size: 13px;
    line-height: 20px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .hero-desc {
    max-width: 500px;
    font-size: 14px;
    line-height: 22px;
  }
}

@media (min-width: 376px) and (max-width: 480px) {
  .hero-desc {
    font-size: 13px;
    line-height: 20px;
  }
}

@media (min-width: 321px) and (max-width: 375px) {
  .hero-desc {
    font-size: 12px;
    line-height: 20px;
  }
}

/* Homepage-matched hero typography at desktop and tablet widths. */
@media (min-width: 1501px) and (max-width: 1700px) {
  .hero-badge { margin-bottom: 40px; font-size: 18px; padding: 15px 25px; }
  .hero-title { font-size: 100px; margin-bottom: 40px; }
  .hero-bottom-content { padding: 70px 30px; }
}
@media (min-width: 1451px) and (max-width: 1500px) {
  .hero-badge { margin-bottom: 30px; font-size: 16px; }
  .hero-title { font-size: 90px; margin-bottom: 30px; }
  .hero-bottom-content { padding: 60px 30px; }
}
@media (min-width: 1351px) and (max-width: 1450px) {
  .hero-badge { margin-bottom: 20px; font-size: 15px; }
  .hero-title { font-size: 80px; margin-bottom: 30px; }
}
@media (min-width: 1201px) and (max-width: 1350px) {
  .hero-badge { margin-bottom: 20px; font-size: 14px; padding: 12px 20px; }
  .hero-title { font-size: 70px; margin-bottom: 20px; }
  .hero-bottom-content { padding: 40px 20px; }
}
@media (min-width: 1001px) and (max-width: 1200px) {
  .hero-badge { margin-bottom: 15px; font-size: 13px; }
  .hero-title { font-size: 60px; }
}
@media (min-width: 769px) and (max-width: 1000px) {
  .hero-title { font-size: 50px; line-height: 60px; }
}
