/* Critical CSS to eliminate white spaces - load before everything else */

.page-template-critical-news-central .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.page-template-critical-news-central .site-header {
    margin-bottom: 0 !important;
}
.page-template-critical-news-central .hero-section,
.page-template-critical-news-central .ultra-minimal-header,
.page-template-critical-news-central .breadcrumb-container {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.page-template-critical-news-central .tcl-style-header {
    margin-top: 0 !important;
}
.page-template-critical-news-central #main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Brand new header style - copied from board-of-directors.php */
.hero-section {
    display: none !important; /* Hide the original header completely */
}

.ultra-minimal-header {
    display: none !important;
}

/* Hide breadcrumb from theme */
.breadcrumb-container {
    display: none !important;
}

.critical-news-page {
    background-color: #fff !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}



.tcl-style-header {
    background: #1a365d !important;
    padding: 15px 0 !important;
    margin: 0 !important;
    color: #fff !important;
    border-bottom: 2px solid #2c5282 !important;
}

.header-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}



.tcl-breadcrumb {
    margin-top: 5px !important;
}

.breadcrumb-list {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.breadcrumb-list li {
    display: flex !important;
    align-items: center !important;
}

.breadcrumb-list li:not(:last-child):after {
    content: '/' !important;
    margin: 0 8px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.breadcrumb-list a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
}

.breadcrumb-list a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.breadcrumb-list .active {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Container styling */
.container.critical-news-container {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .tcl-style-header {
        padding: 12px 0 !important;
    }



    .breadcrumb-list {
        font-size: 0.75rem !important;
    }
}

/* Rest of your existing styles (filter controls, etc.) */
.filter-controls {
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}
.critical-news-search-form .form-control {
    border-radius: 0 4px 4px 0;
    border: 1px solid #e9ecef;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    border-left: none;
}
.critical-news-search-form .input-group-text {
    background-color: white;
    border: 1px solid #e9ecef;
    border-right: none;
    color: #888;
}
.filter-selects {
    display: flex;
    align-items: center;
    height: 100%;
}
.filter-select-item {
    position: relative;
}
.filter-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.filter-select label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0;
    white-space: nowrap;
}
.filter-select .form-select {
    border: 1px solid #e9ecef;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    background-position: right 0.5rem center;
    min-width: 120px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
}
.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}
.filter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 5px rgba(0,0,0,0.03);
    border: 1px solid #e9ecef;
}
.filter-summary .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    font-weight: 500;
    border-radius: 20px;
}
.filter-summary .badge i {
    margin-right: 0.25rem;
}
.critical-news-table {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #e9ecef;
}
.critical-news-table table {
    margin-bottom: 0;
}
.critical-news-table thead {
    border-bottom: 2px solid var(--primary, #0056b3);
}
.critical-news-table thead th {
    background: white;
    color: var(--primary, #0056b3);
    font-weight: 600;
    padding: 16px 18px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}
.critical-news-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.critical-news-table tbody tr:hover {
    background: #f8f9fa;
}
.critical-news-table tbody tr:last-child {
    border-bottom: none;
}
.critical-news-table tbody td {
    padding: 16px 18px;
    vertical-align: middle;
    border: none;
}
.lang-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.75rem;
    flex-shrink: 0;
    text-transform: uppercase;
}
.lang-indicator.en {
    background: #e1f5fe;
    color: #0288d1;
}
.lang-indicator.hi {
    background: #fce4ec;
    color: #c2185b;
}
.news-title {
    font-weight: 500;
}
.news-link {
    color: var(--primary, #0056b3);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.news-link:hover {
    color: var(--secondary, #FFD700);
    text-decoration: underline;
}
.news-date {
    color: #666;
    font-weight: 500;
}
.news-date i {
    color: #888;
    margin-right: 0.25rem;
}
.news-action .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}
.news-action .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.critical-news-fallback {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    margin: 3rem 0;
    font-weight: 500;
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}
.critical-news-fallback i {
    font-size: 1.3rem;
    color: #ccc;
    margin-right: 0.5rem;
}
.critical-news-pagination {
    margin-top: 2rem;
    text-align: center;
}
.critical-news-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    border-radius: 6px;
    background: white;
    color: var(--primary, #0056b3);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e9ecef;
}
.critical-news-pagination .current {
    background: var(--primary, #0056b3);
    color: #fff;
    border-color: var(--primary, #0056b3);
}
.critical-news-pagination .page-numbers:hover:not(.current) {
    background: var(--secondary, #FFD700);
    color: #222;
    border-color: var(--secondary, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
@media (max-width: 767px) {
    .critical-news-table {
        overflow-x: auto;
    }
    .critical-news-table table {
        min-width: 600px;
    }

    .filter-select-item {
        margin-top: 0.5rem;
    }
    .filter-summary {
        justify-content: center;
    }
    .filter-summary .ms-auto {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
}
