﻿/*
 * CSS Style for Saman Andishan Pishro (SAP) Website - FAQ Page
 * Author: Your Name/Company
 * Date: September 2025
 * Description: This stylesheet is tailored for the FAQ page,
 * focusing on a clean, modern, and responsive layout.
 */

/* --- General Settings & Base Styles --- */
body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl; /* Supports Persian/Arabic script */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Light gray background for a clean look */
    color: #212529; /* Dark gray for main text */
}

a {
    text-decoration: none;
    color: #007bff; /* Primary link color */
    transition: color 0.3s ease;
}

    a:hover {
        color: #0056b3; /* Darker blue on hover */
    }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header Section --- */
.main-header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.75rem;
    font-weight: 900;
    color: #004d99; /* Strong blue for the logo */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

    .main-nav ul li {
        margin-right: 25px;
    }

        .main-nav ul li:last-child {
            margin-right: 0;
        }

        .main-nav ul li a {
            color: #495057;
            font-weight: 500;
            padding: 5px 0;
            position: relative;
        }

            /* Underline animation on hover */
            .main-nav ul li a::after {
                content: '';
                position: absolute;
                bottom: 0;
                right: 0;
                width: 0;
                height: 2px;
                background-color: #007bff;
                transition: width 0.3s ease;
            }

            .main-nav ul li a:hover::after {
                width: 100%;
            }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #495057;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0;
    background-color: #fefeff;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    text-align: center;
    color: #004d99;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.15rem;
    text-align: center;
    color: #6c757d;
    margin-bottom: 4rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background-color: #fefefe;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .accordion-item:hover {
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
        transform: translateY(-3px);
    }

.accordion-header {
    width: 100%;
    text-align: right;
    padding: 22px 30px;
    background-color: #f0f4f7;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: #343a40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

    .accordion-header:hover {
        background-color: #e6edf2;
    }

    .accordion-header i {
        font-size: 1.1rem;
        color: #007bff;
        transition: transform 0.3s ease;
    }

    .accordion-header.active i {
        transform: rotate(180deg);
    }

.accordion-content {
    padding: 0 30px;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
}

    .accordion-content.open {
        max-height: 500px; /* Adjust as needed for content height */
        padding: 20px 30px;
    }

    .accordion-content p {
        margin: 0;
        color: #555;
        font-size: 1rem;
    }

/* --- Footer Section --- */
.main-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

.footer-info, .social-media {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

    .footer-info h4, .social-media h4 {
        color: #fff;
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
        border-bottom: 3px solid #3498db;
        padding-bottom: 8px;
        display: inline-block;
    }

    .footer-info p {
        margin: 0.6rem 0;
        font-size: 0.95rem;
    }

    .social-media a {
        color: #ecf0f1;
        font-size: 1.7rem;
        margin-left: 20px;
        transition: transform 0.3s ease, color 0.3s ease;
    }

        .social-media a:hover {
            color: #3498db;
            transform: translateY(-3px);
        }

.copyright {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #bdc3c7;
}

/* --- Responsive Design for Smaller Screens --- */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row-reverse;
    }

    .main-nav {
        flex-direction: column;
        text-align: center;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 15px 0;
    }

        .main-nav.active {
            display: flex;
        }

        .main-nav ul li {
            margin: 10px 0;
        }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-media a {
        margin: 0 10px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .accordion-header {
        font-size: 1rem;
        padding: 18px 20px;
    }

    .accordion-content {
        padding: 15px 20px;
    }
}
