/* .category-wrap {
    padding-right: 3%;
} */

.category-wrap

.category-wrap img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* ===== LAYOUT ===== */
.category-wrap.container-fluid {
    max-width: 1920px;

}

/* ===== TOOLBAR — breadcrumb + sort controls on one row ===== */
.archive-toolbar {
    display: flex;
    border-bottom: 2px solid #eef0f7;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 24px;
}

.archive-toolbar .filter-controls {
    margin: 0;
}

@media screen and (max-width: 768px) {
    .archive-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== BREADCRUMB — main column, replaces the old inline search spot ===== */
.archive-breadcrumb {
    font-size: 16px;
    color: #888;
    margin-bottom: 0;
}

.archive-breadcrumb a {
    color: #555;
    text-decoration: none;
}

.archive-breadcrumb a:hover {
    color: #051f85;
    text-decoration: underline;
}

.archive-breadcrumb-sep {
    margin: 0 6px;
    color: #ccc;
}

.archive-breadcrumb-current {
    color: #051f85;
    font-weight: 600;
}

/* ===== ARCHIVE CARD GRID ===== */
.archive-card-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 24px 0;
}

.archive-card-grid .col-md-4,
.archive-card-grid .col-sm-6 {
    display: flex;
    margin-bottom: 24px;
}

/* ===== ARCHIVE CARD (shared by subcategory and record cards) ===== */
.archive-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: #000033;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    text-align: center;
}

.archive-card:hover {
    border-color: #000033;
    box-shadow: 0 2px 8px rgba(0,0,51,0.12);
    text-decoration: none;
    color: #051f85;
}

.archive-card:focus,
.archive-card:active {
    outline: none;
    border-color: #000033;
    box-shadow: 0 2px 8px rgba(0,0,51,0.12);
}

.archive-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
}

.archive-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.archive-card:hover .archive-card-image img {
    transform: scale(1.03);
}

.archive-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 14px 16px;
}

.archive-card-body h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
}

.archive-card-meta {
    font-size: 13px;
    color: #777;
}

/* ===== NAVIGATION ===== */
.navigation-links {
    margin-bottom: 16px;
    font-weight: bold;
}

.navigation-links a {
    color: #000033;
}

.navigation-links a:hover {
    color: #051f85;
    text-decoration: none;
}

/* ===== FILTER CONTROLS ===== */
.filter-controls {
    display: flex;
    justify-content: start;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;


    border-radius: 4px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}


.filter-controls input,
.filter-controls select,
.filter-controls button,
.clear-filters {
    padding: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}


.filter-controls .submit-filters {
    background: #000033;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 4px;
}

.filter-controls .submit-filters:hover {
    background: #051f85;
}

