:root {
    --home-primary: #0f6654;
    --home-primary-dark: #084a3c;
    --home-accent: #d7a947;
    --home-text: #1d2939;
    --home-muted: #667085;
    --home-light: #f5f8fc;
    --home-border: #e4e7ec;
    --home-white: #ffffff;
}

/* =========================================================
   HOME HERO
   ========================================================= */

.home-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(11, 45, 89, 0.96) 0%,
            rgba(18, 63, 122, 0.88) 48%,
            rgba(18, 63, 122, 0.45) 100%
        ),
        linear-gradient(135deg, #0f6654, #084a3c);
}

.home-hero-slides { position:absolute; inset:0; }
.home-hero-slide { position:absolute; inset:0; display:flex; align-items:center; opacity:0; visibility:hidden; background-position:center; background-size:cover; transition:opacity .65s ease,visibility .65s ease; }
.home-hero-slide.is-active { opacity:1; visibility:visible; }
.home-hero-slide .home-hero-container { width:min(calc(100% - 40px),1200px); }
.home-hero-slide .home-hero-overlay { background:linear-gradient(90deg,rgba(7,43,66,.10),rgba(7,43,66,.04)); }
.hero-slider-controls { position:absolute; z-index:4; right:max(24px,calc((100vw - 1200px)/2)); bottom:24px; display:flex; align-items:center; gap:12px; padding:8px 12px; border:1px solid rgba(255,255,255,.26); border-radius:28px; background:rgba(4,36,50,.55); backdrop-filter:blur(8px); }
.hero-slider-controls button { width:34px; height:34px; border:0; border-radius:50%; color:#fff; background:rgba(255,255,255,.14); cursor:pointer; font-size:20px; }
.hero-slider-controls button:hover,.hero-slider-controls button:focus-visible { background:var(--home-accent); color:#152b35; }
.hero-slider-dots { display:flex; gap:7px; }
.hero-slider-dots button { width:9px;height:9px;padding:0;background:rgba(255,255,255,.56); }
.hero-slider-dots button.active { width:23px;border-radius:10px;background:#fff; }

.home-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
    align-items: center;
    gap: 70px;
    padding-top: 70px;
    padding-bottom: 70px;
}

.home-hero-content {
    max-width: 760px;
}

.home-hero-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.home-hero-session {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.home-hero h1 {
    margin-bottom: 24px;
    color: #ffffff;
    font-size: clamp(44px, 5.5vw, 76px);
    line-height: 1.04;
    font-weight: 800;
}

.home-hero h1 span {
    color: var(--home-accent);
}

.home-hero-content > p {
    max-width: 690px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.8;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 22px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.home-btn-primary {
    background: var(--home-accent);
    color: #17202a;
}

.home-btn-primary:hover {
    background: #e6a92f;
}

.home-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.home-btn-outline:hover {
    background: #ffffff;
    color: var(--home-primary);
}

.home-hero-info {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
}

.home-admission-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    background: #65d68a;
    box-shadow: 0 0 0 5px rgba(101, 214, 138, 0.12);
}

.home-admission-status small {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.home-admission-status strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

.home-hero-info-divider {
    height: 1px;
    margin: 25px 0;
    background: rgba(255, 255, 255, 0.18);
}

.home-hero-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.8;
}

/* =========================================================
   QUICK INFORMATION
   ========================================================= */

.home-quick-info {
    position: relative;
    z-index: 5;
    margin-top: -1px;
    background: var(--home-white);
    border-bottom: 1px solid var(--home-border);
}

.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.home-quick-card {
    min-height: 115px;
    padding: 23px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid var(--home-border);
    transition: background 0.2s ease;
}

.home-quick-card:first-child {
    border-left: 1px solid var(--home-border);
}

.home-quick-card:hover {
    background: var(--home-light);
}

.home-quick-number {
    color: var(--home-primary);
    font-size: 12px;
    font-weight: 800;
}

.home-quick-card h3 {
    margin-bottom: 3px;
    color: var(--home-primary-dark);
    font-size: 14px;
}

.home-quick-card p {
    margin: 0;
    color: var(--home-muted);
    font-size: 11px;
}

.home-quick-arrow {
    margin-left: auto;
    color: var(--home-primary);
    font-size: 18px;
    font-weight: 700;
}

/* =========================================================
   WELCOME
   ========================================================= */

.home-welcome {
    padding: 105px 0;
    background: #ffffff;
}

.home-welcome-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 80px;
}

.home-section-label {
    color: var(--home-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.home-welcome-content {
    max-width: 760px;
}

.home-welcome-content h2 {
    margin-bottom: 20px;
    color: var(--home-primary-dark);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.15;
}

.home-welcome-content p {
    max-width: 700px;
    margin-bottom: 28px;
    color: var(--home-muted);
    font-size: 16px;
    line-height: 1.8;
}

.home-text-link {
    color: var(--home-primary);
    font-size: 14px;
    font-weight: 700;
}

.home-text-link span {
    margin-left: 6px;
}

/* =========================================================
   WHY HORIZON
   ========================================================= */

.home-why {
    padding: 100px 0;
    background: var(--home-light);
}

.home-section-heading {
    max-width: 750px;
    margin-bottom: 45px;
}

.home-section-heading > span {
    display: block;
    margin-bottom: 12px;
    color: var(--home-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.home-section-heading h2 {
    margin-bottom: 15px;
    color: var(--home-primary-dark);
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.2;
}

.home-section-heading p {
    color: var(--home-muted);
    font-size: 15px;
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-why-card {
    padding: 34px;
    background: #ffffff;
    border: 1px solid var(--home-border);
    border-radius: 10px;
}

.home-card-number {
    margin-bottom: 25px;
    color: var(--home-primary);
    font-size: 12px;
    font-weight: 800;
}

.home-why-card h3 {
    margin-bottom: 12px;
    color: var(--home-primary-dark);
    font-size: 20px;
}

.home-why-card p {
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================================
   ACADEMICS
   ========================================================= */

.home-academics {
    padding: 105px 0;
    background: #ffffff;
}

.home-academics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.home-academics-content {
    max-width: 620px;
}

.home-academics-content h2 {
    margin: 12px 0 18px;
    color: var(--home-primary-dark);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;
}

.home-academics-content p {
    margin-bottom: 28px;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.8;
}

.home-academics-list {
    border-top: 1px solid var(--home-border);
}

.home-academic-item {
    padding: 23px 0;
    display: grid;
    grid-template-columns: 45px 1fr;
    column-gap: 15px;
    border-bottom: 1px solid var(--home-border);
}

.home-academic-item span {
    grid-row: span 2;
    color: var(--home-primary);
    font-size: 12px;
    font-weight: 800;
}

.home-academic-item strong {
    margin-bottom: 4px;
    color: var(--home-primary-dark);
    font-size: 16px;
}

.home-academic-item p {
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
}

/* =========================================================
   FACILITIES
   ========================================================= */

.home-facilities {
    padding: 100px 0;
    background: var(--home-light);
}

.home-facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.home-facility-card {
    min-height: 230px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #ffffff;
    border: 1px solid var(--home-border);
    border-radius: 10px;
}

.home-facility-card > span {
    margin-bottom: auto;
    color: var(--home-primary);
    font-size: 11px;
    font-weight: 800;
}

.home-facility-card h3 {
    margin-bottom: 9px;
    color: var(--home-primary-dark);
    font-size: 18px;
}

.home-facility-card p {
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   STATS
   ========================================================= */

.home-stats {
    padding: 90px 0;
    background: var(--home-primary-dark);
}

.home-stats-heading {
    margin-bottom: 45px;
}

.home-stats-heading span {
    display: block;
    margin-bottom: 10px;
    color: var(--home-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.home-stats-heading h2 {
    color: #ffffff;
    font-size: 42px;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.home-stat {
    padding: 35px 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.home-stat:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.home-stat strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 38px;
    font-weight: 800;
}

.home-stat span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

/* =========================================================
   EVENTS / NEWS
   ========================================================= */

.home-news {
    padding: 105px 0;
    background: #ffffff;
}

.home-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.home-section-heading.compact {
    margin-bottom: 25px;
}

.home-section-heading.compact h2 {
    font-size: 30px;
}

.home-empty-card {
    min-height: 260px;
    padding: 30px;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: var(--home-light);
}

.home-empty-card > span {
    display: block;
    margin-bottom: 20px;
    color: var(--home-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.home-empty-card h3 {
    margin-bottom: 10px;
    color: var(--home-primary-dark);
    font-size: 20px;
}

.home-empty-card p {
    margin-bottom: 20px;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   GALLERY
   ========================================================= */

.home-gallery {
    padding: 100px 0;
    background: var(--home-light);
}

.home-gallery-placeholder {
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: #ffffff;
}

.home-gallery-placeholder span {
    display: block;
    margin-bottom: 8px;
    color: var(--home-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.home-gallery-placeholder h3 {
    color: var(--home-primary-dark);
    font-size: 22px;
}
.home-gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.home-gallery-card { overflow:hidden; border:1px solid var(--home-border); border-radius:12px; background:#fff; box-shadow:0 8px 24px rgba(16,24,40,.05); }
.home-gallery-photo { height:230px; display:block; position:relative; overflow:hidden; background:#e7f0ed; }
.home-gallery-photo img { width:100%;height:100%;object-fit:cover;transition:transform .3s ease; }
.home-gallery-card:hover img { transform:scale(1.04); }
.home-gallery-photo i { position:absolute;left:14px;bottom:14px;padding:7px 10px;border-radius:18px;background:rgba(7,63,56,.9);color:white;font-size:11px;font-style:normal;font-weight:800; }
.home-gallery-card strong,.home-gallery-card small { display:block;margin:12px 15px 0; }
.home-gallery-card small { margin-top:5px;margin-bottom:15px;color:var(--home-muted); }
.home-gallery-action { margin-top:24px;text-align:center; }
@media(max-width:1000px) { .home-hero { min-height:780px; } }
@media(max-width:700px) { .home-hero { min-height:850px; } .home-hero-slide { min-height:100%; } .home-hero-slide .home-hero-container { padding-bottom:90px; } .hero-slider-controls { right:18px;bottom:16px; } .home-gallery-grid { grid-template-columns:1fr; } }
@media(max-width:480px) { .home-hero { min-height:900px; } }
@media(prefers-reduced-motion:reduce) { .home-hero-slide,.home-gallery-photo img { transition:none; } }

/* =========================================================
   ADMISSION CTA
   ========================================================= */

.home-admission-cta {
    padding: 75px 0;
    background: var(--home-primary);
}

.home-admission-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.home-admission-content > div:first-child {
    max-width: 700px;
}

.home-admission-content > div:first-child > span {
    display: block;
    margin-bottom: 10px;
    color: var(--home-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.home-admission-content h2 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 38px;
    line-height: 1.2;
}

.home-admission-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.home-admission-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.home-btn-light {
    background: #ffffff;
    color: var(--home-primary);
}

.home-btn-light:hover {
    background: #f1f4f8;
}

.home-btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.home-btn-outline-light:hover {
    background: #ffffff;
    color: var(--home-primary);
}

/* =========================================================
   CONTACT
   ========================================================= */

.home-contact {
    padding: 100px 0;
    background: #ffffff;
}

.home-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.home-contact-grid h2 {
    margin: 12px 0 15px;
    color: var(--home-primary-dark);
    font-size: 42px;
    line-height: 1.2;
}

.home-contact-grid > div:first-child p {
    max-width: 600px;
    margin-bottom: 25px;
    color: var(--home-muted);
    font-size: 15px;
}

.home-contact-box {
    padding: 32px;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: var(--home-light);
}

.home-contact-box > div {
    padding: 17px 0;
    border-bottom: 1px solid var(--home-border);
}

.home-contact-box > div:first-child {
    padding-top: 0;
}

.home-contact-box > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.home-contact-box span {
    display: block;
    margin-bottom: 5px;
    color: var(--home-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.home-contact-box p {
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .home-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-hero-info {
        max-width: 600px;
    }

    .home-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-quick-card:nth-child(2) {
        border-right: 0;
    }

    .home-welcome-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .home-facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-admission-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .home-hero {
        min-height: 850px;
    }

    .home-hero-container {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .home-hero h1 {
        font-size: 43px;
    }

    .home-hero-content > p {
        font-size: 15px;
    }

    .home-hero-info {
        padding: 24px;
    }

    .home-quick-grid {
        grid-template-columns: 1fr;
    }

    .home-quick-card,
    .home-quick-card:first-child,
    .home-quick-card:nth-child(2) {
        border-left: 1px solid var(--home-border);
        border-right: 1px solid var(--home-border);
        border-bottom: 1px solid var(--home-border);
    }

    .home-welcome,
    .home-why,
    .home-academics,
    .home-facilities,
    .home-news,
    .home-gallery,
    .home-contact {
        padding: 70px 0;
    }

    .home-why-grid {
        grid-template-columns: 1fr;
    }

    .home-academics-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .home-facilities-grid {
        grid-template-columns: 1fr;
    }

    .home-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-stat {
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .home-news-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .home-admission-content h2 {
        font-size: 31px;
    }

    .home-admission-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .home-contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .home-hero {
        min-height: 900px;
    }

    .home-hero-container {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .home-hero h1 {
        font-size: 37px;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero-actions .home-btn {
        width: 100%;
    }

    .home-quick-card {
        min-height: 100px;
    }

    .home-section-heading h2,
    .home-contact-grid h2 {
        font-size: 31px;
    }

    .home-stats-grid {
        grid-template-columns: 1fr;
    }

    .home-stat,
    .home-stat:first-child {
        border-left: 0;
        border-right: 0;
    }

    .home-admission-actions {
        flex-direction: column;
    }

    .home-admission-actions .home-btn {
        width: 100%;
    }
}
