/* Journey Page Specific Styles */

/* Journey Hero */
.journey-hero {
    background-image: url('/media/img/our_journey/our_journey.webp');
    background-repeat: no-repeat;
}

/* Journey Intro Section */
.journey-intro {
    background-color: var(--main-bg);
    padding: 4rem 0 0 0;
}

.journey-intro-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.journey-intro-container p {
    font-size: 20px;
    line-height: 1.8;
    color: var(--secondary-text);
    margin: 0;
}

/* Timeline Section */
.timeline {
    background-color: var(--main-bg);
    padding: 6rem 0 0 0;
    position: relative;
}

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

/* Timeline Vertical Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--secondary-text);
    transform: translateX(-50%);
    /* margin-left: 2rem; */
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

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

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: var(--secondary-text);
    border: 5px solid var(--main-bg);
    border-radius: 50%;
    z-index: 10;
}

/* Timeline Left Layout (Image Left, Text Right) */
.timeline-left .timeline-content {
    grid-template-columns: 45% 55%;
}

.timeline-left .timeline-image {
    order: 1;
}

.timeline-left .timeline-text {
    order: 2;
    padding-left: 2rem;
}

/* Timeline Right Layout (Text Left, Image Right) */
.timeline-right .timeline-content {
    grid-template-columns: 55% 45%;
}

.timeline-right .timeline-text {
    order: 1;
    padding-right: 6rem;
    text-align: left;
}

.timeline-right .timeline-image {
    order: 2;
}

/* Timeline Image */
.timeline-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3 / 2;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Timeline Text */
.timeline-text {
    color: var(--secondary-text);
}

.timeline-date {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-text);
    margin-bottom: 1rem;
    font-family: var(--font-title);
}

.timeline-text h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.timeline-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

/* Journey Closing Section */
.journey-closing {
    background-color: var(--main-bg);
    padding: 0 0 4rem 0;
}

.journey-closing-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.journey-closing-container p {
    font-size: 20px;
    line-height: 1.8;
    color: var(--secondary-text);
    margin: 0;
}

/* Read More Button */
.read-more-btn {
    display: inline-block;
    background-color: #ffe9ad;
    color: #3f6870;
    text-decoration: none;
    font-size: 12px;
    font-family: 'Inria Serif', serif;
    font-weight: 700;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.read-more-btn:hover {
    background-color: #f5dc8e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */

/* Smaller Web (960px - 1280px) */
@media (min-width: 960px) and (max-width: 1279px) {
    .timeline-content {
        gap: 2rem;
    }

    .timeline-left .timeline-text {
        padding-left: 6rem;
    }

    .timeline-right .timeline-text {
        padding-right: 6rem;
    }

    .timeline-date {
        font-size: 28px;
    }

    .timeline-text h3 {
        font-size: 20px;
    }

    .timeline-text p {
        font-size: 15px;
    }
}

/* Mobile (up to 960px) */
@media (max-width: 959px) {
    .journey-intro {
        padding: 3rem 0;
    }

    .journey-intro-container p {
        font-size: 16px;
    }

    .journey-closing {
        padding: 3rem 0;
    }

    .journey-closing-container p {
        font-size: 16px;
    }

    .timeline {
        padding: 3rem 0;
    }

    .timeline-line {
        left: 30px;
        margin-left: 2rem;
    }

    .timeline-item {
        margin-bottom: 3rem;
    }

    .timeline-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding-left: 80px;
    }

    .timeline-left .timeline-image,
    .timeline-right .timeline-image {
        order: 1 !important;
    }

    .timeline-left .timeline-text,
    .timeline-right .timeline-text {
        order: 2 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 30px;
        transform: translate(-50%, -50%);
    }

    .timeline-date {
        font-size: 24px;
    }

    .timeline-text h3 {
        font-size: 18px;
    }

    .timeline-text p {
        font-size: 14px;
    }
}
