html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

@import url("https://fonts.googleapis.com/css?family=Cardo|Pathway+Gothic+One");

.timeline {
    display: flex;
    margin: 0 auto;
    flex-wrap: wrap;
    flex-direction: column;
    max-width: 700px;
    position: relative;
}

.timeline__content-title {
    font-weight: normal;
    font-size: 66px;
    margin: -10px 0 0 0;
    transition: 0.4s;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: "Pathway Gothic One", sans-serif;
    color: #fff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; /* Creates a black border effect around the text */
}


.timeline__content-desc {
    margin: 0;
    font-size: 20px;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 0.7);
    font-family: Cardo;
    font-weight: normal;
    line-height: 25px;
}

.timeline:before {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    content: "";
    background: rgba(255, 255, 255, 0.07);
}

@media only screen and (max-width: 767px) {
    .timeline:before {
        left: 40px;
    }
}

.timeline-item {
    padding: 40px 0;
    opacity: 0.3;
    filter: blur(2px);
    transition: opacity 0.5s, filter 0.5s; /* Removed transform from the transition */
    box-sizing: border-box;
    width: calc(50% - 40px);
    display: flex;
    position: relative;
    /* Removed transform property */
}

    .timeline-item:before {
        content: attr(data-text);
        letter-spacing: 3px;
        width: 100%;
        position: absolute;
        color: rgba(0, 0, 0, 0.5);
        font-size: 13px;
        font-family: "Pathway Gothic One", sans-serif;
        border-left: 2px solid rgba(255, 255, 255, 0.5);
        top: 50%; /* Adjusted to center vertically */
        margin-top: -5px;
        padding-left: 15px;
        opacity: 1; /* Set opacity to 1 to always show text */
        right: calc(-100% - 56px);
        transition: none; /* Removed all transitions */
    }

    .timeline-item:nth-child(even) {
        align-self: flex-end;
    }

        .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;
        }

.timeline-item--active {
    opacity: 1;
    filter: blur(0px);
    /* Removed transformation for active class */
}

    .timeline-item--active:before {
        opacity: 1; /* Ensure the text is always fully visible when active */
    }


    .timeline-item--active .timeline__content-title {
        margin: -50px 0 20px 0;
    }

@media only screen and (max-width: 767px) {
    .timeline-item {
        align-self: baseline !important;
        width: 100%;
        padding: 0 30px 150px 80px;
    }

        .timeline-item:before {
            left: 10px !important;
            padding: 0 !important;
            top: 50px;
            text-align: center !important;
            width: 60px;
            border: none !important;
        }

        .timeline-item:last-child {
            padding-bottom: 40px;
        }
}

.timeline__img {
    max-width: 100%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}

.timeline-container {
    width: 100%;
    position: relative;
    padding: 80px 0;
    transition: 0.3s ease 0s;
    background-attachment: fixed;
    background-size: cover;
}

    .timeline-container:before {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: #FFDEE1;
        content: "";
    }

.timeline-header {
    width: 100%;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.timeline-header__title {
    color: #fff;
    font-size: 46px;
    font-family: Cardo;
    font-weight: normal;
    margin: 0;
}

.timeline-header__subtitle {
    color: rgba(0, 0, 0, 0.5);
    font-family: "Pathway Gothic One", sans-serif;
    font-size: 16px;
    letter-spacing: 5px;
    margin: 10px 0 0 0;
    font-weight: normal;
}

.demo-footer {
    padding: 60px 0;
    text-align: center;
}

    .demo-footer a {
        color: #999;
        display: inline-block;
        font-family: Cardo;
    }


.faq-container {
    width: 100%;
    padding: 40px 20px;
    background-color: #FFDEE1; /* Light grey background for better readability */
    color: #000; /* Darker text for contrast */
    font-family: Cardo, serif;
}

.faq-header h2 {
    text-align: center;
    color: #000; /* Pastel beige-pink for the header */
    margin-bottom: 30px;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item h3 {
    font-family: "Pathway Gothic One", sans-serif;
    color: #000; /* Pastel beige-pink for questions */
    font-size: 22px; /* Larger font for headings */
}

.faq-item p {
    font-size: 18px; /* Larger text for readability */
    line-height: 1.6; /* More space between lines */
    color: #666; /* Lighter for easy reading */
    padding: 10px;
    background-color: white; /* White background to pop against the light grey */
    border-left: 4px solid #f7d6d5; /* Pastel beige-pink left border to tie into the theme */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

@media only screen and (max-width: 768px) {
    .faq-content {
        flex-direction: column;
    }

    .faq-item {
        padding: 20px;
    }
}
