/* ==========================================================
   RESET
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f7fa;
    color:#222;
    line-height:1.6;
}

/* ==========================================================
   HEADER
========================================================== */

header{
    background:#0B2D5C;
    color:white;
    padding:40px 20px;
}

.logo-container{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.logo{
    width:120px;
    height:120px;
    object-fit:contain;
    background:white;
    border-radius:12px;
    padding:4px;
    flex-shrink:0;
}

.header-text{
    text-align:left;
}

.header-text h1{
    font-size:3.5rem;
    margin:0;
}

.header-text p{
    margin-top:10px;
    max-width:700px;
    font-size:20px;
    line-height:1.6;
    opacity:.95;
}

/* ==========================================================
   SEARCH
========================================================== */

.search-section{
    width:90%;
    max-width:1200px;
    margin:40px auto;
}

#search{
    width:100%;
    padding:18px 24px;
    font-size:18px;
    border:2px solid #D1D5DB;
    border-radius:12px;
    transition:.2s;
}

#search:focus{
    outline:none;
    border-color:#0B4F8A;
}

/* ==========================================================
   CATEGORY NAVIGATION
========================================================== */

.category-nav{
    width:90%;
    max-width:1200px;
    margin:20px auto 50px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
}

.category-nav a{
    text-decoration:none;
    color:#0B4F8A;
    background:white;
    border:1px solid #DDE5F0;
    padding:12px 20px;
    border-radius:30px;
    font-weight:600;
    transition:.25s;
}

.category-nav a:hover{
    background:#0B4F8A;
    color:white;
}

/* ==========================================================
   MAIN CONTENT
========================================================== */

main{
    width:90%;
    max-width:1200px;
    margin:auto;
    padding:40px 0;
}

/* ==========================================================
   CATEGORY
========================================================== */

.category{
    margin-bottom:60px;
}

.category h2{
    font-size:34px;
    color:#0B4F8A;
    margin-bottom:20px;
    border-bottom:3px solid #E8F1FB;
    padding-bottom:12px;
}

.category-description{
    max-width:900px;
    margin-bottom:35px;
    color:#000000;
    font-size:18px;
    font-style:italic;
    line-height:1.8;
    font-weight: bold;
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
    margin-top:35px;
}

/* ==========================================================
   CARD
========================================================== */

.card{
    background:#fff;
    border:1px solid #E5E7EB;
    border-radius:16px;
    padding:30px;
    display:flex;
    flex-direction:column;
    height:100%;
    cursor:pointer;
    transition:
        transform .25s,
        box-shadow .25s,
        border-color .25s;
}

.card:hover{
    transform:translateY(-8px);
    border-color:#0B4F8A;
    box-shadow:0 18px 40px rgba(0,0,0,.12);
}

.logo-link{
    display:flex;
    justify-content:center;
    margin-bottom:22px;
}

.card h3{
    text-align:center;
    margin-bottom:15px;
    color:#0B4F8A;
    transition:.25s;
}

.card:hover h3{
    color:#083A65;
}

.card h3 a{
    color:#0B4F8A;
    text-decoration:none;
    font-size:28px;
    font-weight:700;
    line-height:1.2;
}

.card h3 a:hover{
    text-decoration:underline;
}

.card-type{
    align-self:center;
    display:inline-block;
    padding:8px 16px;
    border-radius:999px;
    background:#EAF3FD;
    color:#0B4F8A;
    font-size:13px;
    font-weight:600;
    margin-bottom:24px;
}

.card-divider{
    border:none;
    border-top:1px solid #E5E7EB;
    margin-bottom:20px;
}

.card-description{
    color:#444;
    font-size:17px;
    line-height:1.8;
    text-align:left;
    flex-grow:1;
    margin:24px 0;
}

.card-footer{
    margin-top:auto;
    padding-top:20px;
    border-top:1px solid #E5E7EB;
    text-align:center;
    color:#0B4F8A;
    font-weight:600;
    font-size:15px;
    transition:.25s;
}

/* ==========================================================
   EMPTY SEARCH
========================================================== */

.no-results{
    text-align:center;
    padding:80px 20px;
}

.no-results h2{
    color:#0B4F8A;
    font-size:32px;
    margin-bottom:15px;
}

.no-results p{
    color:#666;
    font-size:18px;
}

/* ==========================================================
   ABOUT
========================================================== */

.about{
    background:#fff;
    margin-top:80px;
    padding:70px 20px;
    border-top:1px solid #E5E7EB;
}

.about-container{
    max-width:900px;
    margin:auto;
}

.about h2{
    text-align:center;
    color:#0B4F8A;
    font-size:36px;
    margin-bottom:30px;
}

.about p{
    color:#444;
    font-size:18px;
    line-height:1.9;
    text-align:justify;
    margin-bottom:24px;
}

/* ==========================================================
   FOOTER
========================================================== */

footer{
    margin-top:80px;
    padding:40px 20px;
    background:#0B4F8A;
    color:white;
    text-align:center;
}

footer p{
    margin:8px 0;
    opacity:.9;
}

/* ==========================================================
   ACCESSIBILITY
========================================================== */

.visually-hidden{
    position:absolute;
    width:1px;
    height:1px;
    margin:-1px;
    padding:0;
    overflow:hidden;
    clip:rect(0,0,0,0);
    border:0;
}