.faq-text-section {
    padding: 50px 20px;
    background-color: rgba(63, 177, 198, 0.5) !important; /* Lighter background for better card contrast */
    display: flex;
    justify-content: center;
    /* Force full width hack */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 30vh;
    box-sizing: border-box;
}

/* Ensure body/html have no margin/padding globally if not already set */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrollbar due to 100vw */
}

.faq-text-container {
    width: 100%;
    max-width: 1200px; /* Increased max-width for cards */
    display: grid;
    gap: 20px;
    /* Default behavior will be overridden by specific page classes */
}

/* 4 Columns for Index Page */
.faq-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 2 Columns for Page.html */
.faq-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Responsive: Stack on mobile */
@media (max-width: 992px) {
    .faq-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .faq-grid-4, .faq-grid-2 {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%; /* Ensure equal height cards */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: 1px solid #eee;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.faq-question {
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.faq-answer {
    display: block;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1; /* Push content to fill height */
}

.faq-answer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}
