/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
    padding: 8rem 5% 5rem;
    text-align: center;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-hero .hero-content {
    max-width: 800px;
}

.contact-hero h1 {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-hero p {
    font-size: 1.2rem;
    color: #4b5563;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 5%;
    background: white;
}

.faq-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 4rem;
}

.faq-category h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.faq-item {
    background: #f9fafb;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.faq-item:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin: 0;
    flex: 1;
    margin-left: 1rem;
    line-height: 1.5;
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 1.5rem;
}

.faq-answer p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Contact Info Section */
.contact-info-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(13, 148, 136, 0.05) 100%);
    text-align: center;
}

.contact-info-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-section h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.contact-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-card p {
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-note {
    color: #6b7280 !important;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* FAQ Search (Optional Enhancement) */
.faq-search {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
    display: none;
}

.faq-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    display: none;
}

.faq-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.faq-search i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

/* Responsive Design for Contact Page */
@media (max-width: 992px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-hero p {
        font-size: 1.1rem;
    }

    .faq-category h2,
    .contact-info-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 6rem 5% 3rem;
        min-height: 30vh;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .faq-section,
    .contact-info-section {
        padding: 4rem 5%;
    }

    .faq-question {
        padding: 1.2rem;
    }

    .faq-question h3 {
        font-size: 1.1rem;
        margin-left: 0.8rem;
    }

    .faq-item.active .faq-answer {
        padding: 1.2rem;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-icon {
        width: 70px;
        height: 70px;
    }

    .contact-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .faq-category h2,
    .contact-info-section h2 {
        font-size: 1.6rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-question,
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
}

/* بخش نقشه */
.map-section {
    padding: 0 5% 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.map-section h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Print Styles for Contact Page */
@media print {
    .contact-hero {
        background: white !important;
        padding: 2rem 0 !important;
        min-height: auto;
    }

    .faq-section,
    .contact-info-section {
        padding: 2rem 0 !important;
        background: white !important;
    }

    .faq-item {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }

    .faq-item.active .faq-answer {
        max-height: none !important;
    }

    .contact-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .faq-item {
        background: #1f2937;
        border-color: #374151;
    }

    body {
        background: #1f2937;


    }

    .container h2 {
        color: white;
    }

    .contact-hero h1 {
        color: white!important;
    
    }

    .contact-hero p {
        color: white!important;
    
    }

    .faq-category h2 {
        color: white;
    }

    .faq-question {
        background: #111827;
        color: white;
    }

    .faq-question:hover {
        background: #1f2937;
    }

    .faq-question h3 {
        color: #f9fafb;
    }

    .faq-answer {
        background: #111827;
        border-top-color: #374151;
    }

    .faq-answer p {
        color: #d1d5db;
    }

    .contact-card {
        background: #1f2937;
    }

    .contact-card h3 {
        color: #f9fafb;
    }

    .contact-card p {
        color: #d1d5db;
    }

    .contact-note {
        color: #9ca3af !important;
    }

    .intro-card h3,
    .member-info h3,
    .value-card h3 {
        color: #f9fafb;
    }

    .intro-card p,
    .member-bio,
    .value-card p {
        color: #d1d5db;
    }

    .team p {
        color: #f9fafb;
    }

    .introduction h2 {
        color: white;
    }

    .container p {
        color: white;
    }

    .member-image {
        background: #374151;
    }

    .navbar, header, nav {
        background: #111827 !important;
        width: 100% !important;
    }

    body {
        background-color: #111827!important;
    
        color: #f9fafb;
    }


    /* Ensure all text elements have proper contrast */
    h1, h2, h3, h4, h5, h6, p, span, div, li, a {
        color: #f9fafb!important;
    
    }

    /* Links in dark mode */
    a {
        color: var(--primary-color);
    }

    a:hover {
        color: var(--primary-color);
    }

    /* Form elements */
    input, textarea, select {
        background-color: #1f2937;
        color: #f9fafb;
        border-color: #374151;
    }


    .teacher-info p,
    .description-content,
    .features-list span,
    .info-value,
    .course-card-teacher,
    .course-card-meta,
    p, span, li {
        color: #d1d5db;
    }

    .meta-item,
    .chapter-header,
    .header,
    .navbar {
        background: #111827;
    }

    .lesson-item:hover,
    tr:hover,
    .list-item:hover {
        background: #111827;
    }

    .no-related-courses h3 {
        color: #f9fafb;
    }

    .no-related-courses p {
        color: #d1d5db;
    }

    /* Tables */
    table {
        background: #1f2937;
        color: #f9fafb;
    }

    th, td {
        border-color: #374151;
        color: #f9fafb;
    }

    /* Buttons */
    .btn-primary {
        background-color: var(--primary-color);
        border-color: #2563eb;
        color: white;
    }

    .btn-secondary {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .faq-section {
        background: #111827;
    }

    .section.faq-container {
        background: #111827;
    }
}

/* Accessibility Improvements */
.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.faq-item.active .faq-question {
    background: rgba(16, 185, 129, 0.05);
}

/* Smooth animations */
.faq-answer {
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}