/* journey-messages.css - Premium Editorial Styles for Messages Page */

.scroll-offset {
    scroll-margin-top: 120px;
}

/* Page Background and Layout Styling */
.jm-container {
    background-color: #fafbfc;
}

/* Premium Leader Card styling */
.jm-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(30, 58, 138, 0.06);
    box-shadow: 0 10px 35px rgba(30, 58, 138, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.jm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.08);
    border-color: rgba(246, 178, 26, 0.3);
}

/* Portrait Wrapper with Gold Offset Backing Card */
.jm-portrait-wrapper {
    position: relative;
    padding: 12px;
    display: inline-block;
    z-index: 1;
}

.jm-portrait-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 4px;
    bottom: 4px;
    background: linear-gradient(135deg, #f6b21a, #d97706);
    border-radius: 20px;
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.jm-card:hover .jm-portrait-wrapper::before {
    transform: rotate(-4deg) scale(1.03);
}

/* Leader Portrait Frame and Image */
.jm-portrait-frame {
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background: #ffffff;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.jm-card:hover .jm-portrait-frame {
    transform: scale(1.015);
}

.jm-portrait-img {
    width: 100%;
    max-width: 270px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Content Area styling */
.jm-content {
    padding: 10px 20px;
}

/* Stylized quote marks */
.jm-quote-mark {
    font-size: 5rem;
    color: rgba(30, 58, 138, 0.06);
    font-family: "Georgia", serif;
    line-height: 0;
    margin-top: 15px;
    margin-bottom: -5px;
    display: block;
    user-select: none;
}

/* Leader Name */
.jm-name {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #1c2f54;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

/* Leader Role */
.jm-role {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #d97706;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid rgba(246, 178, 26, 0.2);
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 24px;
}

/* Message Text styling */
.jm-text {
    font-family: 'Inter', sans-serif;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.95;
    text-align: justify;
    white-space: pre-line;
    margin-bottom: 0;
}

.jm-text::first-line {
    font-weight: 600;
    color: #0f172a;
}

/* Spacing layout for consecutive messages */
.jm-spacer {
    height: 60px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .jm-card {
        padding: 30px 20px;
    }
    .jm-content {
        padding: 15px 0 0;
    }
    .jm-portrait-img {
        max-width: 240px;
        height: 300px;
        margin: 0 auto;
    }
    .jm-portrait-wrapper {
        margin-bottom: 10px;
    }
    .jm-name {
        font-size: 1.6rem;
    }
    .jm-text {
        font-size: 1rem;
        line-height: 1.85;
    }
    .jm-spacer {
        height: 40px;
    }
}

/* Accent Color Variations */
/* 1. Primary (Blue) */
.jm-card.jm-accent-primary {
    border-left: 6px solid #1e3a8a;
}
.jm-card.jm-accent-primary .jm-portrait-wrapper::before {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
}
.jm-card.jm-accent-primary .jm-role {
    color: #1e3a8a;
    border-bottom-color: rgba(30, 58, 138, 0.2);
}

/* 2. Success (Green) */
.jm-card.jm-accent-success {
    border-left: 6px solid #059669;
}
.jm-card.jm-accent-success .jm-portrait-wrapper::before {
    background: linear-gradient(135deg, #10b981, #059669);
}
.jm-card.jm-accent-success .jm-role {
    color: #059669;
    border-bottom-color: rgba(5, 150, 105, 0.2);
}

/* 3. Warning (Gold/Amber) */
.jm-card.jm-accent-warning {
    border-left: 6px solid #d97706;
}
.jm-card.jm-accent-warning .jm-portrait-wrapper::before {
    background: linear-gradient(135deg, #f6b21a, #d97706);
}
.jm-card.jm-accent-warning .jm-role {
    color: #d97706;
    border-bottom-color: rgba(246, 178, 26, 0.2);
}
