/* =============================================
   ABOUT PAGE STYLES
   ============================================= */

/* ---------- About Hero ---------- */
.about-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    z-index: 0;
}

.about-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1.5" fill="rgba(255,255,255,0.07)"/></svg>') repeat;
    background-size: 40px 40px;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.about-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 24px;
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-hero h1 {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 20px;
}

.about-hero h1 span {
    color: #a7f3d0;
}

.about-hero p {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Section Badge (shared) ---------- */
.section-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #059669;
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* ---------- Story Section ---------- */
.about-story-section {
    padding: 100px 24px;
    background: #fff;
}

.about-story-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-image-stack {
    position: relative;
    height: 480px;
    display:flex;
}

.story-img-main {
    width: 75%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.story-img-secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    border: 5px solid #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.story-stats-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #059669;
    color: #fff;
    padding: 20px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
    z-index: 2;
}

.story-stats-number {
    display: block;
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.story-stats-label {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    white-space: nowrap;
}

.about-story-text h2 {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align:right;
}

.about-story-text p {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.9;
    margin-bottom: 16px;
    text-align:justify;
}

.story-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #ecfdf5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
}
.about-story-text {
    text-align: right;
}
span.stat-number {
    font-size: 3rem !important;
}
.stat-item span {
    font-size: 16px;
    color: #afb3ba;
    font-weight: 400;
}
.feature-text h4 {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    text-align:right;
}

.feature-text p {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ---------- Values Section ---------- */
.about-values-section {
    padding: 100px 24px;
    background: #f9fafb;
}

.about-values-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.about-values-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-values-header h2 {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
}

.value-card:hover {
    border-color: #059669;
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.1);
    transform: translateY(-4px);
}

.value-card-number {
    position: absolute;
    top: 16px;
    left: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #f3f4f6;
    line-height: 1;
    transition: color 0.3s ease;
}

.value-card:hover .value-card-number {
    color: #d1fae5;
}

.value-card-icon {
    width: 64px;
    height: 64px;
    background: #ecfdf5;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #059669;
    transition: all 0.3s ease;
}

.value-card:hover .value-card-icon {
    background: #059669;
    color: #fff;
}

.value-card h3 {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.value-card p {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.8;
    margin: 0;
}

/* ---------- Stats Section ---------- */
.about-stats-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #059669, #047857);
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.stat-number {
    display: block;
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* ---------- Team Section ---------- */
.about-team-section {
    padding: 100px 24px;
    background: #fff;
}

.about-team-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.about-team-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-team-header h2 {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.about-team-header p {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 16px;
    color: #6b7280;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.team-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.team-card-img {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card-img img {
    transform: scale(1.05);
}

.team-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 150, 105, 0.85) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-card-overlay {
    opacity: 1;
}

.team-socials {
    display: flex;
    gap: 12px;
}

.team-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.team-socials a:hover {
    background: #fff;
    color: #059669;
}

.team-card-body {
    padding: 20px 24px;
    text-align: center;
}

.team-card-body h3 {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.team-card-body span {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 14px;
    color: #059669;
    font-weight: 500;
}

/* ---------- Testimonials Section ---------- */
.about-testimonials-section {
    padding: 100px 24px;
    background: #f9fafb;
}

.about-testimonials-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.about-testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-testimonials-header h2 {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: #059669;
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.08);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    color: #f59e0b;
    font-size: 14px;
}

.testimonial-card > p {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.9;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 14px;
    flex-direction: row-reverse;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
    text-align: justify;
}

.testimonial-author span {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    font-size: 13px;
    color: #059669;
    font-weight: 500;
    text-align: justify;

}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .about-hero h1 {
        font-size: 34px;
    }

    .about-story-grid {
        gap: 40px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        min-height: 380px;
        padding: 100px 20px 60px;
    }

    .about-hero h1 {
        font-size: 28px;
    }

    .about-hero p {
        font-size: 14px;
    }

    .about-story-section {
        padding: 60px 20px;
    }

    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-image-stack {
        height: 360px;
    }

    .story-img-main {
        width: 80%;
        height: 300px;
    }

    .story-img-secondary {
        width: 50%;
        height: 200px;
    }

    .about-story-text h2 {
        font-size: 26px;
    }

    .about-values-section {
        padding: 60px 20px;
    }

    .about-values-header h2,
    .about-team-header h2,
    .about-testimonials-header h2 {
        font-size: 26px;
    }

    .about-stats-section {
        padding: 50px 20px;
    }

    .stats-grid {
        flex-wrap: wrap;
        gap: 0;
    }

    .stat-item {
        flex: 0 0 50%;
        padding: 16px;
    }

    .stat-divider {
        display: none;
    }

    .stat-number {
        font-size: 32px;
    }

    .about-team-section {
        padding: 60px 20px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .team-card-img {
        height: 240px;
    }

    .about-testimonials-section {
        padding: 60px 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        min-height: 320px;
        padding: 90px 16px 50px;
    }

    .about-hero h1 {
        font-size: 24px;
    }

    .about-hero-badge {
        font-size: 12px;
        padding: 6px 18px;
    }

    .about-story-section {
        padding: 48px 16px;
    }

    .story-image-stack {
        height: 300px;
    }

    .story-img-main {
        width: 85%;
        height: 260px;
    }

    .story-img-secondary {
        width: 55%;
        height: 180px;
    }

    .story-stats-card {
        padding: 14px 20px;
    }

    .story-stats-number {
        font-size: 28px;
    }

    .about-story-text h2 {
        font-size: 22px;
    }

    .about-values-section,
    .about-team-section,
    .about-testimonials-section {
        padding: 48px 16px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .about-values-header h2,
    .about-team-header h2,
    .about-testimonials-header h2 {
        font-size: 22px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-card-img {
        height: 280px;
    }

    .stat-item {
        flex: 0 0 50%;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 13px;
    }

    .testimonial-card {
        padding: 24px 20px;
    }
}
