/* Sección superior (intro) */
.resource-intro {
    text-align: center;
    padding: 180px 20px 40px 20px;
    background: #fff;
}
.resource-intro h1 {
    font-size: 36px;
    color:#85796B;
}
.resource-intro h2 {
    font-size: 12px;
    text-transform: uppercase;
    color: #a18c7c;
    margin-bottom: 20px;
    color:#B29F90;
    font-family: area-normal, sans-serif !important;
    font-weight:bold;
}
.resource-intro p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #7D7065;
    line-height: 1.6;
}
#resource-search {
    width: 100%;
    max-width: 200px;
    margin: 20px auto;
    display: block;
    padding: 8px 20px;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 14px;
}

#search-results {
    max-width: 600px;
    margin: 10px auto 0;
    text-align: left;
    padding:6px;
}

#search-results a {
    display: block;
    padding: 10px 15px;
    margin-bottom: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background 0.2s;
    border: 1px solid #FAF8F5;
}

#search-results a:hover {
    background: #FAF8F5;
}

.search-btn:hover {
    background: #eee;
}

/* Banner categoría */
.resource-banner {
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
    margin: 0 5vw;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-title {
    color: white;
    font-size: 48px;
    text-transform: uppercase;
    text-align: center;
    padding: 0 20px;
}
.resource-categories {
    display: flex;
    gap: 2vw;
    justify-content: center;
    margin: 40px 0;
}
.category-link {
    font-family: ivypresto-display, serif !important;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #B29F90;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size:32px;
    transition: all 0.5s ease;
}
.category-link:hover {
 color: #85796B;
}
.category-link.active {
    color: #85796B;
}
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 10vw;
}
.resource-item {
    text-align: center;
}
.resource-item h3 {
	font-size: 12px;
    text-transform: uppercase;
    color: #a18c7c;
    margin-bottom: 20px;
    color:#B29F90;
    font-family: area-normal, sans-serif !important;
    font-weight:bold;
    letter-spacing:1px;
    text-align:left;
}

.thumb {
    background-size: cover;
    background-position: center;
    padding-top: 100%; /* Para que sea cuadrado */
    position: relative;
    overflow: hidden;
    margin-bottom:10px;
}

.thumb .btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 4px 10px;
    font-weight: bold;
    border-radius: 30px;
    font-size: 12px;
    transition: all 0.3s ease;
    text-align: center;
    width:80%;
}

.thumb .btn:hover {
    background-color: rgba(255, 255, 255, 1);
    color:black;
    
}



@media screen and (max-width: 768px) {
    .resource-intro {
        padding: 40px 20px 20px;
    }

    .resource-intro h1 {
        font-size: 28px;
    }

    .resource-intro h2 {
        font-size: 10px;
    }

    .resource-intro p {
        font-size: 14px;
    }

    #resource-search {
        max-width: 90%;
        font-size: 14px;
        padding: 10px 16px;
    }

    #search-results a {
        font-size: 14px;
    }

    .resource-banner {
        height: 250px;
        margin: 0 20px;
    }

    .category-title {
        font-size: 28px;
        padding: 0 10px;
    }

   

    .resource-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 30px 5vw;
    }

    .thumb .btn {
        font-size: 12px;
        padding: 6px 12px;
        width: 90%;
    }

    .resource-item h3 {
        font-size: 12px;
        text-align: center;
    }
}