:root {
    --school-blue: #073b7a;
    --school-blue-dark: #032752;
    --school-orange: #f28c18;
    --school-green: #16834a;
    --school-purple: #6f3b8f;
    --school-white: #ffffff;
    --text-dark: #1d2a3a;
    --text-muted: #657181;
    --light-bg: #f5f8fc;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Navigation Start */
.navbar {
	padding:0.5rem 1rem;
}

/*
 * Prevent header fron causing overflow in mobile devices
 */
 
#masthead {
	overflow-x:hidden;
}
 
@media (min-width: 960px) {
  #masthead {
    overflow-x:visible;
  }
}
/* Navigation End */

a {
    transition: all 0.3s ease;
}

.section-padding {
    padding: 90px 0;
}

.section-kicker {
    display: inline-block;
    color: var(--school-orange);
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-family: "Playfair Display", serif;
    color: var(--school-blue-dark);
    font-size: 2.45rem;
    margin-bottom: 18px;
}

.section-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-muted);
}

.lead-text {
    color: #455466;
}

/* Top Bar */
.top-bar {
    background: var(--school-blue-dark);
    color: #dce9f9;
    padding: 9px 0;
    font-size: 0.82rem;
}

.top-link {
    color: #fff;
}

.top-link:hover {
    color: var(--school-orange);
    text-decoration: none;
}

/* Navbar */
.navbar {
    min-height: 84px;
}

.school-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--school-blue), var(--school-purple));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 18px rgba(7, 59, 122, 0.2);
}

.brand-title {
    display: block;
    color: var(--school-blue-dark);
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    line-height: 1.1;
}

.brand-subtitle {
    color: #6a7682;
    font-size: 0.68rem;
    letter-spacing: 0.4px;
}

.navbar-light .navbar-nav .nav-link {
    color: #27384a;
    font-size: 0.91rem;
    font-weight: 600;
    padding: 12px 12px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .active > .nav-link {
    color: var(--school-orange);
}

.btn-school {
    background: var(--school-orange);
    border-color: var(--school-orange);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 7px 18px rgba(242, 140, 24, 0.25);
}

.btn-school:hover,
.btn-school:focus {
    background: #d97608;
    border-color: #d97608;
    color: #fff;
    transform: translateY(-1px);
}

/* Hero */
.hero-section {
    min-height: 690px;
    position: relative;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(3, 39, 82, 0.2), rgba(3, 39, 82, 0.2)),
        url("https://kenyohogirlsdayandboardingseniorschool.sc.ke/wp-content/uploads/2026/07/Kenyoho-Girls-School-Gate.jpg")
        center center / cover no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 31, 66, 0.94) 0%, rgba(3, 39, 82, 0.78) 48%, rgba(3, 39, 82, 0.22) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 50px;
    padding-bottom: 50px;
}

.hero-badge {
    display: inline-block;
    border-left: 4px solid var(--school-orange);
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 14px;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.hero-section h1 {
    font-family: "Playfair Display", serif;
    font-size: 4.3rem;
    line-height: 1.08;
    margin-bottom: 22px;
}

.hero-section p {
    max-width: 700px;
    font-size: 1.13rem;
    color: #edf4fb;
    margin-bottom: 30px;
}

.scroll-down {
    position: absolute;
    z-index: 2;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.3rem;
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    color: var(--school-orange);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* Highlight Strip */
.highlight-strip {
    position: relative;
    z-index: 3;
    margin-top: -36px;
}

.highlight-strip .container {
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 18px 48px rgba(3, 39, 82, 0.14);
    overflow: hidden;
}

.highlight-item {
    min-height: 132px;
    display: flex;
    align-items: center;
    padding: 28px;
    border-right: 1px solid #e9eef4;
}

.highlight-item:last-child {
    border-right: 0;
}

.highlight-item i {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #edf4fb;
    color: var(--school-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-right: 17px;
}

.highlight-item h3 {
    color: var(--school-blue-dark);
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700;
}

.highlight-item p {
    color: var(--text-muted);
    font-size: 0.83rem;
    margin: 2px 0 0;
}

/* About */
.about-image {
    position: relative;
    padding-right: 30px;
    padding-bottom: 30px;
}

.about-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 18px 45px rgba(3, 39, 82, 0.14);
}

.motto-card {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--school-blue);
    color: #fff;
    width: 260px;
    padding: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    box-shadow: 0 14px 35px rgba(3, 39, 82, 0.28);
}

.motto-card i {
    font-size: 1.6rem;
    color: var(--school-orange);
    margin-right: 15px;
}

.motto-card small,
.motto-card strong {
    display: block;
}

.info-card {
    display: flex;
    margin-top: 25px;
}

.info-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 5px;
    color: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 18px;
}

