/*-----------------------------------------------------------------------------------
    Global Paradise Convent School - brand overrides
    Loaded AFTER main.css. Keeps every Educate (index-5) decorative element intact and
    only remaps the demo palette to the school crest colours.

    Crest colours sampled from the official logo:
      navy  #22a3d1
      red   #F2A227;
-----------------------------------------------------------------------------------*/

:root {
    --gpcs-navy: #22a3d1;
    --gpcs-navy-deep: #0B1733;
    --gpcs-navy-soft: #1D2F62;
    --gpcs-red: #F2A227;;
    --gpcs-red-dark: #B5151C;
    --gpcs-cream: #FBF7F1;
    --gpcs-grey: #F4F6FA;

    /* remap the theme tokens */
    --it-common-black: #0E2A46;
    --it-heading-primary: #0E2A46;
    --it-common-yellow: #F2A227;
    --it-common-yellow-2: #B5151C;
    --it-theme-4: #22a3d1;
    --it-theme-5: #F2A227;
    --it-grey-3: #FBF7F1;
}

/* ---------------------------------------------------------------- accents */
.it-section-subtitle-5,
.it-section-title-5 span,
.it-section-title-5.yellow span {
    color: var(--gpcs-red);
}

.it-section-subtitle-5.yellow {
    color: #FFD6D8;
}

/* ------------------------------------------------------------ CTA buttons */
.it-btn-yellow,
.it-btn-yellow.radius,
.it-btn-yellow-sm {
    color: var(--it-common-white);
    background-color: var(--gpcs-red);
}

.it-btn-yellow:hover,
.it-btn-yellow.radius:hover,
.it-btn-yellow-sm:hover {
    color: var(--it-common-white);
    background-color: var(--gpcs-navy);
}

.it-btn-border:hover {
    color: var(--it-common-white);
    background-color: var(--gpcs-red);
    border-color: var(--gpcs-red);
}

.it-btn {
    background-color: var(--gpcs-navy);
    color: var(--it-common-white);
}

.it-btn:hover {
    background-color: var(--gpcs-red);
    color: var(--it-common-white);
}

/* --------------------------------------------------------------- surfaces */
.yellow-bg {
    background-color: var(--gpcs-red);
}

.black-bg {
    background-color: var(--gpcs-navy-deep);
}

.theme-bg-4 {
    background: var(--gpcs-navy);
}

/* ------------------------------------------------------------ header bits */
/* The header logo is sized here and nowhere else. !important is deliberate: on a
   CMS-served page, site-level CSS injected into <head> loads after the theme's
   stylesheets and was inflating this image and drawing a border round it. */
