/* =========================
   HALL OF PEOPLE MAIN CSS
   ========================= */

*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:#f4f0e8;
    font-family:Georgia,"Times New Roman",serif;
    color:#162033;
    line-height:1.6;
}

a{
    color:inherit;
    text-decoration:none;
}

a:hover{
    text-decoration:none;
}

/* =========================
   TOP MENU
   ========================= */

.topbar{
    position:sticky;
    top:0;
    z-index:100;
    background:#071527;
    border-bottom:1px solid rgba(255,255,255,.12);
}

.menu{
    max-width:1180px;
    width:calc(100% - 28px);
    margin:auto;
    padding:13px 0;
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    align-items:center;
    justify-content:center;
}

.brand{
    color:#fff;
    font:bold 16px Arial,sans-serif;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.menu a{
    color:#fff;
    background:#113e73;
    padding:10px 15px;
    border-radius:30px;
    font-family:Arial,sans-serif;
    font-size:13px;
    font-weight:bold;
    text-transform:uppercase;
}

.menu a:hover{
    background:#1b5798;
}

/* =========================
   HERO
   ========================= */

.hero{
    max-width:1180px;
    width:calc(100% - 28px);
    margin:28px auto 20px;
    background:#092b52;
    color:#fff;
    border-radius:30px;
    padding:34px 22px;
    text-align:center;
    box-shadow:0 15px 40px rgba(0,0,0,.15);
}

.hero h1{
    margin:0;
  font-size:clamp(1rem,2.5vw,1.8rem);
    line-height:1.1;
}

.hero p{
    max-width:760px;
    margin:15px auto 0;
    font-family:Arial,sans-serif;
    font-size:18px;
    color:#f5d99b;
}

/* =========================
   PAGE
   ========================= */

.page,
.container{
    max-width:1180px;
    margin:0 auto 40px;
    padding:0 16px;
}

/* =========================
   SEARCH
   ========================= */

.search-row{
    display:grid;
    grid-template-columns:90px 1fr 130px;
    gap:12px;
    width:100%;
    margin:24px 0;
}

.search-row input,
.search-row button,
.search-row a{
    width:100%;
    min-height:48px;
    padding:12px 15px;
    border-radius:16px;
    font-size:14px;
    font-family:Arial,sans-serif;
    font-weight:bold;
}

.search-row input{
    border:1px solid rgba(9,43,82,.25);
    background:#fff;
}

.search-row button,
.search-row a{
    border:none;
    background:#f4a024;
    color:#092b52;
    cursor:pointer;
    text-transform:uppercase;
}

.search-row button:hover,
.search-row a:hover{
    background:#e08f0c;
}

.all-btn{
    background:#f4a024 !important;
}

/* =========================
   ALPHABET
   ========================= */

.alphabet{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    justify-content:center;
    margin:22px 0 28px;
}

.alphabet button,
.alphabet a{
    border:1px solid rgba(9,43,82,.18);
    background:#fffaf2;
    color:#092b52;
    border-radius:12px;
    padding:8px 11px;
    font-family:Arial,sans-serif;
    font-weight:bold;
    cursor:pointer;
}

.alphabet button:hover,
.alphabet button.active{
    background:#f4a024;
}

/* =========================
   CARDS
   ========================= */

.people-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:16px;
}

.person-card{
    display:block;
    background:#fffaf2;
    border:1px solid rgba(9,43,82,.16);
    border-radius:20px;
    padding:14px;
    box-shadow:0 10px 28px rgba(0,0,0,.08);
    transition:.2s ease;
}

.person-card:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 34px rgba(0,0,0,.13);
}

.years{
    font-family:Arial,sans-serif;
    font-size:13px;
    color:#7b5b18;
    font-weight:bold;
    margin-bottom:7px;
}

.person-name,
.person-card h2{
    color:#092b52;
    font-size:18px;
    font-weight:bold;
    line-height:1.2;
}

.age,
.life{
    margin-top:7px;
    font-family:Arial,sans-serif;
    font-size:12px;
    color:#666;
}

/* =========================
   BUTTONS
   ========================= */

.action-btn{
    display:inline-block;
    background:#092b52;
    color:#fff;
    padding:10px 15px;
    border-radius:30px;
    font-family:Arial,sans-serif;
    font-size:13px;
    font-weight:bold;
    text-transform:uppercase;
}

.action-btn.gold{
    background:#f1c96b;
    color:#081729;
}

.no-results{
    display:none;
    text-align:center;
    background:#fffaf2;
    border-radius:20px;
    padding:24px;
    color:#092b52;
    font-family:Arial,sans-serif;
    font-weight:bold;
}



/* =========================
   FOOTER
   ========================= */

.footer{
    background:#071527;
    color:#fff;
    text-align:center;
    padding:28px 15px;
    margin-top:40px;
    font-family:Arial,sans-serif;
}

/* =========================
   MOBILE
   ========================= */

@media(max-width:1150px){
    .people-grid{
        grid-template-columns:repeat(5,1fr);
    }
}

@media(max-width:950px){
    .people-grid{
        grid-template-columns:repeat(4,1fr);
    }
}

@media(max-width:720px){
    

    .search-row{
        grid-template-columns:60px 1fr 82px;
        gap:7px;
    }

    .search-row input,
    .search-row button,
    .search-row a{
        min-height:42px;
        padding:9px 8px;
        font-size:12px;
    }


    .people-grid{
        grid-template-columns:repeat(3,1fr);
        gap:12px;
    }

    .hero h1{
        font-size:clamp(1.3rem,5vw,2rem);
    }
}

@media(max-width:520px){

    .people-grid{
        grid-template-columns:repeat(3,1fr);
        gap:10px;
    }

    .person-card{
        padding:10px;
        min-width:0;
    }

    .person-name,
    .person-card h2{
        font-size:14px;
        line-height:1.15;
        word-break:break-word;
        overflow-wrap:break-word;
    }
}
