/* Timeline Row */
.timeline-row {
    padding: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.timeline-row.has-background-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    padding: 2rem;
}

.timeline-row-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    max-width: 1200px !important;
    margin: 0 auto;
}

.timeline-row.has-background-image .timeline-row-inner {
    width: 100%;
    max-width: 1200px;
}

/* Year */
.timeline-row-year {
    font-size: 40px;
    font-weight: bold;
    line-height: 40px;
    margin-bottom: 10px;
    text-align: left;
    background-color: #11773c;
    color: #fff !important;
    padding: 0 10px 10px 10px;
    display: inline-block;
}

h2.timeline-row-year {
    font-size: 40px;
}

/* Content Wrapper */
.timeline-row-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-start;
}

.timeline-row.has-background-image .timeline-row-content-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-row.has-vertical-direction .timeline-row-content-wrapper {
    flex-direction: column;
    align-items: center;
}

.timeline-row.has-vertical-direction .timeline-row-content-wrapper img {
    max-width: 800px;
    height: auto;
    margin-bottom: 20px;
}

.timeline-row.has-vertical-direction .timeline-row-year-wrapper {
    display: block;
    width: 100%;
    margin-bottom: 24px;
    text-align: center !important;
}

.has-horizontal-direction .timeline-row-content-wrapper {
    padding: 20px;
    max-width: 800px !important;
    background-color: #fff;
    margin-top: 24px;
}

/* Image Column */
.timeline-row-image {
    flex: 0 0 40%;
    max-width: 40%;
}

.timeline-row-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Column */
.timeline-row-content {
    flex: 0 0 60%;
    max-width: 60%;
    padding-left: 20px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-row.has-background-image .timeline-row-content {
    background-color: #000;
    padding-right: 20px !important;
    text-align: center;
    max-width: 600px;
}

.timeline-row.has-vertical-direction .timeline-row-content {
    padding-left: 0;
}

.timeline-row.has-video .timeline-row-content {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-bottom:20px;
    padding-right:0 !important;
    text-align: left;
}

/* Headline */
.timeline-row-title {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Timeline Element */
.timeline-element {
    padding: 20px;
    background: #f5f5f5;
    border-left: 4px solid #333;
    margin-bottom: 20px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* Text inside Background Image */
.timeline-row.has-background-image .timeline-row-text p {
    color: #fff !important;
    padding-left: 20px;
    font-size: 22px;
    line-height: 33px;
}

/* Adjust Width for Single Content */
.single-content div.timeline-row-content-wrapper {
    max-width: calc(100vw - 200px) !important;
}

/* Responsive Video */
.timeline-row-media .responsive-video {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.timeline-row-media .responsive-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.timeline-row.has-video .timeline-row-content-wrapper {
    flex-direction: column;
    align-items: center;
}

.timeline-row.has-video .timeline-row-media {
    width: 100%;
    display: block;
}

.timeline-row.has-video .timeline-row-media .responsive-video {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 20px auto;
}

.timeline-row.has-video {
    min-height:100vh;
   
    padding-top:60px;
}

.timeline-row.has-video  .timeline-row-text {text-align: center;
max-width:850px;
margin: 0 auto;

}
@media (max-width: 768px) {



    .single-content div.timeline-row-content-wrapper {
    max-width: calc(100vw - 20px) !important;
}

.timeline-row.has-video {
    min-height:25vh;
   
    padding-top:30px;
    padding-bottom:30px;
}




    .timeline-row .timeline-row-inner {
        max-width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .timeline-row .timeline-row-content-wrapper {
        max-width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* Normal rows */
    .timeline-row:not(.has-video) .timeline-row-content-wrapper {
        flex-direction: column;
    }

    .timeline-row:not(.has-video) .timeline-row-image,
    .timeline-row:not(.has-video) .timeline-row-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
    }

    .timeline-row:not(.has-video) .timeline-row-image {
        margin-bottom: 20px;
    }

    /* Video rows — final fix */
    .timeline-row.has-video .timeline-row-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .timeline-row.has-video .timeline-row-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .timeline-row.has-video .timeline-row-media {
        width: 100%;
        display: block;
    }

    .timeline-row.has-video .timeline-row-media .responsive-video {
        max-width: 100%;
        width: 100%;
        margin: 0 auto 20px auto;
    }

    /* Center year header */
    .timeline-row .timeline-row-year-wrapper {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
}


