/* ============================================================
   INDEX PAGE STYLES - Magazine Split Layout
   ============================================================ */

/* ── Magazine Split Layout ────────────────────────── */
html,
body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.magazine-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Constrained split — keeps image and text columns compact together */
.magazine-split {
    display: flex;
    flex: 1;
    min-height: 0;
    align-items: center;
    direction: ltr;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    gap: 32px;
    padding: 0 32px;
}

/* LEFT COLUMN — fixed-width image card */
.mag-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

/* Slider wrapper inside left column */
.mag-left .bx-wrapper {
    width: 440px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(122, 92, 16, 0.25) !important;
    background: rgba(255, 252, 244, 0.97) !important;
    box-shadow: 0 4px 20px rgba(122, 92, 16, 0.15) !important;
    border-radius: 10px !important;
    flex-shrink: 0;
}

.mag-left .bx-viewport {
    height: 700px !important;
    border-radius: 10px 10px 0 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.mag-left ul.home-slider {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mag-left ul.home-slider li {
    position: relative;
}

.mag-left ul.home-slider li img {
    width: 100%;
    height: 700px;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #f5f0e8;
    border-radius: 0;
    border: none;
    padding: 0;
    margin: 0;
}

/* Caption below image inside the card */
.slide-caption {
    padding: 10px 14px 12px;
    background: rgba(232, 223, 200, 0.95);
    color: #4a3820;
    font-size: 0.78rem;
    font-style: italic;
    text-align: center;
    direction: rtl;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid rgba(122, 92, 16, 0.15);
}

/* RIGHT COLUMN — bio panel */
.mag-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    direction: rtl;
    min-width: 0;
}

/* Inner content block */
.mag-right-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    width: 100%;
}

.mag-right::before {
    content: '';
    position: absolute;
    top: 12%;
    bottom: 12%;
    right: 0;
    width: 1px;
    background: linear-gradient(transparent, rgba(122, 92, 16, 0.25), transparent);
}

.mag-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    margin: 18px 0;
}

.mag-name {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 900;
    color: var(--accent-gold);
    line-height: 1.15;
    text-shadow: none;
    margin: 0 0 6px;
}

.mag-dates {
    font-family: 'Heebo', sans-serif;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin: 0 0 4px;
}

.mag-pen-name {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-style: italic;
    color: var(--accent-gold-lt);
    margin: 0;
}

.mag-bio {
    margin-top: 4px;
    color: var(--text-primary);
    font-size: clamp(0.88rem, 1.25vw, 1.02rem);
    line-height: 1.85;
}

.mag-bio p {
    margin-bottom: 0.5em;
}

/* Editor note — collapsible */
.editor-toggle {
    margin-top: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    font-family: 'Heebo', sans-serif;
    font-size: 0.85rem;
    direction: rtl;
    width: 100%;
    text-align: right;
}

.editor-toggle:hover {
    color: var(--accent-gold-lt);
}

.editor-toggle .toggle-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    font-size: 0.75rem;
}

.editor-toggle.open .toggle-arrow {
    transform: rotate(180deg);
}

.editor-body {
    display: none;
    margin-top: 10px;
    padding: 16px 18px;
    background: rgba(240, 234, 220, 0.90);
    border-right: 3px solid var(--accent-gold);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.editor-body.open {
    display: block;
}

/* Quick-nav buttons */
.mag-nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    direction: rtl;
}

.mag-nav-btn {
    display: inline-block;
    padding: 9px 22px;
    border: 1px solid var(--accent-gold);
    border-radius: 30px;
    color: var(--accent-gold);
    font-family: 'Heebo', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.22s ease, color 0.22s ease;
    white-space: nowrap;
}

.mag-nav-btn:hover {
    background: rgba(122, 92, 16, 0.12);
    color: var(--text-primary);
    text-decoration: none;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {

    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .magazine-split {
        flex-direction: column;
        overflow: visible;
        max-width: 100%;
        padding: 16px 16px 32px;
        gap: 20px;
        align-items: stretch;
    }

    .mag-left {
        flex: none;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Override the fixed 480px bxSlider height on mobile */
    .mag-left .bx-wrapper {
        width: 100% !important;
        max-width: 340px !important;
    }

    .mag-left .bx-viewport {
        height: 60vw !important;
        max-height: 320px !important;
    }

    .mag-left ul.home-slider li img {
        height: 60vw !important;
        max-height: 320px !important;
    }

    .mag-right {
        padding: 0;
        overflow-y: visible;
        justify-content: flex-start;
    }

    .mag-right::before {
        display: none;
    }

    .mag-nav-row {
        gap: 8px;
        justify-content: center;
    }

    .mag-nav-btn {
        padding: 7px 16px;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .mag-left .bx-viewport {
        height: 70vw !important;
        max-height: 260px !important;
    }

    .mag-left ul.home-slider li img {
        height: 70vw !important;
        max-height: 260px !important;
    }

    .mag-name {
        font-size: 1.5rem;
    }
}