.it-header-5-logo img,
.it-footer-logo img {
    border: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.it-header-5-logo img {
    max-height: 52px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
}

@media (max-width: 767px) {
    .it-header-5-logo img {
        max-height: 44px !important;
    }
}

/* Header call-to-action button: pill shape matching Educate index-5 template */
.it-header-2-right {
    align-items: center;
}

.it-header-2-button .it-btn-yellow {
    height: 54px;
    line-height: 54px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 50px;
    background-color: var(--it-common-yellow);
    color: var(--it-common-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(242, 162, 39, 0.25);
    transition: all 0.3s ease;
}

.it-header-2-button .it-btn-yellow span {
    display: inline-flex;
    align-items: center;
}

.it-header-2-button .it-btn-yellow:hover {
    background-color: #0E2A46;
    color: var(--it-common-white);
    box-shadow: 0 6px 18px rgba(14, 42, 70, 0.25);
    transform: translateY(-1px);
}

.it-header-2-top-left ul li a,
.it-header-2-top-left ul li a span {
    color: #E7EBF5;
}

.it-header-2-top-left ul li a:hover {
    color: var(--it-common-white);
}

.it-header-2-top-social a {
    color: #E7EBF5;
}

.it-header-2-top-social a:hover {
    color: var(--it-common-white);
}

/* Header navigation: matched to original Educate index-5 template */
.it-header-2-main-menu nav.it-menu-content > ul {
    padding-left: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.it-header-2-main-menu nav.it-menu-content > ul > li {
    margin: 0 10px;
    list-style-type: none;
    position: relative;
    display: inline-block;
}

.it-header-2-main-menu nav.it-menu-content > ul > li > a {
    font-size: 15px;
    font-weight: 600;
    color: #0E2A46;
    font-family: var(--it-ff-heading);
    white-space: nowrap;
    padding: 35px 0;
    display: inline-block;
    text-transform: capitalize;
    transition: 0.3s;
}

.it-header-2-main-menu nav.it-menu-content > ul > li.has-dropdown::after {
    content: "\f107";
    font-family: "Font Awesome 6 Pro";
    display: inline-block;
    font-size: 14px;
    margin-left: 5px;
    font-weight: 400;
    color: #0E2A46;
    transition: 0.3s;
    transform: translateY(1px);
}

.it-header-2-main-menu nav.it-menu-content > ul > li:hover > a,
.it-header-2-main-menu nav.it-menu-content > ul > li.active > a {
    color: var(--it-common-yellow);
}

.it-header-2-main-menu nav.it-menu-content > ul > li:hover.has-dropdown::after {
    color: var(--it-common-yellow);
}

/* Sticky header padding */
.header-sticky.it-header-5-style .it-header-2-main-menu > nav > ul > li > a {
    padding: 20px 0;
}

/* Submenu dropdown styles */
.it-header-2-main-menu ul li > .submenu {
    background-color: #0E2A46;
    border-top: 4px solid var(--it-common-yellow);
}

.it-header-2-main-menu ul li > .submenu > li > a {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 500;
}

.it-header-2-main-menu ul li > .submenu > li > a:hover {
    color: var(--it-common-yellow);
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .it-header-2-main-menu nav.it-menu-content > ul > li {
        margin: 0 6px;
    }

    .it-header-2-main-menu nav.it-menu-content > ul > li > a {
        font-size: 15px;
    }

    .it-header-2-button .it-btn-yellow {
        padding: 0 16px;
        font-size: 14px;
    }
}

/* The accent panel at the right of the top bar */
.it-header-5-top-style .it-header-2-top-right {
    padding-right: 36px;
    position: relative;
}

.it-header-5-top-style .it-header-2-top-right::after {
    content: "";
    position: absolute;
    top: 0;
    right: 15px;
    height: 100%;
    width: 4px;
    background-color: var(--it-theme-4);
}

/* ----------------------------------------------------------- hero / panels */
.it-hero-2-title,
.it-breadcrumb-title {
    text-transform: none;
}

/* The intro video and the hero below it read as one surface: this band is painted
   with the top row of the hero's gradient image (bg-hero-hero-bg-5.jpg), and the
   hero stretches that image to its own box so the colours meet at every width. */
.gpcs-top-video-area {
    position: relative;
    padding-top: 32px;
    background: linear-gradient(90deg, #E2F3FA 0%, #DEF1F8 25%, #F5F7F4 50%, #FEF5E6 75%, #FFF7EC 100%);
}

.gpcs-top-video-area > .container {
    position: relative;
    z-index: 1;
}

.gpcs-top-video-heading {
    position: absolute;
    top: clamp(26px, 4vw, 58px);
    left: max(24px, calc((100vw - 1600px) / 2 + 48px));
    z-index: 3;
    max-width: 560px;
    margin: 0;
    padding: 18px 30px 20px;
    border-left: 4px solid var(--gpcs-red);
    border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, rgba(11, 23, 51, 0.9), rgba(11, 23, 51, 0.62));
    text-align: left;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.gpcs-top-video-area.is-playing .gpcs-top-video-heading {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
}

.gpcs-top-video-heading .it-section-subtitle-5 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gpcs-red);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gpcs-top-video-heading .it-section-title-5 {
    margin-bottom: 0;
    color: var(--it-common-white);
    font-size: clamp(25px, 2.6vw, 40px);
    line-height: 1.16;
    text-shadow: 0 2px 14px rgba(11, 23, 51, 0.45);
}

/* 16:9 and capped at 1000px wide; the width alone sets the size, so it does not
   shrink on laptops with display scaling (short viewports). */
.gpcs-top-video-player {
    position: relative;
    width: min(100%, 1000px);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 28px 56px -18px rgba(14, 42, 70, 0.35);
}

/* thumbnail and player share one box, so starting playback cannot change its height */
.gpcs-top-video-player > img,
.gpcs-top-video-player > iframe {
    position: absolute;
    inset: 0;
}

.gpcs-hero-media {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(11, 23, 51, 0.28);
}

.gpcs-hero-media img {
    width: 100%;
    height: auto;
    display: block;
}

.gpcs-video-facade {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--gpcs-navy);
    cursor: pointer;
    overflow: hidden;
    border-radius: 22px;
}

/* deep navy rather than the crest blue, so the player loads on a dark ground */
.gpcs-top-video-player.gpcs-video-facade {
    border-radius: 20px;
    background: var(--gpcs-navy-deep);
}

.gpcs-top-video-player.gpcs-video-facade::before {
    display: none;
}

.gpcs-video-facade::before {
    content: "WATCH SCHOOL VIDEO";
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(11, 23, 51, 0.66);
    color: var(--it-common-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.gpcs-video-facade::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(11, 23, 51, 0.1), transparent 45%, rgba(11, 23, 51, 0.32));
}

.gpcs-video-facade img,
.gpcs-video-facade iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    object-fit: cover;
}

.gpcs-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 88px;
    height: 88px;
    border: 6px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB52B, #F28D18);
    color: var(--it-common-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 12px 28px rgba(11, 23, 51, 0.35);
    transition: transform 0.25s ease, background-color 0.25s ease;
    z-index: 2;
}

.gpcs-video-play::before {
    content: "";
    position: absolute;
    inset: -13px;
    border: 1px solid rgba(242, 162, 39, 0.72);
    border-radius: 50%;
    animation: gpcs-video-pulse 2.2s ease-out infinite;
}

.gpcs-video-play i {
    margin-left: 4px;
    font-size: 23px;
}

.gpcs-video-play:hover,
.gpcs-video-play:focus-visible {
    background: var(--gpcs-navy);
    transform: translate(-50%, -50%) scale(1.08);
}

.gpcs-video-facade.is-playing {
    cursor: default;
}

.gpcs-video-facade.is-playing::before,
.gpcs-video-facade.is-playing::after {
    display: none;
}

@keyframes gpcs-video-pulse {
    0% {
        opacity: 0.9;
        transform: scale(0.9);
    }
    70%,
    100% {
        opacity: 0;
        transform: scale(1.22);
    }
}

@media (max-width: 575px) {
    .gpcs-top-video-area {
        padding-top: 16px;
    }

    .gpcs-top-video-player.gpcs-video-facade {
        border-radius: 14px;
    }

    .gpcs-top-video-heading {
        top: 18px;
        left: 18px;
        right: 18px;
        max-width: none;
        padding: 13px 15px 15px;
        border-left-width: 3px;
        border-radius: 0 10px 10px 0;
    }

    .gpcs-top-video-heading .it-section-subtitle-5 {
        font-size: 10px;
    }

    .gpcs-top-video-heading .it-section-title-5 {
        font-size: 23px;
    }

    .gpcs-video-play {
        width: 62px;
        height: 62px;
    }
}

.gpcs-media-note {
    display: block;
    margin-top: 12px;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    color: #5D6680;
}

/* ------------------------------------------------------------- fact strip */
.gpcs-fact {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 28px 22px;
    height: 100%;
    text-align: center;
}

.gpcs-fact i {
    font-size: 30px;
    color: #FFFFFF;
    margin-bottom: 14px;
    display: inline-block;
}

.gpcs-fact strong {
    display: block;
    font-family: var(--it-ff-heading);
    font-size: 22px;
    line-height: 1.25;
    color: var(--it-common-white);
    margin-bottom: 6px;
}

.gpcs-fact span {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------------- generic cards */
.gpcs-card {
    background: var(--it-common-white);
    border: 1px solid #E8EBF2;
    border-radius: 14px;
    padding: 34px 30px;
    height: 100%;
    transition: 0.35s;
}

.gpcs-card:hover {
    border-color: var(--gpcs-red);
    box-shadow: 0 18px 40px rgba(17, 30, 68, 0.1);
    transform: translateY(-4px);
}

.gpcs-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gpcs-grey);
    color: var(--gpcs-red);
    font-size: 24px;
    margin-bottom: 22px;
}

