/* -----------------------------------------------------------
   MAIN LAYOUT
----------------------------------------------------------- */
.emig-archive-layout {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 20px;
}

/* Sidebar (Desktop) */
.emig-archive-sidebar {
  width: 260px;
  min-width: 260px;
  background: #f8f8f8;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  position: sticky;
  top: 20px;
}

.emig-archive-sidebar h2 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.emig-archive-sidebar form {
  display: block;
}

/* Mobile filter button */
.emig-filter-toggle {
  display: none;
  margin-bottom: 15px;
}

/* -----------------------------------------------------------
   FILTER GROUPS
----------------------------------------------------------- */
.emig-filter-group {
  margin-bottom: 18px;
}

.emig-filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.emig-archive-sidebar select,
.emig-filter-group select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
}

/* -----------------------------------------------------------
   MAIN CONTENT AREA
----------------------------------------------------------- */
.emig-archive-main {
  flex: 1;
  min-width: 0;
}

/* -----------------------------------------------------------
   GRID OF GUIDE CARDS
----------------------------------------------------------- */
.emig-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

/* -----------------------------------------------------------
   GUIDE CARDS
----------------------------------------------------------- */
.emig-guide-card {
  display: block;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  text-decoration: none;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
  color: #000;
}

.emig-guide-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

/* Card image */
.emig-card-image {
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fafafa;
  padding: 20px;
}

.emig-card-image img {
  max-height: 160px;
  width: auto;
}

/* Card body */
.emig-card-body {
  padding: 14px 15px;
}

.emig-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;
}

.emig-card-meta {
  font-size: 13px;
  color: #777;
}

/* -----------------------------------------------------------
   RESPONSIVE — MOBILE FILTERS (OFF CANVAS)
----------------------------------------------------------- */
@media (max-width: 991px) {

  .emig-archive-layout {
    flex-direction: column;
  }

  /* Show mobile filter toggle button */
  .emig-filter-toggle {
    display: inline-block;
  }

  /* Off-canvas sidebar */
  .emig-archive-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    overflow-y: auto;
    background: #fff;
    border-radius: 0;
    z-index: 9999;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    transition: left 0.25s ease;
  }

  .emig-archive-sidebar.is-open {
    left: 0;
  }
}
