/* List page - BEM methodology with design from references/index.html */

/* Box sizing for the list */
.sbr2-list *, 
.sbr2-list *::before, 
.sbr2-list *::after { 
  box-sizing: border-box; 
}

/* Main container */
.sbr2-list {
  padding: 0 15px;
  margin: 0 auto;
  max-width: 1700px;
}

/* Header section */
.sbr2-list__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 0 30px;
}

.sbr2-list__header-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sbr2-list__header-left span {
  font-size: 17px;
  color: #333;
}

.sbr2-list__total-count {
  font-size: 17px;
  color: #F23639;
  font-weight: 600;
}

.sbr2-list__page-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  color: #333;
}

.sbr2-list__header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Select dropdown */
.sbr2-list__select {
  border: 1px solid #AEAEAE;
  font-size: 17px;
  color: #4C4C4C;
  width: 120px;
  padding: 0 17px;
  height: 51px;
  border-radius: 5px;
  /* Remove native dropdown arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  
  background-color: #fff;
  background: url(../img/icon_arrow_right.png) no-repeat 90% 50% / 10px;
  cursor: pointer;
}

/* Hide default arrow in old IE/Edge */
select.sbr2-list__select::-ms-expand {
  display: none;
}

.sbr2-list__select:focus {
  outline: none;
  border-color: #066AAF;
}

.sbr2-list__select option {
  font-size: 17px;
}

/* Search box */
.sbr2-list__search-box {
  width: 375px;
  border: 1px solid #AEAEAE;
  padding: 0 17px;
  border-radius: 5px;
  height: 51px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.sbr2-list__search-input {
  font-size: 17px;
  display: block;
  height: 100%;
  width: 90%;
  border: 0;
  background: transparent;
}

.sbr2-list__search-input:focus {
  outline: none;
}

.sbr2-list__search-input::placeholder {
  font-size: 17px;
  color: #999;
}

.sbr2-list__search-btn {
  display: block;
  width: 19px;
  height: 19px;
  background: url(../img/search-btn.png) no-repeat center/contain;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Flex list (replaces table structure) */
.sbr2-list__table {
  width: 100%;
  border-top: 3px solid #111;
}

/* Header row */
.sbr2-list__head {
  border-bottom: 1px solid #111;
}

.sbr2-list__row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #E7E7E7;
  transition: background-color .2s ease-in-out;
}

.sbr2-list__row:hover { background: #f3f3f356; }

/* Mobile row hidden by default; shown on small screens */
.sbr2-list__row--mobile { display: none; }

/* Header cells */
.sbr2-list__row--head .sbr2-list__col {
  padding: 30px 0;
  font-size: 17px;
  font-weight: 600;
  color: #111;
}

/* Empty row should span full width */
.sbr2-list__row--empty .sbr2-list__empty { width: 100%; }

/* Table columns */
.sbr2-list__col {
  text-align: center;
  padding: 35px 0;
  color: #8D8E95;
  font-size: 17px;
}

/* Desktop column widths (scaled to 100%) */
.sbr2-list__col--num { flex: 0 0 12.5%; }
.sbr2-list__col--title { flex: 0 0 53.75%; text-align: left; padding-left: 10px; padding-right: 10px; }
.sbr2-list__col--author { flex: 0 0 12.5%; }
.sbr2-list__col--date { flex: 0 0 12.5%; }
.sbr2-list__col--views { flex: 0 0 8.75%; color: #5C5C66; }

/* Views icon + count */
.sbr2-list__views {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* slight gap as requested */
}
.sbr2-list__views-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* Notice row */
.sbr2-list__notice-row .sbr2-list__col--title .sbr2-list__title-link {
  font-weight: 600;
}

/* Notice badge */
.sbr2-list__notice-badge {
  color: #fff;
  background: #066AAF;
  font-size: 16px;
  padding: 7px 15px;
  border-radius: 5px;
  display: inline-block;
}

/* Title link */
.sbr2-list__title-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: #111;
  font-weight: 500;
  text-decoration: none;
}

.sbr2-list__title-link:hover {
  color: #066AAF;
}

/* File icon */
.sbr2-list__file-icon {
  display: block;
  width: 18px;
  height: 18px;
  background: url(../img/Vector.png) no-repeat center/contain;
}

/* Empty state */
.sbr2-list__empty {
  padding: 60px 0;
  text-align: center;
  color: #666;
  font-size: 16px;
}

/* Pagination */

/* WP default pagination inside our wrapper */
/* Oxygen-style wrapper pagination */
.oxy-repeater-pages-wrap {
  padding: 50px 0;
  display: flex;
  justify-content: center;
}

.oxy-repeater-pages {
  display: flex;
  align-items: center;
  gap: 30px;
}

.oxy-repeater-pages .page-numbers,
.oxy-repeater-pages .page-numbers:link,
.oxy-repeater-pages .page-numbers:visited,
.oxy-repeater-pages .page-numbers:active {
  font-size: 18px;
  padding: .25rem .75rem;
  color: rgba(0, 0, 0, .2);
  text-decoration: none;
  line-height: 1;
}

/* Current page */
.oxy-repeater-pages .page-numbers.current,
.oxy-repeater-pages .current.page-numbers {
  color: #162C45;
}

.oxy-repeater-pages .page-numbers:hover {
  color: #162C45;
}

/* No icon buttons needed for Oxygen structure */

/* Write button */
.sbr2-list__actions {
  padding: 30px 0;
  text-align: right;
}

.sbr2-list__write-btn {
  display: inline-block;
  padding: 15px 40px;
  background: #066AAF;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sbr2-list__write-btn:hover {
  background: #0557A0;
  box-shadow: 0 2px 8px rgba(6, 106, 175, 0.3);
  color: white;
}

/* Responsive styles */
@media all and (max-width: 768px) {
  .sbr2-list__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .sbr2-list__header-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .sbr2-list__select {
    width: 100%;
  }
  
  .sbr2-list__search-box {
    width: 100%;
  }
  
  .sbr2-list__table { font-size: 14px; }
  .sbr2-list__row--head .sbr2-list__col { padding: 20px 5px; font-size: 14px; }
  .sbr2-list__col { padding: 20px 5px; font-size: 14px; }
  .sbr2-list__title-link { font-size: 14px; }

  .sbr2-list__notice-badge {
    font-size: 14px;
    padding: 5px 10px;
  }
  
  /* tighter gap on mobile */
  .oxy-repeater-pages {
    gap: 15px;
  }
  
  .sbr2-list__actions {
    text-align: center;
  }
  
  .sbr2-list__write-btn {
    width: 100%;
    max-width: 300px;
  }

  .oxy-repeater-pages-wrap {
    padding-top: 0;
  }
}

@media all and (max-width: 480px) {
  /* Mobile: show dedicated two-row markup, hide desktop row and header */
  .sbr2-list__head { display: none; }
  .sbr2-list__row--desktop { display: none; }
  .sbr2-list__row--mobile { display: block; padding: 14px 5px; }

  .sbr2-list__mobile-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }

  .sbr2-list__mobile-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: #5C5C66;
    font-size: 14px;
  }

  .sbr2-list__mobile-meta-item + .sbr2-list__mobile-meta-item::before {
    content: '·';
    margin: 0 8px;
    color: #C0C0C0;
  }

  /* Notice mobile title bold */
  .sbr2-list__notice-row .sbr2-list__mobile-title .sbr2-list__title-link { font-weight: 600; }
}
