#page-intro {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.7;
    padding: 0px 0;
    background-color: #1f1f1f;
    text-align: center;
    padding-bottom: 70px;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

#page-intro .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#page-intro .background-image[src=""] {
    display: none;
}

#page-intro .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 2;
}

#page-intro h2 {
    color: #ffffff;
    padding-top: 20vh;
    width: 65%;
    margin-left: 17.5%;
    text-align: left;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.7);
}

#page-intro p {
    margin-bottom: 15px;
    color: #ffffff;
    width: 50%;
    margin-left: 17.5%;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.7);
}

#page-intro .image-container {
    position: relative;
    z-index: 3;
    height: 100%;
}

#page-intro .content {
    position: relative;
    z-index: 4;
}

/* Tablet styles */
@media (max-width: 1080px) {
    #page-intro {
        min-height: 60vh;
        height: auto;
    }
}

/* Tablet styles */
@media (max-width: 768px) {
    #page-intro {
        min-height: 60vh;
        padding-bottom: 50px;
        height: auto;
    }

    #page-intro h2 {
        padding-top: 15vh;
        width: 80%;
        margin-left: 10%;
        font-size: 1.8rem;
    }

    #page-intro p {
        width: 75%;
        margin-left: 10%;
        font-size: 1rem;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    #page-intro {
        min-height: 50vh;
        padding-bottom: 30px;
    }

    #page-intro h2 {
        padding-top: 12vh;
        width: 90%;
        margin-left: 5%;
        font-size: 1.5rem;
        text-align: center;
    }

    #page-intro p {
        width: 90%;
        margin-left: 5%;
        font-size: 0.9rem;
        text-align: center;
    }

    #page-intro .image-overlay {
        background: linear-gradient(
            to right,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
}

/* Landscape mobile devices - optimize for limited vertical space */
@media screen and (orientation: landscape) and (max-height: 800px) {
    #page-intro {
        padding-bottom: 20px;
        height: auto;
    }

    #page-intro h2 {
        padding-top: 6vh;
        width: 85% ;
        margin-left: 7.5%;
        font-size: 4rem;
        text-align: center;
        margin-bottom: 1vh;
    }

    #page-intro p {
        width: 80%;
        margin-left: 10%;
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Landscape mobile devices - optimize for limited vertical space */
@media screen and (orientation: landscape) and (max-height: 600px) {

    #page-intro h2 {
        font-size: 3rem;
    }

    #page-intro p {
        font-size: 1.2rem;
    }
}

/* Landscape mobile devices - optimize for limited vertical space */
@media screen and (orientation: landscape) and (max-height: 450px) {

    #page-intro h2 {
        font-size: 1.5rem;
    }

    #page-intro p {
        font-size: 0.85rem;
    }
}
