/* ===========================
   RESOURCES PAGE — Grid, Cards, Search
   =========================== */

.resources-section {
    padding: 7rem 0 5rem;
    text-align: center;
    background: var(--light);
    min-height: 80vh;
}

.resources-header {
    margin-bottom: 2rem;
}

.resources-header h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.resources-subtitle {
    color: #777;
    font-size: 1.05rem;
    margin: 0;
}

/* Resources Search Bar */
.resources-search-box {
    position: relative;
    max-width: 550px;
    margin: 0 auto 2.5rem;
}

.resources-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #aaa;
    pointer-events: none;
}

.resources-search-icon svg {
    width: 100%;
    height: 100%;
}

.resources-search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.resources-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.resources-search-input::placeholder {
    color: #bbb;
}

.resources-search-count {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #999;
    font-weight: 600;
    pointer-events: none;
}

.resources-no-results {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 0.95rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card */
.resource-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    border: 1px solid #eee;
    padding: 2.2rem 1.8rem 1.8rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

/* Accent variant (Flyer) */
.resource-card--accent {
    border-color: rgba(46, 204, 113, 0.25);
    background: linear-gradient(160deg, #f0fdf4 0%, #ffffff 60%);
}

.resource-card--accent:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(46, 204, 113, 0.15);
}

/* Badge */
.resource-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

/* Icon */
.resource-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1.2rem;
    color: var(--accent);
    background: rgba(46, 204, 113, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem;
    transition: background 0.25s ease, transform 0.25s ease;
}

.resource-card:hover .resource-icon {
    background: rgba(46, 204, 113, 0.15);
    transform: scale(1.08);
}

.resource-icon svg {
    width: 100%;
    height: 100%;
}

/* Text */
.resource-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.resource-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.55;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

/* Link arrow */
.resource-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.resource-card:hover .resource-link {
    color: #27ae60;
}

.resource-link span {
    transition: transform 0.2s ease;
    display: inline-block;
}

.resource-card:hover .resource-link span {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 640px) {
    .resources-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .resource-card {
        padding: 1.8rem 1.4rem 1.4rem;
    }

    .resources-section {
        padding: 5rem 0 3rem;
    }
}
