@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700&family=Quattrocento:wght@400;700&display=swap');
/* Programme activity cards: three desktop columns, two tablet, one mobile. */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 36px;
}

.activity-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fffef9;
  border: 1px solid #e0e3d7;
}

.activity-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.activity-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 27px;
  border-top: 3px solid #c4a456;
}

.activity-category {
  margin-bottom: 12px;
  color: #816421;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.activity-card-body h3 {
  margin-bottom: 12px;
  font-size: 25px;
}

.activity-card-body p {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.8;
}

.activity-clubs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.activity-clubs li {
  padding: 4px 10px;
  background: #eaf0e4;
  color: #284d3d;
  font-size: 11px;
  font-weight: 600;
}

.activity-image-note {
  margin: 19px 0 27px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 600px) {
  .activity-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .activity-card-body {
    padding: 24px;
  }
}

/* The reference layout, in the original Trinity green, cream and gold. */
body {
  font-family: Mulish, Arial, sans-serif;
  background: #fcfaf4;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
}
h1,
h2,
h3 {
  font-family: Quattrocento, Georgia, serif;
  letter-spacing: 0;
  font-weight: 700;
}
h1 {
  font-weight: 400;
}
h2 {
  font-size: 38px;
  line-height: 1.28;
}
h3 {
  font-size: 22px;
}
em {
  font-style: normal;
  color: inherit;
}
p {
  color: #64716a;
}
.wrap {
  max-width: 1180px;
  width: calc(100% - 80px);
}
.section {
  padding-top: 95px;
  padding-bottom: 95px;
}
.eyebrow {
  color: #947126;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 20px;
}
.button {
  border: 1px solid #b99b4f;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 12px 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
}
.button:hover {
  background: var(--ink);
  color: #fff;
  transform: none;
}
.button.yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.text-link {
  border-color: #b89b4b;
}
.outline-light {
  color: white;
  border-color: #e4c66f;
}
.outline-light:hover {
  background: #f4ca52;
  color: #193d35;
}
.section-heading {
  margin-bottom: 45px;
}
header {
  background: #fcfaf4;
  position: relative;
  border: 0;
  backdrop-filter: none;
}
.nav-wrap {
  display: grid;
  grid-template-columns: 145px 1fr auto 135px;
  grid-template-rows: 53px 70px;
  gap: 0 30px;
  padding: 10px 0;
  min-height: 143px;
}
.brand {
  grid-column: 1;
  grid-row: 1/3;
}
.brand img {
  width: 135px;
  height: 110px;
  object-fit: contain;
}
.header-contact {
  grid-column: 2/4;
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #deded2;
  align-self: stretch;
  font-size: 11px;
  white-space: nowrap;
}
.header-contact a:last-child {
  font-size: 10px;
}
.school-mark {
  grid-column: 4;
  grid-row: 1/3;
  text-align: center;
  line-height: 1.5;
  border-left: 1px solid #dfdfd1;
  padding-left: 20px;
}
.school-mark span {
  font-size: 9px;
  letter-spacing: 1.6px;
  display: block;
}
.school-mark strong {
  font:
    24px Quattrocento,
    Georgia,
    serif;
  display: block;
  margin: 10px 0;
  color: #987a32;
}
nav {
  grid-column: 2;
  grid-row: 2;
  justify-content: center;
  gap: 25px;
}
nav a {
  font-weight: 400;
  font-size: 14px;
}
nav a[aria-current='page']:after {
  height: 2px;
  bottom: -12px;
  background: #b7953d;
}
.nav-cta {
  grid-column: 3;
  grid-row: 2;
  font-size: 11px;
  padding: 9px 15px;
  align-self: center;
}
.wide-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: #193d35;
}
.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  z-index: -2;
}
.wide-hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #102c25d9 0%, #193d3570 48%, #193d3515 100%);
  z-index: -1;
}
.hero-inner {
  padding-top: 80px;
  padding-bottom: 95px;
}
.hero-inner h1 {
  font-size: 78px;
  line-height: 1.12;
  color: #fff;
  max-width: 650px;
  margin-bottom: 25px;
}
.hero-inner p {
  color: #fff;
  font-size: 19px;
}
.hero-inner .actions {
  margin-top: 40px;
}
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
}
.editorial > img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}
.portrait-block {
  position: relative;
}
.portrait-block > img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center 40%;
}
.photo-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 22px 28px;
  background: var(--cream);
  text-align: center;
  box-shadow: 0 5px 16px #0001;
  min-width: 165px;
}
.photo-badge strong {
  font:
    38px Quattrocento,
    Georgia,
    serif;
  display: block;
}
.photo-badge span {
  font-size: 12px;
  display: block;
  color: var(--muted);
}
.environment-band,
.calendar-band {
  background:
    linear-gradient(#193d35e8, #193d35e8),
    url('photos/classroom.jpg') center/cover;
  color: white;
}
.environment-band h2,
.calendar-band h2,
.calendar-band h3 {
  color: white;
}
.environment-band .eyebrow {
  color: #efd07b;
}
.environment-band p,
.calendar-band p {
  color: #dce4dd;
}
.environment-band .editorial > img {
  height: 365px;
}
.learning-lines {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}
.learning-lines li {
  border-bottom: 4px solid #ccae5b;
  padding: 8px 0;
  margin-bottom: 10px;
  font-family: Quattrocento, Georgia, serif;
}
.environment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 45px;
}
.environment-grid article {
  background: #fcfaf4;
  padding: 30px;
  border: 1px solid #dddccf;
  color: var(--ink);
}
.environment-grid article:nth-child(3) {
  background: #547565;
  color: white;
}
.environment-grid article:nth-child(3) p {
  color: #e3eae4;
}
.environment-grid p {
  color: #65716b;
  font-size: 14px;
  margin: 0;
}
.environment-grid h3 {
  font-size: 21px;
}
.center-heading {
  text-align: center;
  max-width: 790px;
  margin: 0 auto 50px;
}
.center-heading p {
  margin-bottom: 0;
}
.center-heading h2 {
  margin-bottom: 20px;
}
.center-heading .eyebrow {
  margin-bottom: 13px;
}
.study-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.study-card {
  background: var(--cream);
  display: block;
  box-shadow: 0 7px 20px #00000007;
}
.study-card img {
  height: 305px;
  width: 100%;
  object-fit: cover;
  transition: filter 0.2s;
}
.study-card:hover img {
  filter: brightness(0.88);
}
.study-card > div {
  padding: 18px;
  text-align: center;
}
.study-card h3 {
  font-size: 21px;
  font-weight: 400;
  text-transform: uppercase;
  color: #8b6d27;
  margin-bottom: 5px;
}
.study-card p {
  font-size: 12px;
  margin: 0;
}
.stages-section {
  background: linear-gradient(
    to bottom,
    var(--cream) 0%,
    var(--cream) 67%,
    #193d35 67%,
    #193d35 100%
  );
  padding-bottom: 45px;
}
.calendar-band .section {
  padding-top: 75px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.calendar-grid article {
  border: 1px solid #ffffff40;
  padding: 30px;
}
.calendar-grid article:first-child {
  border-color: #bda15c;
}
.calendar-grid article > span {
  font-size: 34px;
  color: #a8bdb0;
  display: block;
  margin-bottom: 12px;
}
.calendar-grid h3 {
  font-size: 20px;
}
.calendar-grid p {
  font-size: 14px;
  margin-bottom: 10px;
}
.calendar-grid a {
  font-size: 13px;
  color: #f0d692;
}
.center-action {
  text-align: center;
  margin-top: 40px;
}
.family-section > img {
  height: 490px;
}
.welcome-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}
.welcome-cards article {
  background: #fffef9;
  box-shadow: 0 10px 25px #00000008;
  padding: 25px;
}
.welcome-cards h3 {
  font-size: 20px;
}
.welcome-cards p {
  font-size: 14px;
  margin: 0;
}
.page-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #193d35;
  min-height: 285px;
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
}
.page-banner h1 {
  font-size: 48px;
  color: white;
  margin: 0 0 20px;
  line-height: 1.2;
}
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 16px;
}
.breadcrumbs a {
  color: #f5da8b;
}
.mission-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mission-mosaic article {
  background: #365a49;
  padding: 26px;
  color: white;
}
.mission-mosaic p {
  color: #e2e9e2;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.mission-mosaic h3 {
  font-size: 22px;
}
.mission-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 255px;
  object-fit: cover;
  padding: 18px;
}
.soft-section {
  background: #f1f1e8;
}
.cta {
  border-radius: 0;
  margin-top: 70px;
}
.page-admissions .steps {
  text-align: center;
  gap: 40px;
}
.steps b {
  width: 75px;
  height: 75px;
  display: grid;
  place-items: center;
  background: #365a49;
  color: white;
  font:
    30px Quattrocento,
    Georgia,
    serif;
  margin: 0 auto 20px;
}
.date-grid article {
  padding: 25px;
  background: #e6ecdf;
  border: 0;
}
.date-grid h3 {
  font-size: 20px;
}
.class-number {
  border-radius: 0;
}
.transport-panel,
.gallery-placeholder,
.enquiry-form {
  border-radius: 0;
}
.enquiry-form {
  padding: 35px;
  border: 0;
  box-shadow: 0 0 35px #193d3508;
  background: #fffef9;
}
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  border-radius: 0;
  background: transparent;
  padding: 13px;
  border-color: #cdd3c6;
}
.enquiry-form .button {
  width: 100%;
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.contact-layout {
  align-items: start;
}
.contact-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 40px 0;
}
.contact-detail-grid article {
  display: flex;
  gap: 15px;
  min-width: 0;
}
.contact-detail-grid article > span {
  background: #365a49;
  color: white;
  width: 43px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 24px;
}
.contact-detail-grid article > div {
  min-width: 0;
}
.contact-detail-grid h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.contact-detail-grid p,
.contact-detail-grid a {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.contact-layout hr {
  border: 0;
  border-top: 1px solid #d6dcce;
}
.contact-layout .form-grid {
  grid-template-columns: 1fr 1fr;
}
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}
.gallery-filters button {
  border: 0;
  padding: 12px 25px;
  background: #e9ece1;
  color: var(--ink);
  cursor: pointer;
}
.gallery-filters button[aria-pressed='true'] {
  background: var(--ink);
  color: white;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.gallery-card {
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #365a49;
  color: white;
  box-shadow: 0 6px 15px #0001;
  text-align: center;
}
.gallery-card[hidden] {
  display: none;
}
.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.gallery-card > span {
  display: block;
  padding: 18px;
}
.gallery-card strong {
  display: block;
  font:
    21px Quattrocento,
    Georgia,
    serif;
}
.gallery-card small {
  font-size: 13px;
  display: block;
  margin-top: 4px;
  color: #e4e9de;
}
.gallery-count {
  text-align: center;
  font-size: 12px;
  margin-top: 25px;
}
dialog {
  border: 0;
  max-width: min(920px, 90vw);
  max-height: 90vh;
  padding: 26px;
  background: #fcfaf4;
  color: var(--ink);
}
dialog::backdrop {
  background: #102a24dc;
}
dialog img {
  max-height: 68vh;
  width: 100%;
  object-fit: contain;
}
dialog p {
  margin: 15px 0 0;
}
dialog small {
  font-size: 12px;
}
.dialog-close {
  position: absolute;
  right: 6px;
  top: 0;
  border: 0;
  background: #fcfaf4;
  font-size: 30px;
  cursor: pointer;
  color: var(--ink);
}
footer {
  background: #193d35;
  color: white;
  padding-top: 65px;
}
.footer-grid {
  grid-template-columns: 1.1fr 0.8fr 1.25fr 0.8fr;
  gap: 35px;
}
.footer-grid p {
  color: #e0e6df;
}
.footer-grid h3 {
  font-family: Quattrocento, serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e5ca7e;
  font-size: 14px;
}
.footer-logo {
  background: var(--cream);
  padding: 8px;
  mix-blend-mode: normal;
  width: 120px;
}
.footer-bottom {
  border-color: #ffffff25;
  color: #dbe2d9;
}
.whatsapp {
  left: 24px;
  right: auto;
  background: #286348;
}
.page-about .cta {
  margin-bottom: 70px;
}
.page-school-life .features {
  gap: 40px;
}
.page-school-life .feature-icon {
  border-radius: 0;
  transform: none;
}
.gallery-card:hover {
  background: #244b3b;
}
.editorial > div,
.study-card,
.calendar-grid > article {
  min-width: 0;
}
@media (max-width: 1150px) {
  .nav-wrap {
    grid-template-columns: 110px 1fr auto;
    gap: 0 22px;
  }
  .school-mark {
    display: none;
  }
  .brand img {
    width: 105px;
  }
  .header-contact {
    font-size: 10px;
  }
  .header-contact a:last-child {
    display: none;
  }
  nav {
    gap: 17px;
  }
  nav a {
    font-size: 13px;
  }
  .editorial {
    gap: 40px;
  }
  .study-grid {
    gap: 20px;
  }
  .contact-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .nav-wrap {
    display: flex;
    min-height: 90px;
    padding: 10px 0;
    position: relative;
    gap: 20px;
  }
  .brand img {
    height: 75px;
    width: 95px;
  }
  .header-contact {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    border-radius: 0;
  }
  .nav-cta {
    font-size: 10px;
  }
  nav {
    display: none;
    top: 100%;
    padding: 20px;
    z-index: 50;
    background: var(--cream);
  }
  nav.open {
    display: flex;
  }
  .wide-hero {
    min-height: 530px;
  }
  .hero-inner h1 {
    font-size: 64px;
  }
  .editorial {
    gap: 30px;
  }
  .portrait-block > img {
    height: 540px;
  }
  .environment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .study-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .study-card img {
    height: 330px;
  }
  .calendar-grid {
    gap: 15px;
  }
  .calendar-grid article {
    padding: 20px;
  }
  .mission-mosaic article {
    padding: 20px;
  }
  .mission-mosaic img {
    padding: 10px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-banner {
    min-height: 250px;
  }
  .section {
    padding-top: 65px;
    padding-bottom: 65px;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 36px);
  }
  h2 {
    font-size: 31px;
  }
  .section {
    padding-top: 55px;
    padding-bottom: 55px;
  }
  .nav-wrap {
    gap: 10px;
  }
  .brand img {
    width: 85px;
    height: 65px;
  }
  .menu-toggle {
    font-size: 12px;
  }
  .nav-cta {
    font-size: 9px;
    letter-spacing: 1px;
    padding: 10px;
  }
  .wide-hero {
    min-height: 560px;
  }
  .hero-inner {
    padding: 65px 0;
  }
  .hero-inner h1 {
    font-size: 52px;
  }
  .hero-inner p {
    font-size: 16px;
    max-width: 260px;
  }
  .hero-background {
    object-position: 62% center;
  }
  .wide-hero:after {
    background: linear-gradient(90deg, #102c25de, #193d3570);
  }
  .hero-inner .actions {
    gap: 12px;
    flex-wrap: wrap;
  }
  .button {
    font-size: 10px;
    padding: 12px 18px;
  }
  .editorial {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .portrait-block > img {
    height: 470px;
  }
  .editorial > img {
    height: 320px;
  }
  .environment-band .editorial > img {
    height: 270px;
  }
  .environment-grid {
    grid-template-columns: 1fr;
  }
  .environment-grid article {
    padding: 25px;
  }
  .study-grid {
    gap: 15px;
  }
  .study-card img {
    height: 220px;
  }
  .study-card > div {
    padding: 15px 8px;
  }
  .study-card h3 {
    font-size: 18px;
  }
  .study-card p {
    font-size: 10px;
  }
  .calendar-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .calendar-grid article {
    padding: 25px;
  }
  .center-heading {
    margin-bottom: 35px;
  }
  .page-banner h1 {
    font-size: 36px;
  }
  .page-banner {
    min-height: 230px;
  }
  .breadcrumbs {
    font-size: 14px;
  }
  .mission-mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .mission-mosaic img {
    min-height: 240px;
  }
  .mission-mosaic article {
    padding: 20px;
  }
  .mission-mosaic p {
    font-size: 13px;
  }
  .welcome-cards {
    grid-template-columns: 1fr;
  }
  .family-section > img {
    height: 330px;
  }
  .cta {
    margin-top: 45px;
  }
  .footer-grid {
    gap: 25px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-card img {
    height: 280px;
  }
  .gallery-filters {
    gap: 8px;
  }
  .gallery-filters button {
    padding: 9px 15px;
    font-size: 12px;
  }
  .contact-detail-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout .form-grid {
    grid-template-columns: 1fr;
  }
  .enquiry-form {
    padding: 25px;
  }
  .whatsapp {
    left: 15px;
    bottom: 15px;
  }
  .header-contact {
    white-space: normal;
  }
  .page-programmes .study-grid {
    padding-top: 0;
  }
  .page-admissions .steps {
    gap: 25px;
  }
  .page-admissions .steps h3 {
    font-size: 18px;
  }
}

/* Inner-page image banners, with a separate title overlay. */
.page-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #193d3570, #193d357d);
  z-index: -1;
}
.page-banner-content {
  position: relative;
  padding-top: 65px;
  padding-bottom: 65px;
}
