/* ============ UAP CYPRUS CENTRE — MODERN v15 (Solid Card Classes) ============ */
/* ← Fix A: added &subset=greek,greek-ext,latin,latin-ext so Greek ω renders in Inter, not a fallback */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap&subset=greek,greek-ext,latin,latin-ext');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  /* ← Fix C: added Noto Sans / Segoe UI / Helvetica Neue as Greek-capable fallbacks before system-ui */
  font-family: 'Inter', 'Noto Sans', 'Segoe UI', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  color: #e2e8f0;
  background: #0a1628;
  line-height: 1.75;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- STICKY TOP NAV ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0a1628 0%, #081018 100%);
  border-bottom: 1px solid rgba(56,189,248,0.15);
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.nav-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
  font-weight: 900;
  font-size: 1.9rem;
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-logo .mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7dd3fc, #0ea5e9 50%, #0369a1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.35rem;
  box-shadow: 0 0 24px rgba(56,189,248,0.6), inset 0 0 10px rgba(255,255,255,0.35);
  animation: pulse 3s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 24px rgba(56,189,248,0.6), inset 0 0 10px rgba(255,255,255,0.35); }
  50%     { box-shadow: 0 0 38px rgba(56,189,248,0.9), inset 0 0 14px rgba(255,255,255,0.55); }
}

/* ---------- NAV MENU ---------- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin-left: auto;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.85rem 1.05rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  letter-spacing: 0.1px;
  white-space: nowrap;
  line-height: 1;
}
.nav-menu > li > a:hover {
  color: #7dd3fc;
  background: rgba(56,189,248,0.1);
}
.nav-menu > li > a.active {
  color: #0a1628;
  background: #38bdf8;
  box-shadow: 0 0 20px rgba(56,189,248,0.5);
}
.nav-menu > li > a.active .caret { color: #0a1628; }
.nav-menu .caret {
  font-size: 0.8rem;
  opacity: 0.75;
  transition: transform 0.25s ease;
  margin-top: 2px;
  flex-shrink: 0;
}
.nav-menu > li:hover .caret { transform: rotate(180deg); }

/* ---------- CTA BUTTON IN NAV ---------- */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  padding: 0.9rem 1.6rem !important;
  border-radius: 10px !important;
  margin-left: 0.75rem;
  box-shadow: 0 8px 20px rgba(16,185,129,0.4);
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  line-height: 1;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16,185,129,0.65);
  background: linear-gradient(135deg, #34d399, #10b981) !important;
  color: #fff !important;
}
.nav-cta.active {
  background: linear-gradient(135deg, #34d399, #10b981) !important;
  box-shadow: 0 0 25px rgba(16,185,129,0.75);
}

/* ---------- LANGUAGE TOGGLE ---------- */
.lang-toggle {
  display: inline-flex;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 999px;
  padding: 3px;
  margin-left: 1rem;
  flex-shrink: 0;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.lang-toggle button.active {
  background: #38bdf8;
  color: #0a1628;
  box-shadow: 0 0 12px rgba(56,189,248,0.5);
}
.lang-toggle button:hover:not(.active) { color: #7dd3fc; }

/* ---------- GREEN [NEW] PILL ---------- */
.badge-new {
  display: inline-block;
  background: #10b981;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  margin-left: 0.6rem;
  box-shadow: 0 0 12px rgba(16,185,129,0.55);
  animation: badgePulse 2s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 12px rgba(16,185,129,0.55); }
  50%     { box-shadow: 0 0 20px rgba(16,185,129,0.9); }
}

/* ---------- DROPDOWN ---------- */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 380px;
  background: #0f2038;
  border: 1px solid rgba(56,189,248,0.22);
  border-radius: 12px;
  padding: 0.75rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  z-index: 1200;
  pointer-events: none;
}
.nav-menu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  padding: 0.9rem 1.15rem;
  border-radius: 8px;
  transition: all 0.15s;
  border-left: 2px solid transparent;
  white-space: nowrap;
}
.dropdown li a:hover {
  background: rgba(56,189,248,0.1);
  color: #7dd3fc;
  border-left-color: #38bdf8;
  padding-left: 1.35rem;
}

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: none;
  background: transparent;
  border: 1px solid rgba(56,189,248,0.3);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3rem;
}

