/* About Page Styles */
/* شناسه تغییر: CSS-ABOUT-001 */

/* About Page Wrapper - RTL Support */
.about-page-wrapper {
    padding: 2rem 0 4rem;
    min-height: 60vh;
    direction: rtl;
    text-align: right;
}

/* Optimize Font Awesome loading */
.about-page-wrapper i[class^="fa"],
.about-page-wrapper i[class*=" fa-"] {
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.about-page-content {
    max-width: 100%;
}

/* About Page Header */
.about-page-header {
    text-align: center;
    margin-bottom: 3rem;
    direction: rtl;
}

.about-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.about-page-excerpt {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* About Page Thumbnail */
.about-page-thumbnail {
    margin: 2rem 0 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-thumbnail-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-thumbnail-image:hover {
    transform: scale(1.02);
}

/* About Page Content Text */
.about-page-content-text {
    margin: 2rem 0 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #555;
    line-height: 1.8;
    direction: rtl;
    text-align: right;
}

.about-page-content-text p {
    margin-bottom: 1.5rem;
}

.about-page-content-text p:last-child {
    margin-bottom: 0;
}

.about-page-content-text h2,
.about-page-content-text h3,
.about-page-content-text h4 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-page-content-text h2:first-child,
.about-page-content-text h3:first-child,
.about-page-content-text h4:first-child {
    margin-top: 0;
}

/* About Features Grid */
.about-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.about-feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    direction: rtl;
}

.about-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FFB22C 0%, #ff9f00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.about-feature-card:hover .about-feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-feature-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.about-feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.about-feature-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* About Section Title */
.about-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    direction: rtl;
    text-align: right;
}

.about-section-title i {
    color: #FFB22C;
    font-size: 1.3rem;
}

/* About Contact Section */
.about-contact-section {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 3rem 0;
    direction: rtl;
    text-align: right;
}

.about-contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.about-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
    direction: rtl;
    flex-direction: row;
}

.about-contact-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.about-contact-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #FFB22C;
    transition: all 0.3s ease;
}

.about-contact-item:hover .about-contact-icon {
    background: linear-gradient(135deg, #FFB22C 0%, #ff9f00 100%);
    transform: scale(1.1);
}

.about-contact-icon i {
    font-size: 1.2rem;
    color: #FFB22C;
    transition: color 0.3s ease;
}

.about-contact-item:hover .about-contact-icon i {
    color: #fff;
}

.about-contact-content {
    flex: 1;
    text-align: right;
    direction: rtl;
}

.about-contact-label {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.about-contact-value {
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: color 0.3s ease;
}

.about-contact-value:hover {
    color: #FFB22C;
}

/* About Social Media */
.about-social-media {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 3rem 0;
    direction: rtl;
    text-align: right;
}

.about-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    direction: rtl;
}

.about-social-link {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 50%;
    color: #FFB22C;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #FFB22C;
    box-shadow: 0 2px 8px rgba(255, 178, 44, 0.15);
    position: relative;
    overflow: hidden;
}

.about-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FFB22C 0%, #ff9f00 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.about-social-link:hover {
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 178, 44, 0.4);
    border-color: #ff9f00;
}

.about-social-link:hover::before {
    opacity: 1;
}

.about-social-link i,
.about-social-link .social-icon-image {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.about-social-link:hover i {
    transform: scale(1.1) rotate(5deg);
}

.about-social-link i {
    font-size: 1.5rem;
    font-weight: 400;
}

.about-social-link .social-icon-image {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.about-social-link:hover .social-icon-image {
    transform: scale(1.1);
}

/* About CTA Section */
.about-cta-section {
    background: linear-gradient(135deg, #FFB22C 0%, #ff9f00 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0 0;
    text-align: center;
    direction: rtl;
    box-shadow: 0 4px 20px rgba(255, 178, 44, 0.3);
}

.about-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.about-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.about-cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    color: #FFB22C;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    direction: rtl;
    flex-direction: row-reverse;
}

.about-cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ff9f00;
}

.about-cta-button i {
    font-size: 1rem;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .about-page-wrapper {
        padding: 3rem 0 5rem;
    }

    .about-page-title {
        font-size: 2.5rem;
    }

    .about-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .about-contact-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-contact-section,
    .about-social-media,
    .about-page-content-text {
        padding: 2.5rem;
    }

    .about-cta-section {
        padding: 4rem 3rem;
    }

    .about-cta-title {
        font-size: 2.2rem;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .about-page-title {
        font-size: 3rem;
    }

    .about-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }

    .about-contact-info {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-section-title {
        font-size: 1.75rem;
    }

    .about-cta-section {
        padding: 5rem 4rem;
    }

    .about-cta-title {
        font-size: 2.5rem;
    }
}

/* Additional RTL Support */
.about-page-body {
    direction: rtl;
    text-align: right;
}

/* Prevent FOUT (Flash of Unstyled Text) for Font Awesome icons */
.about-social-link i {
    display: inline-block;
    min-width: 1em;
    text-align: center;
}

/* Preload optimization for about page icons */
.about-page-wrapper .about-social-links {
    content-visibility: auto;
}












