/*
 * APC KADUNA 2027 - PUBLIC LAYOUT
 * Image used by the home banner: ../images/loginbg.jpeg
 * Change the hero background image in .hero below.
 */

:root {
    --green:#078343;
    --dark:#133829;
    --muted:#62766a
}

* {
    box-sizing:border-box
}

body {
    margin:0;
    background:#f5f8f6;
    color:#263a30;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif
}

a {
    text-decoration:none;
    color:inherit
}

.container {
    max-width:1240px;
    width:calc(100% - 40px);
    margin:auto
}

.site-header {
    background:linear-gradient(115deg,#087b3e,#0e994c,#07803e);
    color:#fff;
    box-shadow:0 2px 10px #1238;
    position:relative;
    z-index:20
}

.header-flex {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    min-height:100px
}

.brand {
    display:flex;
    align-items:center;
    gap:13px;
    min-width:0
}

.brand-logo {
    width:64px;
    height:64px;
    border-radius:10px;
    background:white;
    object-fit:contain;
    padding:4px
}

.brand-name {
    display:block;
    font-size:1.35rem;
    font-weight:750;
    line-height:1.2
}

.brand-sub {
    display:block;
    margin-top:4px;
    font-size:.82rem;
    color:#e1f5e9
}

.nav {
    display:flex;
    align-items:center;
    gap:8px
}

.nav a,.nav button {
    color:#fff;
    background:transparent;
    border:0;
    padding:11px 10px;
    border-radius:7px;
    font:600 .85rem/1.3 inherit;
    white-space:nowrap;
    cursor:pointer
}

.nav a:hover,.nav button:hover,.nav a.active {
    background:#ffffff25
}

.nav .staff-link {
    border:1px solid #ffffff9c;
    margin-left:4px
}

.hamburger {
    display:none;
    padding:9px 12px;
    border:1px solid #ffffff80;
    border-radius:7px;
    background:none;
    color:#fff;
    font-size:1.35rem;
    cursor:pointer
}

.hero {
    position:relative;
    min-height:665px;
    display:flex;
    align-items:center;
    background:#f1f7f3 url('../images/loginbg.jpeg') center/cover no-repeat
}

.hero:before {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,rgba(247,250,248,.94),rgba(247,250,248,.79),rgba(247,250,248,.88))
}

.hero .container {
    position:relative;
    z-index:1
}

.hero-grid {
    display:grid;
    grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);
    gap:65px;
    align-items:center;
    padding:52px 0
}

.hero-logo {
    width:96px;
    height:96px;
    background:white;
    padding:7px;
    object-fit:contain;
    border-radius:16px;
    box-shadow:0 7px 28px #0002
}

.kicker {
    display:block;
    margin-top:22px;
    font-weight:750;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:#078343;
    font-size:.83rem
}

.hero h1 {
    max-width:700px;
    font-size:clamp(2rem,3.3vw,3.25rem);
    line-height:1.16;
    color:#163a2a;
    margin:14px 0
}

.hero h1 span {
    color:#068c46
}

.hero p {
    max-width:640px;
    font-size:1.04rem;
    line-height:1.8;
    color:#52695a
}

.stripe {
    display:flex;
    height:4px;
    width:75px;
    overflow:hidden;
    border-radius:4px;
    margin-top:25px
}

.stripe i:nth-child(1) {
    width:55%;
    background:#008b45
}

.stripe i:nth-child(2) {
    width:25%;
    background:#e5232e
}

.stripe i:nth-child(3) {
    width:20%;
    background:#48bfdf
}

.news-panel {
    background:white;
    border-radius:17px;
    overflow:hidden;
    box-shadow:0 15px 50px #28473526;
    align-self:center
}

