﻿
.btn-outline {
    border: 2px solid var(--primary);
    background: transparent;
    padding: 8px 24px;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-outline:hover {
        background: var(--primary);
        color: white;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 8px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(13, 148, 136, 0.3);
    }

/* Hero Section */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 120px 5% 80px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .page-hero::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -20%;
        width: 80%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        pointer-events: none;
    }

    .page-hero h1 {
        font-size: 56px;
        font-weight: 800;
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
    }

    .page-hero p {
        font-size: 20px;
        max-width: 700px;
        margin: 0 auto;
        opacity: 0.95;
        position: relative;
        z-index: 1;
    }

/* Search Bar */
.search-section {
    padding: 40px 5%;
    background: var(--white);
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

    .search-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    }

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 20px;
}

/* Categories */
.categories-section {
    padding: 40px 5% 20px;
    background: var(--white);
}

.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--light);
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

    .category-btn:hover, .category-btn.active {
        background: var(--primary);
        color: white;
    }

/* FAQ Section */
.faq-main {
    padding: 60px 5%;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

    .faq-item:hover {
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

.faq-question {
    padding: 22px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    background: var(--white);
    transition: all 0.3s;
}

    .faq-question:hover {
        background: var(--light);
    }

    .faq-question i {
        color: var(--primary);
        transition: transform 0.3s;
    }

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--gray);
    line-height: 1.8;
    border-top: 0px solid #e2e8f0;
}

.faq-item.active .faq-answer {
    padding: 0 25px 22px;
    max-height: 500px;
    border-top: 1px solid #e2e8f0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Still Have Questions */
.contact-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, var(--light) 0%, #e0f2fe 100%);
    text-align: center;
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

    .contact-card h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .contact-card p {
        color: var(--gray);
        margin-bottom: 30px;
        line-height: 1.6;
    }

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Support Stats */
.support-stats {
    padding: 60px 5%;
    background: var(--white);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px;
    background: var(--white);
    border-radius: 16px;
}

    .no-results i {
        font-size: 60px;
        color: var(--gray);
        margin-bottom: 20px;
    }

    .no-results h3 {
        font-size: 24px;
        margin-bottom: 10px;
    }

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

        .nav-links.active {
            display: flex;
        }

    .page-hero h1 {
        font-size: 36px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        font-size: 16px;
        padding: 18px;
    }

    .contact-card {
        padding: 30px 20px;
    }
}

/* ============================================ */
/* URDU LANGUAGE SPECIFIC STYLES - RTL SUPPORT */
/* FOR FAQ PAGE */
/* ============================================ */

/* Urdu Font Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

/* Main Urdu Container */
#lang-ur {
    font-family: 'Noto Nastaliq Urdu', 'Inter', sans-serif;
    direction: rtl;
    text-align: right;
}

    /* ===== NAVIGATION RTL ===== */
    #lang-ur .nav-links {
        flex-direction: row-reverse;
    }

    #lang-ur .nav-container {
        direction: rtl;
    }

    #lang-ur .logo {
        direction: ltr;
        display: inline-block;
    }

    /* ===== LANGUAGE DROPDOWN RTL ===== */
    #lang-ur .language-dropdown {
        direction: ltr;
    }

    #lang-ur .dropdown-content {
        right: auto;
        left: 0;
    }

    /* ===== PAGE HERO SECTION RTL ===== */
    #lang-ur .page-hero {
        direction: rtl;
    }

        #lang-ur .page-hero h1,
        #lang-ur .page-hero p {
            text-align: center;
        }

    /* ===== SEARCH SECTION RTL ===== */
    #lang-ur .search-section {
        direction: rtl;
    }

    #lang-ur .search-container {
        direction: rtl;
    }

    #lang-ur .search-input {
        padding: 18px 20px 18px 50px;
        text-align: right;
    }

    #lang-ur .search-icon {
        right: auto;
        left: 20px;
    }

    /* ===== CATEGORIES SECTION RTL ===== */
    #lang-ur .categories-section {
        direction: rtl;
    }

    #lang-ur .categories-grid {
        direction: rtl;
    }

    #lang-ur .category-btn {
        font-family: 'Noto Nastaliq Urdu', 'Inter', sans-serif;
    }

    /* ===== FAQ MAIN CONTENT RTL ===== */
    #lang-ur .faq-main {
        direction: rtl;
    }

    #lang-ur .faq-container {
        direction: rtl;
    }

    /* ===== FAQ CATEGORY TITLES RTL ===== */
    #lang-ur .faq-category {
        direction: rtl;
    }

    #lang-ur .category-title {
        text-align: right;
        border-bottom: 3px solid var(--primary);
        display: inline-block;
    }

    /* ===== FAQ ITEMS RTL ===== */
    #lang-ur .faq-item {
        direction: rtl;
    }

    #lang-ur .faq-question {
        text-align: right;
        justify-content: space-between;
        flex-direction: row;
    }

        #lang-ur .faq-question i {
            transform: rotate(0deg);
        }

    /* Rotate icon correctly for RTL when active */
    #lang-ur .faq-item.active .faq-question i {
        transform: rotate(180deg);
    }

    #lang-ur .faq-answer {
        text-align: right;
    }

    /* ===== CONTACT SECTION (STILL HAVE QUESTIONS) RTL ===== */
    #lang-ur .contact-section {
        direction: rtl;
    }

    #lang-ur .contact-card {
        direction: rtl;
        text-align: center;
    }

        #lang-ur .contact-card h2,
        #lang-ur .contact-card p {
            text-align: center;
        }

    #lang-ur .contact-buttons {
        justify-content: center;
        flex-direction: row;
    }

    /* ===== SUPPORT STATS SECTION RTL ===== */
    #lang-ur .support-stats {
        direction: rtl;
    }

    #lang-ur .stats-grid {
        direction: rtl;
    }

    /* Keep numbers LTR */
    #lang-ur .stat-number {
        direction: ltr;
        display: inline-block;
    }

    #lang-ur .stat-label {
        text-align: center;
    }

    /* ===== NO RESULTS SECTION RTL ===== */
    #lang-ur .no-results {
        direction: rtl;
        text-align: center;
    }

    /* ===== BUTTON ICONS RTL ===== */
    #lang-ur .btn-primary i,
    #lang-ur .btn-outline i {
        margin-left: 0;
        margin-right: 8px;
    }

    #lang-ur .contact-buttons .btn-primary i,
    #lang-ur .contact-buttons .btn-outline i {
        margin-left: 0;
        margin-right: 8px;
    }

    /* ===== FOOTER RTL ===== */
    #lang-ur .footer {
        direction: rtl;
    }

    #lang-ur .footer-grid {
        direction: rtl;
    }

    #lang-ur .footer-col {
        text-align: right;
    }

    #lang-ur .footer-bottom {
        text-align: center;
    }

    /* ===== KEEP NUMBERS, EMAILS, PHONES LTR ===== */
    #lang-ur .footer-col a[href^="mailto:"],
    #lang-ur .footer-col a[href^="tel:"] {
        direction: ltr;
        display: inline-block;
    }

    /* ===== SEARCH INPUT PLACEHOLDER RTL ===== */
    #lang-ur .search-input::placeholder {
        text-align: right;
    }