.clear-filters {
    background: #666;
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    width:36px !important;
    height:36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-filters:hover {
    background: #888;
    color: white;
    text-decoration: none;
}

label {
    color: #051f85;
}

/* ===== PAGINATION ===== */
.pagination {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination a,
.pagination span {
     display: inline-block;
     padding: 8px 12px;
     margin: 0 4px;
     text-decoration: none;
     border: 1px solid #ddd;
     border-radius: 4px;
}

.pagination .current {
    background: #000033;
    color: white;
    border-color: #000033;
}


/* ===== RESPONSIVE DESIGN ===== */

/* Large screens */
@media screen and (max-width: 1722px) and (min-width: 1622px) {
    .main_content {
        margin-top: 48px;
    }
}

/* Medium screens */
@media screen and (min-width: 1300px) and (max-width: 1622px) {
    .main_content {
        margin-top: 64px;
    }
}

/* Mobile screens */
@media screen and (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .date-src {
        border-right: 0;
        padding-right: 0;
    }
}


.category-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.archive-image-wrapper {
  flex: 0 0 40%;
}

.archive-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

.archive-content-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.archive-description-box {
    text-align: justify;
    background: #fbfdff;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Responsive: stack image on top for smaller screens */
@media (max-width: 992px) {
  .category-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .archive-image-wrapper {
    width: 100%;
    flex: none;
    margin-bottom: 15px;
  }

  .archive-content-wrapper {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .archive-description-box {
    max-width: 100%;
    text-align: left;
  }
}

.filter-group select,
.filter-group input {
    color: #555;
    border: 1px solid #ccc !important;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;

    background-color: #fff; /* ensure white background */
}

.filter-group select {
    cursor: pointer !important;
}

.filter-group option {
    color: #555;
    background-color: #fff;
    cursor: pointer !important;

}

 .filter-group input:focus {
  outline: 1px solid #000000;
}

/* ── Tags nested inside accordion panels (also used for the search-page tag filter) ── */
.archive-nav-tags,
.archive-tag-filter {
    padding: 8px 0 10px 0;
    border-top: 1px solid #e8e8e8;
    margin:0;
    display: flex;
    flex-wrap: wrap;
    background-color: transparent !important;
}


.archive-nav-tags li a,
.archive-tag-filter li a {
    display: inline-block;
    margin: 2px 6px 2px 6px;
    padding: 3px 10px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    background: #e5e9ee;
    border-radius: 12px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.archive-nav-tags li a:hover,
.archive-tag-filter li a:hover {
    color: #051f85;
    background: #eceef3;
}

.archive-nav-tags li.active a,
.archive-tag-filter li.active a {
    color: #fff;

    background: #051f85;
}

/* ── Search result category label ───────────────────────────────────────────  */
.archive-card-category {
    font-size: 13px;
    font-weight: 500;

    letter-spacing: 0.05em;
    color: #000033;
    margin-bottom: 4px;
}

/* ── Sidebar accordion shell ─────────────────────────────────────────────── */

.archive-sidebar {

}

.archive-nav-accordion {
    border-radius: 2px;
    overflow: hidden;
    background: #eef0f7;
}

.panel-collapse  {
    background: #fbfbfc;
}


.archive-nav-panel {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0 !important;
    border-bottom: 1px solid #e2e4e8;
}

.archive-nav-panel:last-child {
    border-bottom: none;
}

.archive-nav-panel .panel-heading {
    background: #eef0f7;
    height: 53px;
    display: flex;
    align-items: center;
}

/* Plain leaf-category heading (no tags/toggle) — match the parent heading's
   full-width hover target instead of just the text */
.archive-nav-panel .panel-heading:not(.archive-nav-parent-heading) {
    padding: 0;
    transition: background-color 0.15s ease;
}

.archive-nav-panel .panel-heading:not(.archive-nav-parent-heading):hover {
    background: rgb(224, 228, 238);
}

.archive-nav-parent-heading:has(.archive-nav-parent-link.active),
.archive-nav-panel .panel-heading.active {
    background: rgb(225, 231, 236);
}

.archive-nav-panel .panel-heading:not(.archive-nav-parent-heading) > a {
    display: block;
    width: 100%;
    padding: 12px 15px;
    color: #222;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-sizing: border-box;
}

.archive-nav-panel .panel-heading:not(.archive-nav-parent-heading) > a:hover,
.archive-nav-panel .panel-heading.active:not(.archive-nav-parent-heading) > a {
    color: #051f85;
    text-decoration: none;
}

/* ── Sidebar parent category heading — link + collapse toggle ─────────────── */
.archive-nav-parent-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #eef0f7;
    transition: background-color 0.15s ease;
    margin-top: 0px;
}

.archive-nav-parent-heading:hover {
    background: #e0e4ee;
}

.archive-nav-parent-link {
    flex: 1;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.archive-nav-parent-link:hover,
.archive-nav-parent-link.active {
    color: #051f85;
    text-decoration: none;
}

.archive-nav-toggle {
    cursor: pointer;
    padding: 4px 4px;
    height: 28px;
    width: 28px;
    color: #888;
    flex-shrink: 0;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-nav-toggle:hover {
    color: #051f85;
}

/* ── Subcategory list — visually nested under its parent ──────────────────── */
.archive-nav-children {
    margin: 0;
    padding: 6px 0;
    background: #fbfbfc;
    border-top: 1px solid #e8e8e8;
}

.archive-nav-children li {
    position: relative;
    margin-left: 26px;
    border-left: 2px solid #dde1e7;
}

.archive-nav-children li:last-child {
    border-left: 2px solid #dde1e7;
}

.archive-nav-children li a {
    display: block;
    padding: 7px 15px 7px 16px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.archive-nav-children li a:hover {
    color: #000033;
    background: #f0f1f5;
}

.archive-nav-children li.active {
    border-left-color: #051f85;
}

.archive-nav-children li.active a {
    color: #051f85;
    font-weight: 600;
    background: #eef0f7;
}

.category-wrap .archive-banner {
    margin-left: 12px;
    margin-right: 12px;
}

.archive-decade-filter {
    font-size: 15px;
}

.archive-decade-filter h4{
    font-weight: bold;
    color: #051f85;
}

.archive-decade-filter ul li {
  margin: 10px 0;
}

.archive-decade-filter ul li.active a{

}

.archive-decade-filter ul li a{
  text-decoration: none;
}

.filter-group.clear {
    min-width: 0 !important;
}

@media screen and (max-width: 530px) {
    .category-wrap {
        padding-top: 26% !important;
    }
}
