@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root{
    --green:#14382F;
    --green-dark:#0C2722;
    --gold:#C6A15B;
    --beige:#F6F1E8;
    --cream:#FFFDF8;
    --soft:#EFE4D3;
    --text:#1F2F2B;
    --muted:#74695C;
    --border:rgba(198,161,91,.25);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:"Inter",sans-serif;
    background:var(--beige);
    color:var(--text);
}

.resources-hero{
    padding:110px 0 90px;
    text-align:center;
    background:
        radial-gradient(circle at 10% 20%,rgba(198,161,91,.15),transparent 28%),
        linear-gradient(135deg,var(--cream),var(--beige));
}

.section-label{
    color:var(--gold);
    text-transform:uppercase;
    letter-spacing:4px;
    font-size:13px;
    font-weight:700;
}

.resources-hero h1{
    font-family:"Cormorant Garamond",serif;
    font-size:clamp(60px,7vw,110px);
    color:var(--green);
    margin:18px 0;
}

.resources-hero p{
    max-width:760px;
    margin:auto;
    color:var(--muted);
    font-size:19px;
    line-height:1.8;
}

.resource-search-box{
    width:min(650px,90%);
    margin:45px auto 25px;
    background:white;
    border-radius:60px;
    border:1px solid var(--border);
    display:flex;
    align-items:center;
    padding:0 22px;
    height:58px;
    box-shadow:0 12px 35px rgba(20,56,47,.08);
}

.resource-search-box i{
    color:var(--gold);
    font-size:20px;
}

.resource-search-box input{
    flex:1;
    border:none;
    outline:none;
    background:none;
    margin-left:15px;
    font-size:16px;
}

.resource-filters{
    display:flex;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
}

.filter-btn{
    border:none;
    padding:12px 22px;
    border-radius:30px;
    background:white;
    color:var(--green);
    border:1px solid var(--border);
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.filter-btn.active,
.filter-btn:hover{
    background:var(--green);
    color:white;
}

.resources-section,
.blog-section{
    padding:90px 0;
}

.blog-section{
    background:#F1E7D7;
}

.section-heading{
    margin-bottom:55px;
}

.section-heading h2{
    font-family:"Cormorant Garamond",serif;
    font-size:clamp(44px,5vw,72px);
    color:var(--green);
    margin-top:14px;
}

.resource-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
    align-items:stretch;
}

.resource-card{
    background:white;
    border-radius:28px;
    padding:34px;
    border:1px solid var(--border);
    box-shadow:0 18px 45px rgba(20,56,47,.08);
    transition:.35s;
    display:flex;
    flex-direction:column;
    height:100%;
}

.resource-card:hover{
    transform:translateY(-8px);
}

.resource-type{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 18px;
    border-radius:40px;
    margin-bottom:24px;
    font-size:14px;
    font-weight:700;
}

.resource-type i{
    font-size:20px;
}

.resource-type.pdf{
    background:#FCECEC;
    color:#C62828;
}

.resource-type.image{
    background:#E8F5E9;
    color:#2E7D32;
}

.resource-type.video{
    background:#E8F1FD;
    color:#1565C0;
}

.resource-card h3{
    font-family:"Cormorant Garamond",serif;
    color:var(--green);
    font-size:34px;
    margin-bottom:16px;
    overflow-wrap:anywhere;
    min-height:84px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.resource-card p{
    color:var(--muted);
    line-height:1.8;
    margin-bottom:24px;
    flex:1;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:4;
    -webkit-box-orient:vertical;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.resource-card a{
    margin-top:auto;
    display:inline-flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    color:var(--green);
    font-weight:700;
}

.resource-card a:hover{
    color:var(--gold);
}

.blog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
    gap:32px;
}

.blog-card{
    background:white;
    border-radius:30px;
    overflow:hidden;
    border:1px solid var(--border);
    box-shadow:0 18px 45px rgba(20,56,47,.08);
    transition:.35s;
}

.blog-card:hover{
    transform:translateY(-8px);
}

.blog-card img{
    width:100%;
    height:230px;
    object-fit:cover;
}

.blog-content{
    padding:30px;
}

.blog-content h3{
    font-family:"Cormorant Garamond",serif;
    color:var(--green);
    font-size:34px;
    margin-bottom:16px;
}

.blog-content p{
    color:var(--muted);
    line-height:1.8;
    margin-bottom:24px;
}

.blog-content a{
    text-decoration:none;
    color:var(--green);
    font-weight:700;
}

.blog-content a:hover{
    color:var(--gold);
}

.resources-cta{
    margin:80px 6%;
    padding:70px 40px;
    border-radius:34px;
    background:var(--green);
    color:white;
    text-align:center;
}

.resources-cta h2{
    font-family:"Cormorant Garamond",serif;
    font-size:clamp(46px,5vw,74px);
    margin:16px 0;
}

.resources-cta p{
    max-width:720px;
    margin:0 auto 34px;
    color:#E8DCC8;
    line-height:1.8;
}

.resources-cta a{
    display:inline-flex;
    align-items:center;
    gap:12px;
    background:white;
    color:var(--green);
    text-decoration:none;
    font-weight:700;
    padding:16px 34px;
    border-radius:50px;
    transition:.3s;
}

.resources-cta a:hover{
    background:var(--gold);
    color:var(--green-dark);
}

.empty-text{
    text-align:center;
    color:var(--muted);
    grid-column:1/-1;
}

@media(max-width:768px){

    .resources-hero{
        padding:80px 20px;
    }

    .resources-hero h1{
        font-size:58px;
    }

    .resources-section,
    .blog-section{
        padding:70px 20px;
    }

    .resource-search-box{
        width:100%;
    }

    .resources-cta{
        margin:50px 20px;
        padding:45px 25px;
    }

}

/* ---------- Equal card heights ---------- */
.resource-card{overflow:hidden}
.resource-card:hover{
    box-shadow:0 24px 55px rgba(20,56,47,.12);
}
