.school-home {
    --school-green: #007547;
    --school-green-dark: #004f34;
    --school-navy: #061a3a;
    --school-muted: #647187;
    --school-border: #e7edf2;
    background: #fff;
    color: var(--school-navy);
    font-family: "Rubik", sans-serif;
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
}

.school-home *,
.school-home *::before,
.school-home *::after {
    box-sizing: border-box;
}

.school-container {
    width: min(100% - 32px, 1200px);
    margin: 0 auto;
    max-width: 100%;
}

.school-home > section {
    max-width: 100vw;
    overflow-x: hidden;
}

.school-home .school-hero-slider.owl-carousel,
.school-hero-slider {
    height: 620px !important;
    margin: 0;
    min-height: 620px;
    padding: 0 !important;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.school-hero-slider .owl-stage-outer,
.school-hero-slider .owl-stage,
.school-hero-slider .owl-item {
    height: 100% !important;
}

.school-hero-slider:not(.owl-loaded) .school-hero:not(:first-child),
.school-teacher-carousel:not(.owl-loaded) .school-carousel-item:nth-child(n + 7),
.school-testimonial-carousel:not(.owl-loaded) .school-carousel-item:nth-child(n + 2) {
    display: none;
}

.school-hero-slider.owl-carousel .owl-stage,
.school-hero-slider.owl-carousel .owl-item {
    display: flex;
}

.school-hero-slider.owl-carousel,
.school-teacher-carousel.owl-carousel,
.school-testimonial-carousel.owl-carousel {
    max-width: 100%;
}

.school-hero-slider .owl-stage,
.school-teacher-carousel .owl-stage,
.school-testimonial-carousel .owl-stage {
    min-width: 0;
}

.school-hero-slider .owl-dots {
    align-items: center;
    bottom: 16px !important;
    display: flex !important;
    gap: 7px;
    height: 10px;
    justify-content: center;
    left: 50%;
    line-height: 1;
    margin: 0 !important;
    position: absolute !important;
    transform: translateX(-50%);
    width: auto;
    z-index: 5;
}

.school-hero-slider .owl-dot,
.school-teacher-carousel .owl-dot,
.school-testimonial-carousel .owl-dot {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    display: inline-flex !important;
    height: 10px;
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
    padding: 0 !important;
    width: auto;
}

.school-hero-slider .owl-dot span,
.school-teacher-carousel .owl-dot span,
.school-testimonial-carousel .owl-dot span {
    background: rgba(0, 117, 71, 0.22);
    border-radius: 999px;
    display: block;
    height: 7px;
    margin: 0;
    width: 7px;
}

.school-hero-slider .owl-dot.active span,
.school-teacher-carousel .owl-dot.active span,
.school-testimonial-carousel .owl-dot.active span {
    background: var(--school-green);
    width: 22px;
}

.school-hero {
    height: 100%;
    min-height: 620px;
    overflow: hidden;
    width: 100%;
    background-image: var(--school-hero-image);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.school-hero__content {
    max-width: 500px;
    padding: 58px 0;
}

.school-hero h1 {
    color: var(--school-navy);
    font-size: 42px;
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 20px;
}

.school-hero h1 span {
    color: var(--school-green);
    display: block;
}

.school-hero p {
    color: #30415f;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 30px;
}

.school-hero__actions,
.school-btn,
.school-newsbar__inner,
.school-newsbar__label,
.school-newsbar__date,
.school-stat,
.school-about-list li,
.school-testimonial__user,
.school-section-title--with-link {
    display: flex;
    align-items: center;
}

.school-hero__actions {
    gap: 22px;
    flex-wrap: wrap;
}

.school-btn {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    gap: 10px;
    min-height: 44px;
    padding: 0 20px;
    text-decoration: none;
}

.school-btn--primary {
    background: var(--school-green);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 117, 71, 0.18);
}

.school-btn--primary:hover {
    background: var(--school-green-dark);
    color: #fff;
    text-decoration: none;
}

.school-btn--light {
    background: #fff;
    color: var(--school-navy);
    border: 1px solid var(--school-border);
    box-shadow: 0 10px 25px rgba(6, 26, 58, 0.08);
}

.school-btn--light:hover {
    color: var(--school-green);
    text-decoration: none;
}

.school-newsbar {
    background: linear-gradient(90deg, #002651 0%, #001f45 72%, #006d3f 100%);
    color: #fff;
    display: flex;
    align-items: center;
    height: 30px !important;
    line-height: 30px;
    margin: 0;
    min-height: 30px;
    max-height: 30px;
    overflow: hidden;
    padding: 0 !important;
}

.school-newsbar__inner {
    height: 30px !important;
    min-height: 30px;
    gap: 14px;
    overflow: hidden;
}

.school-newsbar__label,
.school-newsbar__date {
    background: var(--school-green);
    border-radius: 6px;
    color: #fff;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    gap: 8px;
    height: 22px;
    padding: 0 10px;
}

.school-newsbar__track {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.school-newsbar__items {
    align-items: center;
    display: flex;
    gap: 34px;
    height: 30px;
    white-space: nowrap;
    animation: schoolTicker 26s linear infinite;
}

.school-newsbar__items a,
.school-newsbar__items span {
    color: #fff;
    font-size: 11px;
    line-height: 30px;
    position: relative;
    text-decoration: none;
}

.school-newsbar__items a::before,
.school-newsbar__items span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.7;
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
}

.school-stats {
    padding: 22px 0 16px;
}

.school-stats__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(6, 26, 58, 0.08);
    padding: 16px 10px;
}

.school-stat {
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    border-right: 1px solid var(--school-border);
}

.school-stat:last-child {
    border-right: 0;
}

.school-stat i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef8f3;
    color: var(--school-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.school-stat strong {
    color: var(--school-green);
    display: block;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.school-stat span {
    color: #31415d;
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.school-section {
    padding: 18px 0;
}

.school-intro__grid {
    display: grid;
    grid-template-columns: minmax(540px, 1.1fr) minmax(0, 1.4fr);
    gap: 22px;
}

.school-about-card,
.school-why-card,
.school-panel,
.school-program,
.school-teacher {
    background: #fff;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(6, 26, 58, 0.07);
}

.school-about-card {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(210px, 0.9fr) minmax(270px, 1.1fr);
    gap: 24px;
    padding: 18px;
    min-height: 330px;
}

.school-about-card > img {
    width: 100%;
    height: auto;
    min-width: 0;
    align-self: center;
    object-fit: contain;
    object-position: center;
    border-radius: 7px;
    display: block;
}

.school-about-card > div {
    align-self: center;
    min-width: 0;
}

.school-kicker {
    color: #aa7b1e;
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.school-about-card h2,
.school-section-title h2,
.school-panel__header h2 {
    color: var(--school-navy);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 0;
}

.school-about-card h2 {
    font-size: 21px;
    max-width: 310px;
}

.school-about-card p,
.school-why-grid p,
.school-program p,
.school-testimonial p {
    color: #34435c;
    font-size: 11.5px;
    line-height: 1.55;
}

.school-about-card p {
    margin: 8px 0 0;
    max-width: 330px;
}

.school-about-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 12px;
    list-style: none;
    margin: 16px 0 18px;
    padding: 0;
}

.school-about-list li {
    align-items: center;
    background: #f5faf7;
    border: 1px solid #e1eee8;
    border-radius: 7px;
    gap: 10px;
    color: var(--school-navy);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 0;
    min-height: 38px;
    padding: 8px 10px;
}

.school-about-list i {
    flex: 0 0 auto;
    color: var(--school-green);
    font-size: 17px;
}

.school-about-list span {
    line-height: 1.2;
    min-width: 0;
}

.school-about-card .school-btn {
    display: inline-flex;
    min-height: 42px;
    white-space: nowrap;
}

.school-why-card {
    padding: 24px 28px;
    min-height: 330px;
}

.school-section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.school-section-title::after {
    content: "";
    display: block;
    width: 68px;
    height: 2px;
    background: var(--school-green);
    margin: 12px auto 0;
}

.school-section-title--left {
    text-align: left;
    margin-bottom: 20px;
}

.school-section-title--left::after {
    margin-left: 0;
}

.school-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.school-why-grid article {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    min-height: 82px;
    padding: 15px 18px;
    border-top: 1px solid var(--school-border);
}

.school-why-grid article:nth-child(1),
.school-why-grid article:nth-child(2) {
    border-top: 0;
}

.school-why-grid article:nth-child(odd) {
    border-right: 1px solid var(--school-border);
}

.school-why-grid i {
    color: var(--school-green);
    font-size: 24px;
}

.school-why-grid h3,
.school-program h3,
.school-teacher h3 {
    color: var(--school-navy);
    font-size: 15px;
    font-weight: 900;
    margin: 0 0 6px;
}

.school-program-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.school-program {
    min-height: 160px;
    padding: 22px 18px;
    text-align: center;
}

.school-program__icon {
    align-items: center;
    border: 1px solid rgba(0, 117, 71, 0.35);
    border-radius: 50%;
    color: var(--school-green);
    display: inline-flex;
    font-size: 32px;
    height: 68px;
    justify-content: center;
    margin-bottom: 16px;
    width: 68px;
}

.school-program p,
.school-teacher p,
.school-teacher span {
    font-size: 12px;
}

.school-leadership__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: 22px;
}

.school-leadership-card {
    background:
        linear-gradient(135deg, rgba(247, 251, 249, 0.96), rgba(255, 255, 255, 0.99)),
        #fff;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    box-shadow: 0 14px 42px rgba(6, 26, 58, 0.08);
    display: grid;
    gap: 22px;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 300px;
    padding: 24px;
}

.school-leadership-card--wide {
    grid-template-columns: 250px minmax(0, 1fr);
}

.school-leadership-card__photo {
    align-self: stretch;
    background: #eef8f3;
    border-radius: 8px;
    min-height: 252px;
    overflow: hidden;
}

.school-leadership-card__photo img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    width: 100%;
}

.school-leadership-card__body {
    align-self: center;
    min-width: 0;
}

.school-leadership-card__body h2,
.school-campus-life h2 {
    color: var(--school-navy);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 0 0 8px;
}

.school-leadership-card__body h3 {
    color: var(--school-green);
    font-size: 15px;
    font-weight: 900;
    margin: 0 0 14px;
}

.school-leadership-card__body p,
.school-campus-life p,
.school-campus-card-grid p,
.school-step-grid p,
.school-blog-card p {
    color: #34435c;
    font-size: 13px;
    line-height: 1.65;
}

.school-campus-card-grid i,
.school-step-grid i {
    align-items: center;
    background: #eef8f3;
    border-radius: 8px;
    color: var(--school-green);
    display: inline-flex;
    font-size: 24px;
    height: 46px;
    justify-content: center;
    line-height: 1;
    margin-bottom: 14px;
    width: 46px;
}

.school-campus-card-grid i::before {
    display: block;
}

.school-campus-card-grid h3,
.school-step-grid h3,
.school-blog-card h3 {
    color: var(--school-navy);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 8px;
}

.school-admission-path {
    background: #f7faf8;
}

.school-step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.school-step-grid article {
    background: #fff;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(6, 26, 58, 0.06);
    min-height: 230px;
    padding: 24px;
    position: relative;
}

.school-step-grid article > span {
    color: rgba(0, 117, 71, 0.15);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    position: absolute;
    right: 20px;
    top: 18px;
}

.school-step-card--action {
    background: linear-gradient(160deg, var(--school-navy), var(--school-green-dark)) !important;
    color: #fff;
}

.school-step-card--action h3,
.school-step-card--action p {
    color: #fff;
}

.school-step-card--action p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 22px;
}

.school-campus-life__grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.35fr);
    gap: 28px;
    align-items: center;
}