.gpcs-card h4 {
    font-size: 21px;
    margin-bottom: 12px;
    color: var(--gpcs-navy);
}

.gpcs-card p {
    margin-bottom: 0;
}

/* ------------------------------------------------------- document listing */
.gpcs-doc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gpcs-doc-list li {
    margin-bottom: 14px;
}

.gpcs-doc-list li a,
.gpcs-doc-list li .gpcs-doc-pending {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--it-common-white);
    border: 1px solid #E3E7F0;
    border-left: 4px solid var(--gpcs-red);
    border-radius: 10px;
    padding: 18px 22px;
    font-weight: 600;
/*    color: var(--gpcs-navy);*/
    transition: 0.3s;
}

.gpcs-doc-list li a:hover {
    background: var(--gpcs-navy);
    border-color: var(--gpcs-navy);
    color: var(--it-common-white);
}

.gpcs-doc-list li a i {
    font-size: 20px;
    color: var(--gpcs-red);
}

.gpcs-doc-list li a:hover i {
    color: var(--it-common-white);
}

.gpcs-doc-list li .gpcs-doc-pending {
    border-left-color: #C9CEDB;
    color: #6E7793;
    font-weight: 500;
}

.gpcs-doc-list li .gpcs-doc-pending i {
    font-size: 20px;
    color: #C9CEDB;
}

