/* Branded Overrides for External KB Homepage - using BTAA colors: Blue #0088CE, Black #000000, Gray #939598 */

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

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

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

/* Resource Header */
.resource-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #000000;
    padding: 15px;
    border-radius: 0;
    margin-top: 10px;
}

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

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

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

.resource-links a {
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 14px;
    background-color: #f0f0f0; /* Light neutral gray */
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease-in-out;
    gap: 10px;
}

.resource-links a:hover {
    background-color: #e6e6e6; /* Darker gray hover */
    color: #000000;
    transform: scale(1.03);
}

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

.help-btn:hover {
    background: #0088CE; /* Blue on hover */
    color: white;
    transform: scale(1.05);
}

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

/* Banner/Explanation Section (targets the full-width top banner) */
div[style*="border-bottom: 4px solid"] {
    border-bottom: 4px solid #0088CE !important; /* Brand blue accent */
    background: #ffffff;
}

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