/* استایل های صفحه درباره ما */

/* Page Hero Section (Specific to About/Contact) */
.page-hero-section {
    position: relative;
    background-color: #0066CC; /* Default background */
    background-size: cover;
    background-position: center;
    min-height: 60vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(0, 170, 85, 0.75) 100%); /* Slightly less opaque overlay */
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0; /* Adjust padding */
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* General Section Styling (Shared) */
.section {
    padding: 80px 0;
    opacity: 0; /* Initial state for scroll animation */
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0a1a35;
}

.section-subheading {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Specific About Sections */

/* About Introduction */
.about-introduction .section-content {
    padding-right: 30px; /* Space next to image */
}

.about-introduction img {
    border-radius: 10px;
}

.about-introduction blockquote {
    margin-top: 30px;
    padding: 20px;
    border-right: 5px solid #00AA55;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
}

.about-introduction blockquote footer {
    margin-top: 10px;
    font-style: normal;
    color: #777;
}

/* Competitive Advantages */
.competitive-advantages .advantage-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    margin-bottom: 20px; /* Space between cards in smaller views */
    transition: all 0.3s ease;
}

.competitive-advantages .advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    color: #0066CC;
    font-size: 30px;
    transition: all 0.3s ease;
}

.competitive-advantages .advantage-card:hover .advantage-icon {
    background-color: #0066CC;
    color: white;
}

.advantage-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0a1a35;
}

.advantage-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Our Story (Vertical Timeline) */
.our-story .timeline-vertical {
    position: relative;
    max-width: 800px; /* Max width for timeline */
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-vertical::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    right: 50%; /* Position the line */
    margin-left: -2px; /* Center the line */
    z-index: 1;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 50px;
    z-index: 2;
    opacity: 0.5; /* Initial state for animation */
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(odd) {
    left: -50%; /* Position on the left side of the line */
    padding-left: 30px; /* Space for icon */
    text-align: right;
}

.timeline-item:nth-child(even) {
    left:0; /* Position on the right side of the line */
    padding-right: 30px; /* Space for icon */
    text-align: left;
    transform: translateX(-50px); /* Initial state for even items */
}

.timeline-item:nth-child(even).active {
    transform: translateX(0);
}

.timeline-item .timeline-icon {
    position: absolute;
    right: -30px; /* Position icon on the right of the item */
    top: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066CC 0%, #00AA55 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    z-index: 3;
    border: 4px solid #ffffff; /* White border */
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -30px; /* Position icon on the left of the item */
    right: auto;
}

.timeline-item .timeline-content {
    padding: 10px 50px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item .timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0a1a35;
}

.timeline-item .timeline-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Our Team */
.our-team .team-member-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.our-team .team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #0066CC;
    border-radius: 50%;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #0a1a35;
}

.member-role {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.member-bio {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-links .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 102, 204, 0.1);
    color: #0066CC;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links .social-icon:hover {
    background-color: #0066CC;
    color: white;
    transform: translateY(-3px);
}

/* Our Values */
.our-values .value-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.our-values .value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066CC 0%, #00AA55 100%);
    border-radius: 50%;
    color: white;
    font-size: 36px;
    transition: all 0.3s ease;
}

.our-values .value-item:hover .value-icon {
    transform: rotateY(180deg);
}

.value-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0a1a35;
}

.value-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Final CTA (About Page Specific) */
.final-cta-about {
    background: linear-gradient(135deg, #0066CC 0%, #00AA55 100%); /* Use the gradient */
    color: white; /* Ensure text is white */
}

.final-cta-about .section-heading,
.final-cta-about .section-subheading {
    color: white; /* Ensure headings and subheadings are white */
}

.final-cta-about .btn-light {
    background-color: #ffffff;
    color: #0066CC;
    border-color: #ffffff;
}

.final-cta-about .btn-light:hover {
    background-color: #e9ecef;
    border-color: #e9ecef;
}

.final-cta-about .btn-outline-light {
    border-color: #ffffff;
    color: #ffffff;
}

.final-cta-about .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .page-title {
        font-size: 2.5rem;
    }
    .page-subtitle {
        font-size: 1.1rem;
    }
    .section {
        padding: 60px 0;
    }
    .section-heading {
        font-size: 2rem;
    }
    .section-subheading {
        font-size: 1rem;
    }
    .about-introduction .section-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    .about-introduction blockquote {
        text-align: right;
        border-right: 5px solid #00AA55;
        border-left: none;
    }
    .competitive-advantages .advantage-card,
    .our-team .team-member-card,
    .our-values .value-item {
        margin-bottom: 30px; /* Increase space */
    }
    .our-story .timeline-vertical::after {
        right: 50%; /* Center the line */
        margin-left: -2px;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important; /* Force items to the left */
        padding-left: 30px;
        padding-right: 0;
        text-align: right !important; /* Force text alignment */
        transform: translateX(0) !important; /* Disable horizontal translation */
    }
    .timeline-item:nth-child(even) .timeline-icon {
        left: auto;
        right: -30px; /* Position icon on the right */
    }
    .timeline-item .timeline-icon {
        border-width: 3px; /* Slightly smaller border */
        width: 50px;
        height: 50px;
        font-size: 20px;
        top: 10px;
        right: -25px; /* Adjust icon position */
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    .page-subtitle {
        font-size: 1rem;
    }
    .section {
        padding: 40px 0;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .section-heading {
        font-size: 1.8rem;
    }
    .section-subheading {
        font-size: 0.9rem;
    }
    .competitive-advantages .advantage-card,
    .our-team .team-member-card,
    .our-values .value-item {
        padding: 20px;
    }
    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .value-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    .team-member-img {
        width: 100px;
        height: 100px;
    }
    .member-name {
        font-size: 1.2rem;
    }
    .value-title {
        font-size: 1.3rem;
    }
    .timeline-item {
        margin-bottom: 40px;
    }
    .timeline-item .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        right: -20px; /* Adjust icon position */
    }
    .timeline-vertical::after {
        right: 50%; /* Keep line centered */
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    .page-subtitle {
        font-size: 0.9rem;
    }
    .section {
        padding: 30px 0;
    }
    .section-header {
        margin-bottom: 30px;
    }
    .section-heading {
        font-size: 1.5rem;
    }
    .section-subheading {
        font-size: 0.8rem;
    }
    .competitive-advantages .advantage-card,
    .our-team .team-member-card,
    .our-values .value-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    .advantage-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .team-member-img {
        width: 80px;
        height: 80px;
    }
    .member-name {
        font-size: 1.1rem;
    }
    .value-title {
        font-size: 1.2rem;
    }
    .timeline-item {
        margin-bottom: 30px;
    }
    .timeline-item .timeline-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
        right: -17.5px; /* Adjust icon position */
    }
    .timeline-vertical::after {
        right: 50%; /* Keep line centered */
    }
}