/* Container Layout */
.resource-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin: auto;
}

/* Cards */
.resource-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease-in-out;

    /* KEY FOR ALIGNMENT */
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.12);
}

/* Header */
.resource-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    margin-top: 10px;
}

.resource-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid #0067A5; /* darker accessible blue */
    padding-bottom: 5px;
}

/* Icon */
.resource-icon img {
    width: 48px;
    height: 48px;
}

/* Links Section */
.resource-links {
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 12px;

    /* KEY FOR ALIGNMENT */
    flex-grow: 1;
    justify-content: space-between;
}

/* Base Button */
.help-btn {
    display: block;
    width: 85%;
    margin: 10px auto;
    padding: 14px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Dark Button (accessible gray) */
.help-btn-dark {
    background: #4A4A4A; /* darker gray for contrast */
    color: #ffffff;
}

.help-btn-dark:hover {
    background: #0067A5; /* accessible blue */
    color: #ffffff;
    transform: scale(1.05);
}

/* Light Button (still accessible) */
.help-btn-light {
    background: #E0E0E0;
    color: #000000;
}

.help-btn-light:hover {
    background: #CFCFCF;
    color: #000000;
    transform: scale(1.05);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .resource-container {
        grid-template-columns: 1fr;
    }
}

/* Banner Fix */
div[style*="border-bottom: 4px solid"] {
    border-bottom: 4px solid #0067A5 !important;
}

/* Text */
body, p, .resource-links p {
    color: #000000;
}
