/* static/content/css/about.css */

/* General About Page Container */
.about-page-container {
    padding-bottom: 60px;
}

/* Hero Section Styling (similar to coachajit but adaptable) */
.about-hero-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #f8f9fa; /* Light grey, or use an image */
    background-size: cover;
    background-position: center center;
    position: relative; /* For potential overlay if using background image */
    color: #333; /* Default text color, can be overridden if bg image makes it hard to read */
}

.about-hero-section.has-bg-image {
    color: #fff; /* White text if there is a background image */
}

/* Optional overlay for hero image if text is hard to read */
.about-hero-section.has-bg-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.about-hero-section .container > * {
    position: relative; /* Ensure content is above overlay */
    z-index: 2;
}

.about-hero-section h1 {
    font-size: 3.5em; /* Large headline */
    font-weight: 700;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent (changes if bg image) */
}

.about-hero-section .sub-headline {
    font-size: 1.4em;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
    color: inherit; /* Inherit color */
}

/* Introduction Section */
.introduction-section {
    padding: 60px 0;
    background-color: #fff;
}

.introduction-section .container {
    max-width: 900px; /* Wider for text content */
}

.introduction-section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.introduction-section .intro-text-content {
    font-size: 1.15em;
    line-height: 1.8;
    color: #4A4A4A;
}

.introduction-section .intro-text-content p {
    margin-bottom: 1.5em;
}

/* Core Values Section */
.core-values-section {
    padding: 60px 0;
    background-color: #f4f7f6; /* Slightly different light background */
}

.core-values-section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.value-card .value-icon {
    font-size: 2.5em;
    color: #1DB954; /* Your theme green */
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #34495e;
}

.value-card p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background-color: #fff;
}

.timeline-section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    color: #2c3e50;
}

.timeline {
    position: relative;
    max-width: 960px; /* Increased from 800px */
    margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #e9ecef; /* Light grey line */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: 1;
}

/* Container around content */
.timeline-entry {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    z-index: 2;
}

/* Image on the opposite side (occupies the other 50%) */
.timeline-entry.has-image .timeline-opposite-image {
    position: absolute;
    top: 10px;
    width: 50%; /* container matches half width; ratio-box will go full inside */
    pointer-events: none; /* purely visual */
    display: flex;
    justify-content: center;
}
.timeline-entry.left.has-image .timeline-opposite-image { /* image on right */
    left: 100%;
    padding-left: 25px;
}
.timeline-entry.right.has-image .timeline-opposite-image { /* image on left */
    right: 100%;
    padding-right: 25px;
}
.timeline-entry.has-image .timeline-opposite-image .ratio-box {
    position: relative;
    width: 100%; /* occupy full half for maximum width */
    background: #edf0f2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    margin: 0 auto;
    aspect-ratio: 4/5; /* fallback ratio while JS adjusts height */
}
.timeline-entry.has-image .timeline-opposite-image img {
    position: absolute;
    top:0;left:0;width:100%;height:100%;
    object-fit: cover;
}
/* When JS adjusts height, we drop absolute sizing inside box */
.timeline-entry.has-image .timeline-opposite-image .ratio-box.js-sized img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
  .timeline-entry.has-image .timeline-opposite-image {
      position: static;
      width: 100%;
      padding: 0 0 12px 0;
      pointer-events: auto;
  }
    .timeline-entry.has-image .timeline-opposite-image .ratio-box { width:100%; aspect-ratio:auto; }
  .timeline-entry.has-image .timeline-content { order: 2; }
}

/* The circles on the timeline */
.timeline-entry::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12.5px; /* Adjusted for new circle size */
    background-color: #fff;
    border: 4px solid #1DB954; /* Your theme green */
    top: 15px;
    border-radius: 50%;
    z-index: 3;
}

/* Place the container to the left */
.timeline-entry.left {
    left: 0;
}

/* Place the container to the right */
.timeline-entry.right {
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.timeline-entry.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 3;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.timeline-entry.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 3;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.timeline-entry.right::after {
    left: -12.5px; /* Adjusted for new circle size */
}

/* The actual content */
.timeline-content {
    padding: 20px 30px;
    background-color: #f8f9fa; /* Light background for content boxes */
    position: relative;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Flex layout when image present */
.timeline-content.with-optional-image .timeline-flex-wrapper {
    display: flex;
    gap: 24px;
    align-items: stretch;
}
.timeline-content.with-optional-image .timeline-flex-wrapper.reverse-row {
    flex-direction: row-reverse; /* swap sides for alternating entries */
}
.timeline-content.with-optional-image .timeline-image-wrapper {
    flex: 0 0 42%;
    max-width: 42%;
    display: flex;
}
.timeline-content.with-optional-image .timeline-text-wrapper {
    flex: 1 1 58%;
    min-width: 0; /* prevent overflow */
    display: flex;
    flex-direction: column;
}
.timeline-content.with-optional-image .timeline-image-wrapper .ratio-box {
    position: relative;
    width: 100%;
    padding-top: 66%; /* 3:2 aspect ratio */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    background:#e4e7ea;
}
.timeline-content.with-optional-image .timeline-image-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; /* crop while keeping container */
    object-position: center;
    display: block;
}

@media (max-width: 900px) {
  .timeline-content.with-optional-image .timeline-flex-wrapper,
  .timeline-content.with-optional-image .timeline-flex-wrapper.reverse-row {
      flex-direction: column; /* stack image over text on narrow */
  }
  .timeline-content.with-optional-image .timeline-image-wrapper,
  .timeline-content.with-optional-image .timeline-text-wrapper {
      max-width: 100%;
      flex: 1 1 auto;
  }
  .timeline-content.with-optional-image .timeline-image-wrapper .ratio-box { padding-top: 60%; }
}

.timeline-content .year-milestone {
    font-size: 0.9em;
    font-weight: 600;
    color: #1DB954; /* Theme green */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #34495e;
}

.timeline-content .description {
    font-size: 1em;
    line-height: 1.7;
    color: #4A4A4A;
}
.timeline-content .description p {
    margin-bottom: 0.5em;
}

/* Timeline CTA Section (at the bottom) */
.timeline-cta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #e9ecef; /* Light grey background */
}

.timeline-cta-section p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 25px auto;
    line-height: 1.7;
    color: #333;
}

/* Responsive adjustments for timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-entry {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-entry.left::before, .timeline-entry.right::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    .timeline-entry.left::after, .timeline-entry.right::after {
        left: 18px; /* Adjusted for new circle size and line position */
    }
    .timeline-entry.right {
        left: 0%;
    }
}

/* Styling for images within timeline entry descriptions */
.timeline-content .description img {
    max-width: 100%; /* Ensure images are responsive */
    height: auto;    /* Maintain aspect ratio */
    border-radius: 8px; /* Rounded corners, consistent with value cards */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* A subtle shadow */
    margin: 15px 0; /* Add some vertical spacing, defaults to block display so centered if text allows */
    display: block; /* To allow margin auto for centering if needed, and for consistent block behavior */
}

/* If you want to allow floating images with text wrapping, you might add classes in CKEditor
   and then style them, e.g.:
.timeline-content .description img.float-left {
    float: left;
    margin-right: 15px;
    margin-bottom: 5px; 
}
.timeline-content .description img.float-right {
    float: right;
    margin-left: 15px;
    margin-bottom: 5px;
}
*/ 