/* --- Global Detail Page Variables --- */
:root {
    --primary: #880b17;
    --primary-dark: #6a0d13;
    --text-dark: #1a1a1a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.bulletin-detail-page {
    padding: 60px 0;
    background-color: var(--bg-light);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Main Content Card --- */
.bulletin-detail-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
}

.bulletin-detail-meta {
    margin-bottom: 12px;
}

.bulletin-detail-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bulletin-detail-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.2;
}

.bulletin-detail-image {
    margin: 0 0 30px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.bulletin-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.bulletin-detail-summary {
    font-size: 18px;
    line-height: 1.6;
    color: #475569;
    font-weight: 500;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 30px;
}

.bulletin-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.bulletin-detail-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

/* Back Button */
.bulletin-detail-back {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bulletin-detail-back:hover {
    background: #000;
    transform: translateX(-5px);
}

/* --- Sidebar Accordion --- */
.bulletin-detail-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.year-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.year-acc-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.year-acc-item.is-open {
    border-color: var(--primary);
    box-shadow: 0 10px 20px -5px rgba(136, 11, 23, 0.1);
}

.year-acc-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-dark);
    transition: background 0.2s;
}

.year-acc-item.is-open .year-acc-toggle {
    background: var(--primary);
    color: var(--white);
}

.year-acc-toggle:hover:not(.is-open *) {
    background: #fffafa;
    color: var(--primary);
}

/* Bullet list inside accordion */
.year-acc-list {
    list-style: none;
    padding: 10px 18px 18px;
    margin: 0;
    background: var(--white);
}

.year-acc-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
}

.year-acc-list li:last-child {
    border-bottom: none;
}

.year-acc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s, padding 0.2s;
}

.year-acc-list a:hover {
    color: var(--primary);
    padding-left: 4px;
}

/* Status Badge Container */
.bulletin-detail-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Base Badge Styling */
.bulletin-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Live State (Green) */
.bulletin-status-badge.is-live {
    background-color: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}
.bulletin-status-badge.is-live::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 6px;
    /* Optional: subtle pulse effect for "Live" */
    animation: pulse 2s infinite;
}

/* Coming Soon State (Blue or Orange) */
.bulletin-status-badge.is-upcoming {
    background-color: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #d2e3fc;
}

/* Expired State (Gray) */
.bulletin-status-badge.is-expired {
    background-color: #f1f3f4;
    color: #5f6368;
    border: 1px solid #dadce0;
}

/* Pulse Animation for Live Status */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .bulletin-detail-card {
        padding: 20px;
    }
    .bulletin-detail-title {
        font-size: 26px;
    }
}