/* about/about.css */

/* =========================================
   BOLD, PROFESSIONAL TYPOGRAPHY
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

body {
    font-family: 'Inter', sans-serif !important;
    line-height: 1.6;
    color: var(--text-dark);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700; /* Much bolder headings */
    color: var(--rotary-blue);
}

/* =========================================
   PAGE STYLES & ALIGNMENT
   ========================================= */
.section-padding { padding: 6rem 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* About Hero */
.about-hero {
    height: 60vh;
    min-height: 400px;
    background-color: var(--rotary-blue);
    background-image: url('https://picsum.photos/id/122/1920/1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 36, 108, 0.85);
    z-index: 1;
}

.about-hero .container { position: relative; z-index: 2; }

.about-hero h1 { 
    font-size: 4.5rem; 
    color: var(--rotary-gold); 
    margin-bottom: 1rem; 
    font-weight: 800; /* Ultra bold for the main title */
}

.about-hero p { 
    font-size: 1.2rem; 
    font-weight: 400; 
    opacity: 0.9;
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-text h2 { 
    font-size: 3rem; 
    margin-bottom: 1.5rem; 
}

.philosophy-text p { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    margin-bottom: 2rem; 
    text-align: justify; /* Aligns paragraph text into a clean block */
}

.four-way-test {
    list-style: none;
    padding: 0;
}

.four-way-test li {
    font-size: 1.15rem;
    font-weight: 600; /* Bolder list items */
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--text-dark);
}

.four-way-test span {
    font-family: 'Playfair Display', serif !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    min-width: 40px; /* Prevents the circle from squishing */
    background-color: var(--rotary-gold);
    color: var(--rotary-blue);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
}

.img-wrapper img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    display: block; /* Removes bottom spacing bugs on images */
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    width: 4px;
    background-color: #e0e0e0;
    top: 0; bottom: 0; left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

.timeline-progress {
    position: absolute;
    width: 4px;
    background-color: var(--rotary-gold);
    top: 0; left: 50%;
    transform: translateX(-50%);
    height: 0; 
    border-radius: 4px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2.5rem 4rem;
}

/* Strict Text Alignment for Timeline */
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-dot {
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: var(--bg-white);
    border: 5px solid var(--rotary-gold);
    border-radius: 50%;
    top: 2.5rem;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(247, 168, 27, 0.2);
}

.timeline-item.left .timeline-dot { right: -13px; }
.timeline-item.right .timeline-dot { left: -13px; }

.timeline-content {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 36, 108, 0.1);
    border-color: var(--rotary-gold);
}

.timeline-content h3 { 
    font-size: 1.8rem;
    color: var(--rotary-blue); 
    margin-bottom: 0.8rem; 
    font-weight: 700;
}

.timeline-content p { 
    color: var(--text-muted); 
    font-size: 1.05rem;
    font-weight: 400;
}

/* Responsive Timeline for Mobile */
@media screen and (max-width: 768px) {
    .philosophy-grid { grid-template-columns: 1fr; }
    
    .timeline-line, .timeline-progress { left: 30px; }
    
    .timeline-item { width: 100%; padding-left: 80px; padding-right: 0; }
    
    /* Forces all mobile text to align perfectly left */
    .timeline-item.left, .timeline-item.right { 
        left: 0; 
        text-align: left; 
    }
    
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot { left: 17px; }
}

/* Call to Action */
.cta { background-color: var(--rotary-blue); color: var(--bg-white); }
.cta h2 { color: var(--bg-white); font-size: 2.8rem; font-weight: 700; }

/* =========================================
   PURE VANILLA ANIMATIONS
   ========================================= */
body.js-active .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

body.js-active .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}