.school-campus-links {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 22px;
}

.school-campus-links a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    color: var(--school-navy);
    display: flex;
    font-size: 13px;
    font-weight: 900;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    text-decoration: none;
}

.school-campus-links a:hover {
    border-color: rgba(0, 117, 71, 0.42);
    color: var(--school-green);
}

.school-campus-links i {
    color: var(--school-green);
    font-size: 18px;
}

.school-campus-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.school-campus-card-grid article {
    background: #fff;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(6, 26, 58, 0.06);
    min-height: 180px;
    padding: 22px;
}

.school-blog-preview {
    background: #f7faf8;
}

.school-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.school-blog-card {
    background: #fff;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(6, 26, 58, 0.06);
    overflow: hidden;
}

.school-blog-card__image {
    background: #eef4f7;
    display: block;
    height: 190px;
    overflow: hidden;
}

.school-blog-card__image img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
    width: 100%;
}

.school-blog-card:hover .school-blog-card__image img {
    transform: scale(1.04);
}

.school-blog-card > div {
    padding: 22px;
}

.school-blog-card time {
    color: var(--school-green);
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
}

.school-blog-card h3 a {
    color: var(--school-navy);
    text-decoration: none;
}

.school-blog-card h3 a:hover {
    color: var(--school-green);
}