.info-icon.blue { background: var(--school-blue); }
.info-icon.orange { background: var(--school-orange); }

.info-card h4 {
    font-size: 1.05rem;
    color: var(--school-blue-dark);
    font-weight: 700;
}

.info-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Principal */
.principal-section {
    background: #fff;
}

.principal-photo {
    position: relative;
}

.principal-photo:before {
    content: "";
    position: absolute;
    top: -16px;
    left: -16px;
    width: 72%;
    height: 72%;
    background: var(--school-orange);
    border-radius: 6px;
}

.principal-photo img {
    position: relative;
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 18px 45px rgba(3, 39, 82, 0.15);
}

.principal-section blockquote {
    font-family: "Playfair Display", serif;
    color: var(--school-blue);
    font-size: 1.42rem;
    border-left: 4px solid var(--school-orange);
    padding-left: 22px;
    margin: 25px 0;
}

.principal-name {
    margin-top: 25px;
}

.principal-name strong,
.principal-name span {
    display: block;
}

.principal-name strong {
    color: var(--school-blue-dark);
}

.principal-name span {
    color: var(--school-orange);
    font-size: 0.88rem;
}

/* Values */
.values-section {
    background: var(--school-blue-dark);
}

.values-section .section-title,
.values-section .section-subtitle {
    color: #fff;
}

.values-section .section-subtitle {
    opacity: 0.8;
}

