:root {
    --blue: #2d2d72;
    --yellow: #f5bf23;
    --black: #111;
    --white: #fff;
    --light-color: #585757;
    --light-bg: #eee;
    --box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
    --border: .1rem solid rgba(0,0,0,.3);
}

#ceo-message {
    padding: 50px 20px;
    text-align: center;
    background-color: #f7f7f7;
}

.ceo-container {
    max-width: 900px;
    margin: 0 auto;
}

.ceo-content {
    display: flex;
    flex-wrap: wrap; /* Ensure the content wraps on smaller screens */
    align-items: flex-start; /* Aligns text to the top of the image */
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.ceo-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 10px; /* Rounded corners for the image */
    margin-bottom: 20px; /* Add space below image on mobile */
}

.ceo-message {
    max-width: 600px;
    text-align: left;
    margin-top: 20px; /* Add margin to top to separate from image */
}

.message_from_ceo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--blue);
    margin-bottom: 10px;
}

.ceo-role {
    font-size: 18px;
    color: var(--blue);
    margin-top: 5px;
}

.ceo-bio {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-top: 20px;
}

.ceo-signature {
    margin-top: 30px;
    text-align: center;
}

.signature-image {
    width: 150px;
    height: auto;
}

.ceo-social p {
    font-size: 16px;
    margin-top: 20px;
    font-weight: 600;
    color: var(--blue);
}

.ceo-social a {
    color: var(--blue);
    text-decoration: none;
}

/* Mobile-first approach: Image and text are stacked on smaller screens */
@media (max-width: 768px) {
    .ceo-content {
        flex-direction: column; /* Stack image and text on top of each other */
        align-items: center; /* Center the content */
        text-align: center;
    }

    .ceo-image img {
        max-width: 300px; /* Adjust image size on mobile */
    }

    .ceo-message {
        max-width: 100%; /* Allow message to take full width on mobile */
        padding: 0 15px; /* Add some padding for better spacing */
    }

    .signature-image {
        width: 120px; /* Adjust signature image size for mobile */
    }
}

/* Desktop view - larger image size */
@media (min-width: 768px) {
    .ceo-image img {
        max-width: 350px; /* Increase image size for desktop */
    }
}