/*
Theme Name: Peristeri Rantevou Theme
Version: 1.1
Theme URI: https://www.minoandesign.gr/
Author: Minoan Design
Author URI: https://www.minoandesign.gr/
Description: Custom Wordpress Theme
Tags: Modern, Responsive
Text Domain: md_theme
*/

/* StoneSans Font Definitions */
@font-face {
  font-family: 'StoneSansSemiBold';
  src: url('assets/fonts/StoneSansITCHellenic-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'StoneSansBook';
  src: url('assets/fonts/StoneSansITCHellenic-Book.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Apply StoneSans fonts globally */
body, p, span, li, div, a, button, input, textarea, select {
  font-family: 'StoneSansBook', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .heading {
  font-family: 'StoneSansSemiBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
}

/* Custom Styles for News Section */
.card-post .content .gov-owl-48 {
  margin-top: 0 !important;
}

.card-post .content .gov-owl-48 > * + * {
  margin-top: 16px !important; /* Reduce from 48px to 16px */
}

.card-post .stack.gov-gap-24 {
  gap: 12px !important; /* Reduce gap between title and excerpt from 24px to 12px */
}

.card-post h2.title {
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
  font-size: 1.125rem !important; /* 18px */
  font-weight: 600 !important;
}

@media (min-width: 768px) {
  .card-post h2.title {
    font-size: 1.375rem !important; /* 22px */
  }
}

/* Hide post excerpts and read more link in news section */
.card-post .gov-owl-8.pos-relative.block-link {
  display: none !important;
}

/* Ensure proper spacing for the entire news grid */
.autogrid-fit-400px.gov-row-gap-48 {
  row-gap: 32px !important;
}

.appointment-types input[type="checkbox"]{
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  display: inline-block !important;
  position: static !important;
  opacity: 1 !important;
  width: 1rem; height: 1rem;
  margin-right: .4rem;
  vertical-align: -2px;
}
.appointment-types .checkbox-item{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-right: 1rem;
  margin-bottom: .4rem;
}

.per-msg-badge {
  margin-left: .35rem;
  transform: translateY(-1px);
}

.front-banner__img{display:block;width:100%;height:auto;border-radius:8px}
.front-banner__link{display:block}


/* Κύριο μενού (κάτω από header στα logged-in) */
.main-menu {
  display: flex;
  justify-content: center;
}

.main-menu .menu li {
  margin: 0 10px;
}

.main-menu .menu li a {
  color: white;
  font-weight: 500;
  padding: 6px 10px;
  transition: background 0.2s;
}

.main-menu .menu li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.main-menu .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  justify-content: center;
}

.main-menu .menu a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  transition: all 0.3s ease;
  position: relative;
}

/* Hover effect */
.main-menu .menu a:hover {
  color: white;
}

/* Current menu item styles */
.main-menu .menu .current-menu-item > a,
.main-menu .menu .current_page_item > a,
.main-menu .menu .current-page-ancestor > a {
  color: white;
  font-weight: bold;
}

/* Underline indicator for current item */
.main-menu .menu .current-menu-item > a::after,
.main-menu .menu .current_page_item > a::after,
.main-menu .menu .current-page-ancestor > a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 10px;
  right: 10px;
  height: 2px;
  background-color: #a0d5b3;
}

/* HEADER LAYOUT */
.gov-header-container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap; /* επιτρέπει να “σπάσει” σε 2 γραμμές όταν δεν χωράει */
}

/* Τίτλος να πιάνει τον ενδιάμεσο χώρο */
.gov-header-container .main-tagline {
  flex: 1 1 auto;
}

/* Logo, login, icon σταθερό πλάτος */
.gov-header-container .main-logo,
.gov-header-container .user-controls,
.gov-header-container .peristeri-main-site-link {
  flex: 0 0 auto;
}

.peristeri-main-site-link img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Wrapper για το login, για καλύτερο control σε mobile */
.header-login-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* Κουμπί Είσοδος (GSIS) */
.govgr-login-button--gsis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  color: #1b4445;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  transition: all .3s ease;
  box-shadow: 0 2px 8px rgba(27, 68, 69, .2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.govgr-login-button--gsis:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 68, 69, 0.3);
}

