/* Message/index.php (moved from inline <style>) */

        /* =========================================================
           This page carries its own layout CSS so it does not depend
           on which Tailwind classes happen to be in output.css.
           ========================================================= */

        /* the "collapse" arrow only appears once a message is open */
        .msg-more .icon-up { display: none; }
        .msg-more.is-open .icon-down { display: none; }
        .msg-more.is-open .icon-up { display: inline-block; }

        :root {
            --msg-navy:  #233862;
            --msg-gold:  #f39c12;
            --msg-body:  #334155;
            --msg-muted: #64748b;
            --msg-line:  #e2e8f0;
            --msg-bg:    #f8fafc;
        }

        body.msg-page {
            background: var(--msg-bg);
            color: var(--msg-body);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            -webkit-font-smoothing: antialiased;
            margin: 0;
        }

        .msg-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

        /* ---------- HERO ---------- */
        .msg-hero { background: #fff; border-bottom: 1px solid var(--msg-line); padding: 72px 0 56px; }
        .msg-hero-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }

        .msg-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
        .msg-eyebrow span { color: var(--msg-gold); font-weight: 700; font-size: 0.78rem; letter-spacing: .18em; text-transform: uppercase; }
        .msg-eyebrow i { display: block; width: 40px; height: 2px; background: var(--msg-gold); }

        .msg-hero h1 {
            font-size: clamp(2rem, 4.2vw, 3.3rem);
            line-height: 1.15;
            font-weight: 700;
            color: var(--msg-navy);
            letter-spacing: -0.02em;
            margin: 0;
            max-width: 18ch;
        }
        .msg-hero-note {
            flex: 0 1 380px;
            font-size: 1.02rem;
            color: var(--msg-muted);
            font-weight: 500;
            line-height: 1.7;
            margin: 0;
            padding-left: 24px;
            border-left: 2px solid var(--msg-line);
        }

        /* ---------- CARDS ---------- */
        .msg-list { padding: 64px 0 88px; display: flex; flex-direction: column; gap: 40px; }

        .msg-card {
            background: #fff;
            border: 1px solid #eef2f7;
            border-radius: 22px;
            padding: 36px 40px;
            box-shadow: 0 4px 20px -8px rgba(15, 23, 42, .06);
            transition: box-shadow .3s ease, border-color .3s ease;
            display: flex;
            align-items: flex-start;
            gap: 44px;
        }
        .msg-card:hover { box-shadow: 0 14px 34px -12px rgba(15, 23, 42, .14); border-color: var(--msg-line); }

        /* LEFT : photo/logo + name */
        .msg-person { flex: 0 0 210px; width: 210px; }

        /* For People (Cropped portrait) */
        .msg-photo {
            width: 160px;
            height: 196px;
            object-fit: cover;
            object-position: top center;
            border-radius: 12px;
            border: 1px solid var(--msg-line);
            box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .25);
            display: block;
            margin-bottom: 20px;
            background: #f1f5f9;
        }

        /* For Organizations (Contained Logo) */
        .msg-logo {
            width: 160px;
            height: 160px; /* Square layout for logos */
            object-fit: contain; /* Prevents logo from being cropped */
            object-position: center;
            border-radius: 12px;
            border: 1px solid var(--msg-line);
            box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .15);
            display: block;
            margin-bottom: 20px;
            background: #ffffff;
            padding: 16px; /* Breathing room around the logo */
        }

        .msg-name {
            font-size: 1.32rem;
            font-weight: 700;
            color: var(--msg-navy);
            letter-spacing: -0.01em;
            line-height: 1.3;
            margin: 0 0 12px;
        }
        .msg-rule { width: 44px; height: 3px; background: var(--msg-gold); border-radius: 2px; margin-bottom: 14px; }
        .msg-role { font-size: 0.86rem; font-weight: 500; color: var(--msg-muted); line-height: 1.55; margin: 0; }

        /* RIGHT : the message */
        .msg-body { flex: 1 1 auto; min-width: 0; border-left: 1px solid #f1f5f9; padding-left: 40px; position: relative; }

        .msg-quote { position: relative; }
        .msg-quote::before {
            content: '\201C';
            font-family: Georgia, "Times New Roman", serif;
            font-size: 4.5rem;
            line-height: 1;
            color: var(--msg-gold);
            opacity: .18;
            position: absolute;
            left: -14px;
            top: -26px;
            pointer-events: none;
        }

        .msg-text {
            font-size: 1rem;
            line-height: 1.85;
            color: #3f4c5f;
            font-weight: 400;
            text-align: left;
            overflow-wrap: break-word;
            position: relative;
            overflow: hidden;
            max-height: 11.5rem;
            transition: max-height .45s ease;
        }
        .msg-text.is-open { max-height: 400rem; }
        .msg-text.is-open .msg-fade { opacity: 0; }

        .msg-fade {
            position: absolute;
            left: 0; right: 0; bottom: 0;
            height: 72px;
            background: linear-gradient(to top, #fff 18%, rgba(255,255,255,0));
            pointer-events: none;
            transition: opacity .3s ease;
        }

        .msg-more {
            margin-top: 22px;
            display: inline-flex;
            align-items: center;
            gap: 9px;
            padding: 11px 24px;
            background: #f1f5f9;
            color: #475569;
            border: none;
            border-radius: 999px;
            font-size: 0.88rem;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: background .25s ease, color .25s ease;
        }
        .msg-more:hover { background: var(--msg-gold); color: #fff; }
        .msg-more i { font-size: 0.75rem; }

        /* ---------- SCROLL ANIMATION ---------- */
        .animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity .7s ease-out, transform .7s ease-out; }
        .animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

        /* ---------- RESPONSIVE ---------- */
        @media (max-width: 900px) {
            .msg-card { flex-direction: column; gap: 28px; padding: 28px; }
            .msg-person { flex: none; width: 100%; text-align: center; }
            .msg-photo, .msg-logo { margin-left: auto; margin-right: auto; }
            .msg-rule { margin-left: auto; margin-right: auto; }
            .msg-body { border-left: none; padding-left: 0; padding-top: 24px; border-top: 1px solid #f1f5f9; }
            .msg-quote::before { left: -6px; top: -20px; font-size: 3.5rem; }

            .msg-hero { padding: 56px 0 40px; }
            .msg-hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
            .msg-hero-note { flex: none; padding-left: 0; border-left: none; }
            .msg-hero h1 { max-width: none; }
            .msg-list { padding: 44px 0 64px; gap: 28px; }
        }

        @media (max-width: 520px) {
            .msg-wrap { padding: 0 16px; }
            .msg-card { padding: 22px 18px; border-radius: 16px; }
            .msg-photo { width: 130px; height: 160px; }
            .msg-logo { width: 130px; height: 130px; padding: 12px; }
            .msg-text { font-size: 0.95rem; line-height: 1.8; max-height: 13rem; }
        }
