/* ============================================================
   BASIC RESET & GLOBAL SETTINGS
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Главна ширина за содржина – desktop + tablet: ~86% */
  --layout-width: min(86vw, 1688px);
}

/* Phone: малку поширока содржина (~90% од екранот) */
@media (max-width: 768px) {
  :root {
    --layout-width: 90vw;
  }
}

body {
  background: #f5f5f5;          /* светло сива позадина */
  position: relative;
  z-index: 0;
  overflow-x: hidden;           /* да не се појавува хоризонтален scroll */
  font-family: "Fira Sans", sans-serif;
  color: #000000;
  margin: 0px;
}

/* Ако сакаш повторно геометриски background елементи, овде се закоментирани */
/*
body::before {
  content: "";
  position: fixed;
  top: -250px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: #2b92d0;
  border-bottom-right-radius: 85%;
  border-bottom-left-radius: 85%;
  transform: rotate(-12deg);
  z-index: -1;
  opacity: 0.9;
}

body::after {
  content: "";
  position: fixed;
  bottom: -260px;
  right: -180px;
  width: 500px;
  height: 750px;
  background: #2c3179;
  transform: rotate(12deg);
  z-index: -1;
  opacity: 0.95;
}
*/

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================================
   GLOBAL LAYOUT HELPERS – СÈ НА ИСТА ШИРИНА КАКО HERO
   ============================================================ */

.container,
.homepage,
.topbar-inner,
.home-events__inner,
.home-projects-news__inner,
.quick-icons__inner,
.jobs-internships__inner,
.site-footer__inner {
  width: var(--layout-width);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Generic container ако ти треба во други темплејти */
.container {
  /* нема фиксна ширина, ја зема var(--layout-width) од горе */
}

/* ГЛАВЕН WRAPPER ЗА ПОЧЕТНАТА – hero + study-boxes + друго */
.homepage {
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

/* ============================================================
   HEADER & MAIN MENU
   ============================================================ */

.site-header {
  background: transparent;
  position: sticky;
  /* top: 0;  ако треба header да "лепи" горе, раскоментирај */
  z-index: 100;
}

/* важно: да не се сече mega dropdown */
.site-header,
.site-header .container,
.header-inner {
  overflow: visible;
}

/* тргни било какви псевдо-ленти под логото */
.site-header::before,
.site-header::after {
  content: none;
}

/* белата .container во header-от транспарентна */
.site-header .container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* внатрешен layout */

.header-inner {
  padding: 0.75rem 0; /* 12px */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo-img {
  max-height: 4.0625rem; /* 65px */
  width: auto;
  display: block;
  padding-left: 0.3125rem; /* 5px */
}

.site-title-text {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  color: #ffffff;
}

.main-nav {
  display: flex;
  background: transparent !important;
}

/* MAIN MENU – според style guide: Fira Sans Medium, letter-spacing */
.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem; /* 24px approx */
  background: transparent !important;
}

.main-menu > li > a {
  font-family: "Fira Sans", sans-serif;
  font-weight: 500;              /* Fira Sans Medium приближно */
  font-size: 1rem;               /* 16px */
  letter-spacing: 0.2em;         /* character spacing ~200 */
  text-transform: uppercase;
  color: #ffffff;                /* бело (по дизајнот на header-от) */
  text-decoration: none;
  background: transparent !important;
}

.main-menu > li > a:hover {
  text-decoration: underline;
}

/* ============================================================
   MEGA MENU (DESKTOP) – centered + wider
   Работи со WordPress .sub-menu структура
   ============================================================ */
@media (min-width: 901px) {

  /* nav wrapper да биде позиционирачки контекст */
  .main-nav {
    position: relative;
    overflow: visible; /* важно за dropdown да не се сече */
  }

  /* parent li да не го лимитира submenu-то */
  .main-menu > li.menu-item-has-children {
    position: static;
  }

  /* подмени скриено по default (за да немаш „лист“ под менито) */
  .main-menu .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* MEGA PANEL */
  .main-menu > li.menu-item-has-children > .sub-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);

    width: min(90vw, 1200px);   /* <-- ширина (смени на 1400/1688 ако сакаш) */
    max-width: 1688px;

    background: #ffffff;
    color: #111;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.12);

    padding: 18px 20px;
    z-index: 9999;

    /* mega layout */
    display: none;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px 22px;
    align-items: start;
  }

  /* show on hover + keyboard */
  .main-menu > li.menu-item-has-children:hover > .sub-menu,
  .main-menu > li.menu-item-has-children:focus-within > .sub-menu {
    display: grid;
  }

  /* линкови во dropdown */
  .main-menu > li > .sub-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 500;
  }

  .main-menu > li > .sub-menu a:hover {
    background: rgba(43,146,208,.10);
    text-decoration: none;
  }

  /* ако има „наслови“ во mega (прво ниво во sub-menu) */
  .main-menu > li > .sub-menu > li > a {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
  }

  /* ако sub-sub-menu е листа под секој наслов */
  .main-menu > li > .sub-menu > li > .sub-menu {
    display: block; /* мора да е visible внатре во mega */
    margin-top: 6px;
  }

  .main-menu > li > .sub-menu > li > .sub-menu > li + li {
    margin-top: 2px;
  }
}

