/* Page-specific Styles */

.content-wrapper {
    max-width: 1200px; /* Slightly narrower than the grid for better readability */
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the titles and grids */
}

.hero {
    text-align: center;
}

.hero h1 {
    font-family: 'Michroma', sans-serif;
    color: var(--accent-color);
    font-size: 2.5rem;
}

.hero-text p {
    font-size: 1rem;
    text-align: center;
}

.hero-text strong {
    color: var(--accent-color);
    font-weight: 700;
}

.hero-text a {
    color: var(--accent-color);
    font-weight: 700;
}

.section-title {
    font-family: 'Michroma', sans-serif;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin: 40px 0 20px;
    color: var(--alt-secondary-color);
    text-align: center;
}

.resource-grid {
    display: grid;
    /* This ensures it tries to form 3 columns but stays centered if there are fewer */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 25px;
    width: 100%;
    justify-content: center;
}

.res-card {
    background: var(--alt-primary-color);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.res-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(245, 109, 36, 0.1);
}

.tag {
    font-size: 0.75rem;
    font-family: 'Epilogue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--accent-color);
}

.res-card h3 {
    margin: 0 0 10px 0;
    color: var(--secondary-color);
    font-family: 'Epilogue', sans-serif;
}

.res-card p {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.cta {
    font-size: 0.9rem;
    font-family: 'Epilogue', sans-serif;
    color: var(--accent-color);
    font-weight: 500;
}

/* Specific Tag Colors */
.res-card.beginner { border-left: 4px solid #4CAF50; }
.res-card.interactive { border-left: 4px solid #2196F3; }
.res-card.technical { border-left: 4px solid #9C27B0; }
.res-card.research { border-left: 4px solid #b02727; }