/* About Page Styles */

.page-header {
    background: linear-gradient(135deg, rgba(160, 82, 45, 0.05) 0%, rgba(205, 133, 63, 0.03) 100%);
    padding: 40px 0 60px;
    margin-top: -88px;
    padding-top: calc(88px + 40px);
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(160, 82, 45, 0.15);
}

@media (max-width: 768px) {
    .page-header {
        margin-top: -59px;
        padding-top: calc(59px + 40px);
    }
}

.header-content {
    text-align: center;
}

.page-header h1 {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -3px;
    color: #3E2723;
    margin-bottom: 16px;
}

body.rtl .page-header h1 {
    font-size: 72px;
}

.page-header p {
    font-size: 20px;
    color: rgba(62, 39, 35, 0.7);
    font-weight: 400;
}

/* About Sections */
.about-section {
    margin-bottom: 100px;
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-content p {
    font-size: 18px;
    line-height: 1.9;
    color: #5D4037;
    margin-bottom: 24px;
    font-weight: 400;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 100px;
}

.expertise-card {
    background: linear-gradient(135deg, #ffffff 0%, #FFF9F0 100%);
    border: 1px solid rgba(160, 82, 45, 0.15);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #A0522D, #CD853F, #DAA520);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(160, 82, 45, 0.15);
}

.expertise-card:hover::before {
    opacity: 1;
}

.expertise-icon {
    font-size: 56px;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.15) rotate(5deg);
}

.expertise-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #3E2723;
    letter-spacing: -0.5px;
}

.expertise-desc {
    font-size: 15px;
    color: #5D4037;
    line-height: 1.7;
    font-weight: 400;
}

/* Stats Section */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 100px;
    padding: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #FFF9F0 100%);
    border-radius: 28px;
    border: 1px solid rgba(160, 82, 45, 0.15);
}

.stat-card {
    text-align: center;
    padding: 20px;
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
}

.stat-number {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, #A0522D 0%, #CD853F 50%, #DAA520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -2px;
    padding-bottom: 4px;
    overflow: visible;
    display: inline-block;
}

.stat-label {
    font-size: 14px;
    color: #5D4037;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.5;
    padding-bottom: 4px;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    body.rtl .page-header h1 {
        font-size: 48px;
    }

    .page-header p {
        font-size: 16px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        padding: 30px 16px;
        gap: 20px;
    }

    .stat-card {
        padding: 12px 8px;
    }

    .stat-number {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .stat-label {
        font-size: 11px;
        letter-spacing: 0.5px;
        line-height: 1.3;
    }

    .about-section {
        margin-bottom: 60px;
    }

    .story-content p {
        font-size: 16px;
    }
}
