/* ============================================================================
   ABOUT PAGE SPECIFIC STYLES
   ============================================================================ */

/* About Hero */
.about-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.about-hero__content {
    max-width: 700px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.about-hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Story Section */
.story-section {
    padding: 100px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 24px;
    line-height: 1.2;
}

.story-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.story-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 30px;
    color: #10b981;
    font-size: 14px;
    font-weight: 500;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 30px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.stat-card__value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
}

.stat-card__value span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card__label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Mission & Vision */
.mv-section {
    padding: 100px 0;
}

.mv-header {
    text-align: center;
    margin-bottom: 60px;
}

.mv-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-white);
}

.mv-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.mv-card {
    padding: 40px;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.4s ease;
}

.mv-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.mv-card--featured {
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(17, 24, 39, 0.5);
}

.mv-card--featured:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.05), rgba(17, 24, 39, 0.5));
}

.mv-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 24px;
}

.mv-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
}

.mv-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.mv-card ul {
    list-style: none;
}

.mv-card ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.mv-card ul li i {
    color: #10b981;
    font-size: 12px;
}

/* Values Section */
.values-section {
    padding: 100px 0;
}

.values-header {
    text-align: center;
    margin-bottom: 60px;
}

.values-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
}

.values-header p {
    color: var(--text-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    padding: 30px;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.value-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.value-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 100px 0;
}

.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
}

.team-header p {
    color: var(--text-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.team-card {
    padding: 30px 20px;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.team-card--featured {
    border-color: rgba(255, 255, 255, 0.05);
}

.team-card--featured:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.team-card__avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
}

.team-card--featured .team-card__avatar {
    background: var(--gradient-primary);
    color: white;
}

.team-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 6px;
}

.team-card__role {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: #a78bfa;
    font-weight: 500;
    margin-bottom: 8px;
}

.team-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Pets Section */
.pets-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pets-header {
    text-align: center;
    margin-bottom: 40px;
}

.pets-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.pets-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pet-card {
    padding: 30px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--pet-color, rgba(255, 255, 255, 0.1));
    border-radius: 24px;
    text-align: center;
    width: 250px;
    transition: all 0.4s ease;
}

.pet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pet-card__avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--pet-color), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.pet-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.pet-card span {
    display: block;
    font-size: 12px;
    color: var(--pet-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.pet-card p {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* Timeline Section */
.timeline-section {
    padding: 100px 0;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-white);
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), rgba(139, 92, 246, 0.5));
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item__marker {
    width: 100px;
    min-width: 100px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
}

.timeline-item__content {
    flex: 1;
    padding: 20px 30px;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.timeline-item__content:hover {
    border-color: rgba(0, 212, 255, 0.2);
}

.timeline-item__content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.timeline-item__content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .mv-cards {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .story-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .timeline-item__marker {
        width: 80px;
    }
    
    .pets-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .pet-card {
        width: 100%;
        max-width: 300px;
    }
}

/* ===================== RTL Support for Arabic ===================== */
[dir="rtl"] .timeline {
    direction: ltr; /* Keep LTR for flex layout, handle text separately */
}

[dir="rtl"] .timeline::before {
    display: none;
}

[dir="rtl"] .timeline-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .timeline-item__content {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .timeline-item__marker {
    order: 2;
}

[dir="rtl"] .story-content {
    text-align: right;
}

[dir="rtl"] .story-highlights {
    justify-content: flex-end;
}

[dir="rtl"] .highlight i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .mv-card {
    text-align: right;
}

[dir="rtl"] .mv-card ul {
    padding-right: 20px;
    padding-left: 0;
}

[dir="rtl"] .mv-card ul li::before {
    right: 0;
    left: auto;
}

[dir="rtl"] .value-card {
    text-align: right;
}

[dir="rtl"] .team-card {
    text-align: right;
}

[dir="rtl"] .pet-card {
    text-align: right;
}

[dir="rtl"] .about-hero__content,
[dir="rtl"] .timeline-header {
    text-align: right;
}

@media (max-width: 768px) {
    [dir="rtl"] .timeline::before {
        left: auto;
        right: 20px;
    }
    
    [dir="rtl"] .timeline-item {
        flex-direction: column;
    }
}
