/* Blue Grammar School — public HOMEPAGE (home.css)
   Designed 2026-11-03; compact photo hero 2026-11-07.
   Brand blue #1361C8 / red #be434b.
   Loaded only by Views/Home/Index.cshtml via @section Styles.
   All classes are hp- prefixed so nothing leaks into the portal. */

.hp-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.hp-center {
    text-align: center;
}

.hp-h2 {
    color: #123c6e;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 12px;
}

    .hp-h2.hp-light {
        color: #fff;
    }

.hp-sub {
    color: #5b6b7f;
    font-size: 14.5px;
    margin: 0 0 22px;
}

    .hp-sub.hp-light {
        color: #cfe2fb;
    }

.hp-section {
    padding: 28px 0;
}

.hp-section-alt {
    background: #f4f8fd;
}

.hp-section-blue {
    background: linear-gradient(135deg, #0d3f7e, #1361C8);
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .15s ease, transform .15s ease;
}

    .hp-btn:hover {
        transform: translateY(-1px);
        text-decoration: none;
    }

.hp-btn-blue {
    background: #1361C8;
    color: #fff;
}

    .hp-btn-blue:hover {
        background: #0e4fa8;
        color: #fff;
    }

.hp-btn-light {
    background: #fff;
    color: #1361C8;
}

    .hp-btn-light:hover {
        background: #eaf2ff;
        color: #0e4fa8;
    }

.hp-btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.65);
}

    .hp-btn-ghost:hover {
        background: rgba(255,255,255,.12);
        color: #fff;
    }

/* ---- Hero (photo band, 2026-11-07) ---- */
.hp-hero {
    position: relative;
    color: #12325e;
    margin-top: -16px;
    overflow: hidden;
    background: #0b3568;
    min-height: calc(100vh - 62px);
    display: flex;
    align-items: flex-start;
}

.hp-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.hp-hero-shade {
    display: none;
}

.hp-hero-inner {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 16px 72px;
    width: 100%;
    text-align: center;
}

.hp-badge {
    display: inline-block;
    background: #FFD94D;
    color: #5c4300;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.hp-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.1;
    color: #12325e;
    text-shadow: 0 1px 10px rgba(255, 255, 255, .45);
}

.hp-tagline {
    font-size: 16.5px;
    color: #2c4a73;
    margin: 0 auto 20px;
    max-width: 32em;
    font-weight: 600;
}

.hp-hero-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.hp-hero .hp-btn-ghost {
    color: #12325e;
    border-color: rgba(18, 50, 94, .55);
}

    .hp-hero .hp-btn-ghost:hover {
        background: rgba(255, 255, 255, .30);
        color: #12325e;
    }

/* ---- Stats band under the hero ---- */
.hp-statsband {
    background: #0d3f7e;
    color: #cfe2fb;
}

.hp-statsband-in {
    display: flex;
    gap: 8px 30px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 13.5px;
    font-weight: 600;
}

.hp-statsband strong {
    color: #fff;
    font-size: 15px;
    margin-right: 3px;
}

/* ---- Welcome / Principal ---- */
.hp-welcome {
    display: grid;
    grid-template-columns: 1.5fr .9fr;
    gap: 26px;
    align-items: start;
}

    .hp-welcome p {
        color: #3d4f66;
        font-size: 15px;
        line-height: 1.65;
    }

.hp-principal {
    background: #fdf6e0;
    border: 1px solid #f0dfae;
    border-top: 4px solid #e0a81e;
    border-radius: 12px;
    padding: 18px 20px;
}

.hp-principal-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9a7408;
    margin-bottom: 8px;
}

.hp-quote {
    font-size: 15.5px;
    font-style: italic;
    color: #4a3f14;
    line-height: 1.6;
    margin: 0 0 12px;
}

.hp-principal-name {
    font-weight: 800;
    color: #243447;
    margin: 0;
}

    .hp-principal-name small {
        font-weight: 600;
        color: #7a6a25;
    }

/* ---- Cards & grids ---- */
.hp-grid {
    display: grid;
    gap: 14px;
}

.hp-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

.hp-card {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-top: 4px solid #1361C8;
    border-radius: 12px;
    padding: 14px;
}

    .hp-card h3 {
        margin: 0 0 2px;
        font-size: 17px;
        color: #123c6e;
    }

