.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
/* wrapper controls width */
.wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;

    flex: 1;
    display: flex;
    flex-direction: column;

    background: #ffffff;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
}

/* content pushes footer down */

.site-main {
    flex: 1;
}

/* inner content */

.container {
    width: 85%;
    margin: 0 auto;
    padding: 40px 0;
    text-align: justify;
}

img, video, canvas, svg {
    max-width: 100%;
    display: block;
}


/* =====================================
   FLEX RATIO 2 COLUMNS
===================================== */
/* ==============================
   SPLIT LAYOUT (REUSABLE)
============================== */

.layout-split {
    display: flex;
    position: relative;

    border: 1px solid #d4af37;
    border-radius: 6px;
    overflow: visible;

    background: linear-gradient(to bottom, #fdf6e3 0%, #f5ebd3 100%);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Columns */
.layout-main {
    padding: 30px;
}

.layout-side {
    padding: 25px;
    background: #f8f4e6;
}

/* ==============================
   WIDTH OPTIONS
============================== */

/* 65 / 35 */
.split-65 .layout-main { flex: 0 0 65%; }
.split-65 .layout-side { flex: 0 0 35%; }

/* 70 / 30 */
.split-70 .layout-main { flex: 0 0 70%; }
.split-70 .layout-side { flex: 0 0 30%; }

/* 75 / 25 */
.split-75 .layout-main { flex: 0 0 75%; }
.split-75 .layout-side { flex: 0 0 25%; }

/* ==============================
   GOLD DIVIDER (CENTER LINE)
============================== */

.layout-split::after {
    content: "";
    position: absolute;

    top: 10%;
    bottom: 10%;
    width: 2px;

    left: 70%; /* default fallback */

    background: linear-gradient(
        to bottom,
        transparent,
        #c9a227,
        #e0c36f,
        #c9a227,
        transparent
    );
}

/* Adjust divider based on ratio */
.split-65.layout-split::after { left: 65%; }
.split-70.layout-split::after { left: 70%; }
.split-75.layout-split::after { left: 75%; }

/* ==============================
   CONTENT SECTIONS
============================== */

.content-section {
    margin-bottom: 30px;
}

/* Section headings */
.content-section h1,
.content-section .section-divider {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.content-section h2 {
    font-family: "Cinzel", serif;
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: #1f2a44;
}

.content-section h3 {
    margin-top: 20px;
    color: #c9a227;
}

/* Gold divider under headings */
.section-divider {
    width: 120px;
    height: 2px;
    margin: 10px auto 12px auto;  /* THIS is the fix */

    background: linear-gradient(
        to right,
        transparent,
        #c9a227,
        #e0c36f,
        #c9a227,
        transparent
    );
}

/* Paragraph spacing */
.content-section p {
    margin-top: 0;
    line-height: 1.6;
}

.content-section ul {
    margin-top: 10px;
    padding-left: 20px;
}

/* ==============================
PANEL STYLING - check pages for deletion
============================== */
.panel {
    background: #f8f4e6;
    border: 1px solid #d4af37;
    padding: 20px;
    margin-bottom: 20px;
}

/* ==============================
   PROFILE PAGE (FULLY ISOLATED)
============================== */

/* PANEL */
.profile-panel {
    gap: 40px
    padding: 25px;
}

/* LAYOUT SPLIT (40 / 60) */
.profile-split {
    display: flex;
    position: relative;
    margin-top: 15px;
}

.profile-split::before {
    content: "";
    position: absolute;

    left: 40%;
    top: 15%;
    height: 70%;
    width: 2px;

    background: linear-gradient(
        to bottom,
        transparent,
        #c9a227,
        #e0c36f,
        #c9a227,
        transparent
    );
}

.profile-info {
    flex: 4;
    padding-right: 30px;
}

.profile-edit {
    flex: 6;
    min-width: 0;
    padding-left: 30px;
}

.profile-error {
    color: #b22222;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

/* DIVIDER */
.profile-split::before {
    content: "";
    position: absolute;

    left: 40%;
    top: 15%;
    height: 70%;
    width: 2px;

    background: linear-gradient(
        to bottom,
        transparent,
        #c9a227,
        #e0c36f,
        #c9a227,
        transparent
    );
}

/* ==============================
   FORM (PROFILE ONLY)
============================== */

.profile-form {
    margin-top: 10px;
    max-width: 420px;
    margin: 0 auto;
    transform: translateX(10px); /* subtle right shift */
}

/* GRID ALIGNMENT */
.profile-form-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    column-gap: 15px;
    align-items: center;
    margin-bottom: 12px;
}

/* LABELS */
.profile-form-row label {
    font-weight: 600;
    color: #3b2f1f;
}

/* INPUTS */
.profile-form-row input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #bfa66f;
    border-radius: 6px;
    background-color: #fff8e7;
    font-family: 'Garamond', serif;
}

/* INPUT FOCUS */
.profile-form-row input:focus {
    outline: none;
    border-color: #c9a227;
    box-shadow: 0 0 0 2px rgba(201,162,39,0.35);
    background-color: #fffdf4;
}

/* BUTTON */
.profile-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.profile-btn {
    min-width: 180px;
    padding: 10px 20px;

    background: #d4af37;
    color: #3b2f1f;

    border: none;
    border-radius: 8px;

    font-size: 15px;
    font-weight: bold;
    cursor: pointer;

    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: #c2992e;
    transform: translateY(-2px);
}

/* ==============================
   PROFILE ALERTS
============================== */

.profile-alert {
    padding: 10px 14px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 14px;
}

/* error */
.profile-error-msg {
    background: #fdecea;
    color: #b22222;
    border: 1px solid #e0b4b4;
}

/* success */
.profile-success-msg {
    background: #edf7ed;
    color: #2e7d32;
    border: 1px solid #b7dfb7;
}

/* ==============================
   LOGOUT PAGE
============================== */

.logout-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

/* PANEL */
.logout-panel {
    position: relative;
    max-width: 500px;
    width: 100%;

    padding: 40px;

    background: linear-gradient(to bottom, #fdf6e3 0%, #f5ebd3 100%);
    border: 1px solid #d4af37;
    border-radius: 6px;

    text-align: center;

    box-shadow: 0 12px 30px rgba(0,0,0,0.25);

    overflow: hidden;
}

/* WATERMARK */
.logout-panel::before {
    content: "";
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 220px;
    height: 220px;

    background: url("/assets/images/I674.svg") no-repeat center;
    background-size: contain;

    opacity: 0.06;
    pointer-events: none;
}

/* TEXT */
.logout-panel h2 {
    font-family: "Cinzel", serif;
    margin-bottom: 15px;
}

.logout-message {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* BUTTON */
.logout-btn {
    display: inline-block;
    padding: 10px 22px;

    background: #1f2a44;
    color: white;
    text-decoration: none;

    border-radius: 5px;
    font-weight: bold;
}

.profile-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.logout-btn:hover {
    background: #162036;
}

/* ==============================
   ACTIVITY LIST
============================== */

.admin-activity {
    list-style: none;
    padding-left: 0;
}

.admin-activity li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

/* ==============================
   SIDEBAR (ADMIN FEEL)
============================== */

.admin-sidebar {
    background: #f4f1e6;
    border-left: 1px solid #ddd;
}

/* ===============================
    DOCUMENT VIEWER
=============================== */
.doc-viewer-card {
    text-align: center;
}

.doc-header h3 {
    margin-bottom: 10px;
}

.doc-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}