html {
  scroll-behavior: smooth;
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 45px;
  height: 45px;
  border-radius: 50%;

  border: none;
  background: #333;
  cursor: pointer;

  display: none; /* θα το δείχνει το JS */
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

#scrollTopBtn:hover {
  background: #000;
}

#scrollTopBtn {
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
}

#scrollTopBtn:focus {
  outline: 2px solid #00aaff;
  outline-offset: 2px;
}

/* Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Login overlay */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Login box */
.login-box {
  background: #1c1c1c;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  width: 300px;
  max-width: 90%;
}

/* Titles */
.login-box h3 {
  margin-bottom: 20px;
  color: #ff4444;
}

/* Inputs & button - ίδιο width */
.login-box input[type="password"],
.login-box button {
  width: 100%;
  display: block;
  padding: 10px;
  border-radius: 5px;
  border: none;
  margin-bottom: 15px;
  font-size: 16px;
}

/* Button styles */
.login-box button {
  background: #ff4444;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.login-box button:hover {
  background: #ff2222;
}

body {
  margin: 0;
  background: #111;
  color: #eee;
  font-family: Arial, sans-serif, "Noto Sans Hebrew";
  line-height: 1.5;
  padding: 0;
}

/* NAVBAR */
.navbar {
  background: #1a1a1a;
  border-bottom: 1px solid #222;
  width: 100%;
  z-index: 9999; /* για να είναι πάνω από όλα */
  position: relative;
}

.navbar-container {
  display: flex;
  justify-content: space-between; /* brand αριστερά, toggle δεξιά */
  align-items: center;
  padding: 0 20px;
  height: 60px;
}

/* Brand */
.brand {
  color: #2944dd;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #2944dd;
  cursor: pointer;
}

/* Desktop menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu a {
  color: #2944dd;
  text-decoration: none;
  padding: 8px 0;
}

.nav-menu a.active {
  color: #ff4444;
  font-weight: bold;
}

.nav-user {
  color: #66ff99;
  margin-left: 10px;
  font-size: 0.85rem;
}

.nav-btn {
  border: 1px solid #333;
  padding: 5px 10px;
  border-radius: 5px;
  margin-left: 5px;
}

/* Mobile sidebar toggle bar */
.mobile-sidebar-bar {
  display: none; /* default: κρυφό σε PC */
}

/* LAYOUT */
.layout {
  display: flex;
  min-height: calc(100vh - 65px);
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: #151515;
  border-right: 1px solid #222;
  padding: 15px;
  overflow-y: auto;
}

.toc-btn {
  width: 100%;
  background: #1f1f1f;
  color: #fff;
  border: none;
  padding: 10px;
  margin-bottom: 5px;
  text-align: left;
  border-left: 4px solid #ff4444;
  cursor: pointer;
}

.toc-sub {
  display: block;
  padding-left: 12px;
  margin-bottom: 10px;
}

.toc-sub a {
  display: block;
  color: #ccc;
  text-decoration: none;
  padding: 6px 0;
  cursor: pointer;
}

.toc-sub a:hover {
  color: #ff4444;
}

/* CONTENT */
.content {
  flex: 1;
  padding: 25px;
  overflow-y: auto;
}

.hint {
  color: #777;
}

/* CV SECTIONS */
.cv-section {
  margin-bottom: 20px;
  background: #1c1c1c;
  border-radius: 8px;
}

.section-header {
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  border-left: 5px solid #ff4444;
}

.section-body {
  display: none;
  padding: 15px;
  line-height: 1.6;
}

/*General Table*/
.general-table-wrapper {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 25px;
  margin: 20px auto;
  max-width: 900px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Table */
.general-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: #222;
}

/* Labels */
.general-table th {
  width: 140px;
  vertical-align: middle;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}

.general-table td {
  vertical-align: middle;
  padding: 12px 16px;
}

/* Διακριτικές γραμμές */
.general-table tr:not(:last-child) {
  border-bottom: 1px solid #e6e6e6;
}

/* White container πάνω σε dark background */
.profile-table-wrapper {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 25px;
  margin: 20px auto;
  max-width: 900px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Table */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: #222;
}

.profile-name {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.2s;
}

.profile-photo:hover {
  transform: scale(1.05);
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  cursor: zoom-out;
}

/* Labels */
.profile-table th {
  width: 140px;
  vertical-align: middle;
  text-align: left;
  padding: 12px 10px;
  white-space: nowrap;
}

.profile-table td {
  vertical-align: middle;
  padding: 12px 16px;
}

/* Διακριτικές γραμμές */
.profile-table tr:not(:last-child) {
  border-bottom: 1px solid #e6e6e6;
}

.simple-container {
  padding: 10px 0px;
  position: relative;
  background-color: inherit;
  width: 100%;
}
.simple-content {
  padding: 20px 30px;
  background-color: white;
  color: #222;
  position: relative;
  border-radius: 6px;
  margin-top: 15px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 2000px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 7%;
  margin-left: -3px;
}

.timeline-header-container {
  position: relative;
  background-color: inherit;
  width: 100%;
}

.timeline-header-content {
  padding: 20px 30px;
  background-color: white;
  color: #222;
  position: relative;
  border-radius: 6px;
  width: 100%;
}

