/* Ensure the body is dark so the cards pop */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    /* This prevents the grid from affecting the page width calculations */
    overflow-x: hidden; 
}

/* Ensure the guides-container isn't affecting the nav */
.guides-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Match the padding of your other pages' main sections */
    padding: 40px 5%; 
}
body.dark-theme {
    background-color: #0f0f0f;
    color: #ffffff;
    margin: 0;
    font-family: sans-serif;
}

/* Update this in guides-page.css */

.guides-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Using the class name overrides the tag name (div) */
.guides-grid {
    display: grid !important; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    /* Ensure it isn't hidden */
    visibility: visible !important;
    opacity: 1 !important;
}

.guide-card {
    background: #1a1a1a; /* Darker grey card */
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: white;
    display: block;
    transition: transform 0.2s, border-color 0.2s;
}

.guide-card:hover {
    border-color: #ffcc00; /* Gold Guru border on hover */
    transform: translateY(-5px);
}

.card-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.beginner { background: #2ecc71; }
.advanced { background: #e74c3c; }

.read-time {
    display: block;
    margin-top: 20px;
    font-size: 12px;
    color: #888;
}