.school-blog-card--empty {
    grid-column: 1 / -1;
}

.school-section-title--with-link {
    justify-content: center;
}

.school-section-title--with-link a,
.school-panel__header a {
    border: 1px solid rgba(0, 117, 71, 0.32);
    border-radius: 999px;
    color: var(--school-green);
    font-size: 12px;
    font-weight: 800;
    padding: 8px 18px;
    position: absolute;
    right: 0;
    text-decoration: none;
}

.school-teacher-carousel,
.school-testimonial-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.school-teacher-carousel .owl-stage-outer,
.school-testimonial-carousel .owl-stage-outer,
.school-hero-slider .owl-stage-outer {
    overflow: hidden;
}

.school-teacher-carousel .owl-stage {
    display: flex;
    padding: 4px 0 14px;
}

.school-teacher-carousel .owl-item,
.school-testimonial-carousel .owl-item {
    display: flex;
}

.school-carousel-item {
    width: 100%;
}

.school-teacher {
    min-height: 260px;
    padding: 16px 14px 18px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.school-teacher:hover {
    box-shadow: 0 14px 38px rgba(6, 26, 58, 0.12);
    transform: translateY(-3px);
}

.school-teacher__photo {
    background: linear-gradient(180deg, #f7fafb 0%, #eaf2f0 100%);
    border: 1px solid #dfeae6;
    border-radius: 7px;
    display: block;
    margin: 0 auto 13px;
    padding: 10px;
    width: 118px;
}

.school-teacher img {
    width: 96px;
    height: 106px;
    object-fit: cover;
    border-radius: 5px;
}

.school-teacher p {
    color: var(--school-muted);
    font-weight: 700;
    margin: 0 0 4px;
}

.school-teacher span {
    color: #1a2d4e;
    display: block;
    line-height: 1.35;
    min-height: 32px;
    overflow: hidden;
    padding: 0 4px;
}

.school-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.school-socials a {
    align-items: center;
    background: #005c9e;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    height: 22px;
    justify-content: center;
    text-decoration: none;
    width: 22px;
}

.school-teacher-carousel .owl-nav button,
.school-testimonial-carousel .owl-nav button,
.school-hero-slider .owl-nav button {
    align-items: center;
    background: #fff !important;
    border: 1px solid var(--school-border) !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 22px rgba(6, 26, 58, 0.12);
    color: var(--school-green) !important;
    display: inline-flex !important;
    height: 34px;
    justify-content: center;
    margin: 0 4px !important;
    width: 34px;
}

.school-teacher-carousel .owl-nav,
.school-testimonial-carousel .owl-nav {
    position: absolute;
    right: 0;
    top: -60px;
}

.school-hero-slider .owl-nav {
    display: block;
}

.school-hero-slider .owl-nav button {
    background: rgba(255, 255, 255, 0.68) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 12px 28px rgba(6, 26, 58, 0.18);
    color: var(--school-navy) !important;
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.school-hero-slider .owl-nav button:hover {
    background: #fff !important;
    color: var(--school-green) !important;
}

.school-hero-slider .owl-prev {
    left: 22px;
}

.school-hero-slider .owl-next {
    right: 22px;
}

.school-quick-links {
    background: #f3f7fb;
    margin-top: 0;
    overflow: visible !important;
    padding: 0 0 28px;
    position: relative;
    z-index: 3;
}

.school-quick-links__grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: -110px;
    transform: translateY(-50%);
}

.school-quick-card {
    background: #fff;
    border: 1px solid #e7edf2;
    border-bottom: 5px solid var(--school-navy);
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(6, 26, 58, 0.12);
    color: var(--school-navy);
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 28px 24px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.school-quick-card:hover {
    border-bottom-color: var(--school-green);
    box-shadow: 0 22px 48px rgba(6, 26, 58, 0.16);
    color: var(--school-navy);
    text-decoration: none;
    transform: translateY(-4px);
}

.school-quick-card > span {
    align-items: center;
    background: #eef4ff;
    border-radius: 50%;
    color: #2563eb;
    display: inline-flex;
    font-size: 30px;
    height: 68px;
    justify-content: center;
    margin: 0 auto 18px;
    width: 68px;
}

.school-quick-card:nth-child(2) > span {
    background: #fff8df;
    color: #d99a00;
}

.school-quick-card:nth-child(3) > span {
    background: #eafbf2;
    color: var(--school-green);
}

.school-quick-card:nth-child(4) > span {
    background: #eef4ff;
    color: var(--school-navy);
}

.school-quick-card h3 {
    color: var(--school-navy);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 10px;
}

.school-quick-card p {
    color: #596981;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 18px;
}

.school-quick-card strong {
    color: #0a55c7;
    font-size: 13px;
    font-weight: 900;
    margin-top: auto;
}

.school-showcase__grid {
    display: grid;
    grid-template-columns: minmax(270px, 0.9fr) minmax(320px, 1.05fr) minmax(380px, 1.35fr);
    gap: 18px;
    min-width: 0;
}

.school-panel {
    background:
        linear-gradient(180deg, rgba(0, 117, 71, 0.035), rgba(255, 255, 255, 0) 34%),
        #fff;
    min-height: 330px;
    min-width: 0;
    overflow: hidden;
    padding: 22px;
}

.school-panel__header {
    align-items: center;
    border-bottom: 1px solid var(--school-border);
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    position: relative;
}

.school-panel__header h2 {
    font-size: 19px;
    line-height: 1.25;
    max-width: calc(100% - 76px);
}

.school-panel__header a {
    border: 0;
    border-radius: 0;
    color: var(--school-green);
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    position: static;
}

.school-event-row {
    align-items: center;
    border-bottom: 1px solid var(--school-border);
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    padding: 10px 0;
    text-decoration: none;
}

.school-event-row:last-child {
    border-bottom: 0;
}

.school-event-row time {
    background: var(--school-green);
    border-radius: 5px;
    color: #fff;
    display: block;
    padding: 8px 0;
    text-align: center;
}

.school-event-row time strong,
.school-event-row time span,
.school-event-row span strong,
.school-event-row span small {
    display: block;
}

.school-event-row time strong {
    font-size: 20px;
    line-height: 1;
}

.school-event-row time span,
.school-event-row span small {
    font-size: 11px;
}

.school-event-row span strong {
    color: var(--school-navy);
    font-size: 14px;
}

.school-event-row span small {
    color: var(--school-muted);
    margin-top: 3px;
}

.school-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.school-gallery-grid img {
    aspect-ratio: 1.38;
    border-radius: 7px;
    height: 100%;
    object-fit: cover;
    width: 100%;
    transition: transform 0.2s ease;
}

.school-gallery-card {
    background: #eef4f7;
    border-radius: 7px;
    display: block;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.school-gallery-card::after {
    background: linear-gradient(180deg, transparent 32%, rgba(1, 21, 45, 0.78));
    bottom: 0;
    content: "";
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 0.2s ease;
}

.school-gallery-caption {
    bottom: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    left: 12px;
    line-height: 1.25;
    opacity: 0;
    position: absolute;
    right: 12px;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.school-gallery-card:hover img {
    transform: scale(1.04);
}

.school-gallery-card:hover::after,
.school-gallery-card:hover .school-gallery-caption {
    opacity: 1;
}

.school-gallery-card:hover .school-gallery-caption {
    transform: translateY(0);
}

.school-testimonial {
    background: #fff;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(6, 26, 58, 0.04);
    display: flex;
    flex-direction: column;
    min-height: 226px;
    padding: 24px;
    position: relative;
    width: 100%;
}

.school-testimonials,
.school-testimonial-carousel,
.school-testimonial-carousel .owl-stage-outer,
.school-teacher-carousel,
.school-teacher-carousel .owl-stage-outer {
    max-width: 100%;
    min-width: 0;
}

.school-testimonial-carousel .owl-stage-outer,
.school-teacher-carousel .owl-stage-outer {
    overflow: hidden !important;
    width: 100%;
}

.school-testimonial-carousel .owl-stage {
    display: flex;
    padding: 2px 0 18px;
}

.school-testimonial-carousel .owl-dots {
    align-items: center;
    display: flex;
    gap: 6px;
    height: 10px;
    margin-top: 4px;
}

.school-testimonial-carousel:not(.owl-loaded),
.school-teacher-carousel:not(.owl-loaded) {
    display: block;
}

.school-testimonial-carousel:not(.owl-loaded) .school-carousel-item,
.school-teacher-carousel:not(.owl-loaded) .school-carousel-item {
    width: 100%;
}

.school-testimonial + .school-testimonial {
    padding-top: 22px;
}

.school-testimonial:last-child {
    border-bottom: 1px solid var(--school-border);
}

.school-testimonial__quote {
    color: var(--school-green);
    font-size: 34px;
    line-height: 1;
}

.school-stars {
    color: #ffb100;
    font-size: 14px;
    letter-spacing: 0;
    margin: 8px 0 10px;
}

.school-testimonial p {
    margin-bottom: 0;
}

.school-testimonial__user {
    border-top: 1px solid var(--school-border);
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.school-testimonial-carousel .owl-item .school-testimonial__user img,
.school-testimonial__user img {
    background: #eef8f3;
    border: 2px solid #fff;
    box-shadow: 0 5px 14px rgba(6, 26, 58, 0.14);
    border-radius: 50%;
    flex: 0 0 46px;
    height: 46px !important;
    object-fit: cover;
    width: 46px !important;
}

.school-testimonial__user strong,
.school-testimonial__user small {
    display: block;
}

.school-testimonial__user strong {
    font-size: 13px;
}

.school-testimonial__user small {
    color: var(--school-muted);
    font-size: 11px;
}

.school-newsletter {
    background: linear-gradient(90deg, #006d3f 0%, #004f34 100%);
    color: #fff;
    padding: 26px 0;
}

.school-newsletter__inner {
    align-items: center;
    display: grid;
    grid-template-columns: 72px 1fr 1.65fr;
    gap: 26px;
}

.school-newsletter__icon {
    align-items: center;
    border: 3px solid rgba(255, 255, 255, 0.76);
    border-radius: 50%;
    display: flex;
    font-size: 38px;
    height: 72px;
    justify-content: center;
    width: 72px;
}

.school-newsletter h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
}

.school-newsletter p {
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.school-newsletter__form {
    display: grid;
    grid-template-columns: 1fr auto;
}

.school-newsletter__form input,
.school-newsletter__form button {
    border: 0;
    min-height: 50px;
}

.school-newsletter__form input {
    border-radius: 6px 0 0 6px;
    color: var(--school-navy);
    padding: 0 22px;
}

.school-newsletter__form button {
    background: var(--school-green-dark);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0 6px 6px 0;
    color: #fff;
    font-weight: 800;
    padding: 0 24px;
}

.school-empty {
    color: var(--school-muted);
    font-size: 13px;
}

@keyframes schoolTicker {
    from {
        transform: translateX(15%);
    }
    to {
        transform: translateX(-100%);
    }
}

@media (max-width: 1199.98px) {
    .school-stats__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .school-stat:nth-child(3) {
        border-right: 0;
    }

    .school-program-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .school-quick-links__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .school-leadership__grid {
        grid-template-columns: 1fr;
    }

    .school-leadership-card,
    .school-leadership-card--wide {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .school-step-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .school-intro__grid {
        grid-template-columns: 1fr;
    }

    .school-showcase__grid {
        grid-template-columns: minmax(250px, 0.9fr) minmax(280px, 1fr) minmax(320px, 1.15fr);
    }
}

@media (max-width: 991.98px) {
    .school-home .school-hero-slider.owl-carousel,
    .school-hero-slider {
        height: 460px !important;
        min-height: 460px;
    }

    .school-hero {
        min-height: 460px;
    }

    .school-hero h1 {
        font-size: 34px;
    }

    .school-about-card {
        grid-template-columns: 1fr;
    }

    .school-showcase__grid {
        grid-template-columns: 1fr;
    }

    .school-campus-life__grid {
        grid-template-columns: 1fr;
    }

    .school-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .school-about-card > img {
        height: auto;
        max-height: 360px;
    }

    .school-newsletter__inner {
        grid-template-columns: 60px 1fr;
    }

    .school-newsletter__form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .school-container {
        width: min(100% - 24px, 1200px);
    }

    .school-newsbar__inner {
        flex-wrap: nowrap;
        padding: 0;
    }

    .school-newsbar__label {
        font-size: 10px;
        gap: 6px;
        padding: 0 8px;
    }

    .school-newsbar__track {
        flex-basis: auto;
        order: 0;
    }

    .school-newsbar__date {
        display: none;
    }

    .school-stats__grid,
    .school-program-grid,
    .school-why-grid,
    .school-step-grid,
    .school-campus-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .school-leadership__grid {
        grid-template-columns: 1fr;
    }

    .school-leadership-card,
    .school-leadership-card--wide {
        grid-template-columns: 1fr;
    }

    .school-leadership-card__photo {
        max-height: 320px;
    }

    .school-stat {
        border-right: 0;
        justify-content: flex-start;
        padding-left: 18px;
    }

    .school-why-grid article,
    .school-why-grid article:nth-child(odd) {
        border-right: 0;
    }

    .school-why-grid article:nth-child(2) {
        border-top: 1px solid var(--school-border);
    }

    .school-section-title--with-link {
        align-items: center;
        flex-direction: column;
        gap: 14px;
    }

    .school-section-title--with-link a {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .school-home .school-hero-slider.owl-carousel,
    .school-hero-slider {
        height: 300px !important;
        min-height: 300px;
    }

    .school-hero {
        min-height: 300px;
    }

    .school-hero__content {
        padding: 42px 0;
    }

    .school-hero h1 {
        font-size: 28px;
    }

    .school-hero__actions {
        gap: 10px;
    }

    .school-btn {
        font-size: 12px;
        min-height: 40px;
        padding: 0 14px;
    }

    .school-stats__grid,
    .school-program-grid,
    .school-why-grid,
    .school-gallery-grid,
    .school-step-grid,
    .school-quick-links__grid,
    .school-campus-links,
    .school-campus-card-grid,
    .school-blog-grid {
        grid-template-columns: 1fr;
    }

    .school-quick-links {
        background: #f3f7fb;
        margin-top: 0;
        padding-top: 18px;
    }

    .school-quick-links__grid {
        margin-bottom: 0;
        transform: none;
    }

    .school-about-card,
    .school-why-card,
    .school-panel {
        padding: 18px;
    }

    .school-about-list {
        grid-template-columns: 1fr;
    }

    .school-about-card .school-btn {
        justify-content: center;
        white-space: normal;
        width: 100%;
    }

    .school-newsletter__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .school-newsletter__icon {
        margin: 0 auto;
    }

    .school-newsletter__form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .school-newsletter__form input,
    .school-newsletter__form button {
        border-radius: 6px;
    }

    .school-leadership-card,
    .school-step-grid article,
    .school-campus-card-grid article,
    .school-blog-card > div {
        padding: 18px;
    }

    .school-leadership-card__body h2,
    .school-campus-life h2 {
        font-size: 24px;
    }
}

/* Campus facilities and student resources */
.school-home .campus-overview {
    padding: 80px 0;
    background: linear-gradient(135deg, #f3f8f5 0%, #f9fbfa 60%, #f0f5f8 100%);
    border-block: 1px solid #e5eee8;
}
.campus-overview__heading {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 48px;
    margin-bottom: 32px;
}
.campus-overview__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #007547;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.campus-overview__eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: #007547; }
.school-home .campus-overview h2 {
    margin: 0;
    color: #061a3a;
    font-size: clamp(28px, 3.3vw, 42px);
    line-height: 1.2;
    letter-spacing: -1.2px;
    font-weight: 600;
}
.campus-overview h2 > span { color: #007547; }
.campus-overview__heading > p { color: #5c6c7a; font-size: 15px; line-height: 1.85; margin: 0 0 3px; max-width: 440px; }
.campus-overview__facilities { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.campus-facility {
    grid-column: span 2;
    min-width: 0;
    padding: 24px;
    border: 1px solid #e1eae5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px #163c2810;
}
.campus-facility:nth-last-child(2):nth-child(3n + 1),
.campus-facility:last-child:nth-child(3n + 2) { grid-column: span 3; }
.campus-facility:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.campus-facility__top { display: flex; align-items: center; justify-content: space-between; }
.campus-facility__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; color: #007547; background: #edf6f0; font-size: 23px; }
.campus-facility__number { color: #879a91; font-size: 12px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.school-home .campus-facility h3 { color: #132c38; font-size: 18px; font-weight: 600; line-height: 1.4; margin: 18px 0 0; overflow-wrap: anywhere; }
.campus-facility p { color: #647187; font-size: 13px; line-height: 1.75; margin: 8px 0 0; }
.campus-resources { display: flex; align-items: center; gap: 28px; margin-top: 24px; padding: 24px; border-radius: 14px; background: #073d30; }
.campus-resources__label { flex: 0 0 205px; }
.campus-resources__label > span { display: block; color: #a2caba; font-size: 10px; letter-spacing: 1.5px; margin-bottom: 7px; }
.campus-resources__label > strong { color: #fff; font-size: 15px; font-weight: 500; }
.campus-resources__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; flex: 1; }
.campus-resources__links a { display: flex; align-items: center; gap: 9px; color: #fff; background: #ffffff0c; border: 1px solid #ffffff26; border-radius: 8px; padding: 14px 12px; font-size: 12px; font-weight: 500; text-decoration: none; transition: background .2s, border-color .2s; }
.campus-resources__links a > i { color: #b5ddc7; font-size: 17px; }
.campus-resources__links a > span:last-child { margin-left: auto; color: #b5ddc7; }
.campus-resources__links a:hover { background: #ffffff1f; border-color: #ffffff70; }
.campus-resources__links a:focus-visible { outline: 3px solid #e9c876; outline-offset: 3px; }
@media (max-width: 991px) {
    .campus-overview__heading { gap: 24px; }
    .campus-resources { flex-direction: column; align-items: stretch; gap: 18px; }
    .campus-resources__label { flex-basis: auto; }
}
@media (max-width: 640px) {
    .school-home .campus-overview { padding: 48px 0; }
    .campus-overview__heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 24px; }
    .campus-overview__facilities { grid-template-columns: 1fr; gap: 12px; }
    .campus-overview__facilities .campus-facility { grid-column: auto; padding: 20px; }
    .campus-resources { padding: 20px; }
    .campus-resources__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .campus-resources__links a { padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .campus-resources__links a { transition: none; }
}

/* Give the introduction and school benefits their own full-width sections. */
.school-intro .school-about-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding: 32px;
}
.school-intro .school-about-card > img {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 12px;
}
.school-intro .school-about-card h2 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.25; }
.school-intro .school-about-card p { font-size: 15px; line-height: 1.8; }
.school-why-section .school-why-card { min-height: 0; padding: 32px; }
.school-why-section .school-why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.school-why-section .school-why-grid article {
    border: 1px solid var(--school-border);
    border-radius: 10px;
    background: #f8fbf9;
    padding: 24px;
}
@media (max-width: 991px) {
    .school-intro .school-about-card { gap: 28px; padding: 24px; }
    .school-why-section .school-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .school-intro .school-about-card { grid-template-columns: 1fr; padding: 20px; }
    .school-why-section .school-why-card { padding: 20px; }
    .school-why-section .school-why-grid { grid-template-columns: 1fr; }
}

/* Shallow sweeping edges are reserved for Events and Testimonials. */
.school-home .section-curve {
    position: relative;
    isolation: isolate;
    background: transparent;
    padding: 112px 0 64px;
    margin-block: 20px;
}
.section-curve::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%230b1d36' d='M0 64 C480 64 1060 58 1440 0 L1440 64 Z'/%3E%3C/svg%3E") top / 100% 64px no-repeat, linear-gradient(#0b1d36, #0b1d36) bottom / 100% calc(100% - 63px) no-repeat;
    pointer-events: none;
}
.section-curve--left::before { transform: scaleX(-1); }
.community-heading { margin-bottom: 30px; max-width: 620px; }
.school-home .community-heading h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.25; font-weight: 600; letter-spacing: -.8px; color: var(--school-navy); margin: 0 0 14px; }
.community-heading > p { color: #607184; font-size: 15px; line-height: 1.8; margin: 0; }
.school-showcase .school-showcase__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 28px; }
.school-showcase .school-panel { padding: 28px; border-radius: 18px; box-shadow: 0 8px 24px #143c2810; min-height: 0; background: #fff; }
.school-showcase .school-panel__header h2 { font-weight: 600; }
.school-showcase .school-event-row { padding-block: 18px; gap: 16px; }
.school-showcase .school-event-row time { border-radius: 12px; }
.school-showcase .school-gallery-card { min-width: 0; border-radius: 12px; }
.school-showcase .school-gallery-card::after,
.school-showcase .school-gallery-caption { opacity: 1; }
.school-showcase .school-gallery-caption { transform: none; font-weight: 500; }
.school-showcase .school-gallery-card:focus-visible,
.school-showcase .school-event-row:focus-visible { outline: 3px solid #007547; outline-offset: 3px; }
.school-voices-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 64px; }
.school-voices-layout > .community-heading { margin: 0; }
.school-community-voices .school-testimonials { min-height: 0; background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 12px 36px #1230470a; }
.school-community-voices .school-panel__header h2 { font-size: 18px; font-weight: 500; }
.school-community-voices .school-testimonial { border: 0; box-shadow: none; padding: 12px 4px; background: transparent; }
.school-community-voices .school-testimonial p { font-size: 16px; line-height: 1.9; color: #34495c; }
@media (max-width: 991px) {
    .school-showcase .school-showcase__grid { grid-template-columns: 1fr; }
    .school-voices-layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
    .school-home .section-curve { padding: 100px 0 40px; margin-block: 10px; }
    .school-showcase .school-panel,
    .school-community-voices .school-testimonials { padding: 20px; }
    .school-showcase .school-gallery-grid { gap: 10px; }
}

.school-home > .school-section:not(.section-curve) {
    background: #fff;
    border: 0;
    border-radius: 0;
}
.school-home .section-curve .community-heading h2 { color: #fff; }
.section-curve .community-heading > p { color: #bfccdc; }
.section-curve .community-heading .school-kicker { color: #8fdbbe; }

/* Refined community section surfaces, rhythm and typography. */
.school-home .section-curve { padding-top: 104px; padding-bottom: 56px; }
.section-curve .community-heading { max-width: 600px; margin-bottom: 36px; }
.section-curve .community-heading .school-kicker { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.school-home .section-curve .community-heading h2 { font-weight: 500; line-height: 1.2; letter-spacing: -.7px; }
.section-curve .community-heading > p { font-size: 14px; line-height: 1.8; max-width: 490px; }
.school-showcase .school-showcase__grid { gap: 24px; align-items: start; }
.school-showcase .school-panel { background: #132740; border: 1px solid #ffffff18; border-radius: 12px; box-shadow: none; }
.school-showcase .school-panel__header { border-color: #ffffff1c; margin-bottom: 8px; padding-bottom: 18px; gap: 16px; }
.school-showcase .school-panel__header h2 { color: #f4f7fc; font-size: 18px; font-weight: 500; margin: 0; }
.school-showcase .school-panel__header a { color: #a5dfcb; font-size: 12px; font-weight: 500; }
.school-showcase .school-event-row { border-color: #ffffff14; }
.school-showcase .school-event-row time { background: #203e53; border: 1px solid #8fdbbe35; border-radius: 8px; color: #d0f3e7; padding: 12px 0; }
.school-showcase .school-event-row time strong { font-weight: 500; font-size: 22px; }
.school-showcase .school-event-row time span { margin-top: 5px; letter-spacing: 1px; font-size: 10px; }
.school-showcase .school-event-row > span strong { color: #f0f4fa; font-weight: 500; line-height: 1.5; }
.school-showcase .school-event-row > span small { color: #afbed0; margin-top: 5px; }
.school-showcase .school-event-row:hover > span strong { color: #a5dfcb; }
.school-showcase .school-gallery-grid { padding-top: 12px; }
.school-showcase .school-gallery-card { border-radius: 8px; }
.school-showcase .school-gallery-card:first-child:nth-last-child(3) { grid-column: 1 / -1; }
.school-showcase .school-gallery-card:first-child:nth-last-child(3) img { aspect-ratio: 2.6; }
.school-showcase .school-gallery-caption { font-size: 13px; bottom: 14px; left: 14px; }
.school-showcase .school-empty { color: #bfccdc; }
.school-community-voices .school-voices-layout { gap: 56px; }
.school-community-voices .community-heading { margin-bottom: 0; }
.school-community-voices .school-testimonials { border-radius: 12px; background: #f8fafc; padding: 32px; box-shadow: 0 16px 40px #00000014; border: 0; }
.school-community-voices .school-panel__header { border: 0; padding-bottom: 0; margin-bottom: 20px; }
.school-community-voices .school-panel__header h2 { font-size: 13px; color: #607184; font-weight: 400; }
.school-community-voices .school-testimonial p { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.8; color: #213650; }
.school-community-voices .school-testimonial__user { margin-top: 24px; padding-top: 20px; }
.school-community-voices .school-testimonial__user strong { font-weight: 500; }
.school-community-voices .school-stars { font-size: 12px; letter-spacing: 3px; color: #a86c16; }
.school-showcase a:focus-visible { outline: 2px solid #a5dfcb; outline-offset: 4px; }
@media (max-width: 767px) {
    .school-home .section-curve { padding-top: 88px; padding-bottom: 36px; }
    .school-community-voices .school-voices-layout { gap: 24px; }
    .school-showcase .school-panel,
    .school-community-voices .school-testimonials { padding: 22px; }
}
