/* Override to unset marker alignment by default */
ul.timeline-list.alternate li.timeline-item.odd .timeline-item-wrapper .timeline-marker {
  /*  right: unset !important; */
}

ul.timeline-list.alternate li.timeline-item.even .timeline-item-wrapper .timeline-marker {
    /*  left: unset !important; */
}

.timeline-item .text-long a {
    color: white !important;
    text-decoration: underline !important;
}

ul.timeline-list.marker-center .timeline-marker {
   top: 0%;
}

ul.timeline-list {
    padding-top: 3em;
    padding-bottom: 5em !important;
}

/* Additional styles when the 'left' class is added */
ul.timeline-list.left {
    padding-left: 2em;
    padding-right: 0;
}

/* Additional styles when the 'right' class is added */
ul.timeline-list.right {
    padding-right: 2em;
    padding-left: 0;
}

ul.timeline-list li.timeline-item {
    margin-top: 8em;
}

/* START DATE alignment */
ul.timeline-list.alternate li.timeline-item.odd .field_timeline_date {
    left: 100%;
    margin-left: 63px;
    width: auto;
    position: absolute;
    font-weight: lighter;
    white-space: nowrap;
    font-size: 26px;
    text-align: left;
    text-shadow: 0px 0px 5px black;
}
ul.timeline-list.alternate li.timeline-item.even .field_timeline_date {
    right: 100%;
    margin-right: 63px;
    width: auto;
    position: absolute;
    font-weight: lighter;
    white-space: nowrap;
    font-size: 26px;
    text-align: right;
    text-shadow: 0px 0px 5px black;
}





/* END DATE alignment */

ul.timeline-list.alternate li.timeline-item.even .timeline-item-wrapper {
    padding-left: 2rem;
}
ul.timeline-list.alternate li.timeline-item.odd .timeline-item-wrapper {
    padding-right: 2rem;
}

/* Full-width background for the timeline list */
.timeline-list_old {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-image: url('/sites/default/files/2025/01/iimp.jpg');
    background-size: cover;
    background-repeat: repeat-y;
    color: white;
}

.timeline-list {
    position: relative;
    background-image: url('/sites/default/files/2025/01/iimp.jpg');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    overflow: hidden;
	color: white;
}


/* Blue overlay */
.timeline-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 111, 183, 0.85);
    z-index: 1;
}

/* Inner content styling */
.timeline-list > * {
    position: relative;
    z-index: 2;
}

/* Centre timeline */
ul.timeline-list:after {
    width: 3px;
    background-color: #ffffff !important;
}

/* Styling for Odd Timeline Items */
ul.timeline-list.alternate li.timeline-item.odd .timeline-item-wrapper .field_timeline_heading {
    font-size: 28px;
    line-height: 32px;
    width: 20ch;
    font-weight: bold;
   /* margin-top: -1em; */
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: 30px;
}

