/* =========================
   SEARCH PAGE – FINAL
========================= */

.search-page{
  padding: 10px 0;
  overflow: auto;
}

/* =========================
   BREADCRUMBS
========================= */

.search-page__breadcrumbs .container{
  width: var(--layout-width, 86vw);
  max-width: 1688px;
  margin: 0 auto;
}

/* =========================
   PAGE WIDTH
========================= */

.search-page__container{
  width: var(--layout-width, 86vw);
  max-width: 1688px;
  margin: 0 auto;
}

/* =========================
   HEADER (FULL WIDTH)
========================= */

.search-page__header{
  margin: 10px 0 22px;
}

.search-page__title{
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* =========================
   SEARCH BAR (RECTANGLE + ICON)
========================= */

.search-page__bar .search-form{
  position: relative;
  max-width: 520px;
}

.search-page__bar .search-field{
  width: 100%;
  height: 44px;
  padding: 0 44px 0 14px;      /* место за иконата */
  border: 1px solid #e6e8ee;
  background: #ffffff;        /* ✅ бела позадина */
  font-size: 14px;
  outline: none;
  border-radius: 0;           /* ✅ правоаголник */
}

.search-page__bar .search-field:focus{
  border-color: #2c3179;
}

/* submit = ICON BUTTON */
.search-page__bar .search-submit{
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;

  border: 0;
  background-color: transparent;
  background-image: url("https://newsite.finki.ukim.mk/wp-content/uploads/2026/01/icons8-search-20.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;

  cursor: pointer;
  font-size: 0;               /* ✅ го крие текстот „Барај“ */
}

/* =========================
   GRID LAYOUT
========================= */

.search-page__layout{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* =========================
   LEFT PANEL (WHITE)
========================= */

.search-page__main{
  background: #ffffff;
  border: 1px solid #e6e8ee;
  padding: 26px 28px;
}

/* =========================
   RESULTS TITLE
========================= */

.search-page__results-title{
  margin: 0 0 22px;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-page__results-title span{
  font-weight: 700;
}

/* =========================
   RESULTS LIST
========================= */

.search-results{
  display: flex;
  flex-direction: column;
}

.search-results > .search-result + .search-result{
  margin-top: 16px;
}

/* =========================
   SINGLE RESULT CARD
========================= */

.search-result{
  position: relative;
  background: #E9EEEE;
  padding: 14px;
}

/* DATE – top right */
.search-result__meta{
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  color: #8a8f9c;
  white-space: nowrap;
}

/* TITLE */
.search-result__title{
  margin: 0 80px 8px 0;
  font-size: 14px;
  font-weight: 600;
}

.search-result__title a{
  color: #2c3179;
  text-decoration: none;
}

.search-result__title a:hover{
  text-decoration: underline;
}

/* CONTENT */
.search-result__excerpt{
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #222;
}

/* READ MORE */
.search-result__more{
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: #2c3179;
  text-decoration: underline;
  text-transform: none;
}

/* =========================
   PAGINATION
========================= */

.search-page__pagination{
  margin-top: 22px;
}

.search-page__pagination .nav-links{
  display: flex;
  gap: 10px;
  margin: 0;
}

.search-page__pagination .page-numbers{
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6e8ee;
  background: #fff;
  font-size: 13px;
  color: #2c3179;
  text-decoration: none;
}

.search-page__pagination .page-numbers.current{
  border-color: #2c3179;
  font-weight: 700;
}

/* =========================
   SIDEBAR
========================= */

.search-page__sidebar{
  align-self: start;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px){

  .search-page__layout{
    grid-template-columns: 1fr;
  }

  .search-page__bar .search-form{
    max-width: 100%;
  }

  .search-page__main{
    padding: 20px;
  }

  .search-result__meta{
    position: static;
    margin-bottom: 6px;
    display: block;
  }

  .search-result__title{
    margin-right: 0;
  }
}

/* FORMARTIRANJE ZA NASTANI SAMO ZA OVOJ SEARCH PAGE */
body.search .sidebar-events{
	padding-top: 0px;
	margin-top: 0px;
	border-top: none;
}