/* ✅ 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: #000;
}

.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: #fff;
    color: #000;
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 4px;
    margin-right: 6px;
    text-decoration: none;
}

/* ✅ MODERN BUTTON STYLE WITH TEXT COLOR CHANGE */
.q-btn {
    background:#fff;
    color: #000; /* Default text color: white */
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    margin-top: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.q-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-25deg);
    transition: all 0.5s ease-in-out;
}

.q-btn:hover::before {
    left: 100%;
}

.q-btn:hover {
    background: linear-gradient(135deg, #dce1e5, #f0f3f5); /* Lighter bg on hover */
    color: #000000; /* Text color: black on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    
/* ✅ 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;
    }
}


