/* ==========================================================================
   Question Page Styles
   ========================================================================== */

/* No Sidebar Layout */
.l-wrapper.no-sidebar {
    display: block;
    padding: 0 !important;
    margin: 0 !important;
}

.l-wrapper.no-sidebar .l-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 !important;
}

/* Wrapper */
.question-nav .wrapper,
.question-section .wrapper,
.question-related .wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

@media screen and (max-width: 768px) {
    .question-nav .wrapper,
    .question-section .wrapper,
    .question-related .wrapper {
        padding: 0 15px;
    }
}

@media screen and (max-width: 640px) {
    .question-nav .wrapper,
    .question-section .wrapper,
    .question-related .wrapper {
        padding: 0 10px;
    }
}

/* ==========================================================================
   Category Navigation
   ========================================================================== */
.question-nav {
    padding: 40px 0;
    background: #fff;
}

@media screen and (max-width: 768px) {
    .question-nav {
        padding: 35px 0;
    }
}

@media screen and (max-width: 640px) {
    .question-nav {
        padding: 30px 0;
    }
}

.question-nav-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.question-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 25px;
    background: #fff;
    border: 2px solid #e8e4df;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 130px;
}

.question-nav-card:hover {
    border-color: #1cafdd;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.question-nav-icon {
    font-size: 2.4rem;
}

.question-nav-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.question-nav-card:hover .question-nav-label {
    color: #1cafdd;
}

@media screen and (max-width: 640px) {
    .question-nav-grid {
        gap: 10px;
    }

    .question-nav-card {
        padding: 15px 20px;
        min-width: 100px;
    }

    .question-nav-icon {
        font-size: 2rem;
    }

    .question-nav-label {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Question Sections
   ========================================================================== */
.question-section {
    padding: 60px 0;
    background: #fff;
}

@media screen and (max-width: 768px) {
    .question-section {
        padding: 50px 0;
    }
}

@media screen and (max-width: 640px) {
    .question-section {
        padding: 40px 0;
    }
}

.question-section.alt {
    background: #faf8f5;
}

.question-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.question-section-title h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #18499d;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.question-section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #18499d, #1cafdd);
    border-radius: 2px;
}

@media screen and (max-width: 640px) {
    .question-section-title h2 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Question List - Accordion
   ========================================================================== */
.question-list {
    max-width: 800px;
    margin: 0 auto;
}

.question-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #eee;
}

.question-section.alt .question-item {
    border: none;
}

.question-q {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    transition: background 0.3s;
    list-style: none;
}

.question-q::-webkit-details-marker {
    display: none;
}

.question-q:hover {
    background: #f8f9fa;
}

.question-item[open] .question-q {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.question-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #18499d;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.question-icon.answer {
    background: #1cafdd;
}

.question-a {
    padding: 20px 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: #fff;
}

.question-a p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.question-a p strong {
    color: #18499d;
    font-weight: 600;
}

.question-a p a {
    color: #1cafdd;
    text-decoration: none;
    font-weight: 600;
}

.question-a p a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 640px) {
    .question-q {
        padding: 18px 20px;
        font-size: 1.4rem;
        gap: 12px;
    }

    .question-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .question-a {
        padding: 18px 20px;
        gap: 12px;
    }

    .question-a p {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   Question Link Button
   ========================================================================== */
.question-link {
    text-align: center;
    margin-top: 30px;
}

.question-link-btn {
    display: inline-block;
    padding: 15px 35px;
    background: #fff;
    color: #18499d;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #18499d;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.question-link-btn:hover {
    background: #18499d;
    color: #fff;
}

/* ==========================================================================
   Related Pages Section - Warm & Friendly Design
   ========================================================================== */
.question-related {
    padding: 60px 0;
    background: #faf8f5;
}

@media screen and (max-width: 768px) {
    .question-related {
        padding: 50px 0;
    }
}

@media screen and (max-width: 640px) {
    .question-related {
        padding: 40px 0;
    }
}

.question-related .wrapper {
    max-width: 1000px;
}

.question-related .related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media screen and (max-width: 900px) {
    .question-related .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .question-related .related-grid {
        grid-template-columns: 1fr;
    }
}

.question-related .related-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #e8e4df;
}

.question-related .related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #1cafdd;
}

.question-related .related-card-inner {
    padding: 25px 20px;
    position: relative;
    text-align: center;
}

@media screen and (max-width: 640px) {
    .question-related .related-card-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 15px 18px;
        gap: 15px;
    }
    
    .question-related .related-card-label,
    .question-related .related-card-title,
    .question-related .related-card-desc {
        display: block;
        flex: 0 0 auto;
    }
    
    .question-related .related-card-label {
        margin-bottom: 4px;
    }
    
    .question-related .related-card-title {
        margin-bottom: 5px;
    }
    
    .question-related .related-card-desc {
        margin-bottom: 0;
    }
    
    .question-related .related-card-arrow {
        flex-shrink: 0;
        margin-left: auto;
    }
}

.question-related .related-card-label {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: #18499d;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-family: 'Lato', sans-serif;
}

@media screen and (max-width: 640px) {
    .question-related .related-card-label {
        margin-bottom: 4px;
        font-size: 0.9rem;
    }
}

.question-related .related-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

@media screen and (max-width: 640px) {
    .question-related .related-card-title {
        font-size: 1.5rem;
        margin: 0 0 5px;
    }
}

.question-related .related-card-desc {
    font-size: 1.2rem;
    color: #666;
    margin: 0 0 15px;
    line-height: 1.5;
}

@media screen and (max-width: 640px) {
    .question-related .related-card-desc {
        font-size: 1.1rem;
        margin: 0;
        line-height: 1.4;
    }
}

.question-related .related-card-arrow {
    display: inline-block;
    font-size: 1.4rem;
    color: #1cafdd;
    font-weight: 700;
    transition: all 0.3s ease;
}

@media screen and (max-width: 640px) {
    .question-related .related-card-arrow {
        font-size: 1.6rem;
        flex-shrink: 0;
    }
}

.question-related .related-card:hover .related-card-arrow {
    transform: translateX(5px);
}

/* ==========================================================================
   Full Width Section Override
   ========================================================================== */
.question-nav,
.question-section,
.question-related {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
}

@media screen and (max-width: 768px) {
    .question-nav,
    .question-section,
    .question-related {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media screen and (max-width: 640px) {
    .question-nav,
    .question-section,
    .question-related {
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;
    }
}
