/* styles.css - Style system for Tarang News & Bulletin Management System */

@import url('https://fonts.googleapis.com/css2?family=Martel:wght@400;700;900&family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0D38A6; /* B.N. College Royal Blue */
    --primary-dark: #072266;  /* Deep Navy */
    --primary-light: #E6ECFC; /* Soft Blue Tint */
    --secondary-color: #FFC107; /* Golden Yellow */
    --secondary-light: #FFF9E6; /* Soft Gold Tint */
    --text-color: #2F3E46;
    --text-dark: #1C2529;
    --text-light: #6C757D;
    --bg-light: #F4F6F9;
    --bg-white: #FFFFFF;
    --border-color: #DEE2E6;
    --shadow-sm: 0 2px 4px rgba(13, 56, 166, 0.05);
    --shadow-md: 0 4px 12px rgba(13, 56, 166, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    padding-bottom: 50px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
}

/* Hindi Typography Support */
.lang-hi {
    font-family: 'Martel', serif;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Header & Navigation */
header.main-header {
    background-color: var(--primary-color);
    border-bottom: 4px solid var(--secondary-color);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section svg, .logo-section img {
    height: 55px;
    width: 55px;
}

.title-section h1 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
    font-weight: 800;
    line-height: 1.2;
}

.title-section p {
    font-size: 0.8rem;
    color: white;
    font-weight: 500;
    opacity: 0.9;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 5px;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #E6ECFC;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.tab-btn.active {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.section-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Visitor Section: News Filters */
.filters-bar {
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: #e0a800;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--text-light);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #bd2130;
}

/* News Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.news-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.news-image-wrapper {
    position: relative;
    height: auto;
    max-height: 250px;
    overflow: hidden;
    background-color: transparent;
}

.news-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.news-card:hover .news-image-wrapper img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.news-card-desc {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-reporter {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reporter-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    object-fit: cover;
}

.reporter-info h4 {
    font-size: 0.75rem;
    font-weight: 700;
}

.reporter-info p {
    font-size: 0.65rem;
    color: var(--text-light);
}

/* Newspaper Highlights Collage View */
.highlights-header {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 5px solid var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collage-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.collage-item {
    background-color: var(--bg-white);
    border: 1px dashed var(--secondary-color);
    padding: 10px;
    box-shadow: var(--shadow-sm);
    transform: rotate(var(--rot, 0deg));
    transition: var(--transition);
}

.collage-item:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.collage-img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    display: block;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s ease;
    border: 3px solid var(--primary-color);
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-light);
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.close-modal {
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary-color);
}

.modal-body {
    padding: 20px;
}

/* Admin Layout Styling */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.admin-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.admin-card h3 {
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th, .admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.admin-table th {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
}

.admin-table tr:hover {
    background-color: var(--bg-light);
}

/* Bulletin PDF Preview Simulation */
.bulletin-generator-panel {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.pdf-preview-container {
    background-color: #525659;
    padding: 40px 20px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
}

/* A4 Sheet Simulation Styles */
.bulletin-page {
    width: 210mm;
    min-height: 297mm;
    height: auto;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 15mm 15mm 20mm 15mm;
    display: flex;
    flex-direction: column;
    overflow: visible;
    box-sizing: border-box;
}

/* Bulletin Header / Magazine styles */
.bulletin-border-header {
    border-bottom: 4px double var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 8mm;
}

.bulletin-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.bulletin-title {
    font-family: 'Martel', Georgia, serif;
    font-size: 30px;
    font-weight: 900;
    color: var(--primary-color);
    text-align: center;
}

/* Cover Page Layout - Page 1 */
.cover-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 5mm;
    flex-grow: 1;
}

.cover-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4mm;
    border-right: 1px solid var(--border-color);
    padding-right: 4mm;
}

.cover-sidebar:last-child {
    border-right: none;
    border-left: 1px solid var(--border-color);
    padding-right: 0;
    padding-left: 4mm;
}

.cover-sidebar-title {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.cover-sidebar-content {
    font-size: 8.5px;
    line-height: 1.4;
    text-align: justify;
}

.cover-center {
    display: flex;
    flex-direction: column;
    gap: 4mm;
}

.highlight-box {
    background-color: var(--secondary-light);
    border: 1px solid var(--secondary-color);
    padding: 10px;
}

.highlight-box h4 {
    color: var(--primary-color);
    font-size: 12px;
    text-align: center;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.highlight-box ul {
    list-style-type: square;
    padding-left: 12px;
    font-size: 8.5px;
    line-height: 1.4;
}

.committee-section {
    margin-top: auto;
    border-top: 2px solid var(--primary-color);
    padding-top: 4mm;
}

.committee-section-title {
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 3mm;
    letter-spacing: 1px;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3mm;
}

.committee-card {
    text-align: center;
}

.committee-img {
    width: 22mm;
    height: 25mm;
    object-fit: cover;
    border: 1px solid var(--primary-color);
    border-radius: 2px;
}

.committee-name {
    font-size: 7px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
}

/* Inside Page Layout - Page 2 & 3 */
.inner-header-band {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 4px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6mm;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inner-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8mm;
    overflow: hidden;
}

.bulletin-news-item {
    margin-bottom: 6mm;
    display: flex;
    flex-direction: column;
    gap: 2mm;
    /* Prevent orphans: forces the section to stick together */
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}

.bulletin-news-title {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 2px;
}

.bulletin-news-desc {
    font-size: 12px;
    text-align: justify;
    line-height: 1.5;
}

/* Dynamic News Images Grid in Bulletin */
.bulletin-news-images {
    display: grid;
    gap: 2mm;
    margin-top: 1.5mm;
}

.bulletin-news-images.cols-1 { grid-template-columns: 1fr; }
.bulletin-news-images.cols-2 { grid-template-columns: 1fr 1fr; }
.bulletin-news-images.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.bulletin-news-img {
    width: 100%;
    height: auto;
    max-height: 48mm;
    object-fit: contain;
    border: 1px solid var(--border-color);
}

.bulletin-news-reporter {
    font-size: 7.5px;
    font-style: italic;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1mm;
}

.reporter-micro-avatar {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: cover;
}

/* Collage container appended immediately after news */
.bulletin-collage-container {
    border-top: 2px solid var(--primary-color);
    padding-top: 4mm;
    margin-top: 4mm;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}

.bulletin-collage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3mm;
}

.bulletin-collage-card {
    border: 1px dashed var(--secondary-color);
    padding: 2px;
    background-color: #fff;
}

.bulletin-collage-img {
    width: 100%;
    height: auto;
    max-height: 45mm;
    object-fit: contain;
    border: 1px solid var(--border-color);
}

/* College Highlights only page sizing adjustment */
.bulletin-collage-container.collage-only {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 0;
    border-top: none;
}

.bulletin-collage-container.collage-only .bulletin-collage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6mm !important;
    margin-top: 4mm;
}

.bulletin-collage-container.collage-only .bulletin-collage-img {
    height: auto !important;
    max-height: 70mm !important;
    object-fit: contain !important;
}


/* Page Footer styling */
.bulletin-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0 15mm 5mm 15mm;
    box-sizing: border-box;
}

.bulletin-footer-band {
    border-top: 2px solid var(--primary-color);
    padding-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    color: var(--primary-color);
    font-weight: bold;
}

.bulletin-page-num {
    background-color: var(--primary-color);
    color: var(--bg-white);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 8px;
}

/* ============================================== */
/* MOBILE VIEW & RESPONSIVENESS RULES */
/* ============================================== --> */
/* Mobile Sidebar adjustments */
.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-sidebar-toggle:hover {
    background-color: var(--primary-light);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 34, 102, 0.4);
    z-index: 1040;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-sidebar-toggle {
        display: inline-flex !important;
    }
    
    .admin-layout-wrapper {
        flex-direction: column;
    }
    
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
    }
    
    .admin-sidebar.open {
        left: 0;
    }
    
    .admin-sidebar.open + .sidebar-backdrop {
        display: block;
    }
    
    .admin-main-content {
        max-width: 100% !important;
        padding: 20px !important;
    }
    
    .admin-top-bar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .admin-top-bar > div:last-child {
        display: flex;
        width: 100%;
        gap: 10px;
    }
    
    .admin-top-bar > div:last-child .btn {
        flex-grow: 1;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .stat-card {
        padding: 15px !important;
    }
    
    .stat-card p {
        font-size: 1.4rem !important;
    }
    
    .admin-table th, .admin-table td {
        padding: 8px 6px !important;
        font-size: 0.75rem !important;
    }
    
    header.main-header {
        flex-direction: column;
        padding: 12px 15px;
        gap: 15px;
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
        gap: 8px;
    }

    .title-section h1 {
        font-size: 1.3rem;
    }

    .title-section p {
        font-size: 0.75rem;
    }

    .nav-tabs {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .tab-btn {
        flex-grow: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .container {
        margin: 15px auto;
        padding: 0 12px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .filters-bar {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 12px;
    }

    .btn {
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card-title {
        font-size: 1.05rem;
        height: auto;
        -webkit-line-clamp: unset;
    }

    .modal-content {
        width: 100%;
        max-height: 92vh;
        margin: 10px;
        border-radius: var(--radius-sm) !important;
    }
}

/* ============================================== */
/* PRINT CSS MEDIA RULES */
/* ============================================== --> */
@media print {
    body {
        background-color: #fff;
        padding-bottom: 0;
        margin: 0;
    }

    header.main-header,
    .container,
    .filters-bar,
    .bulletin-generator-panel,
    .btn,
    .nav-tabs,
    .admin-card {
        display: none !important;
    }

    .pdf-preview-container {
        background-color: transparent !important;
        padding: 0 !important;
        display: block !important;
        overflow: visible !important;
    }

    .bulletin-page {
        margin: 0 !important;
        box-shadow: none !important;
        page-break-after: always !important;
        page-break-inside: auto !important;
        width: 210mm !important;
        min-height: 297mm !important;
        height: auto !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Page-break settings to prevent orphans */
    .bulletin-news-item {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .bulletin-news-desc {
        font-size: 11.5pt !important;
        line-height: 1.55 !important;
        text-align: justify !important;
        color: #000000 !important;
    }

    .bulletin-news-title {
        font-size: 15.5pt !important;
        font-weight: bold !important;
        color: #000000 !important;
    }

    .bulletin-news-img {
        height: auto !important;
        max-height: 48mm !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
    }

    .collage-grid img {
        height: auto !important;
        max-height: 45mm !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
    }

    .bulletin-page * {
        color: #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page {
        size: A4 portrait;
        margin: 0;
    }
}

/* Continuous Print Table styles */
.bulletin-print-table {
    width: 210mm;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-collapse: collapse;
    margin: 40px auto;
}

.bulletin-print-table td {
    padding: 15mm 15mm 20mm 15mm;
    box-sizing: border-box;
}

/* Column flow style for news items inside the table */
.news-flow-columns {
    column-count: 2;
    column-gap: 8mm;
    margin-bottom: 5mm;
}

.news-flow-columns .bulletin-news-item {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 6mm;
    display: flex;
    flex-direction: column;
}

/* Print styling adjustments for Table */
@media print {
    .bulletin-print-table {
        box-shadow: none !important;
        margin: 0 !important;
        width: 210mm !important;
        border-collapse: collapse !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .bulletin-print-table td {
        padding: 5mm 15mm 15mm 15mm !important;
    }
    
    thead {
        display: table-header-group;
    }
    
    tfoot {
        display: table-footer-group;
    }
    
    /* Ensure the table does not force break early */
    tr {
        page-break-inside: auto !important;
        break-inside: auto !important;
    }
}

/* Global Social Share Bar Styles */
.share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background-color: var(--bg-light);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-top: 15px;
    border-left: 5px solid var(--primary-color);
}
.share-bar span {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    white-space: nowrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    color: white !important;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-decoration: none !important;
    white-space: nowrap;
    border: none;
    line-height: 1.2;
}
.share-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: var(--shadow-md);
    opacity: 0.92;
}
.share-fb { background-color: #1877F2; }
.share-wa { background-color: #25D366; }
.share-insta { background-color: #E1306C; }
.share-mail { background-color: #EA4335; }