/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
  height: 2.8125rem;            /* 45px */
  font-family: "Fira Sans", sans-serif;
  font-weight: 300;             /* Light */
  font-size: 0.8125rem;         /* 13px */
  letter-spacing: 0.05em;       /* character spacing ~50 */
  color: #ffffff;
  background: transparent;      /* градиентот е на ::before во .topbar-inner */
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;    /* турка кон десно */
  gap: 1.5rem;
  position: relative;
  padding-right: 1.25rem;
}

/* Градиент правоаголник залепен десно */
.topbar-inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40rem;                 /* 640px approx, флуидно не е критично тука */
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(43, 146, 208, 1) 0%,
    rgba(44, 49, 121, 1) 100%
  );
  z-index: -1;
}

.topbar-nav {
  display: flex;
}

.topbar-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.topbar-menu > li > a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
  font-weight: 300;
  font-size: 1em;
}

.topbar-menu > li > a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Right side: language + search */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 300;
  font-size: 1em;
}

.lang {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.7;
}

.lang--active {
  opacity: 1;
}

.lang:hover {
  opacity: 1;
  text-decoration: underline;
}

.lang-separator {
  opacity: 0.6;
}

.topbar-search {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.25em;
  cursor: pointer;
  padding: 0;
}

.lang-icon {
  width: 1.5625rem;  /* 25px */
  height: 1.5625rem;
}

.login-icon {
  width: 1.4375rem;  /* 23px */
  height: 1.4375rem;
}

/* TOPBAR – MOBILE */

@media (max-width: 900px) {
  .topbar-inner {
    justify-content: space-between;
    padding-right: 0.625rem;
    padding-left: 0.625rem;
    gap: 0.5rem;
	width: 100%;
  }

/*	TOP BAROT AKO SAKAME DA BIDE VO CENTAR KAKO DRUGITE ELEMENTI
  .topbar-inner::before {
    width: 100%;
  }
*/

  .topbar-menu {
    gap: 0.625rem;
    font-size: 0.9em;
    flex-wrap: wrap;
  }

  .topbar-actions {
    gap: 0.625rem;
  }
}

/* ============================================================
   BURGER / MOBILE MENU
   ============================================================ */

.nav-toggle {
  display: none; /* ќе биде visible само на мобилен */
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.375rem; /* 22px */
  height: 0.125rem;
  background: #2c3179;
  margin: 0.25rem 0;
}

@media (max-width: 900px) {

  .main-nav {
    position: absolute;
    right: 0;
    top: 100%;
    background: #2c3179;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .main-nav.is-open {
    max-height: 25rem; /* доволно за неколку линкови */
  }

  .main-menu {
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    gap: 0.75rem;
  }

  .main-menu > li > a {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
  }

  /* на мобилен: подмени да се листа, не mega */
  .main-menu .sub-menu {
    display: block;
    padding-left: 14px;
    margin-top: 8px;
  }

  .main-menu .sub-menu a {
    color: #fff;
    opacity: .95;
    font-size: .9rem;
    letter-spacing: 0;
    text-transform: none;
    padding: 6px 0;
    display: block;
  }

  .nav-toggle {
    display: block;
  }

  .site-logo-img {
    max-height: 3.125rem; /* 50px */
  }
}

/* ============================================================
   MAIN
   ============================================================ */

