/* Help Center Page Styles (moved from public/pages/help-center) */

.help-center-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff;
}

.help-header {
    text-align: center;
    margin-bottom: 18px; /* reduced spacing between header and content */
    padding-bottom: 0;
    border-bottom: none;
}

.help-header h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.help-header h1 i {
    color: #e53935;
}

.help-header > p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Search Bar */
.search-bar-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease;
}

.search-bar:focus-within {
    border-color: #e53935;
}

.search-bar i {
    color: #64748b;
    margin-right: 12px;
    font-size: 1.1rem;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #1e293b;
}

.search-bar input::placeholder {
    color: #94a3b8;
}

.search-bar button {
    background: #e53935;
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #c62828;
}

/* Quick Help Section */
.quick-help-section {
    margin-top: 12px; /* tighten gap from header */
    margin-bottom: 40px;
}

.quick-help-section h2 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.quick-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.quick-help-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-help-card:hover {
    border-color: #e53935;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.quick-help-card i {
    font-size: 2.5rem;
    color: #e53935;
    margin-bottom: 15px;
    display: block;
}

.quick-help-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.quick-help-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* Help Articles */
.help-articles {
    margin-bottom: 60px;
}

/* WhatsApp contact card design - match ApplySathi theme */
.help-whatsapp-contact {
    padding: 28px 20px;
    display: flex;
    justify-content: center;
    background: transparent;
    margin-top: 20px;
    margin-bottom: 36px;
}
.whatsapp-container {
    max-width: 1100px;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
}
.whatsapp-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #eef2f7;
    box-shadow: 0 10px 24px rgba(2,6,23,0.06);
}
.whatsapp-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid rgba(37,211,102,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25D366;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(37,211,102,0.06);
}
.whatsapp-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.125rem;
    color: #0f172a;
    font-weight: 800;
}
.whatsapp-content p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}
.whatsapp-action {
    margin-left: auto;
}
.whatsapp-btn {
    background: transparent;
    color: #e53935;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid rgba(229,57,53,0.06);
}
.whatsapp-btn:hover {
    background: rgba(229,57,53,0.04);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .whatsapp-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 14px;
    }
    .whatsapp-action { margin-left: 0; }
    .whatsapp-btn { width: 100%; max-width: 320px; display: inline-block; }
}

.help-articles > h2 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.article-category {
    margin-bottom: 50px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 16px;
    border-left: 4px solid #e53935;
}

.article-category h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-category h3 i {
    color: #e53935;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.help-article {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.help-article:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-color: #e53935;
}

.help-article h4 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.help-article p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease, padding 0.2s ease;
    padding-top: 0;
}
.help-article.open p {
    /* allow JS to set exact max-height; provide fallback large value */
    max-height: 1000px;
    padding-top: 12px;
}

/* Still Need Help */
.still-need-help {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #ffffff;
}

.still-need-help h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 15px;
}

.still-need-help > p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.help-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.help-action-btn {
    background: #ffffff;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.help-action-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.help-action-btn i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .help-center-container {
        padding: 0 15px 20px 15px;
    }

    .help-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .quick-help-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .article-category {
        padding: 20px;
    }

    .help-actions {
        flex-direction: column;
        align-items: center;
    }

    .help-action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .help-header h1 {
        font-size: 1.75rem;
    }

    .quick-help-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 12px;
        padding: 15px;
    }

    .search-bar input {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-bar button {
        width: 100%;
    }
}

/* Mobile-only: ensure teal navbar shows correctly on Help Center page */
@media (max-width: 768px) {
    /* Make navbar visible and fixed */
    nav.navbar.teal-navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        height: 48px !important;
        z-index: 1000;
        background: linear-gradient(90deg, #0b74e6 0%, #1678f2 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    }

    /* Ensure content does not hide under navbar */
    body { padding-top: 48px !important; }

    /* Mobile logo pinned to left */
    nav.navbar.teal-navbar .mobile-logo,
    nav.navbar.teal-navbar .nav-logo img {
        position: absolute !important;
        left: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        height: 28px !important;
        width: auto !important;
        z-index: 1010 !important;
        display: inline-block !important;
    }

    /* Actions (notifications, settings, account) pinned to right corner */
    nav.navbar.teal-navbar .mobile-actions,
    nav.navbar.teal-navbar #mobileTopActions {
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        gap: 8px !important;
        z-index: 1020 !important;
    }

    /* Compact action buttons */
    nav.navbar.teal-navbar .mobile-actions button,
    nav.navbar.teal-navbar .mobile-actions .top-notif-btn,
    nav.navbar.teal-navbar .mobile-actions .top-settings-btn,
    nav.navbar.teal-navbar .mobile-actions .user-dropdown-btn {
        width: 36px !important;
        height: 36px !important;
        padding: 6px !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        color: #ffffff !important;
    }

    /* Hide full nav menu on mobile for this page */
    nav.navbar.teal-navbar .nav-menu { display: none !important; }
}

/* End of copied styles */

/* Help Center Page Styles */

.help-center-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff;
}

.help-header {
    text-align: center;
    margin-bottom: 18px; /* reduced spacing between header and content */
    padding-bottom: 0;
    border-bottom: none;
}

.help-header h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.help-header h1 i {
    color: #e53935;
}

.help-header > p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Search Bar */
.search-bar-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease;
}

.search-bar:focus-within {
    border-color: #e53935;
}

.search-bar i {
    color: #64748b;
    margin-right: 12px;
    font-size: 1.1rem;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #1e293b;
}

.search-bar input::placeholder {
    color: #94a3b8;
}

.search-bar button {
    background: #e53935;
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #c62828;
}

/* Quick Help Section */
.quick-help-section {
    margin-top: 12px; /* tighten gap from header */
    margin-bottom: 40px;
}

.quick-help-section h2 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.quick-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.quick-help-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-help-card:hover {
    border-color: #e53935;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.quick-help-card i {
    font-size: 2.5rem;
    color: #e53935;
    margin-bottom: 15px;
    display: block;
}

.quick-help-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.quick-help-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* Help Articles */
.help-articles {
    margin-bottom: 60px;
}

.help-articles > h2 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.article-category {
    margin-bottom: 50px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 16px;
    border-left: 4px solid #e53935;
}

.article-category h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-category h3 i {
    color: #e53935;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.help-article {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.help-article:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-color: #e53935;
}

.help-article h4 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.help-article p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease, padding 0.18s ease;
    padding-top: 0;
}
.help-article.open p {
    max-height: 1000px; /* JS will set exact when opening */
    padding-top: 12px;
}

/* Still Need Help */
.still-need-help {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #ffffff;
}

.still-need-help h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 15px;
}

.still-need-help > p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.help-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.help-action-btn {
    background: #ffffff;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.help-action-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.help-action-btn i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .help-center-container {
        /* Reduce top padding so the container sits directly under the mobile navbar */
        padding: 0 15px 20px 15px;
        margin-top: 0;
    }

    .help-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .quick-help-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .article-category {
        padding: 20px;
    }

    .help-actions {
        flex-direction: column;
        align-items: center;
    }

    .help-action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .help-header h1 {
        font-size: 1.75rem;
    }

    .quick-help-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 12px;
        padding: 15px;
    }

    .search-bar input {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-bar button {
        width: 100%;
    }
}