/* ===== MOBILE RESPONSIVE RTL ===== */
@media (max-width: 768px) {
    #lang-ur .nav-links {
        flex-direction: column;
        text-align: center;
    }

    #lang-ur .dropdown-content {
        left: 50%;
        right: auto;
        transform: translateX(50%);
    }

    #lang-ur .categories-grid {
        justify-content: center;
    }

    #lang-ur .category-title {
        text-align: center;
        display: block;
    }

    #lang-ur .faq-question {
        font-size: 16px;
        padding: 18px;
    }

    #lang-ur .stats-grid {
        direction: rtl;
    }

    #lang-ur .footer-grid {
        direction: rtl;
    }

    #lang-ur .footer-col {
        text-align: center;
    }

    #lang-ur .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    #lang-ur .contact-card {
        padding: 30px 20px;
    }
}

/* ===== FIX SCROLLBAR FOR RTL (Optional) ===== */
#lang-ur ::-webkit-scrollbar {
    width: 10px;
}

#lang-ur ::-webkit-scrollbar-track {
    background: var(--light);
}

#lang-ur ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

/* ===== ENSURE PROPER WORD WRAPPING ===== */
#lang-ur .faq-question,
#lang-ur .faq-answer,
#lang-ur .category-title,
#lang-ur .stat-label,
#lang-ur .contact-card p,
#lang-ur .footer-col a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== FIX FAQ ANSWER BORDER ===== */
#lang-ur .faq-item.active .faq-answer {
    border-top: 1px solid #e2e8f0;
}

/* ===== FIX HOVER EFFECTS ===== */
#lang-ur .faq-question:hover {
    background: var(--light);
}

/* ===== FIX CATEGORY BUTTON ACTIVE STATE ===== */
#lang-ur .category-btn.active {
    background: var(--primary);
    color: white;
}

/* ===== FIX SEARCH ICON POSITION ===== */
#lang-ur .search-icon {
    left: 20px;
    right: auto;
}

/* ===== FIX STATS SECTION NUMBERS ===== */
#lang-ur .support-stats .stat-number {
    display: inline-block;
}

/* ===== FIX CONTACT BUTTONS GAP ===== */
#lang-ur .contact-buttons {
    gap: 20px;
}

/* ===== FIX FAQ ICON TRANSITION ===== */
#lang-ur .faq-question i {
    transition: transform 0.3s ease;
}

/* ===== FIX ANY FLEXBOX CONTAINERS ===== */
#lang-ur .categories-grid,
#lang-ur .stats-grid,
#lang-ur .footer-grid {
    display: flex;
    flex-wrap: wrap;
}

#lang-ur .stats-grid {
    display: grid;
}

/* ===== FIX DROPDOWN CONTENT POSITION ===== */
#lang-ur .dropdown-content {
    text-align: right;
}

    #lang-ur .dropdown-content a {
        justify-content: flex-start;
    }

/* ===== FIX LANGUAGE BUTTON DROPDOWN ARROW ===== */
#lang-ur .language-btn .fa-chevron-down {
    transform: rotate(0deg);
}

/* ===== FIX NO RESULTS SECTION ICON ===== */
#lang-ur .no-results i {
    display: inline-block;
}

/* ===== FIX SEARCH INPUT FOCUS ===== */
#lang-ur .search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}