/* Banner */
.banner {
    position: relative;
    width: 100%;
    height: 60vh;
    background: url('../resources/director/directorbanner.png') no-repeat center center/cover;
    color: white;
}

.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.banner-text {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    background-color: lightblue;
    color: black;
    padding: 5px;
    font-size: 2rem;
    font-weight: bold;
    width: 100%;
    text-align: center;
}

/* Director Section */
.director {
    width: 90%;
    /* max-width: 1100px; */
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    margin: auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Directors Heading */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #222;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    display: block;
    width: 60%;
    height: 5px;
    background-color: #2f6fed;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

/* Content Box */
.director-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d2e4fc;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);

}

.director-content.reverse {
    flex-direction: row-reverse;
    margin-top: 30px;
}

/* Image Box */
.image-container {
    background-color: #fff;
    position: relative;
    /* background-size: cover; */
    width: 100%;
    max-width: 600px;

    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: 20px;
}

.image-container img {
    width: 75%;
    border-radius: 10px;

}

/* Image Overlay - Moved Slightly Lower & Right */
.image-overlay {
    position: absolute;
    bottom: -30px;
    right: -30px;
    /* background: rgba(0, 0, 0, 0.85); */
    color: white;
    padding: 15px 20px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 8px;
    /* max-width: 80%; */
    text-align: left;
    background-image: linear-gradient(to right, #2661a9, #067c3d);
}

.image-overlay p {
    margin: 0;
    line-height: 1.4;
}

/* Text Content */
.text-content {
    width: 50%;
    text-align: justify;
    hyphens: auto;
    margin-left: 35px;
    /* padding: 50px; */
}

.text-content.reverse {
    margin-right: 40px;
}

.tagline {
    font-size: 0.9rem;
    color: #555;
    text-transform: uppercase;
}

.title {
    font-size: 2rem;
    font-weight: bold;
    color: #222;
}

.description {
    font-size: 1rem;
    color: #555;
    margin: 15px 0;
}

.description.reverse {
    margin-right: 20px;
}

.image-source {
    font-size: 0.9rem;
    color: #888;
}

/* Button */
.btn {
    background-color: #2f6fed;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #1f4eb2;
}


@media (max-width: 768px) {
    .banner {
        height: 25vh;
    }

    .image-container img {
        width: 95%;
        border-radius: 10px;
    }

    .director-content,
    .director-content.reverse {
        flex-direction: column;
        text-align: center;
    }

    .image-container {
        width: 100%;
        height: 100%;
    }

    .image-overlay {
        left: 30%;
        transform: translateX(-50%);
        text-align: left;
        font-size: 1rem;
        bottom: -20px;
        background-image: linear-gradient(to right, #2661a9, #067c3d);
        right: unset;
        /* width: 80%; */
        padding: 10px 15px;
    }

    .image-overlay.reverse {
        left: 15%;
    }


    .text-content {
        margin-top: 50px;
        width: 100%;
        text-align: left;
        margin-left: 0px;
    }

    .text-content.reverse {
        margin-right: 0px;
    }

    .description.reverse {
        margin-right: 0;
    }

}