.gpcs-doc-meta {
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.75;
}

/* ------------------------------------------------------------ data table */
.gpcs-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #E3E7F0;
}

.gpcs-table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    background: var(--it-common-white);
}

.gpcs-table th,
.gpcs-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #EDF0F6;
    font-size: 15px;
}

.gpcs-table thead th {
    background: var(--gpcs-navy);
    color: var(--it-common-white);
    font-family: var(--it-ff-heading);
    font-weight: 600;
    border-bottom: none;
}

.gpcs-table tbody tr:last-child td {
    border-bottom: none;
}

.gpcs-table tbody tr:nth-child(even) {
    background: #FAFBFD;
}

/* ------------------------------------------------------- leader / message */
.gpcs-leader {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.gpcs-leader-photo {
    flex: 0 0 300px;
    max-width: 300px;
}

.gpcs-leader-photo img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    background: var(--gpcs-grey);
}

.gpcs-leader-photo span {
    display: block;
    margin-top: 16px;
    text-align: center;
}

.gpcs-leader-photo strong {
    display: block;
    font-family: var(--it-ff-heading);
    font-size: 19px;
    color: var(--gpcs-navy);
}

.gpcs-leader-body {
    flex: 1 1 320px;
}

.gpcs-leader-body blockquote {
    border-left: 4px solid var(--gpcs-red);
    padding: 6px 0 6px 24px;
    margin: 0 0 24px;
    font-size: 20px;
    line-height: 1.6;
    font-style: italic;
    color: var(--gpcs-navy);
}

@media (max-width: 575px) {
    .gpcs-leader-photo {
        flex: 1 1 100%;
        max-width: 260px;
        margin: 0 auto;
    }
}

/* photo slot waiting on a real school photograph */
.gpcs-photo-pending {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    aspect-ratio: 3 / 4;
    border: 2px dashed #C3CAD9;
    border-radius: 14px;
    background: var(--gpcs-grey);
    color: #7A8299;
    text-align: center;
    padding: 24px;
    font-size: 14px;
}

.gpcs-photo-pending i {
    font-size: 34px;
    color: #AEB7CA;
}

/* ------------------------------------------------------------- notice row */
.gpcs-notice {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    background: var(--it-common-white);
    border: 1px solid #E6EAF2;
    border-radius: 14px;
    padding: 26px 28px;
    height: 100%;
}

