/* =========================================
 *  DIVINE OFFICE PAGE
 *  ========================================= */

.divine-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 55px 25px 0;
    background: #fff;
    box-sizing: border-box;
    display: flow-root;
}

/* INTRODUCTION */

.divine-intro {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 55px;
}

.divine-intro .eyebrow {
    color: #a98536;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
}

.divine-intro h1 {
    color: #354b37;
    font-size: 2.5rem;
    margin: 10px 0 18px;
}

.divine-intro > p:last-child {
    color: #555;
    font-size: 1.08rem;
    line-height: 1.8;
}


/* SECTION HEADINGS */

.divine-section {
    margin: 0 auto 55px;
}

.divine-section h2 {
    color: #354b37;
    font-size: 1.8rem;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 3px solid #c5a45b;
}

.section-description {
    color: #666;
    margin: 0 0 22px;
    line-height: 1.6;
}


/* WEEKLY SCHEDULE */

.schedule-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e3dccb;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.office-schedule {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}

.office-schedule thead {
    background: #354b37;
    color: #fff;
}

.office-schedule th,
.office-schedule td {
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid #e9e3d7;
}

.office-schedule thead th {
    font-weight: 600;
    letter-spacing: 0.4px;
}

.office-schedule tbody th {
    width: 135px;
    color: #354b37;
    background: #f5f1e8;
    font-weight: 700;
    vertical-align: middle;
}

.office-schedule tbody td:last-child {
    width: 130px;
    white-space: nowrap;
    color: #66552f;
    font-weight: 600;
}

.office-schedule tbody tr:nth-child(even) td {
    background: #fcfaf6;
}

.office-schedule tbody tr:last-child th,
.office-schedule tbody tr:last-child td {
    border-bottom: none;
}


/* LIVE AUDIO */

.audio-card {
    background: #f8f6ef;
    border: 1px solid #e3dccb;
    border-left: 5px solid #c5a45b;
    border-radius: 8px;
    padding: 25px;
}

.audio-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #444;
    font-weight: 600;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #999;
}

.status-dot.live {
    background: #299b51;
    box-shadow: 0 0 0 4px rgba(41, 155, 81, 0.15);
    animation: live-pulse 1.8s infinite;
}

.status-dot.offline {
    background: #999;
}

@keyframes live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(41, 155, 81, 0.35);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(41, 155, 81, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(41, 155, 81, 0);
    }
}

.audio-card audio {
    display: block;
    width: 100%;
    max-width: 650px;
}

.audio-note {
    color: #777;
    font-size: 0.9rem;
    margin: 15px 0 0;
}


/* BREVIARY */

.breviary-card {
    background: #fff;
    border: 1px solid #e3dccb;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.breviary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.divine-button {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.read-button {
    background: #354b37;
    color: #fff;
}

.read-button:hover {
    background: #263829;
}

.download-button {
    background: #c5a45b;
    color: #fff;
}

.download-button:hover {
    background: #a98536;
}

.breviary-viewer {
    display: block;
    width: 100%;
    height: 650px;
    border: 1px solid #ddd;
    border-radius: 5px;
}


/* MOBILE */

@media (max-width: 700px) {

    .divine-page {
        padding: 35px 15px 0;
    }

    .divine-intro h1 {
        font-size: 2rem;
    }

    .divine-section h2 {
        font-size: 1.5rem;
    }

    .office-schedule {
        min-width: 520px;
    }

    .office-schedule th,
    .office-schedule td {
        padding: 11px 12px;
    }

    .audio-card,
    .breviary-card {
        padding: 16px;
    }

    .breviary-viewer {
        height: 450px;
    }

    .breviary-actions {
        flex-direction: column;
    }

    .divine-button {
        text-align: center;
    }
}

.divine-page > .divine-section:last-child {
    margin-bottom: 0;
}
