#timeline-swiper,
.swiper-container,
.swiper-wrapper {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
}
.timeline-section-content {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}
main {
    background: #f5f5f5;
    padding-top: 0;
    @media (max-width: 768px) {
        padding-top: 0;
    }
    @media (min-width: 768px) and (max-width: 992px) {
        padding-top: 0;
    }
}
.main-container-historia {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Banner */
.banner-section {
    height: 100vh;
    margin-top: 0;
    padding-top: 95px;
    background-image: url("../../img/fotos/nossa-historia/nossa-historia-banner.webp");
    background-size: cover;
    background-position: 0 0;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 1;
    transition: opacity 0.8s ease;
    @media (max-width: 768px) {
        background-image: url("../../img/fotos/nossa-historia/img-timeline-mobile.jpg");
        padding-top: 95px;
    }
}
.banner-section.hide {
    opacity: 0;
    pointer-events: none;
}
.banner-container {
    text-align: center;
    position: absolute;
    bottom: 20px;
    z-index: 20;
}
.banner-text {
    padding: 20px 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2em;
    line-height: 1.2em;
    width: 75%;
}
.arrow-timeline {
    width: 25px;
    margin-top: 20px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Comum para todas as timelines */
.flex-col-start-md-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 20px;
    @media (max-width: 768px) {
        align-items: center;
        text-align: center;
    }
}
.flex-col-md-row {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 50px;
    @media (max-width: 768px) {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
}
.timeline-content {
    background-color: #ffffff;
    padding: 30px;
    text-align: center;
    @media (max-width: 768px) {
        padding-left: 60px;
    }
}
.img-container {
    position: relative;
    width: 100%;
    height: auto;
}
.timeline-highlight-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.timeline-img-year {
    position: absolute;
    z-index: 30;
    bottom: 10px;
    right: 30px;
    color: #fff;
    opacity: 0.9;
    font-size: 10em;
    line-height: 1em;
    font-weight: bold;
    @media (max-width: 768px) {
        font-size: 5em;
        right: 10px;
        bottom: 5px;
    }
}
.timeline-img-year-small {
    font-size: 3em;
    color: #464646;
    opacity: 0.5;
    vertical-align: super;
    position: relative;
    right: 0;
    bottom: 0;
    @media (max-width: 768px) {
        display: none;
    }
}
.shadow-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15%;
    background: #568776;
    opacity: 0.8;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    @media (max-width: 768px) {
        height: 25%;
    }
}
.timeline-section-title {
    text-align: start;
    /* margin-bottom: 20px; */
    font-size: 3em;
    color: #111;
    /* max-width: 60%;*/
    line-height: 1.1em;
    @media (max-width: 768px) {
        text-align: center;
        font-size: 2.5em;
        max-width: 100%;
    }
}

/* Pin icon positioning */
.timeline-pin-icon {
    position: absolute;
    left: -20px;
    top: 25%;
    height: 40px;
    display: block;
    @media (max-width: 768px) {
        display: none;
    }
}
.max-w-100 {
    max-width: 100%;
}

.timeline-subimage-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    margin: 20px 0;
    @media (max-width: 768px) {
        align-items: center;
        text-align: center;
    }
}

.text-md-justify {
    text-align: justify;
    word-spacing: -0.15em;
    line-height: 1.2em;
    @media (max-width: 768px) {
        text-align: center;
        word-spacing: normal;
    }
    @media (min-width: 1400px) {
        word-spacing: 0em;
        line-height: 1.4em;
    }
}
.horizontal-line {
    margin: 20px 0;
    border: 1px solid #b95946;
    opacity: 0.7;
    width: 100%;
}
.rect-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-sizing: border-box;
}
.rect-h-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-sizing: border-box;
    @media (max-width: 768px) {
        max-width: 250px;
    }
}

/* Timeline Swiper */
#timeline-swiper {
    position: relative;
    width: 100%;
    min-height: 100%;
    /* overflow: hidden; */
    background: #f5f5f5;
    /* display: flex;
    align-items: center;
    justify-content: center; */
}
.timeline-slide {
    max-width: 75vw;
    width: 75vw;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    @media (max-width: 768px) {
        max-width: 95vw;
        width: 95vw;
    }
}
.timeline-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.timeline-slide.to-left {
    transform: translateX(-100%);
}
.timeline-slide.to-right {
    transform: translateX(100%);
}
.timeline-nav-lateral {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 100;
    transform: translateY(-50%);
    pointer-events: none;
}
.timeline-nav-btn-lateral {
    position: absolute;
    top: 0;
    border: none;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 15px;
    backdrop-filter: blur(5px);
    @media (max-width: 768px) {
        background: #568776;
        color: white;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
}
.timeline-nav-btn-lateral:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
#timeline-prev-btn {
    left: 30px;
    @media (max-width: 768px) {
        left: 10px;
    }
}
#timeline-next-btn {
    right: 30px;
    @media (max-width: 768px) {
        right: 10px;
    }
}
.timeline-nav-btn-lateral:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

/* Slide 2019 */
.max-w-30 {
    max-width: 30%;
    @media (max-width: 768px) {
        max-width: 100%;
    }
}
.max-w-40 {
    max-width: 40%;
    @media (max-width: 768px) {
        max-width: 100%;
    }
}
.max-w-50 {
    max-width: 50%;
    @media (max-width: 768px) {
        max-width: 100%;
    }
}
.max-w-60 {
    max-width: 60%;
    @media (max-width: 768px) {
        max-width: 100%;
    }
}

.proj-list {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    padding-left: 20px;
    margin-top: 10px;
    @media (max-width: 768px) {
        align-items: center;
        text-align: center;
        padding-left: 0;
    }
}

.icon-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    position: absolute;
    right: 0px;
    @media (max-width: 1024px) {
        display: none;
    }
    @media (min-width: 1350px) and (max-width: 1400px) {
        right: -50px;
    }
}
.foguete {
    top: -10px;
    right: 50px;
}

.hidden-md-block {
    @media (max-width: 768px) {
        display: none !important;
    }
}
.block-md-hidden {
    @media (min-width: 769px) {
        display: none !important;
    }
}