.value-card {
    height: 100%;
    min-height: 285px;
    padding: 30px 24px;
    text-align: center;
    background: #fff;
    border-radius: 7px;
    border-bottom: 5px solid transparent;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.value-card i {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    margin-bottom: 20px;
}

.value-card h4 {
    color: var(--school-blue-dark);
    font-size: 1rem;
    font-weight: 700;
    min-height: 48px;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.value-blue { border-color: #1466bb; }
.value-blue i { background: #1466bb; }

.value-orange { border-color: var(--school-orange); }
.value-orange i { background: var(--school-orange); }

.value-white { border-color: #b8c1cb; }
.value-white i { background: #8896a6; }

.value-green { border-color: var(--school-green); }
.value-green i { background: var(--school-green); }

.value-purple { border-color: var(--school-purple); }
.value-purple i { background: var(--school-purple); }

/* Programmes */
.programme-card {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(3, 39, 82, 0.09);
    transition: transform 0.3s ease;
}

.programme-card:hover {
    transform: translateY(-7px);
}

.programme-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.programme-body {
    padding: 28px 24px;
    position: relative;
}

.programme-body i {
    width: 50px;
    height: 50px;
    margin-top: -52px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--school-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 7px 18px rgba(242, 140, 24, 0.3);
}

.programme-body h4 {
    color: var(--school-blue-dark);
    font-size: 1.05rem;
    font-weight: 700;
}

.programme-body p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* Honour Board */
.honour-section {
    background:
        linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.96)),
        url("https://images.unsplash.com/photo-1498243691581-b145c3f54a5a?auto=format&fit=crop&w=1700&q=75")
        center / cover fixed;
}

.honour-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 7px;
    box-shadow: 0 16px 42px rgba(3, 39, 82, 0.12);
    overflow: hidden;
}

.honour-table {
    background: #fff;
}

.honour-table thead {
    background: var(--school-blue);
    color: #fff;
}

.honour-table th,
.honour-table td {
    padding: 15px 22px;
    vertical-align: middle;
}

.honour-table td:first-child {
    font-weight: 600;
}

.current-principal {
    background: #fff4e7;
    color: var(--school-blue-dark);
}

/* Gallery */
.gallery-item {
    height: 280px;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(3, 39, 82, 0.11);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    background: linear-gradient(transparent 35%, rgba(3, 39, 82, 0.9));
}

.gallery-caption span {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* CTA */
.cta-section {
    padding: 76px 0;
    color: #fff;
    background:
        linear-gradient(rgba(7, 59, 122, 0.91), rgba(7, 59, 122, 0.91)),
        url("https://images.unsplash.com/photo-1529390079861-591de354faf5?auto=format&fit=crop&w=1600&q=80")
        center / cover;
}

.cta-section h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.6rem;
}

.cta-section p {
    max-width: 680px;
    margin: 14px auto 28px;
    color: #e8f1fb;
}

/* Contact */
.contact-section {
    background: #fff;
}

.contact-item {
    display: flex;
    margin-top: 26px;
}

.contact-item i {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    background: #edf4fb;
    color: var(--school-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.contact-item h5 {
    font-size: 0.96rem;
    color: var(--school-blue-dark);
    font-weight: 700;
    margin-bottom: 3px;
}

.contact-item p {
    color: var(--text-muted);
    margin: 0;
}

.contact-form-card {
    padding: 38px;
    border-radius: 7px;
    background: var(--light-bg);
    box-shadow: 0 15px 38px rgba(3, 39, 82, 0.09);
}

.contact-form-card h3 {
    font-family: "Playfair Display", serif;
    color: var(--school-blue-dark);
    margin-bottom: 25px;
}

.form-control {
    min-height: 48px;
    border-color: #dce3eb;
    border-radius: 4px;
}

textarea.form-control {
    min-height: auto;
}

.form-control:focus {
    border-color: var(--school-blue);
    box-shadow: 0 0 0 0.2rem rgba(7, 59, 122, 0.13);
}

/* Footer */
.footer {
    background: #021f42;
    color: #cbd9e9;
    padding: 70px 0 26px;
}

.footer .school-logo {
    background: var(--school-orange);
}

.footer h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #cbd9e9;
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--school-orange);
    text-decoration: none;
    padding-left: 3px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
}

.social-links a:hover {
    background: var(--school-orange);
    text-decoration: none;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--school-orange);
    color: #fff;
    text-align: center;
    align-items: center;
    justify-content: center;
    z-index: 99;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    color: #fff;
    background: #d97608;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 600px;
    }

    .hero-section h1 {
        font-size: 3.3rem;
    }

    .navbar-collapse {
        padding: 16px 0 10px;
    }

    .highlight-item {
        border-right: 0;
        border-bottom: 1px solid #e9eef4;
    }

    .highlight-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 68px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 570px;
        text-align: center;
    }

    .hero-overlay {
        background: rgba(3, 39, 82, 0.84);
    }

    .hero-section h1 {
        font-size: 2.65rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .highlight-strip {
        margin-top: 0;
    }

    .highlight-strip .container {
        border-radius: 0;
    }

    .about-image {
        padding-right: 0;
        padding-bottom: 70px;
    }

    .about-image img,
    .principal-photo img {
        height: 420px;
    }

    .motto-card {
        right: 15px;
        left: 15px;
        width: auto;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .contact-form-card {
        padding: 26px 20px;
    }
}

@media (max-width: 575.98px) {
    .top-bar {
        font-size: 0.74rem;
    }

    .brand-title {
        font-size: 1.05rem;
    }

    .brand-subtitle {
        font-size: 0.61rem;
    }

    .school-logo {
        width: 42px;
        height: 42px;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
    }

    .gallery-item {
        height: 245px;
    }
}

/* Leadership Section */
.leadership-section {
    background: #f5f8fc;
}

.leadership-heading {
    max-width: 760px;
    margin: 0 auto 55px;
}

.leadership-profile {
    position: relative;
    padding: 50px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(3, 39, 82, 0.1);
}

.principal-profile {
    border-top: 5px solid var(--school-blue);
}

.deputy-profile {
    border-top: 5px solid var(--school-orange);
}

.leadership-photo {
    position: relative;
    padding: 0 20px 20px 0;
}

.leadership-photo::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: 0;
    bottom: 0;
    background: var(--school-blue);
    border-radius: 8px;
}

.deputy-photo {
    padding: 0 0 20px 20px;
}

.deputy-photo::before {
    left: 0;
    right: 20px;
    background: var(--school-orange);
}

.leadership-photo img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(3, 39, 82, 0.18);
}