/* Banner QR */
.peristeri-qr-banner {
  margin-top: 2rem;
}

.peristeri-qr-banner__img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
}

/* MAIN MENU BAR κάτω από header (όπως Βιβλιοθήκη) */
.main-menu-nav {
  border-top: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
}

.main-menu-nav .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 8px 40px;
  gap: 30px;
  justify-content: flex-start;
}

.main-menu-nav .menu > li > a {
  color: #000;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
  font-size: 17px;
}

.main-menu-nav .menu > li > a:hover {
  color: #000;
  text-decoration: underline;
}

.main-menu-nav .menu .current-menu-item > a,
.main-menu-nav .menu .current_page_item > a,
.main-menu-nav .menu .current-page-ancestor > a {
  font-weight: 700;
  text-decoration: underline;
}

/* MOBILE BURGER BUTTON (base styles) */
.mobile-menu-toggle {
  display: none; /* default: κρυφό, θα φαίνεται μόνο σε mobile */
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: #ffffff;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 6px;
}

.mobile-menu-toggle__label {
  line-height: 1;
}

.mobile-menu-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}

.mobile-menu-toggle__icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
}

/* MOBILE RESPONSIVE HEADER / LOGIN + BURGER MENU */
@media (max-width: 767px) {
  .gov-header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .gov-header-container .main-logo img {
    max-width: 190px;
    height: auto;
  }

  .gov-header-container .main-tagline h1 {
    font-size: 18px;
    line-height: 1.3;
    margin: 4px 0 0;
  }

    .gov-header-container .user-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;  /* όνομα + αποσύνδεση δεξιά */
    gap: 4px;
  }

  /* burger μέσα στο user-controls, να ξεκινάει αριστερά */
  .user-controls .mobile-menu-toggle {
    display: inline-flex;
    align-self: flex-start;  /* αριστερά, ίδια “στήλη” με breadcrumb */
    margin-left: 0;
    margin-top: 4px;
    margin-bottom: 4px;
    padding-left: 8px;
  }

  .header-login-wrapper {
    width: 100%;
  }

  .govgr-login-button--gsis {
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  /* Κρύβουμε το λογότυπο του κεντρικού site στο mobile */
  .peristeri-main-site-link {
    display: none;
  }

    /* ΕΜΦΑΝΙΣΗ BURGER BUTTON ΣΤΟ MOBILE */
  .mobile-menu-toggle {
  display: inline-flex;
  align-self: flex-start;
  margin-left: 0;
  margin-top: 4px;   /* θετικό, χωρίς overlap */
  margin-bottom: 4px;
  padding-left: 8px;
}



  /* NAV: κρυφό by default στο mobile – ανοίγει με κλάση is-open */
  .main-menu-nav {
    display: none;
    border-top: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
    background-color: #ffffff;
  }

  .main-menu-nav.is-open {
    display: block;
    border-top: 1px solid #cfcfcf;
    border-bottom: 1px solid #cfcfcf;
    background-color: #ffffff;
  }

  /* MOBILE MENU: κάθετο */
  .main-menu-nav .menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
  }

  .main-menu-nav .menu > li {
    border-top: 1px solid #e5e5e5;
  }

  .main-menu-nav .menu > li:first-child {
    border-top: none;
  }

  .main-menu-nav .menu > li > a {
    display: block;
    padding: 12px 18px;           /* τελικό padding για mobile */
    font-size: 15px;
    line-height: 1.3;
    color: #000;
    text-decoration: none;
  }

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

  .main-menu-nav .menu .current-menu-item > a,
  .main-menu-nav .menu .current_page_item > a,
  .main-menu-nav .menu .current-page-ancestor > a {
    font-weight: 700;
    text-decoration: underline;
  }
}

/* Override header χρώματος μόνο για το peristeri-scheme */
.gov-header.peristeri-scheme {
  background-color: #48696A !important;
}