.hp-card-tag {
    color: #be434b;
    font-weight: 700;
    font-size: 12.5px;
    margin: 0 0 8px;
}

.hp-card p {
    color: #4a5c72;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}

.hp-c1 {
    border-top-color: #1d9e74;
}

.hp-c2 {
    border-top-color: #1361C8;
}

.hp-c3 {
    border-top-color: #7b4fc9;
}

.hp-c4 {
    border-top-color: #be434b;
}

.hp-feature {
    background: #f8fbff;
    border: 1px solid #e2ebf7;
    border-radius: 12px;
    padding: 14px;
}

.hp-feature-ic {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.hp-feature h3 {
    margin: 8px 0 6px;
    font-size: 15.5px;
    color: #123c6e;
}

.hp-feature p {
    margin: 0;
    color: #4a5c72;
    font-size: 13.5px;
    line-height: 1.6;
}

/* ---- Portals ---- */
.hp-portal {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    color: #243447;
}

    .hp-portal h3 {
        margin: 0 0 10px;
        font-size: 17px;
        color: #123c6e;
    }

    .hp-portal ul {
        margin: 0 0 16px;
        padding-left: 18px;
        color: #4a5c72;
        font-size: 13.5px;
        line-height: 1.9;
    }

/* ---- Steps & CTA ---- */
.hp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.hp-step {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 14px;
}

    .hp-step span {
        display: inline-flex;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #1361C8;
        color: #fff;
        font-weight: 800;
        font-size: 16px;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
    }

    .hp-step h3 {
        margin: 0 0 6px;
        font-size: 15.5px;
        color: #123c6e;
    }

    .hp-step p {
        margin: 0;
        color: #4a5c72;
        font-size: 13.5px;
        line-height: 1.6;
    }

.hp-cta {
    background: linear-gradient(120deg, #0b3568, #1361C8);
    color: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

    .hp-cta h3 {
        margin: 0 0 4px;
        font-size: 19px;
        color: #fff;
    }

    .hp-cta p {
        margin: 0;
        color: #cfe2fb;
        font-size: 13.5px;
    }

@media (max-width: 900px) {
    .hp-hero-inner {
        padding: 36px 16px 32px;
    }

    .hp-hero h1 {
        font-size: 30px;
    }

    .hp-tagline {
        font-size: 15px;
    }

    .hp-hero-shade {
        display: none;
    }

    .hp-statsband-in {
        gap: 6px 18px;
        font-size: 12.5px;
    }

    .hp-welcome {
        grid-template-columns: 1fr;
    }

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

    .hp-grid-3, .hp-steps {
        grid-template-columns: 1fr;
    }

    .hp-section {
        padding: 22px 0;
    }
}

@media (max-width: 520px) {
    .hp-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ---- Website Pages: custom About / Contact bodies + hero
   height on small screens (2026-11-12) ---- */
.site-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 16px 44px;
    color: #24344d;
}

    .site-page h1 {
        color: #123c6e;
        font-size: 32px;
        font-weight: 800;
        margin: 0 0 10px;
    }

    .site-page h2 {
        color: #123c6e;
        font-size: 21px;
        font-weight: 800;
        margin: 24px 0 8px;
    }

    .site-page p, .site-page li {
        font-size: 14.5px;
        line-height: 1.65;
        color: #3d5069;
    }

    .site-page img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .site-page .hp-principal {
        margin: 18px 0;
        max-width: 560px;
    }

.site-lead {
    font-size: 16.5px !important;
    color: #123c6e !important;
}

.site-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0 6px;
}

.site-card {
    background: #fff;
    border: 1px solid #dbe6f5;
    border-top: 4px solid #1361C8;
    border-radius: 10px;
    padding: 14px 16px;
}

    .site-card h3 {
        margin: 0 0 6px;
        font-size: 15px;
        color: #123c6e;
    }

    .site-card p {
        margin: 0;
    }

@media (max-width: 767px) {
    .hp-hero {
        min-height: 86vh;
    }

    .site-cards {
        grid-template-columns: 1fr;
    }

    .site-page h1 {
        font-size: 26px;
    }
}
