/* ==============================================
          Help Center Page Specific Styles
          ============================================== */

body {
    background-color: #f8f9fa;
}

/* --- Hero Section --- */
.help-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #34A853 0%, #1A73E8 100%);
    color: #ffffff;
    text-align: center;
}

    .help-hero h1 {
        font-family: 'PinarBold', sans-serif;
        font-size: 3rem;
        color: #ffffff;
        margin-bottom: 15px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .help-hero p {
        font-size: 1.2rem;
        opacity: 0.95;
        max-width: 600px;
        margin: 0 auto 30px;
    }

.help-search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.help-search-input {
    width: 100%;
    height: 60px;
    padding: 0 60px 0 30px;
    font-size: 1.1rem;
    border: 1px solid transparent;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

    .help-search-input:focus {
        outline: none;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2), 0 0 0 4px rgba(255, 255, 255, 0.3);
    }

.help-search-icon {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--dark-gray-color);
}

/* --- Main Help Area --- */
.help-area {
    padding: 60px 0;
}

.help-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

    .section-title h2 {
        font-family: 'PinarBold', sans-serif;
        font-size: 2.2rem;
        color: var(--text-color);
        margin-bottom: 10px;
    }

    .section-title p {
        font-size: 1.1rem;
        color: var(--dark-gray-color);
    }

/* --- Category Cards --- */
.help-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.category-card {
    background-color: var(--component-bg-color);
    border: 1px solid var(--medium-gray-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow);
    }

    .category-card .icon {
        font-size: 3rem;
        color: var(--primary-color);
        margin-bottom: 15px;
    }

    .category-card h3 {
        font-family: 'PinarBold', sans-serif;
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .category-card p {
        font-size: 0.95rem;
        color: var(--dark-gray-color);
        line-height: 1.7;
        flex-grow: 1; /* Allow description to take space */
        margin-bottom: 15px;
    }

/* NEW: Category quick links */
.category-quick-links {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    border-top: 1px solid var(--medium-gray-color);
    padding-top: 15px;
    text-align: right;
}

    .category-quick-links li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

        .category-quick-links li a {
            color: var(--dark-gray-color);
            transition: color 0.2s;
        }

            .category-quick-links li a:hover {
                color: var(--primary-color);
            }

        .category-quick-links li i {
            margin-left: 8px;
            color: var(--primary-color);
        }

    .category-quick-links .more-link {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--primary-color);
        display: block;
        margin-top: 10px;
    }

/* --- Knowledge Base (Previously Popular Questions) Section --- */
.knowledge-base-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.knowledge-base-card {
    background-color: var(--component-bg-color);
    border: 1px solid var(--medium-gray-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

    .knowledge-base-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow);
    }

    .knowledge-base-card h4 {
        font-family: 'PinarBold', sans-serif;
        font-size: 1.1rem;
        margin-bottom: 10px;
        color: var(--text-color);
    }

    .knowledge-base-card p {
        font-size: 0.9rem;
        color: var(--dark-gray-color);
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .knowledge-base-card .read-more-link {
        font-size: 0.9rem;
        font-weight: 600;
    }


/* --- FAQ Accordion --- */
.faq-accordion .accordion-item {
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-accordion .accordion-header {
    font-size: 1.1rem;
    font-weight: 700;
}

.faq-accordion .accordion-content p {
    margin: 0;
    line-height: 1.8;
}

/* --- NEW: Feedback Box Styles --- */
.feedback-box {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray-color);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

    .feedback-box span {
        color: var(--dark-gray-color);
    }

.feedback-btn {
    background-color: #f1f3f5;
    border: 1px solid #dee2e6;
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

    .feedback-btn:hover {
        background-color: #e9ecef;
        border-color: #ced4da;
    }

    .feedback-btn[disabled] {
        cursor: not-allowed;
        opacity: 0.7;
    }

    .feedback-btn.selected-yes {
        background-color: #d1e7dd;
        border-color: #a3cfbb;
    }

    .feedback-btn.selected-no {
        background-color: #f8d7da;
        border-color: #f1aeb5;
    }

    .feedback-btn i {
        margin-left: 5px;
    }

.feedback-thanks {
    color: var(--primary-color);
    font-weight: 600;
}


/* Highlight Search Term */
.highlight {
    background-color: #fff3cd;
    color: #664d03;
    border-radius: 3px;
    padding: 1px 3px;
}

/* No Results Message */
#no-results-message {
    text-align: center;
    padding: 40px;
    background-color: #fff;
    border-radius: var(--border-radius);
    display: none; /* Hidden by default */
}

    #no-results-message i {
        font-size: 3rem;
        color: var(--dark-gray-color);
        margin-bottom: 15px;
    }

/* --- CTA Section --- */
.help-cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--component-bg-color);
    border: 1px solid var(--medium-gray-color);
    border-radius: var(--border-radius);
    margin-top: 60px;
}

    .help-cta-section h3 {
        font-family: 'PinarBold', sans-serif;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .help-cta-section p {
        color: var(--dark-gray-color);
        margin-bottom: 25px;
    }

    .help-cta-section .btn {
        margin: 0 10px;
    }

/* --- NEW: Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.modal-container {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--medium-gray-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

    .modal-header h3 {
        font-family: 'PinarBold', sans-serif;
        font-size: 1.5rem;
        margin: 0;
    }

.modal-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-gray-color);
}

.modal-body {
    line-height: 1.9;
    color: var(--text-color);
}

    .modal-body p {
        margin-bottom: 15px;
    }

.modal-footer {
    margin-top: 30px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .help-hero h1 {
        font-size: 2.2rem;
    }

    .help-search-input {
        height: 50px;
        font-size: 1rem;
        padding: 0 50px 0 20px;
    }

    .help-search-icon {
        font-size: 1.2rem;
        right: 20px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .help-cta-section .btn {
        display: block;
        width: 90%;
        margin: 15px auto;
    }
}