/* Container */
.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 90%;
}

/* Circle */
.timeline-container::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  left: -16px; /* fix για right container */
  background-color: white;
  border: 4px solid #ff4444;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* All containers on the right */
.right {
  left: 7%;
}

/* Arrow pointing to the line */
.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

/* Content box */
.timeline-content {
  padding: 20px 30px;
  background-color: white;
  color: #222;
  position: relative;
  border-radius: 6px;
}

.footer {
  background: #0d0d0d;
  border-top: 1px solid #222;
  padding: 15px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contacts-title {
  font-weight: 600;
}

.footer-icons-row {
  display: flex;
  gap: 12px;
}

.footer-left {
  color: #777;
  font-size: 13px;
}

.footer-right a {
  color: #bbb;
  text-decoration: none;
  font-size: 18px;
  margin-left: 12px;
  transition:
    color 0.2s,
    transform 0.2s;
}

.footer-right a:hover {
  color: #ff4444;
  transform: translateY(-2px);
}

/* --- Blog Container --- */
.blog-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 15px;
}

/* --- Each Post --- */
.post {
  margin-bottom: 40px;
}

/* ---------- POST WRAPPER (shade + centering) ---------- */
.post-wrapper {
    max-width: 800px;
    margin: 30px auto;          
    padding: 30px;
    background-color: #fff;      
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* ---------- POST BLOCKS ---------- */
.post-content .post-block {
    text-align: center;          
    margin: 25px 0;
}

/* Paragraphs / headings / quotes / links */
.post-content p,
.post-content h2,
.post-content blockquote,
.post-content a {
    margin-bottom: 15px;
    text-align: left;          
}

/* Blockquotes */
.post-content blockquote {
    padding: 15px 20px;
    background: #f9f9f9;
    border-left: 5px solid #4f46e5;
    color: #555;
    font-style: italic;
}

/* Images */
.post-content .post-block img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;   /* 16:9 ratio */
    margin: 20px 0;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Videos / embeds */
.post-content .post-block iframe,
.post-content .post-block video,
.post-content .post-block .fb-video,
.post-content .post-block .fb-video iframe,
.post-content .post-block .fb_iframe_widget,
.post-content .post-block .fb_iframe_widget span {
    display: inline-block;
    max-width: 100%;
    width: 100%;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

/* Links inside paragraphs */
.post-content p a {
    word-break: break-word;
}

.post-thumb {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.breadcrumbs a {
  color: #0077cc;
  text-decoration: underline;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: #005fa3;
}

/* RESPONSIVE: mobile NAVBAR */
@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    border-top: 1px solid #222;
    z-index: 9999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a,
  .nav-user,
  .nav-btn {
    text-align: center;
    border-bottom: 1px solid #222;
    padding: 12px 0;
    margin-left: 0;
    width: 100%;
  }
}

/* Mobile layout */
@media (max-width: 800px) {
  #scrollTopBtn {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-icons {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer-contacts-title {
    font-size: 15px;
  }

  .footer-icons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .footer-icons-row a {
    font-size: 20px;
  }

  .footer-left {
    order: 3;
    margin-top: 8px;
    font-size: 14px;
  }
}

/* Responsive */
/* Mobile sidebar */
@media (max-width: 800px) {
  .timeline::after {
    left: 18px;
  }

  .timeline-container {
    width: 100%;
    padding-left: 55px;
    padding-right: 25px;
  }

  .timeline-container::before {
    left: 45px;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  .timeline-container::after {
    left: 1px;
  }

  .right {
    left: 0%;
  }

  .mobile-sidebar-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
    border-bottom: 1px solid #222;
    padding: 10px;
  }

  .sidebar-toggle {
    width: 100%;
    max-width: 300px;
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
  }

  .sidebar-toggle:active {
    background: #ff2222;
  }

  .sidebar {
    position: fixed;
    top: 65px;
    left: -260px;
    width: 260px;
    height: calc(100% - 65px);
    background: #151515;
    border-right: 1px solid #222;
    padding: 15px;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    height: calc(100% - 65px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .profile-table tr {
    display: block;
    margin-bottom: 12px;
  }

  .profile-table th {
    display: block;
    width: 100%;
    padding: 0 0 4px 0;
    font-size: 13px;
    color: #666;
  }

  .profile-table td {
    display: block;
    padding: 0;
    font-size: 15px;
  }
  .profile-name {
    gap: 10px;
  }

  .profile-photo {
    width: 56px;
    height: 56px;
  }

  .general-table thead {
    display: none;
  }

  .general-table tr {
    display: block;
    margin-bottom: 12px;
  }

  .general-table th {
    display: block;
    width: 100%;
    padding: 0 0 4px 0;
    font-size: 13px;
    color: #666;
  }

  .general-table td {
    display: block;
    padding: 0;
    font-size: 15px;
  }
  .general-table td::before {
    content: attr(data-label);
    font-weight: bold;
  }

  .post-wrapper {
    padding: 20px;
  }

  .post-content h2 {
    font-size: 1.5em;
  }

  .post-thumb {
    max-height: 160px;
  }
}