/* Styling for Even Timeline Items */
ul.timeline-list.alternate li.timeline-item.even .timeline-item-wrapper .field_timeline_heading {
    font-size: 28px;
    line-height: 32px;
    font-weight: 900;
    /* margin-top: -1em; */
    margin-bottom: 20px;
    margin-left: 30px;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.field_timeline_heading {
    font-size: 28px;
    line-height: 32px;
    font-weight: 900;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    direction: rtl;
    display: block;
    margin-left: 0;
    margin-right: auto;
}

/* Left timeline marker (Odd) */
ul.timeline-list.alternate li.timeline-item.odd .timeline-item-wrapper .timeline-marker {
    left: 100%;
    margin-left: -20px;
    width: 40px !important;
    height: 40px !important;
    background-image: url('/sites/default/files/2025-01/white-left-arrow.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: 0px;
}

/* Right timeline marker (Even) */
ul.timeline-list.alternate li.timeline-item.even .timeline-item-wrapper .timeline-marker {
    right: 100%;
    margin-right: -20px;
    width: 40px !important;
    height: 40px !important;
    background-image: url('/sites/default/files/2025-01/white-right-arrow.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: 0px;
}

audio {
    display: none;
}

.field--label.field_media_audio_file {
    display: none;
}

.field--item {
    pointer-events: auto;
    overflow: visible;
    padding: 10px;
}

/* Style the play/pause icon */
.play-icon {
    width: 2em;
    height: 2em;
}

ul.timeline-list.alternate li.timeline-item.even .play-btn {
    border: none;
    background: none;
    left: -54px;
    z-index: 2;
    margin-left: -54px;
	padding-top: 1em;
}

ul.timeline-list.alternate li.timeline-item.odd .play-btn {
    border: none;
    background: none;
    right: -54px;
    z-index: 2;
    margin-right: -54px;
	padding-top: 1em;
}

/* start css for timeline left alignment */
ul.timeline-list.left:after {
    left: auto;
    margin-left: 12px !important;
}

ul.timeline-list.left li.timeline-item .field_timeline_date {
    right: 14em;
    width: 6em;
    font-weight: lighter;
    white-space: nowrap;
    font-size: 26px;
    text-align: left;
    text-shadow: 0px 0px 5px black;
}

ul.timeline-list.left li.timeline-item .timeline-item-wrapper {
    padding: 2rem;
    padding-left: 3rem !important;
}

ul.timeline-list.left li.timeline-item .timeline-item-wrapper .field_timeline_heading {
    font-size: 28px;
    line-height: 32px;
    /* width: 20ch; */
    font-weight: bold;
    margin-bottom: 20px;
}

ul.timeline-list.left li.timeline-item .timeline-item-wrapper .paragraph,
ul.timeline-list.left li.timeline-item .timeline-item-wrapper .text-long p {
   /* width: 35ch; */
}

ul.timeline-list.left li.timeline-item .timeline-item-wrapper .timeline-marker {
    right: -20px !important;
    /* margin-top: 96px; */
    display: inline-block !important;
    width: 40px !important;
    height: 40px !important;
    background-image: url('/sites/default/files/2025-01/white-right-arrow.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: 0px;
}

ul.timeline-list.left li.timeline-item .play-btn {
    position: relative;
    border: none;
    background: none;
    left: -56px;
    z-index: 2;
}

/* end css for timeline left alignment */

/* start css for timeline right alignment */
ul.timeline-list.right:after {
    right: auto;
    margin-right: 12px !important;
}

ul.timeline-list.right li.timeline-item .field_timeline_date {
    left: 14em;
    width: 6em;
    font-weight: lighter;
    white-space: nowrap;
    font-size: 26px;
    text-align: right;
    text-shadow: 0px 0px 5px black;
}

ul.timeline-list.right li.timeline-item .timeline-item-wrapper {
    padding: 2rem;
    padding-right: 3rem !important;
    text-align: right;
}

ul.timeline-list.right li.timeline-item .timeline-item-wrapper .field_timeline_heading {
    font-size: 28px;
    line-height: 32px;
  /*  width: 20ch; */
    font-weight: bold;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: 0;
}

ul.timeline-list.right li.timeline-item .timeline-item-wrapper .paragraph,
ul.timeline-list.right li.timeline-item .timeline-item-wrapper .text-long p {
   /* width: 35ch; */
    text-align: right;
    margin-right: 0;
    margin-left: auto;
}

ul.timeline-list.right li.timeline-item .timeline-item-wrapper .timeline-marker {
    left: -20px !important;
    /* margin-top: 96px; */
    display: inline-block !important;
    width: 40px !important;
    height: 40px !important;
    background-image: url('/sites/default/files/2025-01/white-left-arrow.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: 0px;
}

ul.timeline-list.right li.timeline-item .play-btn {
    position: relative;
    border: none;
    background: none;
    right: -56px;
    z-index: 2;
}
/* end css for timeline right alignment */



/* start css for readmore link */
.read-more-wrapper {
    cursor: pointer;
    display: inline-block;
    margin-bottom: 15px;
}

.read-more-link {
    text-decoration: none;
}

/* alternate */
.timeline-list.alternate .timeline-item.odd .timeline-item-wrapper .read-more-wrapper {
    margin-right: 30px;
}

.timeline-list.alternate .timeline-item.even .timeline-item-wrapper .read-more-wrapper {
    margin-left: 30px;
}

/* left */
.timeline-list.left .timeline-item.even .read-more-wrapper {
    margin-right: 30px;
}
.timeline-list.left .timeline-item.odd .read-more-wrapper {
    margin-right: 30px;
}
/* right */
.timeline-list.right .timeline-item.even .read-more-wrapper {
    margin-left: 30px;
}
.timeline-list.right .timeline-item.odd .read-more-wrapper {
    margin-left: 30px;
}


.timeline-item .timeline-item-wrapper .read-more-link {
    color: white;
    background-color: black;
    padding: 4px;
}

.timeline-item.odd .timeline-item-wrapper .text-long p {
}

.timeline-item.even .timeline-item-wrapper .text-long {
    margin-right: 30px;
   /* max-width: 300px; */
    word-wrap: break-word !important;
    overflow-wrap: break-word;
}

/* Styling for Odd paragraphs */
ul.timeline-list.alternate li.timeline-item.odd .timeline-item-wrapper .paragraph,
ul.timeline-list.alternate li.timeline-item.odd .timeline-item-wrapper .text-long p {
    display: block;
    max-width: 30ch;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: right !important;
    margin-left: auto;
    margin-right: 0;
    padding-right: 30px;
}

/* Styling for Even paragraphs */
ul.timeline-list.alternate li.timeline-item.even .timeline-item-wrapper .paragraph,
ul.timeline-list.alternate li.timeline-item.even .timeline-item-wrapper .text-long p {
    
	 display: block;
    max-width: 30ch;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left !important;
    margin-right: auto;
    margin-left: 0;
    padding-left: 30px;

	
}
/* end css for readmore link */

/* Mobile direction-based adjustments */
@media (max-width: 767px) {
  /* Odd items: LTR left, RTL right */
  [dir="ltr"] ul.timeline-list.alternate li.timeline-item.odd .timeline-item-wrapper .timeline-marker {
    left: 0 !important;
    right: auto !important;
    margin-left: 0 !important;
  }
  [dir="rtl"] ul.timeline-list.alternate li.timeline-item.odd .timeline-item-wrapper .timeline-marker {
    right: 0 !important;
    left: auto !important;
    margin-right: 0 !important;
  }

  /* Even items: LTR left, RTL right */
  [dir="ltr"] ul.timeline-list.alternate li.timeline-item.even .timeline-item-wrapper .timeline-marker {
    left: 0 !important;
    right: auto !important;
    margin-left: 0 !important;
  }
  [dir="rtl"] ul.timeline-list.alternate li.timeline-item.even .timeline-item-wrapper .timeline-marker {
    right: 0 !important;
    left: auto !important;
    margin-right: 0 !important;
  }
}



