@import url('https://fonts.googleapis.com/css?family=Cardo|Pathway+Gothic+One');

@font-face {
  font-family: 'BPGMrgvlovaniCaps2010';
  src: url('../fonts/bpg_mrgvlovani_caps_2010-webfont.eot?#iefix') format('embedded-opentype'),  url('../fonts/bpg_mrgvlovani_caps_2010-webfont.woff') format('woff'), url('../fonts/bpg_mrgvlovani_caps_2010-webfont.ttf')  format('truetype'), url('../fonts/bpg_mrgvlovani_caps_2010-webfont.svg#BPGMrgvlovaniCaps2010') format('svg');
  font-weight: normal;
  font-style: normal;
}



* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'BPGMrgvlovaniCaps2010', serif; background: #1a1a1a; color: #fff; overflow-x: hidden; }

/* Timeline-specific styles with time prefix */
.time-container { width: 100%; position: relative; padding: 80px 0; transition: .3s ease 0s; background-attachment: fixed; background-size: cover; }
.time-container:before { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: rgba(32, 32, 32, 0.70); content: ""; }

.time-header { width: 100%; text-align: center; margin-bottom: 80px; position: relative; }
.time-header__title { color: #fff; font-size: 46px; font-family: 'Cardo', serif; font-weight: normal; margin: 0; }
.time-header__subtitle { color: rgba(255, 255, 255, 0.5); font-family: 'Pathway Gothic One', sans-serif; font-size: 16px; letter-spacing: 5px; margin: 10px 0 0 0; font-weight: normal; }

.time-timeline { 
    display: flex; 
    margin: 0 auto; 
    flex-wrap: wrap; 
    flex-direction: column; 
    max-width: 840px; /* Increased from 700px to 840px (20% larger) */
    position: relative; 
}
.time-timeline__content-title { font-weight: normal;text-shadow: 2px 2px 2px #000000; font-size: 35px; margin: -10px 0 0 0; transition: .4s; padding: 0 10px; box-sizing: border-box;  color: #fff; text-align:left; }
.time-timeline__content-desc { margin: 0; font-size: 14px; box-sizing: border-box; color: rgba(255, 255, 255, 0.7);  font-weight: normal; line-height: 25px; }

.time-timeline:before { position: absolute; left: 50%; width: 2px; height: 100%; margin-left: -1px; content: ""; background: rgba(255, 255, 255, 0.07); }

.time-timeline-item { 
    padding: 40px 0; 
    opacity: 1; 
    filter: blur(0px); 
    transition: .5s; 
    box-sizing: border-box; 
    width: calc(60% - 40px); /* Increased from 50% to 60% (20% larger) */
    display: flex; 
    position: relative; 
    transform: translateY(-80px); 
}

.time-timeline-item:before {
    content: attr(data-text) "\A" attr(data-desc);
    white-space: pre-line;
    letter-spacing: 1px;
    width: 100%;
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    font-size: 30px;
   font-family: 'BPG Nino Elite Exp Caps';
    border-left: 2px solid rgba(255, 255, 255, 0.5);
    top: 50%;
    transform: translateY(-50%);
    padding-left: 15px;
    opacity: 0;
    right: calc(-100% - 56px);
}

.time-timeline-item:nth-child(even) { align-self: flex-end; }
.time-timeline-item:nth-child(even):before { right: auto; text-align: right; left: calc(-100% - 56px); padding-left: 0; border-left: none; border-right: 2px solid rgba(255, 255, 255, 0.5); padding-right: 15px; }

.time-timeline-item--active { opacity: 1; transform: translateY(0); filter: blur(0px); }
.time-timeline-item--active:before { top: 50%; transition: .3s all .2s; opacity: 1; }
.time-timeline-item--active .time-timeline__content-title { margin: -50px 0 20px 0; }

.time-timeline__img {
    width: 100%;  
    height: 200px;
    object-fit: cover;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    cursor: pointer;
}

.time-video-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
  z-index:-2;
}

.time-video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.time-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgb(143 49 173 / 40%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.time-video-play-button i {
    color: white;
    font-size: 30px;
    margin-left: 5px;
}

.time-video-play-button:hover {
    background: rgb(143 49 173 / 80%);
    transform: translate(-50%, -50%) scale(1.1);
}

.time-timeline__content {
    background: rgba(0, 0, 0, 0.4); 
    padding: 20px; 
    border-radius: 8px; 
    backdrop-filter: blur(5px);
    position: relative;
	border: 1px solid #D0A153;
}

.time-demo-footer { padding: 60px 0; text-align: center; position: relative; z-index: 1; }
.time-demo-footer a { color: #999; display: inline-block; font-family: 'Cardo', serif; text-decoration: none; transition: color 0.3s; }
.time-demo-footer a:hover { color: #fff; }

/* Modal styles with time prefix */
.time-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    animation: time-fadeIn 0.3s;
}

@keyframes time-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Centered image modal content */
.time-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.time-video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 16/9;
}

/* Close button positioned near the content */
.time-close {
    position: absolute;
    top: 80px;
    right: 60px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.time-close:hover,
.time-close:focus {
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

.time-modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 80%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    font-family: 'Cardo', serif;
    font-size: 18px;
    margin: 0;
    border-radius: 5px;
}

/* Responsive styles with time prefix */
@media only screen and (max-width: 991px) {
    .time-timeline { max-width: 700px; } /* Reset to original size on smaller screens */
    .time-timeline-item { width: calc(50% - 40px); } /* Reset to original size on smaller screens */
}

@media only screen and (max-width: 767px) {
    .time-timeline:before { left: 40px !important; }
    .time-timeline-item { align-self: baseline !important; width: 100% !important; padding: 0 30px 150px 80px !important; }
    .time-timeline-item:before { left: 10px !important; padding: 0 !important; top: 50px !important; text-align: center !important; width: 60px; border: none !important; }
    .time-timeline-item:last-child { padding-bottom: 40px !important; }
    .time-timeline-item--active .time-timeline__content-title { margin: -50px 0 20px 0 !important; }
    
    /* Responsive adjustments for modal */
    .time-modal-content {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .time-video-modal-content {
        width: 95%;
    }
    
    .time-close {
        top: 90px;
        right: 60px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .time-modal-caption {
        bottom: 10px;
        font-size: 16px;
    }
}