.leadership-role {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 15px;
    border-radius: 30px;
    background: rgba(7, 59, 122, 0.1);
    color: var(--school-blue);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.deputy-profile .leadership-role {
    background: rgba(242, 140, 24, 0.13);
    color: #c96c00;
}

.leadership-title {
    margin-bottom: 20px;
    color: var(--school-blue-dark);
    font-family: "Playfair Display", serif;
    font-size: 2rem;
}

.leadership-profile blockquote {
    margin: 22px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--school-orange);
    background: #f8fafc;
    color: var(--school-blue);
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    line-height: 1.7;
}

.leadership-profile p {
    color: #5e6a78;
}

.leader-name {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e4e9ef;
}

.leader-name strong,
.leader-name span {
    display: block;
}

.leader-name strong {
    color: var(--school-blue-dark);
    font-size: 1.05rem;
}

.leader-name span {
    margin-top: 3px;
    color: var(--school-orange);
    font-size: 0.88rem;
    font-weight: 600;
}

/* Divider between leaders */
.leadership-divider {
    position: relative;
    height: 90px;
    text-align: center;
}

.leadership-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: #d7e0e9;
}

.leadership-divider span {
    position: relative;
    top: 25px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--school-blue);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(3, 39, 82, 0.2);
}

/* Responsive */
@media (max-width: 991.98px) {
    .leadership-profile {
        padding: 35px;
    }

    .leadership-photo img {
        height: 450px;
    }
}

@media (max-width: 767.98px) {
    .leadership-profile {
        padding: 25px 20px;
    }

    .leadership-heading {
        margin-bottom: 35px;
    }

    .leadership-photo,
    .deputy-photo {
        padding: 0 12px 12px 0;
    }

    .leadership-photo::before,
    .deputy-photo::before {
        top: 12px;
        left: 12px;
        right: 0;
    }

    .leadership-photo img {
        height: 400px;
    }

    .leadership-title {
        font-size: 1.7rem;
    }

    .leadership-divider {
        height: 70px;
    }

    .leadership-divider span {
        top: 15px;
    }
}

/* Gallery Call to Action */
.gallery-cta {
    max-width: 850px;
    margin: 0 auto;
    padding: 65px 40px;
    background: #ffffff;
    border-radius: 10px;
    border-top: 5px solid var(--school-orange);
    box-shadow: 0 15px 40px rgba(3, 39, 82, 0.1);
}

.gallery-cta .section-subtitle {
    max-width: 680px;
}

.gallery-cta .btn {
    padding: 13px 28px;
}

@media (max-width: 767.98px) {
    .gallery-cta {
        padding: 45px 22px;
    }
}

/* Contact Section */
.contact-section {
    background: #ffffff;
}

.contact-intro {
    max-width: 650px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.contact-details {
    max-width: 650px;
    margin: 0 auto;
    padding: 40px;
    background: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 15px 38px rgba(3, 39, 82, 0.09);
}

.contact-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 20px 0;
    margin: 0;
    border-bottom: 1px solid #dfe6ee;
}

.contact-item:first-child {
    padding-top: 0;
}

.contact-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-item i {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    border-radius: 50%;
    background: var(--school-blue);
    color: #ffffff;
    font-size: 1.1rem;
}

.contact-item h5 {
    margin-bottom: 4px;
    color: var(--school-blue-dark);
    font-size: 0.96rem;
    font-weight: 700;
}

.contact-item p {
    margin: 0;
    color: var(--text-muted);
}

.contact-item a {
    color: var(--text-muted);
}

.contact-item a:hover {
    color: var(--school-orange);
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .contact-details {
        padding: 30px 20px;
    }

    .contact-item {
        align-items: flex-start;
    }

    .contact-item i {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        margin-right: 14px;
    }
}