:root {
    --primary-color: #e91e63;
    --accent-color: #ff4081;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
}

/* Hero Section */
.about-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233,30,99,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Story Card */
.story-card {
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-card i {
    color: var(--primary-color);
    background: linear-gradient(135deg, #fce4ec 0%, #fff 100%);
    width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 3rem; /* Override display-1 size if needed, but display-1 is class based */
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.1);
}

/* Override Bootstrap display-1 inside card if it's too big */
.story-card .display-1 {
    font-size: 3.5rem;
}

/* Section Titles */
.section-title {
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0; /* RTL default */
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

html[dir="ltr"] .section-title::after {
    right: auto;
    left: 0;
}

/* Feature Cards (Vision, Mission, Values) */
.feature-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(233, 30, 99, 0.08);
    color: var(--primary-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: #fff;
}

.feature-icon-wrapper.purple {
    background: rgba(156, 39, 176, 0.08);
    color: #9c27b0;
}

.feature-card:hover .feature-icon-wrapper.purple {
    background: #9c27b0;
    color: #fff;
}

/* Drive Cards */
.drive-card {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

.drive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.drive-icon {
    min-width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fce4ec 0%, #fff 100%);
    color: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-inline-end: 1rem;
    box-shadow: 0 5px 10px rgba(233, 30, 99, 0.1);
}

/* Achievement Card */
.achievement-card {
    background: linear-gradient(135deg, #2d3436 0%, #000 100%);
    color: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.achievement-icon {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.achievement-card .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 30px;
    padding: 5rem 2rem;
    text-align: center;
    color: #fff;
    margin-top: 5rem;
    box-shadow: 0 20px 50px rgba(233, 30, 99, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section::before {
    top: -100px;
    left: -100px;
}

.cta-section::after {
    bottom: -100px;
    right: -100px;
}

.cta-section .lead {
    color: rgba(255,255,255,0.9) !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: #fff;
    color: var(--primary-color);
    border: none;
    padding: 14px 40px;
    font-weight: 800;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    color: var(--primary-color);
    background: #fff;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .about-hero {
        padding: 80px 0 50px;
    }
    
    .story-card {
        margin-bottom: 3rem;
        margin-right: 0 !important;
    }
    
    .section-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    html[dir="ltr"] .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%; /* Center line */
    width: 2px;
    background: rgba(233, 30, 99, 0.2);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding-inline-end: 40px; /* Space from line */
}

.timeline-item:nth-child(odd) {
    margin-inline-start: auto;
    padding-inline-end: 0;
    padding-inline-start: 40px;
    text-align: start;
}

.timeline-item:nth-child(even) {
    text-align: end;
}

/* RTL Support for Timeline */
html[dir="rtl"] .timeline-item:nth-child(odd) {
    text-align: right;
}

html[dir="rtl"] .timeline-item:nth-child(even) {
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 2;
}

/* Dot positioning */
.timeline-item:nth-child(even) .timeline-dot {
    right: -10px; /* LTR even items are on left */
}

.timeline-item:nth-child(odd) .timeline-dot {
    left: -10px; /* LTR odd items are on right */
}

/* Fix for RTL */
html[dir="rtl"] .timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -10px;
}

html[dir="rtl"] .timeline-item:nth-child(odd) .timeline-dot {
    left: auto;
    right: -10px;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.timeline-year {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Team Card */
.team-card {
    background: #fff;
    padding: 2rem 1rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(233, 30, 99, 0.1);
    padding: 3px;
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    html[dir="rtl"] .timeline-item {
        padding-right: 50px !important;
        padding-left: 0 !important;
        text-align: right !important;
    }
    
    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }
    
    html[dir="rtl"] .timeline-dot {
        right: 10px !important;
        left: auto !important;
    }
}