.gpcs-notice-date {
    flex: 0 0 76px;
    text-align: center;
    background: var(--gpcs-navy);
    color: var(--it-common-white);
    border-radius: 10px;
    padding: 12px 6px;
}

.gpcs-notice-date b {
    display: block;
    font-size: 24px;
    line-height: 1;
    font-family: var(--it-ff-heading);
}

.gpcs-notice-date span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.gpcs-notice h4 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--gpcs-navy);
}

.gpcs-notice p {
    margin-bottom: 10px;
    font-size: 15px;
}

.gpcs-notice a {
    font-weight: 600;
    color: var(--gpcs-red);
}

/* ------------------------------------------------------------ info banner */
.gpcs-callout {
    background: var(--gpcs-cream);
    border: 1px solid #EFE4D2;
    border-left: 4px solid var(--gpcs-red);
    border-radius: 12px;
    padding: 24px 28px;
}

.gpcs-callout p:last-child {
    margin-bottom: 0;
}

.gpcs-callout a {
    color: var(--gpcs-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gpcs-callout a:hover {
    color: var(--gpcs-navy);
}

/* content awaiting the school's input - visible to editors, plain to readers */
.gpcs-placeholder {
    background: #FFF8E8;
    border: 1px dashed #D8B45E;
    border-radius: 10px;
    padding: 18px 22px;
    color: #7A6424;
    font-size: 15px;
}

.gpcs-placeholder strong {
    color: #5E4C17;
}

/* -------------------------------------------------------------- contact */
.gpcs-contact-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--it-common-white);
    border: 1px solid #E6EAF2;
    border-radius: 14px;
    padding: 28px 26px;
    height: 100%;
}

.gpcs-contact-card i {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--gpcs-navy);
    color: var(--it-common-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.gpcs-contact-card h5 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--gpcs-navy);
}

.gpcs-contact-card a,
.gpcs-contact-card p {
    display: block;
    margin-bottom: 2px;
    color: var(--it-text-body);
    font-size: 15px;
}

.gpcs-contact-card a:hover {
    color: var(--gpcs-red);
}

.gpcs-map {
    border-radius: 14px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid #E6EAF2;
}

.gpcs-map iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

@media (max-width: 767px) {
    .gpcs-map iframe {
        height: 300px;
    }
}

/* ---------------------------------------------------------------- gallery */
.gpcs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .gpcs-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .gpcs-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gpcs-gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    display: block;
    background: var(--gpcs-grey);
}

.gpcs-gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: 0.5s;
}

.gpcs-gallery-item:hover img {
    transform: scale(1.06);
}

.gpcs-gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 20px 16px;
    background: linear-gradient(to top, rgba(11, 23, 51, 0.88), rgba(11, 23, 51, 0));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

/* -------------------------------------------------------------- footer */
.it-footer-logo img {
    max-height: 64px;
    width: auto;
}

.it-footer-area {
    background-color: var(--gpcs-navy-deep);
}

.it-footer-list ul li a:hover,
.it-footer-social a:hover {
    color: var(--gpcs-red);
}

.gpcs-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gpcs-footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.6;
}

.gpcs-footer-contact li i {
    color: var(--gpcs-red);
    margin-top: 5px;
}

.gpcs-footer-contact li a,
.gpcs-footer-contact li a:visited,
.gpcs-footer-contact li a:hover,
.gpcs-footer-contact li a:focus {
    color: #ffffff;
}

/* --------------------------------------------------------------- general */
img {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden;
}

.gpcs-section-note {
    font-size: 14px;
    color: #6E7793;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gpcs-red);
    outline-offset: 2px;
}


/* ------------------------------------------------- image sizing corrections */
/* main.css sets `max-width: inherit` on these, which was fine for the demo's
   pre-cropped cut-outs but lets a full-size photograph overflow its column. */
.it-about-5-thumb img,
.it-faq-thumb img,
.it-video-2-thumb img,
.it-hero-2-thumb img,
.it-about-4-thumb img {
    max-width: 100%;
    height: auto;
}

.it-faq-thumb img {
    border-radius: 16px;
}

