/* --- Modern Global Variables --- */
:root {
    --primary-color: #880b17;
    --primary-hover: #6a0d13;
    --text-main: #2d3436;
    --text-light: #636e72;
    --bg-body: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #edf2f7;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bulletin-archive-page {
    padding: 60px 0 100px;
    background-color: var(--bg-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Layout Structure --- */
.bulletin-archive-layout {
    display: grid !important;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: flex-start;
}

/* --- Header Section --- */
.bulletin-archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.bulletin-archive-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.bulletin-archive-back {
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.bulletin-archive-back:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Bulletin Cards --- */
.bulletin-archive-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bulletin-archive-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.8);
    transition: var(--transition);
}

.bulletin-archive-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.08);
}

/* Date Styling */
.bulletin-archive-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff5f5; /* Very light red tint */
    border-radius: var(--radius-md);
    height: 80px;
}

.bulletin-archive-date .day {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.bulletin-archive-date .month {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 4px;
}

/* Content Area */
.bulletin-archive-card {
    display: flex;
    gap: 24px;
}

.bulletin-archive-card img {
    width: 180px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: #eee;
}

.bulletin-archive-content h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.bulletin-archive-content h2 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.bulletin-archive-content h2 a:hover {
    color: var(--primary-color);
}

.bulletin-archive-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.bulletin-archive-meta .dot {
    width: 4px;
    height: 4px;
    background: #cbd5e0;
    border-radius: 50%;
}

.bulletin-archive-meta a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.bulletin-archive-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* --- Sidebar Accordion --- */
.bulletin-archive-aside h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-main);
    font-weight: 700;
}

.year-item {
    margin-bottom: 12px;
}

.year-toggle {
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: var(--transition);
}

.year-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.year-item ul {
    list-style: none;
    padding: 10px 5px 10px 15px;
    margin: 0;
}

.year-item ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.year-item ul li:last-child { border: none; }

.year-item ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.year-item ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* --- Pagination --- */
.bulletin-archive-pagination {
    margin-top: 50px;
    display: flex;
    gap: 8px;
}

.bulletin-archive-pagination .page-numbers {
    padding: 10px 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.bulletin-archive-pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 991px) {
    .bulletin-archive-layout {
        grid-template-columns: 1fr;
    }
    
    .bulletin-archive-aside {
        order: 2;
        position: static;
    }
}

@media (max-width: 600px) {
    .bulletin-archive-item {
        grid-template-columns: 1fr;
    }
    
    .bulletin-archive-date {
        flex-direction: row;
        height: auto;
        padding: 10px;
        gap: 10px;
    }

    .bulletin-archive-card {
        flex-direction: column;
    }

    .bulletin-archive-card img {
        width: 100%;
        height: 200px;
    }
}


/* Sidebar Container */
.bulletin-archive-aside {
    background: #ffffff;
    border-radius: 12px;
    padding: 13px;
}

.bulletin-archive-aside h3 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    padding-left: 5px;
    
}

/* Accordion Item */
.year-item {
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.year-item.is-active {
    border-color: #880b17;
    box-shadow: 0 4px 12px rgba(136, 11, 23, 0.08);
}

/* Toggle Button */
.year-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #880b17;
    transition: background 0.2s;
}

.year-toggle:hover {
    background: #fffafa;
}

/* Arrow Icon rotation logic */
.year-toggle::after {
    content: '→';
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.year-item.is-active .year-toggle::after {
    transform: rotate(90deg);
    opacity: 1;
}

/* The List of Posts */
.year-item ul {
    list-style: none;
    margin: 0;
    padding: 0 16px 12px;
    background: #fff;
}

.year-item ul li {
    padding: 8px 0;
    border-top: 1px solid #f9f9f9;
}

.year-item ul li a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    display: block;
    transition: color 0.2s;
}

.year-item ul li a:hover {
    color: #880b17;
}
.bulletin-img{
    min-height: 100px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 3px;
}