/* Dignitaries Page Specific CSS */

:root {
    --primary-blue: #0a3d62;
    --accent-gold: #f39c12;
    --bg-light: #f1f4f8;
    --white: #ffffff;
    --text-dark: #2d3436;
    --text-muted: #636e72;
}

/* --- Page Header Section --- */
.page-header {
    background: linear-gradient(rgba(10, 61, 98, 0.9), rgba(10, 61, 98, 0.9)), url('../img/slider3.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 5% 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header .underline {
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- Main Layout Container --- */
.container {
    max-width: 1100px;
    margin: -40px auto 50px; /* Pulls content over header */
    padding: 0 20px;
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 10;
}

/* --- Left Side: Names Sidebar --- */
.names-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dignitary-btn {
    background: var(--white);
    border: none;
    padding: 15px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid transparent;
    width: 100%;
}

.dignitary-btn img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.dignitary-btn .info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.dignitary-btn .info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dignitary-btn:hover {
    background: #f0f7ff;
    transform: translateX(5px);
}

.dignitary-btn.active {
    border-left-color: var(--accent-gold);
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateX(10px);
}

/* --- Right Side: Message Content --- */
.message-content {
    flex: 2;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.content-panel {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.content-panel.active {
    display: block;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.large-photo {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
    border: 4px solid var(--bg-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.header-text h2 {
    margin: 0;
    color: var(--primary-blue);
    font-size: 1.6rem;
}

.header-text p {
    margin: 5px 0 0;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.quote-icon {
    color: rgba(10, 61, 98, 0.05);
    font-size: 6rem;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 0;
}

.message-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    position: relative;
    z-index: 1;
    font-style: italic;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 850px) {
    .container {
        flex-direction: column;
        margin-top: -30px;
    }
    
    .names-sidebar {
        order: 2; /* Sidebar goes down on mobile */
    }
    
    .message-content {
        order: 1; /* Message shows first on mobile */
        padding: 30px 20px;
    }

    .message-header {
        flex-direction: column;
        text-align: center;
    }

    .header-text h2 {
        font-size: 1.4rem;
    }

    .large-photo {
        width: 100px;
        height: 100px;
    }

    .dignitary-btn.active {
        transform: translateX(0);
        border-left: 5px solid var(--accent-gold);
    }
}