/*
 * About Us Page Styles
 * Timeline component and About Us specific styles
 */

/* About Us General Styles */
.clarke-about-section {
    margin: 3rem 0;
    padding: 0 2rem;
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.about-intro h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-intro .lead-text {
    font-size: 1.2rem;
    color: var(--tertiary-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-highlights {
    margin: 4rem 0;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.highlight-item h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.highlight-item p {
    color: var(--tertiary-color);
    line-height: 1.6;
}

.about-commitment {
    background: linear-gradient(135deg, var(--gray-color) 0%, #f0f0f0 100%);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem 0;
}

.about-commitment h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-commitment p {
    color: var(--tertiary-color);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* Timeline Styles */
.clarke-timeline-section {
    margin: 5rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--gray-color) 0%, #f0f0f0 100%);
    border-radius: 12px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-header h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.timeline-intro {
    font-size: 1.2rem;
    color: var(--tertiary-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(0, 0, 0, 0.2);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item.timeline-left {
    left: 0;
    padding-right: 3rem;
}

.timeline-item.timeline-right {
    left: 50%;
    padding-left: 3rem;
}

.timeline-content {
    background: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.timeline-left .timeline-content::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: -15px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-left-color: var(--light-color);
}

.timeline-right .timeline-content::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: -15px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-right-color: var(--light-color);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #d42636);
    color: var(--light-color);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(190, 30, 45, 0.3);
}

.timeline-image {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.timeline-image:hover img {
    transform: scale(1.05);
}

.timeline-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.timeline-description {
    color: var(--tertiary-color);
    line-height: 1.7;
    font-size: 1rem;
}

.timeline-description p {
    margin-bottom: 1rem;
}

.timeline-description p:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--light-color);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(190, 30, 45, 0.3);
    transition: var(--transition);
}

.timeline-left .timeline-dot {
    right: -12px;
}

.timeline-right .timeline-dot {
    left: -12px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(190, 30, 45, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .highlight-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .timeline-container {
        padding: 1rem 0;
    }
    
    .timeline-item {
        padding: 0 1.5rem;
    }
    
    .timeline-item.timeline-left {
        padding-right: 2rem;
    }
    
    .timeline-item.timeline-right {
        padding-left: 2rem;
    }
}

@media (max-width: 768px) {
    .clarke-about-section {
        padding: 0 1rem;
    }
    
    .about-intro h2 {
        font-size: 2rem;
    }
    
    .timeline-header h2 {
        font-size: 2rem;
    }
    
    .clarke-timeline-section {
        padding: 2rem 1rem;
    }
    
    .timeline-line {
        left: 2rem;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 4rem !important;
        padding-right: 1rem !important;
    }
    
    .timeline-content::after {
        display: none;
    }
    
    .timeline-dot {
        left: 1.2rem !important;
        right: auto !important;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-title {
        font-size: 1.3rem;
    }
    
    .highlight-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-intro h2 {
        font-size: 1.8rem;
    }
    
    .timeline-header h2 {
        font-size: 1.8rem;
    }
    
    .about-intro .lead-text,
    .timeline-intro {
        font-size: 1.1rem;
    }
    
    .timeline-item {
        margin-bottom: 3rem;
    }
    
    .timeline-content {
        padding: 1.2rem;
    }
    
    .timeline-year {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
}

/* Animation for timeline items */
@media (prefers-reduced-motion: no-preference) {
    .timeline-item {
        opacity: 0;
        transform: translateY(30px);
        animation: timelineSlideIn 0.6s ease forwards;
    }
    
    .timeline-item:nth-child(1) { animation-delay: 0.1s; }
    .timeline-item:nth-child(2) { animation-delay: 0.2s; }
    .timeline-item:nth-child(3) { animation-delay: 0.3s; }
    .timeline-item:nth-child(4) { animation-delay: 0.4s; }
    .timeline-item:nth-child(5) { animation-delay: 0.5s; }
    .timeline-item:nth-child(6) { animation-delay: 0.6s; }
    .timeline-item:nth-child(n+7) { animation-delay: 0.7s; }
}

@keyframes timelineSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.timeline-content:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Desktop size reduction for Timeline */
@media (min-width: 1025px) {
    .clarke-timeline-section {
        margin: 3rem 0;
        padding: 2rem 1.5rem;
    }

    .timeline-header {
        margin-bottom: 2.5rem;
    }

    .timeline-header h2 {
        font-size: 1.8rem;
    }

    .timeline-intro {
        font-size: 1rem;
        max-width: 640px;
    }

    .timeline-container {
        max-width: 900px;
        padding: 1rem 0;
    }

    .timeline-line {
        width: 3px;
    }

    .timeline-item {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .timeline-item.timeline-left {
        padding-right: 1.5rem;
    }

    .timeline-item.timeline-right {
        padding-left: 1.5rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-left .timeline-content::after {
        top: 1.25rem;
        right: -12px;
        border: 12px solid transparent;
        border-left-color: var(--light-color);
    }

    .timeline-right .timeline-content::after {
        top: 1.25rem;
        left: -12px;
        border: 12px solid transparent;
        border-right-color: var(--light-color);
    }

    .timeline-year {
        font-size: 0.95rem;
        padding: 0.35rem 0.9rem;
        margin-bottom: 0.75rem;
    }

    .timeline-title {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .timeline-description {
        font-size: 0.95rem;
        line-height: 1.5;
        display: -webkit-box;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .timeline-image {
        margin-bottom: 1rem;
    }

    .timeline-image img {
        height: 100%;
        object-fit: cover;
    }

    .timeline-dot {
        top: 1.25rem;
        width: 14px;
        height: 14px;
        border-width: 3px;
    }
}

/* Print styles */
@media print {
    .clarke-timeline-section {
        background: none !important;
        box-shadow: none !important;
    }
    
    .timeline-line {
        background: #000 !important;
    }
    
    .timeline-content {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    .timeline-year {
        background: #000 !important;
        color: #fff !important;
    }
}