/* the dark band behind a section of equal-height cards should cover all of it */
.it-team-3-area.it-team-3-style-2 .it-team-3-bg {
    height: 100%;
}


/* ------------------------------------------------------- contrast repairs */
/* notes that sit inside the dark enquiry panel */
.it-contact-wrap .gpcs-section-note,
.it-contact-wrap .gpcs-form-status {
    color: #B9C2D8;
}

.it-contact-wrap .gpcs-section-note a {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* the footer's demo background image reads as near-black; the brand navy texture
   keeps the depth without losing the colour */
.it-footer-area.it-footer-bg {
    background-color: var(--gpcs-navy-deep);
}

.it-copyright-area {
    background-color: var(--gpcs-navy);
}

.it-copyright-text p {
/*    color: #C7CEDD;*/
    margin-bottom: 0;
}

/* long email addresses must wrap inside the narrow footer column */
.gpcs-footer-contact li,
.gpcs-footer-contact li a {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* hero copy must sit above the theme's decorative squiggles */
.it-hero-2-area .it-hero-2-content {
    position: relative;
    z-index: 3;
}

.it-hero-2-area .it-hero-2-thumb-box {
    z-index: 2;
}

/* Stretched rather than cropped, so the image's top row always matches the intro
   video band above it (see .gpcs-top-video-area). */
.it-hero-2-area.it-hero-5-style {
    padding-top: 64px;
    padding-bottom: 64px;
    background-size: 100% 100%;
}

/* main.css gives the copy 120px of padding at 992-1199px and 50px below it */
.it-hero-2-area.it-hero-5-style .it-hero-2-content {
    padding: 0;
}

/* main.css places these for the demo's 365px-tall top padding; at this height they
   landed on the heading and the intro copy, so keep them in the empty padding */
.it-hero-2-area.it-hero-5-style .it-hero-5-shape-2 {
    top: 24px;
    left: 262px;
}

.it-hero-2-area.it-hero-5-style .it-hero-5-shape-3 {
    bottom: -20px;
}

@media (max-width: 991px) {
    .it-hero-2-area.it-hero-5-style {
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .it-hero-2-area.it-hero-5-style .it-hero-2-content {
        padding-bottom: 24px;
    }

    .it-hero-2-area.it-hero-5-style .it-hero-5-shape-7 {
        top: 14px;
        right: 24px;
    }

    /* main.css only undoes its -35px nudge below 768px; stacked, the photo should
       line up with the video and copy above it */
    .it-hero-2-area.it-hero-5-style .it-hero-2-thumb {
        transform: none;
    }
}

@media (max-width: 575px) {
    .it-hero-2-area.it-hero-5-style {
        padding-top: 36px;
        padding-bottom: 44px;
    }
}

/* equal-height cards inside the dark bands */
.it-team-3-area .gpcs-card {
    height: 100%;
}


/* the image caption under the about/facilities thumb must clear the shapes */
.it-about-5-thumb-box {
    position: relative;
    z-index: 3;
}

.it-about-5-thumb-box .gpcs-section-note {
    position: relative;
    z-index: 4;
}

/* breadcrumb banner sits on the brand navy texture, not a stock photograph */
.it-breadcrumb-area.it-breadcrumb-bg {
    background-color: var(--gpcs-navy);
    background-position: center center;
    background-size: cover;
}


/* inline links inside cards, notices and tables need to read as links -
   buttons are excluded, or a red label lands on a red button */
.gpcs-card a:not([class*="it-btn"]),
.gpcs-table a:not([class*="it-btn"]),
.gpcs-contact-card p a {
    color: var(--gpcs-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gpcs-card a:not([class*="it-btn"]):hover,
.gpcs-table a:not([class*="it-btn"]):hover {
    color: var(--gpcs-navy);
}

.gpcs-placeholder a {
    color: #8A6A14;
    text-decoration: underline;
}


/* contact cards: keep the social row horizontal and let long emails wrap */
.gpcs-contact-card .it-footer-social {
    display: flex;
    gap: 14px;
}

.gpcs-contact-card .it-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gpcs-grey);
    margin: 0;
}

.gpcs-contact-card .it-footer-social a:hover {
    background: var(--gpcs-red);
    color: #fff !important;
}

.gpcs-contact-card a,
.gpcs-contact-card p {
    word-break: break-word;
    overflow-wrap: anywhere;
}


/* buttons inside cards keep the button palette */
.gpcs-card .it-btn-yellow-sm,
.gpcs-card .it-btn-yellow {
    color: var(--it-common-white);
    text-decoration: none;
}


.gpcs-table-wrap {
    max-width: 100%;
}


/* the wide disclosure tables scroll sideways on a phone - the classic CSS scroll
   shadow gives parents a visible cue that there is more to the right */
.gpcs-table-wrap {
    background-image:
        linear-gradient(to right, #FFFFFF 30%, rgba(255, 255, 255, 0)),
        linear-gradient(to left, #FFFFFF 30%, rgba(255, 255, 255, 0)),
        radial-gradient(farthest-side at 0 50%, rgba(17, 30, 68, 0.2), rgba(17, 30, 68, 0)),
        radial-gradient(farthest-side at 100% 50%, rgba(17, 30, 68, 0.2), rgba(17, 30, 68, 0));
    background-position: left center, right center, left center, right center;
    background-repeat: no-repeat;
    background-size: 44px 100%, 44px 100%, 15px 100%, 15px 100%;
    background-attachment: local, local, scroll, scroll;
}

/* ------------------------------------------------- heading colour override */
/* All headings use #000000 black regardless of the brand colour palette.
   Placed after all component styles so it overrides the base rule in main.css
   that maps headings to --it-heading-primary. Component-specific heading
   colours (e.g. inside .gpcs-card, .gpcs-notice) are left intact because
   those selectors are more specific than the bare element selector below. */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #000000;
}


/* =========================================================================
   Homepage presentation pass
   Alignment, rhythm and contrast corrections for the sections the homepage
   shares with the other pages. Nothing here changes content or behaviour.
   ========================================================================= */

/* ------------------------------------------------- decorative shape layer */
/* The Educate theme scatters absolutely-positioned doodles across each
   section. They must never sit over copy or swallow a click. */
[class*="it-"][class*="-shape-"] {
    pointer-events: none;
}

.it-class-area .container,
.it-team-3-area .container,
.it-blog-area .container,
.it-gallery-area .container,
.it-feature-area .container,
.it-funfact-5-area .container {
    position: relative;
    z-index: 2;
}

/* ------------------------------------------------------- "classes we teach" */
/* Three photographs of three different shapes left the cards ragged: the
   thumbnails now share one ratio and the blue meta bar sits on the baseline. */
.it-class-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: #F3F5F5;
    box-shadow: 0 10px 30px rgba(17, 30, 68, 0.06);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.it-class-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(17, 30, 68, 0.12);
}

.it-class-thumb {
    overflow: hidden;
}

/* most school photos are portrait; crop a little above centre to keep faces in frame */
.it-class-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center 30%;
}

.it-class-text {
    flex: 1 1 auto;
    padding: 28px 30px 24px;
}

.it-class-text p {
    font-size: 16px;
    line-height: 1.7;
}

.it-class-title {
    font-size: 20px;
    letter-spacing: 0.01em;
}

.it-class-meta-box {
    padding: 13px 20px 11px;
}

.it-class-meta span {
    line-height: 1.6;
    letter-spacing: 0.04em;
}

/* ------------------------------------------------------------ fact strip */
/* White at 82% on the brand orange was below a readable contrast ratio, and
   the inherited 30px line-height spread three words over three lines. */
.gpcs-fact {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    padding: 30px 24px;
}

.gpcs-fact span {
    font-size: 15px;
    line-height: 1.55;
    color: #FFFFFF;
}

.gpcs-fact strong {
    font-size: 21px;
    margin-bottom: 8px;
}

/* --------------------------------------------------------- feature cards */
.it-feature-item {
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.it-feature-item::after {
    border-radius: 14px;
}

.it-feature-item-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.it-feature-item .it-feature-text {
    flex: 1 1 auto;
}

.it-feature-text p {
    font-size: 16px;
    line-height: 1.7;
}

/* ------------------------------------------------- co-curricular / notices */
.gpcs-card {
    display: flex;
    flex-direction: column;
}

.gpcs-card p,
.gpcs-notice p {
    font-size: 15.5px;
    line-height: 1.7;
}

.gpcs-notice {
    flex-direction: row;
}

.gpcs-notice > div:last-child {
    display: flex;
    flex-direction: column;
}

.gpcs-notice > div:last-child p {
    flex: 1 1 auto;
}

.gpcs-notice a {
    align-self: flex-start;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* -------------------------------------------------------------- faq panel */
/* The photograph used to stop well short of the accordion beside it. */
.it-faq-style-5 .it-faq-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
}

@media (max-width: 991px) {
    .it-faq-style-5 .it-faq-thumb img {
        aspect-ratio: 16 / 9;
    }
}

/* ------------------------------------------------------------ hero media */
.gpcs-hero-media img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* ------------------------------------------------------- director's panel */
.it-video-2-thumb img {
    box-shadow: 0 24px 50px rgba(11, 23, 51, 0.18);
}

/* ----------------------------------------------------------- button sizing */
/* One size and weight for every call to action on the page. */
.it-btn-yellow,
.it-btn-yellow.radius,
.it-btn-border {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ----------------------------------------------------------------- footer */
/* The office address is longer than the column it sits in. */
.it-footer-widget .gpcs-footer-contact li a,
.gpcs-footer-contact li a {
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------- banner slider */
/* Full-width frame above the hero, the same 8:3 shape as the banners (2048 x 768),
   so each banner fills it edge to edge at every screen width. Banners for this slot
   should be made at 8:3; a different shape is trimmed to fit, never stretched. */
.gpcs-banner-area {
    position: relative;
    background: linear-gradient(90deg, #E2F3FA 0%, #DEF1F8 25%, #F5F7F4 50%, #FEF5E6 75%, #FFF7EC 100%);
}

.gpcs-banner {
    position: relative;
    background: var(--gpcs-navy-deep);
}

.gpcs-banner-active {
    width: 100%;
    aspect-ratio: 8 / 3;
}

.gpcs-banner-slide {
    overflow: hidden;
    background: var(--gpcs-navy-deep);
}

.gpcs-banner-slide img {
    transition: none;
}

.gpcs-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gpcs-banner-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--it-heading-primary);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(11, 23, 51, 0.25);
    transform: translateY(-50%);
    cursor: pointer;
}

.gpcs-banner-prev {
    left: 24px;
}

.gpcs-banner-next {
    right: 24px;
}

.gpcs-banner-nav:hover,
.gpcs-banner-nav:focus-visible {
    color: var(--it-common-white);
    background: var(--gpcs-red);
}

.gpcs-banner-nav:focus-visible,
.gpcs-banner-pagination .swiper-pagination-bullet:focus-visible {
    outline: 3px solid var(--gpcs-navy);
    outline-offset: 3px;
}

.gpcs-banner-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 0;
}

.gpcs-banner-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0;
    border-radius: 6px;
    background: var(--it-heading-primary);
    opacity: 0.25;
    transition: width 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.gpcs-banner-pagination .swiper-pagination-bullet-active {
    width: 34px;
    background: var(--gpcs-red);
    opacity: 1;
}

/* On phones the banner is too short for arrows over the artwork without covering its
   lettering, so they drop into the dots row underneath. */
@media (max-width: 767px) {
    .gpcs-banner-nav {
        top: calc(100% + 6px);
        width: 34px;
        height: 34px;
        box-shadow: 0 4px 12px rgba(11, 23, 51, 0.18);
        transform: none;
    }

    .gpcs-banner-nav svg {
        width: 14px;
        height: 14px;
    }

    .gpcs-banner-prev {
        left: 16px;
    }

    .gpcs-banner-next {
        right: 16px;
    }

    .gpcs-banner-pagination {
        min-height: 46px;
        padding: 0 60px;
    }
}
