/* ==========================================================================
   MESSAGE PAGES — Principal, Chairman, Founder Director, Patron
   Clean layout: image left, content right (reference: Principal's Message)
   ========================================================================== */

.msg-page {
    padding: 60px 0 100px;
    background: #fff;
}

.msg-page__breadcrumb {
    display: flex;
    gap: 8px;
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 500;
    color: #999;
    margin-bottom: 24px;
}

.msg-page__breadcrumb a {
    color: var(--theme-color);
    text-decoration: none;
}

.msg-page__breadcrumb a:hover {
    text-decoration: underline;
}

.msg-page__breadcrumb span {
    color: #ccc;
    margin: 0 4px;
}

.msg-page__title {
    font-family: var(--title-font);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 48px;
    line-height: 1.2;
}

.msg-page__grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 56px;
    align-items: start;
}

.msg-page__image-wrap {
    position: relative;
}

.msg-page__image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.msg-page__caption {
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(152, 13, 26, 0.04), rgba(176, 152, 69, 0.06));
    border-left: 4px solid var(--theme-color);
    border-radius: 0 12px 12px 0;
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    color: #333;
}

.msg-page__content h2 {
    font-family: var(--title-font);
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 28px;
}

.msg-page__content .msg-page__greeting {
    font-family: var(--body-font);
    font-size: 17px;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 20px;
}

.msg-page__content p {
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.9;
    color: #444;
    margin-bottom: 20px;
}

/* Tablet & desktop: even rag for long-form message body (mobile stays default left-aligned) */
@media (min-width: 768px) {
    .msg-page__content {
        overflow-wrap: break-word;
    }

    .msg-page__content p:not(.msg-page__greeting) {
        text-align: justify;
        text-justify: inter-word;
    }

    .msg-page__caption {
        text-align: justify;
        text-justify: inter-word;
    }
}

@supports (text-wrap: pretty) {
    @media (min-width: 768px) {
        .msg-page__content p:not(.msg-page__greeting) {
            text-wrap: pretty;
        }
    }
}

.msg-page__signature {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.msg-page__signature strong {
    font-family: var(--title-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--title-color);
    display: block;
    margin-bottom: 4px;
}

.msg-page__signature span {
    font-family: var(--body-font);
    font-size: 15px;
    font-weight: 500;
    color: var(--theme-color);
}

@media (max-width: 991px) {
    .msg-page__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .msg-page__image-wrap {
        max-width: 400px;
        margin: 0 auto;
    }

    .msg-page__image {
        aspect-ratio: 4/5;
    }
}

@media (max-width: 575px) {
    .msg-page {
        padding: 40px 0 70px;
    }

    .msg-page__title {
        margin-bottom: 32px;
    }

    .msg-page__caption {
        font-size: 13px;
        padding: 14px 16px;
    }
}
