/* ✅ UNIVERSAL GRID WRAPPERS */
.qa-grid,
.q-category-flex,
.qa-questions-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.qa-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.qa-questions-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ✅ CATEGORY & CARD STYLING */
.qa-grid-item,
.q-card,
.qa-question-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.qa-grid-item:hover,
.q-card:hover,
.qa-question-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.qa-grid-item a,
.q-card a,
.qa-question-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ✅ QUESTION CARD STYLES */
.qa-question-title {
    font-size: 18px;
    margin: 10px 0;
    color: #0073aa;
}

.qa-question-title a {
    text-decoration: none;
    color: inherit;
}

.qa-question-title a:hover {
    text-decoration: underline dotted;
}

.qa-question-card p {
    font-size: 15px;
    color: #444;
    margin: 0;
}

/* ✅ BADGES (CATEGORY TAGS) */
.qa-badges {
    margin-bottom: 10px;
}

.qa-badge {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin-right: 6px;
    text-decoration: none;
}

/* ✅ BUTTON STYLE */
.q-btn {
    background: #0073ff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s ease all;
    display: inline-block;
    margin-top: 12px;
}

.q-btn:hover {
    background: #bbc1c7;
}

/* ✅ CARD TEXT ALIGNMENT */
.q-card {
    text-align: center;
}

.q-card h4 {
    margin: 0 0 10px;
    font-size: 20px;
}

.q-card p {
    margin: 0 0 10px;
    color: #444;
    font-size: 14px;
}

/* ✅ ICON SPACING */
.q-icon {
    margin-right: 5px;
}

/* ✅ NESTED CATEGORY/QUESTION STYLES */
.qa-child-category,
.qa-question-container {
    margin-top: 10px;
    padding-left: 10px;
    border-left: 2px solid #eee;
}

/* ✅ RESPONSIVE COLUMN LAYOUT */
.q-cols-1 { grid-template-columns: repeat(1, 1fr); }
.q-cols-2 { grid-template-columns: repeat(2, 1fr); }
.q-cols-3 { grid-template-columns: repeat(3, 1fr); }
.q-cols-4 { grid-template-columns: repeat(4, 1fr); }
.q-cols-5 { grid-template-columns: repeat(5, 1fr); }
.q-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ✅ MOBILE FIX FOR CATEGORY FLEX */
@media screen and (max-width: 768px) {
    .q-category-flex {
        grid-template-columns: 1fr !important;
    }
}
.q-btn {
    background: #7d96b5;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s ease all;
}
.q-btn:hover {
    background: #005fc2;
}

