/* =====================================================
   ABOUT US PAGE STYLES - Complete Extraction
   ===================================================== */

/* Timeline Section */
.timeline-section {
    padding: 40px 0 60px 0;
    margin-top: 80px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)), url('../img/about/ourjounrey.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.timeline-section .container {
    position: relative;
    z-index: 2;
}

.timeline-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #000000;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: none;
    opacity: 0;
    animation: timelineAppear 1s ease 0.5s forwards;
}

@keyframes timelineAppear {
    from {
        opacity: 0;
        transform: translateX(-50%) scaleY(0);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-section.animate .timeline-item:nth-child(1) {
    animation: slideInFromLeft 0.8s ease 0.8s forwards;
}

.timeline-section.animate .timeline-item:nth-child(2) {
    animation: slideInFromRight 0.8s ease 1.2s forwards;
}

.timeline-section.animate .timeline-item:nth-child(3) {
    animation: slideInFromLeft 0.8s ease 1.6s forwards;
}

.timeline-section.animate .timeline-item:nth-child(4) {
    animation: slideInFromRight 0.8s ease 2s forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px) translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: rgba(33, 124, 118, 1);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(33, 124, 118, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 4px rgba(33, 124, 118, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(33, 124, 118, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(33, 124, 118, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.timeline-year {
    background: rgba(33, 124, 118, 1);
    color: white;
    padding: 0.5rem 0;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(33, 124, 118, 0.3);
    white-space: nowrap;
    width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.timeline-content {
    width: 45%;
    background: transparent;
    padding: 1.2rem;
    border-radius: 0;
    box-shadow: none;
    border: none;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: transparent;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: transparent;
}

.timeline-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.timeline-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.4rem;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.timeline-text p {
    color: #ffffff;
    line-height: 1.5;
    font-size: 1.1rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* About Section Title */
.about {
    padding: 70px 0 0 0;
    background-color: #ffffff;
    margin-top: 80px;
}

.about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 2rem;
}

.about h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: rgba(33, 124, 118, 1);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* About Content Sections */
.about-content-section {
    padding: 60px 0 120px 0;
    background-color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.who-we-are .about-text {
    opacity: 0;
    animation: fadeInLeft 1s ease 0.3s forwards;
}

.about-text h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.7;
}

.who-we-are .about-image {
    opacity: 0;
    animation: fadeInRight 1s ease 0.6s forwards;
}

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* What We Stand For Section */
.what-we-stand-for .about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.what-we-stand-for .about-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 1rem;
}

.what-we-stand-for .about-text h3::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: rgba(33, 124, 118, 1);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.what-we-stand-for .content-row {
    display: flex;
    gap: 4rem;
    align-items: stretch;
    height: 440px;
}

.what-we-stand-for .about-image {
    flex: 1;
}

.what-we-stand-for .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.what-we-stand-for .paragraphs-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.what-we-stand-for .paragraphs-container p {
    margin-bottom: 0.5rem;
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.5;
}

.what-we-stand-for .paragraphs-container p:last-child {
    margin-bottom: 0;
}

.what-we-stand-for .paragraphs-container p strong {
    color: rgba(33, 124, 118, 1);
}

.what-we-stand-for .about-image {
    opacity: 0;
    animation: fadeInLeft 1s ease 0.3s forwards;
}

.what-we-stand-for .about-text {
    opacity: 0;
    animation: fadeInRight 1s ease 0.6s forwards;
}

/* Locations Simple Section */
.locations-simple-section {
    padding: 4rem 0 6rem 0;
    background-color: #f3f4f6;
}

.locations-simple-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 2rem;
}

.locations-simple-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: rgba(33, 124, 118, 1);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.location-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.location-address-card {
    display: block;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid #e5e7eb;
    text-decoration: none !important;
    color: inherit;
}

.location-address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background-color: rgba(33, 124, 118, 0.02);
    text-decoration: none !important;
}

.location-address-card:focus {
    outline: none;
    text-decoration: none !important;
}

.location-address-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.location-address {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.location-address-card:hover .location-address {
    color: #1f2937;
}

/* Mission Statement */
.mission-statement-container {
    padding: 0.5rem 0 8rem 0;
}

.mission-statement {
    text-align: center;
    margin-top: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mission-statement h3 {
    color: rgba(33, 124, 118, 1);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.mission-statement p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1f2937;
    font-style: italic;
}

/* Animation Classes */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.animate-fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.animate-fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-section {
        padding: 50px 0;
    }
    
    .timeline-section h2 {
        font-size: 2.2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
        transform: translateY(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
        padding: 1rem;
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .timeline-content::before {
        left: -30px !important;
        right: auto !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
    }
    
    .timeline-section.animate .timeline-item:nth-child(1),
    .timeline-section.animate .timeline-item:nth-child(2),
    .timeline-section.animate .timeline-item:nth-child(3),
    .timeline-section.animate .timeline-item:nth-child(4) {
        animation: slideInFromRight 0.8s ease forwards;
    }
    
    .timeline-section.animate .timeline-item:nth-child(1) {
        animation-delay: 0.8s;
    }
    
    .timeline-section.animate .timeline-item:nth-child(2) {
        animation-delay: 1.2s;
    }
    
    .timeline-section.animate .timeline-item:nth-child(3) {
        animation-delay: 1.6s;
    }
    
    .timeline-section.animate .timeline-item:nth-child(4) {
        animation-delay: 2s;
    }
    
    .timeline-item {
        margin-bottom: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .what-we-stand-for .content-row {
        flex-direction: column;
        gap: 2rem;
        height: auto;
    }
    
    .what-we-stand-for .about-image img {
        height: 300px;
    }

    .location-addresses {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .location-address-card {
        padding: 2rem;
    }
    
    .locations-simple-section h2 {
        font-size: 2.2rem;
    }

    .about h2,
    .what-we-stand-for .about-text h3,
    .locations-simple-section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .timeline-section {
        padding: 40px 0;
    }
    
    .timeline-section h2 {
        font-size: 1.8rem;
    }
    
    .timeline-content {
        padding: 0.8rem;
        width: calc(100% - 70px);
        margin-left: 70px !important;
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .timeline-text h3 {
        font-size: 1rem;
    }
    
    .timeline-text p {
        font-size: 0.95rem;
    }

    .locations-simple-section {
        padding: 3rem 0;
    }
    
    .location-address-card {
        padding: 1.5rem;
    }
    
    .location-address-card h3 {
        font-size: 1.3rem;
    }
    
    .location-address {
        font-size: 0.95rem;
    }

    .about h2,
    .what-we-stand-for .about-text h3,
    .locations-simple-section h2 {
        font-size: 1.8rem;
    }

    .about-text h3 {
        font-size: 1.4rem;
    }

    .about-text p,
    .what-we-stand-for .paragraphs-container p {
        font-size: 1rem;
    }

    .mission-statement h3 {
        font-size: 1.2rem;
    }

    .mission-statement p {
        font-size: 1rem;
    }
}