/*
Theme Name: Metanus
Theme URI: https://metanus.gr
Author: Metanus
Author URI: https://metanus.gr
Description: A professional WordPress theme for Metanus - Innovation, Research & Education
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: metanus
Tags: education, research, innovation, responsive
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a1f5e;
  --navy-dark: #0f1340;
  --navy-light: #2d3480;
  --purple-light: #6b6fa8;
  --accent-blue: #4a90d9;
  --text-dark: #1a1a2e;
  --text-muted: #555;
  --white: #ffffff;
  --light-gray: #f8f9fc;
  --border: #e0e4f0;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== HEADER / NAVBAR ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(26,31,94,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.site-logo img {
  height: 44px;
  width: auto;
}

/* Primary Nav */
#primary-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

#primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

#primary-navigation ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

#primary-navigation ul li a:hover,
#primary-navigation ul li.current-menu-item > a,
#primary-navigation ul li.current_page_item > a {
  color: var(--navy);
  background: rgba(26,31,94,0.07);
}

/* Sub-menu */
#primary-navigation ul li {
  position: relative;
}
#primary-navigation ul li ul {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  flex-direction: column;
  gap: 0;
  padding: 6px 0;
  z-index: 100;
}
#primary-navigation ul li:hover > ul { display: flex; }
#primary-navigation ul li ul li a {
  padding: 10px 20px;
  border-radius: 0;
  font-size: 14px;
}

/* Social Icons */
.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.header-social a:hover {
  background: var(--navy-light);
  transform: scale(1.1);
}

/* ===== LANGUAGE SWITCHER (στρογγυλά buttons) ===== */
.header-lang ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-lang li { list-style: none; }

/* Μη ενεργή γλώσσα: λευκό με navy περίγραμμα */
.header-lang a {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 2px solid var(--navy);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.header-lang a:hover {
  background: var(--navy-light);
  color: #fff;
  border-color: var(--navy-light);
  transform: scale(1.1);
}
/* Ενεργή γλώσσα: ΜΠΛΕ γεμάτο */
.header-lang .current-lang a {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO SECTION ===== */
#hero {
  margin-top: 70px;
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/bnr-main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,15,60,0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.hero-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 40px 44px;
  max-width: 420px;
}

.hero-card h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--navy);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===== MAILING LIST BAR ===== */
#mailing-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.mailing-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.mailing-field {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
}

.mailing-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.mailing-field input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-dark);
  background: transparent;
  font-family: var(--font);
}

.mailing-field input::placeholder { color: #bbb; }

.mailing-submit {
  padding: 18px 20px;
  display: flex;
  align-items: center;
}

/* ===== ABOUT SECTION ===== */
#about {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

#about h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: none;   /* ήταν 480px — τώρα πιάνει όλο το πλάτος */
}

#about p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 900px;  /* ήταν 680px — πιο πλατύ αλλά ακόμη ευανάγνωστο */
  margin-bottom: 32px;
}

/* ===== BLOG SECTION ===== */
#latest-blog {
  padding: 60px 32px 80px;
  background: var(--light-gray);
  position: relative;
}

#latest-blog::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 220px; height: 100%;
  background: var(--navy);
  z-index: 0;
}

.blog-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#latest-blog h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  color: var(--navy);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.blog-card-thumbnail {
  width: 100%;
  height: 200px;
  background: #e0e4f0;
  overflow: hidden;
}

.blog-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-card:hover .blog-card-thumbnail img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 20px;
}

.blog-card-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== MAP / EMBED SECTION ===== */
#map-section {
  padding: 60px 32px;
}

.map-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.map-wrapper {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #e0e4f0;
  border: 1px solid var(--border);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 60px 32px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .mailing-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  #primary-navigation,
  .header-social { display: none; }

  #primary-navigation.open { display: flex; flex-direction: column; }

  .header-inner { height: 60px; padding: 0 20px; }
  .menu-toggle { display: flex; }

  /* Ο εναλλάκτης γλώσσας παραμένει ορατός δίπλα στο hamburger */
  .header-lang { margin-left: auto; }

  #primary-navigation {
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  #primary-navigation ul { flex-direction: column; gap: 2px; width: 100%; }
  #primary-navigation ul li a { padding: 12px 16px; }
  #primary-navigation ul li ul { display: flex; position: static; box-shadow: none; border: none; padding: 0 0 0 16px; }

  #hero { height: 350px; margin-top: 60px; }
  .hero-content { padding: 0 20px; }
  .hero-card { padding: 28px 24px; }

  .mailing-inner { grid-template-columns: 1fr; }
  .mailing-field { border-right: none; border-bottom: 1px solid var(--border); }

  #about { padding: 50px 20px; }
  #latest-blog { padding: 50px 20px; }
  #latest-blog::before { display: none; }
  .blog-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
.wp-block-list {
    list-style: disc;
    padding-left: 1.0em;
}

.wp-block-list li {
    list-style: disc !important;
    margin-left: 1.0em;
}