.site-main {
  min-height: 60vh;
}

/* ============================================================
   HERO – FINKI STYLE
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  margin: 0 0 40px 0;

  /* desktop: пристојна висина */
  min-height: 520px;

  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(43, 146, 208, 0) 0%,
    rgba(44, 49, 121, 0) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 1100px;
  z-index: 2;
}

/* MAIN TITLE */

.hero-title {
  position: relative;
  font-size: 90px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 70px;
  z-index: 1;
}

/* СЕНКАТА – ЕДНА, ОД ДОЛУ, СО ГРАДИЕНТ ПО Y */
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;                /* КОЛКУ ДА БИДЕ ПОД БУКВИТЕ */
  transform: translate(0, 0.08em);
  z-index: -1;

  font: inherit;
  text-transform: inherit;
  white-space: inherit;

  background: linear-gradient(
    90deg,
    #2c3179 0%,
    #2b92d0 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}







/* SUBTITLE */

.hero-subtitle {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;

  /* сенка само од долу */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}


/* BUTTON */

.btn-hero {
  text-decoration: none !important;
  background: #f1cc16;
  color: #1b1b1b;
  font-size: 18px;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 400;
  display: inline-block;
  transition: background 0.2s ease-in-out;
}

.btn-hero:hover {
  background: #ffd94d;
}

/* STATS – десктоп */

.hero-stats {
  position: absolute;
  bottom: 32px;
  left: 50px;
  right: 50px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.hero-stat {
  text-align: left;
  pointer-events: auto;
}

.hero-stat-value {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.hero-stat-label {
  font-size: 13px;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.9;
}

.hero-stats .hero-stat:last-child {
  text-align: right;
}

/* --------------------------------------------------------------
   HERO – RESPONSIVE
-------------------------------------------------------------- */

@media (max-width: 1200px) {
  .hero {
    min-height: 460px;
    margin: 0 0 32px 0;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-stat-value {
    font-size: 32px;
  }
}

/* ============================
   HERO – MOBILE
   ============================ */

@media (max-width: 767px) {
	
  /* hero shirina na telefon */	
  .hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
	
  /* hide stats entirely */
  .hero-stats,
  .hero-stat,
  .hero-stat-value,
  .hero-stat-label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .hero-title {
    font-size: 50px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.4;
    max-width: 24ch;
    margin: 0 auto 18px;
  }

  .btn-hero {
    width: 100%;
    max-width: 260px;
  }
}

/* ============================================================
   STUDY BOXES
   ============================================================ */

.study-boxes {
  width: 100%;
  padding: 1.25rem 0;
}

.study-boxes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Tablet и Mobile → 2 колони */
@media (max-width: 992px) {
  .study-boxes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ако баш сакаш да се направи 1 колона само на многу мал екран (опционално) */
@media (max-width: 420px) {
  .study-boxes__grid {
    grid-template-columns: 1fr;
  }
}

.study-box {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 396 / 253;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
}

.study-box__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  background-color: #2c3179;
}

.study-box__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(43, 146, 208, 0) 0%,
    rgba(44, 49, 121, 0) 100%
  );
}

.study-box__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 0.625rem;
}

.study-box__title,
.study-box__subtitle {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 1.1rem;
}

/* ============================================================
   HOME EVENTS
   ============================================================ */

.home-events {
  display: block;
  padding-bottom: 1.875rem;
}

.home-events__title {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Desktop: 5 карти во ред */
.home-events__grid {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
}

.home-event-card,
.home-event-card:visited {
  flex: 0 0 calc(20% - 1.25rem);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #1b1b1b;
  transition: transform 0.2s ease;
}

.home-event-card:hover {
  transform: translateY(-0.25rem);
  text-decoration: none;
}

.home-event-card__date {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Слика – ист размер, флуидно */
.home-event-card__image {
  width: 100%;
  aspect-ratio: 308 / 147;
  background: #d8d8d8;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.home-event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-event-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: #d8d8d8;
}

.home-event-card__location-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  margin: 0.5rem 0 0.375rem;
}

.home-event-card__location-icon {
  font-size: 0.75rem;
}

.location-icon {
  width: 0.9375rem;
  height: 0.9375rem;
}

.sidebar-events__location-icon{
  width: 0.9375rem;
  height: 0.9375rem;
}

.home-event-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.home-event-card__excerpt {
  font-size: 0.8125rem;
  line-height: 1.4;
  margin: 0;
}

.home-event-card__arrow {
  font-size: 1.125rem;
  display: inline-block;
  margin-top: 0.625rem;
}

.home-event-card:hover .home-event-card__title,
.home-event-card:hover .home-event-card__excerpt,
.home-event-card:hover .home-event-card__date,
.home-event-card:hover .home-event-card__location-row {
  color: #1b1b1b;
  text-decoration: none;
}

/* Tablet: 3 колони */
@media (max-width: 1200px) {
  .home-events__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .home-event-card {
    flex: initial;
    margin-bottom: 0;
  }
}

/* Tablet portrait: 2 колони */
@media (max-width: 900px) {
  .home-events__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone: 1 колона + поширока внатрешност */
@media (max-width: 768px) {
  .home-events__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   EVENTS LIST - TEMPLATE PAGE
   ============================================================ */

@media (min-width: 992px) {
  .event-item {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

.event-item {
  padding-bottom: 1.25rem;
}

.event-date {
  font-family: "Fira Sans", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.event-link {
  color: inherit;
  text-decoration: none;
}

.event-excerpt {
  font-size: 0.875rem;
  font-weight: 400;
}

/* Слика – ист размер, флуидно */
.event-thumb {
  display: block;
  width: 100%;
  max-width: 19.25rem; /* 308px */
  background: white;
  aspect-ratio: 308 / 147;
  overflow: hidden;
}

@media (min-width: 768px) {
  .event-thumb {
    margin-right: 1.125rem;
  }
}

.event-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-btn {
  display: inline-block;
  background: #2c3179;
  color: #fff;
  padding: 0.625rem 1.125rem;
  border-radius: 0.125rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.event-btn:hover {
  background: #f1cc16;
  color: #fff;
  text-decoration: none;
}

.event-divider {
  margin-top: 1.5625rem;
  height: 0.125rem;
  width: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0)
  );
}

/* ============================================================
   JOBS & INTERNSHIPS STRIP (FULL WIDTH BACKGROUND)
   ============================================================ */

.jobs-internships {
  padding: 1.75rem 0;
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;

  background: linear-gradient(
    90deg,
    #2c3179 0%,
    #2b92d0 100%
  );
}

/* Внатрешниот контент – исто широк како hero (преку глобалното правило) */
.jobs-internships__inner {
  display: flex;
  align-items: center;
  gap: 3vw;
  padding: 0;
}

.jobs-internships__label {
  display: flex;
  align-items: center;
  gap: 1.375rem;
  color: #fff;
  flex: 0 0 auto;
}

.jobs-internships__label-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.15;
}

.jobs-internships__dots {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  line-height: 1;
}

.jobs-internships__dots::before,
.jobs-internships__dots::after {
  content: "•";
  font-size: 1.125rem;
  color: #ffffff;
  opacity: 0.9;
}

.jobs-internships__list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem;
}

.jobs-internships__card,
.jobs-internships__card:visited {
  color: #fff;
  text-decoration: none;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  column-gap: 0.875rem;
  grid-template-areas:
    "logo date"
    "logo title"
    "logo arrow";
  align-items: start;
  padding: 0.375rem 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.jobs-internships__card:hover {
  transform: translateY(-0.125rem);
  opacity: 0.98;
  text-decoration: none;
}

.jobs-internships__card-top {
  display: contents;
}

.jobs-internships__logo {
  grid-area: logo;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: center;
}

.jobs-internships__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.jobs-internships__date {
  grid-area: date;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  white-space: nowrap;
  align-self: start;
}

.jobs-internships__title {
  grid-area: title;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.jobs-internships__arrow {
  grid-area: arrow;
  font-size: 1.375rem;
  line-height: 1;
  margin-top: 0.125rem;
  opacity: 0.95;
}

@media (max-width: 1100px) {
  .jobs-internships__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .jobs-internships__list {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.625rem;
  }

  .jobs-internships__label-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 560px) {
  .jobs-internships__list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PROJECTS + ANNOUNCEMENTS
   ============================================================ */

.home-projects-news {
  width: 100%;
  padding: 1.5rem 0 3rem;
}

.home-projects-news__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.hp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hp-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hp-more {
  font-size: 1.25rem;
  text-decoration: none;
  color: inherit;
}

/* PROJECTS */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 колони desktop */
  column-gap: 1.5rem;
  row-gap: 2rem;
}

.project-card {
  width: 100%;
}

.project-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.project-card__link:hover {
  transform: translateY(-0.125rem);
  text-decoration: none;
}

.project-card__img {
  width: 100%;
  aspect-ratio: 308 / 147;
  background: #ccc;
  overflow: hidden;
  margin-bottom: 0.625rem;
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.375rem;
}

.project-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.375rem;
}

.project-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #333;
  margin-bottom: 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__arrow {
  font-size: 1.125rem;
}

/* ANNOUNCEMENTS */

.hp-right {
  width: 100%;
  max-width: 40rem;
}

.ann-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ann-item {
  width: 100%;
  min-height: 4.625rem;
  display: grid;
  grid-template-columns: 4.6875rem 1fr;
  column-gap: 0.75rem;
  align-items: center;
  border-radius: 0.5rem;
  background: #f6f6f6;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.ann-item:hover {
  transform: translateY(-0.125rem);
  text-decoration: none;
}

.ann-date {
  width: 4.6875rem;
  height: 4.625rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ann-date__day {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2b7b;
}

.ann-date__mon {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ann-text {
  height: 4.625rem;
  padding: 0 0.625rem;
  background: #fff;
  font-size: 0.875rem;
  line-height: 1.2;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
}

.ann-text span:first-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ann-ico {
  font-size: 1rem;
  opacity: 0.75;
  margin-left: 1rem;
  flex-shrink: 0;
}

.download-icon {
  width: 1.5625rem;
  height: 1.5625rem;
}

/* PROJECTS + ANNOUNCEMENTS – RESPONSIVE */

@media (max-width: 1280px) {
  .home-projects-news__inner {
    grid-template-columns: 1fr;
  }

  .hp-right {
    width: 100%;
    max-width: 100%;
  }

  .ann-item {
    width: 100%;
  }
}

/* Tablet: 2 колони проекти */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone: 1 проект по ред, hp layout поедноставен */
@media (max-width: 720px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hp-header {
    gap: 0.75rem;
  }

  .ann-text {
    font-size: 0.8125rem;
  }
}

/* ============================================================
   QUICK ICONS (DEKANAT, INSTITUTI, ЗАКОНИ, ПРОЕКТИ)
   ============================================================ */

.quick-icons {
  width: 100%;
}

.quick-icons__inner {
  background: #e9eeee;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-radius: 0.125rem;
  min-height: 10rem;
  padding: 1rem 0;
  margin-bottom: 3.5rem; /* 60px approx */
}

.qi-item {
  flex: 1 1 0;
  max-width: 16.25rem;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  text-decoration: none;
  color: #0d1b3d;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.qi-item:hover {
  transform: translateY(-0.125rem);
  opacity: 0.92;
  text-decoration: none;
}

.qi-icon {
  width: 3.4375rem;
  height: 3.4375rem;
  object-fit: contain;
}

.qi-text {
  font-family: "Fira Sans", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.22em;
  font-weight: 500;
}

@media (max-width: 900px) {
  .quick-icons__inner {
    height: auto;
    padding: 1.125rem 0;
    flex-wrap: wrap;
    gap: 0.625rem 0;
  }

  .qi-item {
    width: 50%;
    height: auto;
    max-width: none;
    padding: 0.5rem 0;
  }
}

@media (max-width: 520px) {
  .quick-icons__inner {
    flex-direction: column;
  }

  .qi-item {
    width: 100%;
  }

  .qi-text {
    font-size: 0.875rem;
    letter-spacing: 0.18em;
  }
}

/* ============================================================
   FOOTER – FULL WIDTH BACKGROUND, CENTERED CONTENT
   ============================================================ */

.site-footer {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;

  background: linear-gradient(
    270deg,
    rgba(43, 146, 208, 1) 0%,
    rgba(44, 49, 121, 1) 100%
  );
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.2;

  padding: 3rem 0 2rem;
  margin-top: 0;
}

/* Внатрешниот контент – ширина 86% (var(--layout-width)) */
.site-footer__inner {
  width: var(--layout-width);
  margin: 0 auto;
  padding: 0;
}

/* ГОРЕН ДЕЛ – ЛЕВ БЛОК (МЕНИ) + ДЕСЕН БЛОК (ИНФО) */

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;   /* НЕ space-between */
  gap: 3.75rem;                  /* фиксно растојание помеѓу левиот и десниот блок */
}

.footer-nav-columns {
  flex: 1 1 auto;                /* да може да се растегне */
}

.footer-mega-menu {
  width: 100%;
}

.footer-info {
  flex: 0 0 22.5rem;
  max-width: 22.5rem;
}

/* MEGA MENU – 4 КОЛОНИ */

.footer-mega-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: space-between; /* внатрешните колони да се растегаат */
  gap: 2rem;                      /* основен gap меѓу нив */
}

.footer-mega-menu__list > li {
  flex: 1 1 0;                    /* сите колони да делат простор */
  min-width: 10.625rem;
}

.footer-mega-menu__list > li > a {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  text-decoration: none;
  color: #ffffff;
}

.footer-mega-menu__list > li > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-mega-menu__list > li > ul > li + li {
  margin-top: 0.25rem;
}

.footer-mega-menu__list > li > ul a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 400;
}

.footer-mega-menu__list > li > ul a:hover {
  color: #e1e1e1;
}

.footer-mega-menu__list a:hover,
.footer-mega-menu__list a:focus {
  text-decoration: none;
}

/* ДЕСЕН БЛОК – АДРЕСА / КОНТАКТ / СОЦИЈАЛНИ */

.footer-logo img {
  max-width: 13.75rem;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.footer-info__block {
  margin-bottom: 1rem;
}

.footer-col__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.625rem;
  text-align: left;
}

.footer-info__block p {
  margin: 0;
  text-align: left;
}

.footer-info__block a {
  color: #ffffff;
  text-decoration: none;
}

.footer-info__block a:hover {
  text-decoration: none;
  color: #e1e1e1;
}

/* СОЦИЈАЛНИ ИКОНИ */

.footer-social {
  list-style: none;
  margin: 0.375rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.footer-social__item a {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-social__item img {
  width: 1.6875rem;
  height: 1.6875rem;
  display: block;
}

/* COPYRIGHT – исто центриран во 86% ширина */

.site-footer__bottom {
  width: var(--layout-width);
  margin: 1.75rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 0.625rem;
  font-size: 0.875rem;
}

.footer-bottom-right {
  text-align: center;
}

/* ============================================================
   FOOTER – TABLET & MOBILE (≤900px)
   ============================================================ */

@media (max-width: 900px) {
  .site-footer {
    padding: 2rem 0 1.5rem;
  }

  /* 86% од ширината и на tablet/phone */
  .site-footer__inner {
    width: 86vw;
    margin: 0 auto;
    padding: 0;
  }

  .site-footer__top {
    flex-direction: column;   /* левиот и десниот блок еден под друг */
    gap: 2rem;
  }

  .footer-nav-columns,
  .footer-info {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Секоја мени-колона под друга */
  .footer-mega-menu__list {
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .footer-mega-menu__list > li {
    flex: 0 0 auto;
    min-width: 100%;
  }

  /* И долниот дел да користи 86% */
  .site-footer__bottom {
    width: 86vw;
    margin: 1.25rem auto 0;
    font-size: 0.8125rem;
    padding: 0.625rem 0 0;
  }

  .footer-bottom-right {
    text-align: center;
  }
}

/* =========================
   STAFF SINGLE LAYOUT
   ========================= */

.staff-single__inner{
  max-width: 1688px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* Left profile */
.staff-profile__card{
  background: #fff;
  border: 1px solid #e7e7e7;
}

.staff-profile__photo{
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f2f2f2;
}

.staff-profile__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-profile__placeholder{
  width: 100%;
  height: 100%;
  background: #e0e0e0;
}

.staff-profile__email{
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  text-decoration: none;
  color: #2c3179;
  border-top: 1px solid #e7e7e7;
}

/* Right content */
.staff-name{
  margin: 0 0 14px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
}

/* Tabs */
.staff-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid #e6e6e6;
  margin: 0 0 18px;
}

.staff-tab{
  background: transparent;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  border-bottom: 3px solid transparent;
  font-family: 'Fira Sans';
  font-weight: 500;
}

.staff-tab.is-active{
  color: #2b92d0;
  border-bottom-color: #2b92d0;
}

.staff-tab-panel{
  display: none;
}

.staff-tab-panel.is-active{
  display: block;
}

.staff-empty{
  color: #777;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px){
  .staff-single__inner{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .staff-name{
    font-size: 34px;
  }
}







/* WIDER MENU */
@media (min-width: 992px) {
  #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu{
	width: 1000px;
    margin-left: -542;
}
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu{
	margin-top: 14;}
}

/*delete duplicate menu*/
.mega-menu-toggle{
	display: none !important;
}

@media (max-width: 1024px){
  /* смени primary со твојата menu location ако е друга */
  #mega-menu-wrap-primary #mega-menu-primary{
    display: block !important;
  }
}

@media (max-width: 768px){

  /* ✅ 1) ЕДЕН scroll за целиот отворен мобилен панел */
  #mega-menu-wrap-primary{
    max-height: calc(100vh - 120px) !important; /* намести според висина на header */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* ✅ 2) Забрани submenu-a да имаат свој scroll (да нема 2 скрола) */
  #mega-menu-wrap-primary ul.mega-sub-menu{
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  /* ✅ 3) Ако нешто го сече панелот */
  .site-header{
    overflow: visible !important;
  }
}





a.hp-more{
	text-decoration: none;
}

a.hp-more:hover{
	color: #2b7dbd;
}



.site-banner{
  position: relative;
  height: 120px;           /* мал банер */
  background-size: cover;
  background-position: center;
  overflow: hidden;
	width: var(--layout-width);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.site-banner__overlay{
  position: absolute;
}

@media (max-width: 768px){
  .site-banner{ height: 90px; }
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-toggle-on > a.mega-menu-link{
	font-weight: 500 !important;
}
li.mega-menu-item.mega-current-menu-item{
	font-weight: 500 !important;
}

li.mega-menu-item.mega-current-menu-ancestor{
	font-weight: 500 !important;
}

.page-content a{
  color: #2b92d0;
}
.page-content a:hover{
  text-decoration: none;
  color: #2c3179;
  transition: color 0.25s ease-in-out;
}


/* =========================================================
   LANGUAGE TOGGLE (MK / EN) – SMALL + HOLLOW THUMB
   ========================================================= */

/* Wrapper */
.lang-toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  user-select:none;
}

/* Labels */
.lang{
  color:#fff;
  opacity:.7;
  font-weight:400;
  font-size:1em;
  letter-spacing:.04em;
  transition:opacity .2s ease;
}
.lang--active{ opacity:1; }

/* Track (мал) */
.lang-toggle__track{
  width:30px;
  height:15px;
  border:1px solid #fff;
  border-radius:999px;
  position:relative;
  display:inline-block;
  flex:0 0 auto;
}

/* Thumb (шупливо кружче) */
.lang-toggle__thumb{
  width:10px;
  height:10px;
  background:transparent;
  border:1px solid #fff;
  border-radius:50%;
  position:absolute;
  top:50%;
  left:3px;                  /* ✅ MK позиција */
  transform:translateY(-50%);
  transition:left .22s ease;
  box-sizing:border-box;
}

/* ✅ EN позиција (динамично пресметано) */
.lang-toggle[data-lang="en"] .lang-toggle__thumb{
  left: calc(100% - 10px - 3px);  /* thumb width (10px) + padding (3px) */
}





/* =========================================================
   MAIN MENU underline for active item (Max Mega Menu)
   ========================================================= */

/* Top-level links (директни деца на главниот UL) */
.mega-menu > li > a.mega-menu-link{
  border-bottom: 3px solid transparent !important; /* место за underline */
}

/* Активно само TOP level (current/ancestor) */
.mega-menu > li.mega-current-menu-item > a.mega-menu-link,
.mega-menu > li.mega-current-menu-ancestor > a.mega-menu-link,
.mega-menu > li.mega-current-page-ancestor > a.mega-menu-link,
.mega-menu > li.current-menu-item > a.mega-menu-link,
.mega-menu > li.current-menu-ancestor > a.mega-menu-link,
.mega-menu > li.current_page_ancestor > a.mega-menu-link{
  border-bottom-color:#2b92d0 !important;
}


.topbar-menu > li > a:hover{
text-decoration: none;
}

.lang-toggle,
.lang-toggle:hover,
.lang-toggle:focus,
.lang-toggle:active,
.lang-toggle .lang,
.lang-toggle .lang:hover{
  text-decoration: none !important;
}

/* индикаторот да не зема width во редот */
.mega-menu > li.mega-menu-item > a.mega-menu-link{
  position: relative !important;
}

.mega-menu > li.mega-menu-item > a.mega-menu-link .mega-indicator{
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}




/* =========================
   TABLE STYLE (page-content)
   First row = heading
========================= */

.page-content table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid #cfd6dc;
  font-size:14px;

  /* ✅ додадено: да се стисне табелата во container */
  table-layout: fixed;
}

/* ✅ додадено: да не излегува од body ако има долги зборови */
.page-content table td{
  padding:12px 14px;
  border:1px solid #cfd6dc;
  color:#222;
  vertical-align:middle;

  /* ✅ додадено */
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ✅ Првиот ред како HEADER */
.page-content table tr:first-child td{
  color:#2c3179;
  text-transform:uppercase;
  letter-spacing:0.06em;
  font-weight:700;
  font-size:12px;
}

/* Линкови во табела */
.page-content table td a{
  color:#2b92d0;
  text-decoration:none;
  font-weight:500;
}

.page-content table td a:hover{
  text-decoration:underline;
}

/* Ако има линк во првиот ред (heading) да биде бел */
.page-content table tr:first-child td a{
  color:#fff;
}

/* Hover ред */
.page-content table tr:hover{
  background:#f6f9fc;
}

.page-content table thead th{
  background:#2b92d0;
  color:#fff;
  text-transform:uppercase;
  letter-spacing:0.06em;
  font-weight:700;
  font-size:12px;
  padding:12px 14px;
  border:1px solid #2b92d0;
  text-align:left;
}

/* Mobile padding */
@media (max-width:768px){
  .page-content table{
    font-size:13px;
  }
  .page-content table td{
    padding:10px 12px;
  }
}






























/* ============================================================
   MEGA MENU (HEADER) – Blue background + white text + bullets
   Goal: 1:1 style like screenshot
============================================================ */

/* 1) Mega menu dropdown background */
.mega-menu .mega-sub-menu {
    background: #2257ab !important;
}

/* 2) All links in mega menu = white */
.mega-menu .mega-sub-menu a {
    color: #fff !important;
}

/* Hover (optional subtle highlight) */
.mega-menu .mega-sub-menu a:hover {
    color: #E1E1E1 !important;
    background: transparent !important;
}

/* 3) Sub-menu items styling - remove border, add bullet */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
    border-bottom: none;
    text-decoration: none;
    position: relative;
    padding-left: 14px; /* space for bullet */
}

/* 4) Add bullet before sub-menu links */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-65%);
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

/* 5) First child (header/title) styling - centered with min-height */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item:first-child > a.mega-menu-link {
    display: flex;
    align-items: center; /* vertical centering */
    min-height: 60px;
}













/* =========================
   SEARCH OVERLAY
========================= */

.search-overlay{
  position: fixed;
  inset: 0;
  background: rgba(44,49,121,0.85);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.search-overlay.is-active{
  opacity: 1;
  visibility: visible;
}

/* =========================
   SEARCH FORM (WHITE BOX)
========================= */

.search-overlay__form{
  position: relative;                 /* ✅ anchor за X */
  background: #fff;
  width: min(720px, 90vw);
  min-height: 160px; 
  padding: 40px 50px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* =========================
   CLOSE BUTTON (X)
========================= */

.search-overlay__close{
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 30px;
  background: none;
  border: 0;
  color: #757575;
  cursor: pointer;
  line-height: 1;
}

.search-overlay__close:hover{
  opacity: 0.75;
}

/* =========================
   CLOSE BUTTON (X) on search bar
========================= */

.search-overlay__input::-webkit-search-cancel-button{
  display: none;
}

/* =========================
   INPUT
========================= */

.search-overlay__input{
  flex: 1;
  border: 0;
  border-bottom: 1px solid #ccc;
  font-size: 22px;
  padding: 10px 0;
  outline: none;
}

/* =========================
   SUBMIT
========================= */

.search-overlay__submit{
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
}



























