/* Notices & Circulars page styles */
body {
    box-sizing: border-box;
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #edf4ff;
}

html {
    height: 100%;
}

.app-wrapper {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Color palette:
   #0b3c8a - primary deep blue (header/nav/cta)
   #f2f6ff - light panel/surface
   #122142 - dark text
   #ffc107 - secondary accent
   #0a58ca - link/hover accent
*/

/* Top announcement bar */
.top-bar {
    background: #0b3c8a;
    color: #ffffff;
    font-size: 0.875rem;
    padding: 0.35rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid #ffc107;
}

.top-bar-label {
    font-weight: 600;
    padding: 0 0.75rem;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.top-bar-marquee {
    overflow: hidden;
    position: relative;
}

.top-bar-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 22s linear infinite;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    margin-right: 2.5rem;
}

.top-bar-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffc107;
    margin-right: 0.35rem;
    flex-shrink: 0;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Header */
header.site-header {
    background: #f2f6ff;
    border-bottom: 1px solid #d0ddff;
}

.brand-block {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
}

.brand-emblem {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffc107, #0b3c8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 0 0 3px #ffffff, 0 4px 10px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #122142;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.brand-tagline {
    font-size: 0.9rem;
    color: #3b4b73;
}

.brand-ministry {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #6c7aa5;
    font-weight: 600;
}

/* Navbar overrides to feel gov-style */
.main-navbar {
    background-color: #0b3c8a;
}

.navbar-brand-text {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.navbar-nav .nav-link {
    color: #e3ebff !important;
    font-weight: 500;
    padding-right: 1rem;
    padding-left: 1rem;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: #ffc107 !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.55);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #0b3c8a 0%, #122142 45%, #0b3c8a 100%);
    color: #ffffff;
    padding: 2rem 1rem 2rem;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: #c7d8ff;
}

.hero-breadcrumb a {
    color: #ffc107;
    text-decoration: none;
}

.hero-breadcrumb a:hover {
    text-decoration: underline;
}

.hero-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: #dbe6ff;
    margin-bottom: 0;
    max-width: 42rem;
}

/* Main content sections */
main {
    flex: 1 1 auto;
    padding: 1.75rem 1rem 1.75rem;
}

.main-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* Filter and Search Bar */
.filter-search-section {
    background: #f2f6ff;
    border-radius: 0.9rem;
    padding: 1.25rem;
    border: 1px solid #d3def8;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 14px rgba(11, 60, 138, 0.08);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid #d3def8;
    background: #ffffff;
    color: #122142;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #e8f0ff;
    border-color: #0a58ca;
}

.filter-btn.active {
    background: #0b3c8a;
    color: #ffffff;
    border-color: #0b3c8a;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1 1 auto;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #d3def8;
    font-size: 0.9rem;
    background: #ffffff;
}

.search-input:focus {
    outline: none;
    border-color: #0a58ca;
}

.search-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    background: #0b3c8a;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: #0a58ca;
}

/* Notice Cards */
.notices-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-card {
    background: #f2f6ff;
    border-radius: 0.9rem;
    padding: 1.25rem;
    border: 1px solid #d3def8;
    box-shadow: 0 4px 14px rgba(11, 60, 138, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 60, 138, 0.15);
}

.notice-card.hidden {
    display: none;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.notice-title-group {
    flex: 1 1 auto;
    min-width: 0;
}

.notice-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #122142;
    margin-bottom: 0.3rem;
}

.notice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #6c7aa5;
}

.notice-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.notice-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.notice-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-meeting {
    background: #0b3c8a;
    color: #ffffff;
}

.badge-infrastructure {
    background: #0a58ca;
    color: #ffffff;
}

.badge-advisory {
    background: #ffc107;
    color: #122142;
}

.badge-financial {
    background: #198754;
    color: #ffffff;
}

.badge-priority-high {
    background: #dc3545;
    color: #ffffff;
}

.badge-priority-important {
    background: #fd7e14;
    color: #ffffff;
}

.notice-content {
    font-size: 0.9rem;
    color: #283555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.notice-btn {
    padding: 0.45rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #d3def8;
    background: #ffffff;
    color: #0b3c8a;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.notice-btn:hover {
    background: #0b3c8a;
    color: #ffffff;
    border-color: #0b3c8a;
    text-decoration: none;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #d3def8;
}

.section-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0b3c8a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #122142;
    margin: 0;
}

.section-count {
    font-size: 0.85rem;
    color: #6c7aa5;
    font-weight: 500;
}

/* Archive Section */
.archive-section {
    margin-top: 2rem;
}

.archive-toggle {
    background: #f2f6ff;
    border-radius: 0.9rem;
    padding: 1rem 1.25rem;
    border: 1px solid #d3def8;
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.archive-toggle:hover {
    background: #e8f0ff;
}

.archive-toggle-text {
    font-size: 1rem;
    font-weight: 600;
    color: #122142;
}

.archive-toggle-icon {
    font-size: 1.2rem;
    color: #0b3c8a;
    transition: transform 0.3s ease;
}

.archive-toggle-icon.expanded {
    transform: rotate(180deg);
}

.archive-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.archive-content.expanded {
    max-height: 2000px;
}

/* Footer */
footer.site-footer {
    background: #0b3c8a;
    color: #dbe6ff;
    padding: 0.8rem 1rem;
    font-size: 0.78rem;
    border-top: 2px solid #ffc107;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
}

.footer-link {
    color: #ffc107;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover,
.footer-link:focus {
    text-decoration: underline;
}

/* Accessibility: visible focus state */
a:focus-visible,
button:focus-visible {
    outline: 2px dashed #ffc107;
    outline-offset: 2px;
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
    .brand-block {
        padding-inline: 0.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-section {
        padding-inline: 0.75rem;
    }

    main {
        padding-inline: 0.75rem;
    }

    .filter-search-section {
        padding-inline: 1rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }
}

@view-transition {
    navigation: auto;
}