.news-panel:before {
    content:'';
    display:block;
    height:5px;
    background:linear-gradient(90deg,#008f44 0 54%,#f12530 54% 78%,#4abfe1 78%)
}

.news-head {
    padding:24px 25px 13px
}

.news-head h2 {
    margin:0;
    color:#153a29;
    font-size:1.4rem
}

.news-head p {
    margin:7px 0 0;
    font-size:.82rem;
    line-height:1.5;
    color:#78897e
}

.news-items {
    padding:0 20px 22px
}

.news-item {
    display:block;
    padding:15px 6px;
    border-bottom:1px solid #e7eee9
}

.news-item:last-child {
    border-bottom:0
}

.news-item:hover .news-title {
    color:#078343;
    text-decoration:underline
}

.news-date {
    font-size:.74rem;
    color:#799082
}

.news-title {
    display:block;
    margin-top:5px;
    font-weight:700;
    line-height:1.45;
    color:#203a2c;
    font-size:.95rem
}

.news-empty {
    padding:20px 7px;
    color:#697f72;
    font-size:.9rem;
    line-height:1.7
}

.see-all {
    display:block;
    text-align:center;
    padding:13px 10px;
    border-top:1px solid #ecf0ed;
    color:#078343;
    font-weight:650;
    font-size:.87rem
}

.footer {
    background:#1e2a23;
    color:#d9e4dd;
    padding:18px 0;
    font-size:.8rem
}

.footer-flex {
    display:flex;
    justify-content:space-between;
    gap:12px
}

.public-main {
    min-height:65vh;
    padding:65px 0
}

.page-card {
    padding:28px;
    background:#fff;
    border:1px solid #e4ece6;
    border-radius:14px;
    margin-top:25px;
    line-height:1.8
}

.public-main h1 {
    font-size:2rem;
    color:#183b2b
}

.page-card h2 {
    line-height:1.3
}

.back {
    color:#087c42;
    font-weight:650
}

.news-list {
    display:grid;
    gap:12px
}

.news-list a {
    display:block;
    background:#fff;
    padding:20px;
    border:1px solid #e4ece6;
    border-radius:10px
}

.news-list strong {
    display:block;
    margin:8px 0;
    color:#183b2b
}

.article-body {
    white-space:pre-wrap;
    overflow-wrap:anywhere
}

.modal-backdrop[hidden] {
    display:none!important
}

.modal-backdrop {
    position:fixed;
    inset:0;
    z-index:1000;
    background:#071b13ac;
    display:grid;
    place-items:center;
    padding:20px
}

.modal-panel {
    width:min(100%,450px);
    position:relative;
    background:white;
    border-radius:16px;
    padding:30px;
    box-shadow:0 15px 75px #0005
}

.modal-panel h2 {
    margin:0 0 5px;
    color:#173a29
}

.modal-panel p {
    color:#69796f;
    font-size:.9rem
}

.modal-close {
    position:absolute;
    right:15px;
    top:12px;
    background:transparent;
    border:0;
    font-size:1.7rem;
    cursor:pointer;
    color:#667c6e
}

.modal-panel form {
    display:grid;
    gap:16px;
    margin-top:24px
}

.modal-panel label {
    font-size:.87rem;
    font-weight:650
}

.modal-panel input:not([type=checkbox]) {
    display:block;
    width:100%;
    margin-top:7px;
    border-radius:8px;
    padding:13px;
    border:1px solid #ccdcd1;
    font-size:1rem
}

.modal-panel .show-password {
    display:flex;
    gap:8px;
    align-items:center;
    font-weight:400
}

.modal-panel form button {
    border:0;
    background:#078343;
    color:white;
    font-weight:750;
    border-radius:8px;
    padding:14px;
    cursor:pointer
}

.form-error {
    background:#fce8e6;
    color:#9c2724;
    padding:10px;
    border-radius:6px
}

@media(max-width:1100px) {
    .header-flex {
        flex-wrap:wrap;
        padding:12px 0
    }

    .hamburger {
        display:block;
        margin-left:auto
    }

    .nav {
        display:none;
        width:100%;
        flex-direction:column;
        align-items:stretch;
        padding:12px 0;
        border-top:1px solid #ffffff55
    }

    .nav.show {
        display:flex
    }

    .nav a,.nav button {
        width:100%;
        text-align:left;
        padding:12px
    }

    .nav .staff-link {
        margin-left:0
    }

    .hero-grid {
        gap:25px
    }

}

@media(max-width:760px) {
    .brand-logo {
        width:52px;
        height:52px
    }

    .brand-name {
        font-size:1rem
    }

    .brand-sub {
        font-size:.75rem
    }

    .hero-grid {
        grid-template-columns:1fr;
        padding:40px 0
    }

    .hero {
        min-height:0
    }

    .news-panel {
        margin-bottom:25px
    }

    .hero-logo {
        width:77px;
        height:77px
    }

    .footer-flex {
        flex-direction:column
    }

    .container {
        width:calc(100% - 30px)
    }

}
