
body.smer-portfolio-no-scroll {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.main-header {z-index: 0!important;}

body.smer-portfolio-no-scroll header {
  pointer-events: none;
}

/* ================================
   Filters
================================ */

.smer-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.smer-filters input,
.smer-filters select {
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  min-width: 180px;
}

.smer-filters input {
    min-width: 360px;
}


/* ================================
   Companies Grid
================================ */

.smer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.company-card {
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px !important;
  background-color: #e4e4e457 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 10px!important;
  transition: 0.2s;
}

.company-card:hover {
  border: 1px solid rgba(0, 0, 0, 0.10)!important;
  background-color: #ffffff !important;
}

.company-card img {
  max-width: 140px;
  max-height: 100px;
  object-fit: contain;
}

.smer-loading {
  padding: 18px;
}

  /* .smer-filters select {
    width: 48%;
    min-width: 48%;
  }
  .smer-filters input {min-width: 100%;}
  .smer-clear-filters {
    margin: 0 auto;
    min-width: 50%;
  } */

/* ================================
   Responsive Grid
================================ */

@media (max-width: 1024px) {
  .smer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .smer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .smer-filters select {
    width: 48%;
    min-width: 48%;
  }
  .smer-filters input {min-width: 100%;}
  .smer-clear-filters {
    margin: 0 auto;
    min-width: 50%;
  }
}


/* ================================
   Popup Overlay
================================ */

.smer-portfolio-overlay {
  position: fixed;
  inset: 0;
  display: none;

  align-items: center;
  justify-content: center;
  z-index: 2147483647;
}

.smer-portfolio-overlay.is-visible {
  display: flex;
}

.smer-portfolio-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}


/* ================================
   Popup Box
================================ */

.smer-portfolio-popup-box {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 16px;
  max-width: 1280px;
  width: 95%;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-height: 100vh;
  overflow: none;
  font-family: "Manrope", Sans-serif!important;
}

.smer-portfolio-popup-box p {margin-bottom: 10px!important; font-size: 16px;}

.smer-portfolio-popup-close {
     position: absolute;
    top: 16px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 14px!important;
    border-radius: 50px !important;
    z-index: 999;

}

body.smer-portfolio-no-scroll {
  overflow: hidden;
}


/* ================================
   Popup Layout
================================ */

.smer-portfolio-popup-inner {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.smer-portfolio-popup-left {
  flex: 0 0 42%;
  overflow: hidden;
  border-radius: 12px;
  max-height: 600px;
}

.smer-portfolio-popup-left img {
  width: 100%;
  height: 80%!important;
  object-fit: cover;
  display: block;
  border-radius: 20px!important;
}

.smer-portfolio-popup-right {
  flex: 0 0 58%;
}

.smer-portfolio-popup-logo {
  max-width: 250px!important;
  margin-bottom: 15px;
  display: block;
}

.smer-popup-website {
  color: #005a8d;
  text-decoration: underline;
  font-weight: 500;
}


/* ================================
   Popup Responsive
================================ */

@media (max-width: 768px) {
  .smer-portfolio-popup-box {
    padding: 22px;
  }

  .smer-portfolio-popup-inner {
    flex-direction: column;
  }

  .smer-portfolio-popup-left {
    height: 240px;
  }
}


/* ================================
   Group Companies (Popup Section)
================================ */

.smer-popup-group-companies {
  /* margin-top: 36px; */
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.smer-popup-group-companies p {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

.smer-group-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.smer-group-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.smer-group-logo img {
  max-height: 60px;
  max-width: 140px!important;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.smer-group-logo:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

/* Mobile fine-tuning */
@media (max-width: 768px) {
  .smer-popup-group-companies {
    margin-top: 28px;
    padding-top: 20px;
  }

  .smer-group-logos {
    gap: 16px;
  }

  .smer-group-logo img {
    max-height: 50px;
    max-width: 120px;
  }
}


/* ================================
   Popup Scroll Behavior (Desktop & Mobile)
================================ */

/* Το popup box ΔΕΝ κάνει scroll */
.smer-portfolio-popup-box {
  overflow: hidden;
}

/* Το right column κάνει scroll αν χρειαστεί */
.smer-portfolio-popup-right {
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  padding-right: 16px; /* για να μη κολλάει το scrollbar */
}

/* ================================
   Mobile: Hide Left Image
================================ */

@media (max-width: 768px) {
  .smer-portfolio-popup-left {
    display: none;
  }

  .smer-portfolio-popup-right {
    flex: 1 1 100%;
    max-height: calc(90vh - 60px);
    padding-right: 12px;
  }
}


/* ================================
   Popup Open Animation
================================ */

.smer-popup-content-inner {
  animation: smer-fade-in 0.25s ease forwards;
}

@keyframes smer-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}



/* ================================
   Popup Loading State
================================ */

.smer-popup-loading {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smer-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.45);
  border-radius: 50%;
  animation: smer-spin 0.8s linear infinite;
}

@keyframes smer-spin {
  to { transform: rotate(360deg); }
}


/* ===== GRID WRAPPER ===== */
.smer-grid {
  /* min-height: 400px;  */
  position: relative;
  margin: 50px auto 100px auto;
}

/* ===== LOADER ===== */
.smer-loading {
  display: flex!important;
  align-items: center!important;
  justify-content: center!important;
  flex-direction: row!important;
  height: 100%!important;
  width: 100%!important;
}

/* spinner */
.smer-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0,0,0,.15);
  border-top-color: rgba(0,0,0,.55);
  border-radius: 50%;
  animation: smer-spin 0.7s linear infinite;
}

@keyframes smer-spin {
  to { transform: rotate(360deg); }
}

/* fade-in animation for cards */
.company-card {
  opacity: 0;
  transform: translateY(4px);
  animation: smer-fade-in 0.35s ease forwards;
}

@keyframes smer-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Clear filters */
.smer-clear-filters {
  padding: 10px 14px!important;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 10px!important;
  background: #154b6621!important;
  color: #154B66!important;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s!important;
}

.smer-clear-filters:hover {
  background: #ececec!important;
  border-style: solid!important;
}

