.carousel-item img.carousel-image {
    object-fit: fill;
    height: 62.5vh;
    width: 100%;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 32%;
    transform: translate(-50%, -50%);
    text-align: left;
    max-width: 350px;
    width: 100%;
    z-index: 2;
}

.carousel-caption h5 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
}

.carousel-caption p {
    font-size: 1.5rem;
    color: #f1f1f1;
}

/* Chairman's Message Styling */
.chairman-message {
    position: relative;
    /* top: 62px; */
    right: 15px;
    background-color: #f4f4f4;
    padding: 20px 20px 15px;
    border: 1px solid #ccc;
    border-radius: 8px 8px 0px 0px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 102%;
    width: 102%;
    height: 408px;
    z-index: 2;
}

.chairman-message-header {
    background-color: #4d4d4d;
    padding: 1px;
    text-align: center;
    font-weight: bold;
    margin: -20px -21px 15px;
    border-radius: 8px 8px 0px 0px;
}

.chairman-message-body {
    gap: 10px;
    background-color: #d3d3d3;
    padding: 10px;
    margin: 0px -40px 0px 0px;
    position: relative;
    left: -20px;
    top: -10px;
}

.chairman-message-body img {
    width: 85px;
    height: 85px;
    border-radius: 0;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.chairman-message-title {
    color: white;
    font-size: 18px;
    position: relative;
    top: 2px;
}

.chairman-message-body h2 {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
    color: #222;
}

.chairman-message-body p {
    font-size: 13px;
    margin: 0;
    color: #555;
}

.chairman-message-content p {
    font-size: 14px;
    color: black;
    margin-top: 10px;
    line-height: 1.4;
}

.message-button-wrapper {
    display: flex;
    justify-content: flex-end;
    position: relative;
    top: -12px;
}

.message-button {
    display: inline-block;
    padding: 0px 13px;
    border: 2px solid #11a148;
    border-radius: 25px;
    color: black;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    font-size: 14px;
}

.message-button:hover {
    background-color: #11a148;
    color: white;
}


@media (max-width: 768px) {

    .ps-0 {
        padding-right: 0px !important;
    }

    .carousel-item img.carousel-image {
        height: 40vh;
    }

    .carousel-inner {
        width: 100%;
    }

    .carousel-caption {
        left: 50%;
        top: 45%;
        text-align: center;
        max-width: 80%;
    }

    .carousel-caption h5 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 1.2rem;
    }

    .carousel-control-next,
    .carousel-control-prev {
        right: 10px !important;
        width: 8%;
        /* top: 45%; */
    }

    .carousel-indicators {
        margin-right: 0;
        justify-content: center;
    }

    .chairman-message {
        position: relative;
        top: auto;
        right: 10px;
        left: auto;
        margin: 20px auto;
        max-width: 95%;
        width: 100%;
        height: auto;
        z-index: 1;
    }

    .chairman-message-body {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
        left: 0;
        top: 0;
        padding: 10px;
    }

    .chairman-message-body img {
        margin-bottom: 10px;
    }
}

@media screen and (min-width: 1400px) {
    .chairman-message {
        position: relative;
        height: 100%;
    }
}