/* ============================================================
   Blocksy Theme — Single Poem Page (Aldiwan Style)
   Classes match single-poem.php exactly
   ============================================================ */

/* ── Container Layout ── */
.m-section-2 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--blk-color-border-light);
}
.m-section-2 h2 {
    font-size: 1rem;
    color: var(--blk-color-text);
    font-weight: 600;
    margin: 0;
}
.m-section-2 a {
    color: var(--blk-color-primary);
    text-decoration: none;
}
.m-section-2 a:hover {
    text-decoration: underline;
}
.m-section-2 span {
    color: var(--blk-color-text-muted);
    margin: 0 5px;
}

/* Clearfix for float-based rows */
.row::after {
    content: "";
    display: table;
    clear: both;
}

/* ── Bootstrap-like Grid Shim ── */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.col-12, .col-6, .col-md-3, .col-md-6, .col-lg-5, .col-lg-7, .col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}
.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    .col-lg-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
}

.s-menu1 {
    background: var(--blk-color-surface);
    border-radius: var(--blk-radius-md);
    box-shadow: var(--blk-shadow-md);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--blk-color-border);
    width: 100%;
}

/* ── Utilities ── */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.float-right { float: right !important; }
.float-left { float: left !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }
.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.pt-0 { padding-top: 0 !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.font-weight-bold { font-weight: 700 !important; }
.text-muted { color: #6c757d !important; }
.rounded-circle { border-radius: 50% !important; }
.relative { position: relative !important; }

/* ── Poem Reader Header ── */
.poem-actions {
    gap: 10px;
    border-bottom: 1px solid var(--blk-color-border);
    padding-bottom: 15px;
}

.poem-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blk-color-primary-light);
    color: var(--blk-color-primary);
    text-decoration: none;
    transition: all var(--blk-transition);
    border: 1px solid transparent;
}
.poem-control:hover {
    background: var(--blk-color-primary);
    color: #fff;
    text-decoration: none;
}

.poem-control.pill {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 8px;
}

.poem-control.icon-round {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
}

.poem-control.neutral {
    background: var(--blk-color-surface-2);
    color: var(--blk-color-text-muted);
}

/* ── Poem Body ── */
.bet-1 {
    display: block !important;
    background: transparent;
}
.bet-1::after {
    content: "";
    display: table;
    clear: both;
}

.bet-1 h3 {
    width: 50%;
    display: block;
    margin: 1.5rem 0;
    font-size: 1.4rem;
    height: 1.75rem;
    font-family: var(--blk-font-serif);
    color: var(--blk-color-text);
    line-height: 1.75rem;
}

.bet-1 h3:nth-child(even) {
    float: left;
}
.bet-1 h3:nth-child(odd) {
    float: right;
}

@media (max-width: 991px) {
    .bet-1 h3 {
        width: 100% !important;
        float: none !important;
        text-align: right !important;
        margin: 0.8rem 0;
    }
    .bet-1 h3:nth-child(even) {
        text-align: left !important;
    }
}

/* ── Tags and Labels ── */
.header-center {
    text-align: center;
    font-weight: 700;
    color: var(--blk-color-primary);
    margin-top: 30px;
    position: relative;
}
.header-center::before, .header-center::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--blk-color-border);
}
.header-center::before { right: 0; }
.header-center::after { left: 0; }

.tips a {
    display: block;
    background: var(--blk-color-primary-light);
    color: var(--blk-color-primary);
    padding: 8px 12px;
    border-radius: var(--blk-radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 10px;
    transition: var(--blk-transition);
}
.tips a:hover {
    background: var(--blk-color-primary);
    color: #fff;
}

/* ── Sidebar ── */
.mosahmat_block .header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blk-color-primary);
}
.mosahmat_block hr {
    border-top: 1px solid var(--blk-color-border);
}

.main-color {
    color: var(--blk-color-primary);
}

.text-slug {
    color: var(--blk-color-text-muted);
    font-size: 0.9rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    color: var(--blk-color-info);
    font-size: 0.8em;
}

.quotes-row {
    border-top: 1px solid var(--blk-color-border);
    border-bottom: 1px solid var(--blk-color-border);
    padding: 15px 0;
    margin: 20px 0;
}

.quotes-row .col {
    border-right: 1px solid var(--blk-color-border);
}
.quotes-row .col:first-child {
    border-right: none;
}
.quotes-row p.h5 {
    font-size: 1rem;
    font-weight: 700;
}

.more {
    color: var(--blk-color-primary);
    text-decoration: underline;
    font-size: 0.95rem;
}