/* ---------- HERO (UNCHANGED) ---------- */
.hero {
  position: relative;
  min-height: 340px;
  background:
    linear-gradient(180deg, rgba(10,22,40,0.2) 0%, rgba(10,22,40,0.55) 60%, rgba(10,22,40,1) 100%),
    url('cyprus-hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 4rem 1.5rem 4.5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, #fff, transparent),
    radial-gradient(1px 1px at 40% 15%, #7dd3fc, transparent),
    radial-gradient(1.5px 1.5px at 85% 45%, #fff, transparent),
    radial-gradient(1px 1px at 10% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 85%, #7dd3fc, transparent);
  opacity: 0.5;
  animation: twinkle 5s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}
@keyframes twinkle {
  from { opacity: 0.3; }
  to   { opacity: 0.65; }
}
.hero-content { position: relative; z-index: 2; max-width: 960px; }
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.9rem);
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #ffffff 40%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 30px rgba(56,189,248,0.5));
  margin-bottom: 1rem;
}
.hero p {
  color: #f1f5f9;
  font-size: 1.3rem;
  max-width: 780px;
  margin: 0 auto;
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
  font-weight: 400;
}

/* ---------- GALAXY CONTENT AREA ---------- */
.galaxy-bg {
  position: relative;
  background: url('galaxy.jpg') center/cover fixed no-repeat;
  padding: 4.5rem 2rem 5.5rem;
}
.content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ---------- DEFAULT GLASS (fallback for cards without a color class) ---------- */
.glass {
  background: rgba(15,32,56,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ---------- LATEST UPDATE BANNER — TEAL + SHINE ---------- */
.latest-update {
  max-width: 1000px;
  margin: 0 auto 2rem;
  padding: 1.6rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  position: relative;
  background: #0a3a47 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(15,118,110,0.5);
  border-left: 4px solid #0d5c6e;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
}
.latest-update::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 55%);
  animation: shine 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.latest-update > * {
  position: relative;
  z-index: 2;
}
.latest-update.hidden { display: none; }
.latest-update .text { flex: 1; }
.latest-update .text strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.latest-update .text span {
  color: #ffffff;
  font-size: 1.05rem;
  opacity: 0.95;
}
.latest-update a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
  text-underline-offset: 4px;
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.latest-update a:hover { color: #a5f3fc; }

/* ---------- LEAD / MISSION ---------- */
.lead {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 2.5rem;
  line-height: 1.9;
  padding: 2.1rem 2.1rem 2.1rem 2.3rem;
  background: #3e4a5c;
  border: 1px solid rgba(148,163,184,0.4);
  border-left: 3px solid #94a3b8;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* ---------- SECTION BLOCKS (default) ---------- */
.section-block {
  padding: 2.75rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}
.section-block h2 {
  font-size: 1.9rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.8rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid #38bdf8;
  display: inline-block;
  letter-spacing: 0.3px;
}
.section-block p { color: #ffffff; }

/* ---------- LEADERSHIP — STONE GREY (legacy class, kept for index.html) ---------- */
.section-block.leadership-solid {
  background: #3f3f46 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(161,161,170,0.4);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.section-block.leadership-solid h2 { color: #ffffff; border-bottom-color: #a1a1aa; }
.section-block.leadership-solid .leader-info h3 { color: #ffffff; }
.section-block.leadership-solid .leader-role { color: #e4e4e7; }
.section-block.leadership-solid .leader-info p { color: #ffffff; opacity: 0.95; }
.section-block.leadership-solid .leader-card:hover { background: rgba(255,255,255,0.06); }
.section-block.leadership-solid .leader-card + .leader-card { border-top: 1px solid rgba(255,255,255,0.15); }

/* ---------- LEADER CARDS ---------- */
.leader-card {
  display: flex;
  gap: 1.7rem;
  align-items: flex-start;
  padding: 1.7rem;
  border-radius: 12px;
  transition: background 0.2s;
}
.leader-card + .leader-card { border-top: 1px solid rgba(255,255,255,0.15); }
.leader-avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f 0%, #0ea5e9 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.65rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(14,165,233,0.4);
  letter-spacing: 0.5px;
}
.leader-info h3 { color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem; }
.leader-role { color: #38bdf8; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.8rem; }
.leader-info p { color: #cbd5e1; font-size: 1.1rem; }

/* ---------- CTA BOX — MEDIUM SLATE + SHINE ---------- */
.cta-box {
  background: #475569;
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin-top: 3rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  border: 1px solid rgba(148,163,184,0.4);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: shine 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.cta-box > * {
  position: relative;
  z-index: 2;
}
.cta-box h3 { font-size: 1.85rem; font-weight: 700; margin-bottom: 0.85rem; color: #ffffff; }
.cta-box p { opacity: 0.97; margin-bottom: 1.8rem; font-size: 1.15rem; color: #ffffff; }
.btn {
  display: inline-block;
  background: #ffffff;
  color: #475569;
  padding: 1.05rem 2.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,0.4); }

/* ---------- SHINE KEYFRAMES ---------- */
@keyframes shine {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: linear-gradient(180deg, #06101e 0%, #030810 100%);
  color: #94a3b8;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 1.05rem;
  border-top: 1px solid rgba(56,189,248,0.1);
}

/* ---------- BILINGUAL SWAP ---------- */
.lang-en, .lang-el { display: none; }
body[data-lang="en"] .lang-en { display: block; }
body[data-lang="el"] .lang-el { display: block; }
body[data-lang="en"] .lang-en-inline { display: inline; }
body[data-lang="el"] .lang-el-inline { display: inline; }
.lang-en-inline, .lang-el-inline { display: none; }

/* ---------- GREEK TEXT — prevent glyph fallback compression (Fix A + Fix C) ---------- */
.lang-el, .lang-el-inline,
[lang="el"], [data-lang="el"] {
  font-family: 'Inter', 'Noto Sans', 'Segoe UI', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  letter-spacing: normal;
  font-feature-settings: normal;
}

/* ============================================================
   SOLID COLOR CARD CLASSES (used on all pages)
   Use in HTML as: <div class="section-block card-1"> ... </div>
   Position rule:
     card-1  →  First card on page    (dark teal)
     card-2  →  Second card on page   (light slate)
     card-3  →  Third card on page    (stone grey)
     card-4  →  Fourth card on page   (medium slate)
   ============================================================ */

.card-1 {
  background: #0a3a47 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(15,118,110,0.5) !important;
  border-left: 4px solid #0d5c6e !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
  color: #ffffff;
}

.card-2 {
  background: #3e4a5c !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(148,163,184,0.4) !important;
  border-left: 3px solid #94a3b8 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
  color: #ffffff;
}

.card-3 {
  background: #3f3f46 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(161,161,170,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
  color: #ffffff;
}

.card-4 {
  background: #475569 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(148,163,184,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45) !important;
  color: #ffffff;
}

/* Ensure all headings and text inside solid cards stay white */
.card-1 h1, .card-1 h2, .card-1 h3,
.card-2 h1, .card-2 h2, .card-2 h3,
.card-3 h1, .card-3 h2, .card-3 h3,
.card-4 h1, .card-4 h2, .card-4 h3 { color: #ffffff; }

.card-1 p, .card-2 p, .card-3 p, .card-4 p { color: #ffffff; }

.card-1 a, .card-2 a, .card-3 a, .card-4 a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,0.5);
}
.card-1 a:hover, .card-2 a:hover, .card-3 a:hover, .card-4 a:hover {
  color: #d1fae5;
}

/* Ensure the section headings still have their accent underline */
.card-1 h2, .card-2 h2, .card-3 h2, .card-4 h2 {
  border-bottom: 2px solid rgba(255,255,255,0.35);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1400px) {
  .nav-logo { font-size: 1.55rem; }
  .nav-logo .mark { width: 42px; height: 42px; }
  .nav-menu > li > a { font-size: 1.05rem; padding: 0.75rem 0.85rem; }
  .nav-cta { font-size: 1rem !important; padding: 0.8rem 1.3rem !important; }
  .lang-toggle button { font-size: 0.9rem; padding: 0.4rem 0.85rem; }
}
@media (max-width: 1180px) {
  .nav-logo { font-size: 1.3rem; }
  .nav-logo .mark { width: 36px; height: 36px; font-size: 1rem; }
  .nav-menu > li > a { font-size: 0.95rem; padding: 0.65rem 0.7rem; }
  .nav-cta { font-size: 0.9rem !important; padding: 0.7rem 1.1rem !important; margin-left: 0.4rem; }
  .lang-toggle button { font-size: 0.85rem; padding: 0.35rem 0.7rem; }
}
@media (max-width: 1000px) {
  body { font-size: 17px; }
  .hamburger { display: block; }
  .nav-container { padding: 0.85rem 1.25rem; }
  .nav-logo { font-size: 1.25rem; }
  .nav-logo .mark { width: 38px; height: 38px; font-size: 1.05rem; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #0a1628;
    padding: 0.85rem;
    gap: 0.15rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(56,189,248,0.15);
    margin-left: 0;
  }
  .nav-menu.open { max-height: 100vh; overflow-y: auto; }
  .nav-menu > li > a { justify-content: space-between; padding: 1rem 1.15rem; font-size: 1.15rem; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(56,189,248,0.05);
    margin-left: 1rem;
    margin-top: 0;
    border-left: 2px solid rgba(56,189,248,0.3);
    border-radius: 0;
    display: none;
    min-width: 0;
    pointer-events: auto;
  }
  .nav-menu > li.open .dropdown { display: block; }
  .lang-toggle { margin-left: 0; margin-top: 0.5rem; align-self: flex-start; }
  .nav-cta { margin: 0.5rem 0 0 0; align-self: flex-start; }
  .hero { min-height: 280px; padding: 3rem 1.25rem 3.5rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1.05rem; }
  .galaxy-bg { padding: 3rem 1.25rem 3.5rem; background-attachment: scroll; }
  .leader-card { flex-direction: column; align-items: center; text-align: center; }
  .section-block { padding: 1.75rem; }
  .section-block h2 { font-size: 1.5rem; }
  .latest-update { flex-direction: column; align-items: flex-start; }
  .lead { font-size: 1.08rem; }
}
