body {
  font-family: 'Open Sans', sans-serif;
  background-color: #F8F9FA;
  color: #2F3E46;
  margin: 0;
}

/* --- HEADER --- */
header {
  /* Shiny Gradient */
  background: linear-gradient(135deg, #a4bfa0, #8FA685, #6e8666);
  color: white;
  padding: 20px;
  /* Απαλή σκιά στο κάτω μέρος */
  box-shadow: 0 10px 20px rgba(143, 166, 133, 0.2);
  /* Προαιρετικά: στρογγύλεμα στις κάτω γωνίες του header */
  border-radius: 0 0 20px 20px; 
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-pic {
  width: 96px;
  height: 96px;
  object-fit: cover;
  display: block;
  /* Μεγάλο στρογγύλεμα (κύκλος) και σκιά */
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

h1 {
  font-size: 1.8rem;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2); /* Λίγο βάθος στον τίτλο */
}

h1 a {
  color: white;
  text-decoration: none;
}

.menu-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: 12px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- MENU --- */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 120px;
  min-height: 40px;
  padding: 10px 15px;
  /* Shiny λευκό κουμπί */
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  color: #5c7352;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px; /* Μεγάλο rounded corner */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Σκιά */
  transition: all 0.3s ease;
  word-wrap: break-word;
  line-height: 1.2;
}

nav a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(143, 166, 133, 0.3); /* Πιο έντονη σκιά στο hover */
  background: linear-gradient(135deg, #ffffff, #e6e6e6);
}

/* --- MAIN CONTENT & POSTS --- */
main {
  padding: 0 2em;
  margin-bottom: 3em;
  margin-top: 2em;
}

main > h2 {
  margin-left: 0;
  padding-left: 0;
  text-align: center;
  color: #4a5c43;
  margin-bottom: 30px;
}

main p {
  text-align: justify;
  text-indent: 2em;
  margin-top: 0 !important;
  margin-bottom: 0.7em !important;
  line-height: 1.6;
}

#posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* Κάρτα άρθρου (Shiny effect) */
.article-card {
  background: linear-gradient(135deg, rgba(143, 166, 133, 0.4), rgba(143, 166, 133, 0.15));
  backdrop-filter: blur(10px); /* Εφέ γυαλιού αν υπάρχει background από πίσω */
  padding: 20px;
  border-radius: 20px; /* Μεγάλες καμπύλες */
  border: 1px solid rgba(255, 255, 255, 0.6); /* Γυαλάδα στο περίγραμμα */
  cursor: pointer;
  color: #2F3E46;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); /* Απαλή αρχική σκιά */
}

.article-card:hover {
  background: linear-gradient(135deg, rgba(143, 166, 133, 0.5), rgba(143, 166, 133, 0.25));
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(143, 166, 133, 0.3); /* Shiny 3D lift */
}

.article-card h3 {
  margin: 0 0 15px 0;
  color: #3b4d35;
  font-size: 1.2em;
}

.article-card p {
  text-align: justify;
  text-indent: 2em;
  margin: 0 0 1.5em 0;
  line-height: 1.6;
  flex-grow: 1;
}

.article-card .read-more {
  font-size: 0.85em;
  font-weight: 600;
  color: #5c7352;
  align-self: flex-end;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 5px 12px;
  border-radius: 15px;
}

/* --- VIDEOS --- */
.videos-grid {
  display: grid;
  gap: 30px;
  padding: 0 10px;
  max-width: none;
  margin: 0 auto;
  box-sizing: border-box;
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 20px;
  overflow: hidden; /* Κρατάει τις γωνίες στρογγυλεμένες μαζί με το iframe */
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.video-item:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(143, 166, 133, 0.3);
}

.video-title {
  background: linear-gradient(135deg, #a4bfa0, #8FA685);
  color: white;
  padding: 15px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.video-item iframe {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  aspect-ratio: 16 / 9;
  margin-top: 0;
  max-width: 100%;
  border: none; /* Αφαιρεί το default περίγραμμα */
}

/* --- BOOKS --- */
.books-grid {
  display: grid;
  gap: 30px;
  padding: 20px;
}

.book-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background-color: white;
}

.book-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 30px rgba(143, 166, 133, 0.4); /* Έντονη γυαλιστερή σκιά */
}

.book-item img {
  width: 100%;
  display: block;
  border-radius: 20px 20px 0 0; /* Στρογγυλό μόνο πάνω */
}

.book-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.book-cover {
  flex: 1 1 300px;
  max-width: 300px;
}

.book-cover img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.book-content {
  flex: 2 1 400px;
  min-width: 280px;
  font-size: 1rem;
  color: #333;
}

.book-buy-button {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #a4bfa0, #8FA685); /* Shiny button */
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px; /* Πλήρως στρογγυλεμένο */
  box-shadow: 0 6px 15px rgba(143, 166, 133, 0.4);
  transition: all 0.3s ease;
}

.book-buy-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(143, 166, 133, 0.6);
  background: linear-gradient(135deg, #b0cca9, #9ab38e);
}

/* --- ACCORDION --- */
.accordion {
  cursor: pointer;
  user-select: none;
  background: linear-gradient(135deg, rgba(143, 166, 133, 0.8), rgba(143, 166, 133, 0.6));
  color: white;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 15px;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.accordion:hover {
  background: linear-gradient(135deg, rgba(143, 166, 133, 0.9), rgba(143, 166, 133, 0.7));
  transform: scale(1.01);
}

.accordion.active {
  background: linear-gradient(135deg, #788c6e, #6e8666);
  border-radius: 15px 15px 0 0; /* Τετραγωνίζει κάτω όταν ανοίγει */
  margin-bottom: 0;
}

.panel {
  display: none;
  background: white;
  padding: 20px;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  margin-bottom: 15px;
}

.accordion.active + .panel {
  display: block;
}

/* --- SCROLL TO TOP BUTTON --- */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background: linear-gradient(135deg, #a4bfa0, #8fa685);
  color: white;
  width: 55px;
  height: 55px;
  padding: 0;
  cursor: pointer;
  z-index: 999;
  font-size: 2rem;
  line-height: 1;
  user-select: none;
  box-shadow: 0 8px 20px rgba(143, 166, 133, 0.5);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%; /* Απόλυτα στρογγυλό */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(143, 166, 133, 0.7);
  background: linear-gradient(135deg, #b0cca9, #9ab38e);
}

#scrollToTopBtn > span {
  display: inline-block;
  transform: translateY(2px);
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(135deg, #a4bfa0, #8FA685, #6e8666);
  color: white;
  text-align: center;
  padding: 30px;
  margin-top: 50px;
  box-shadow: 0 -10px 20px rgba(143, 166, 133, 0.15); /* Σκιά προς τα πάνω */
  border-radius: 30px 30px 0 0; /* Στρογγύλεμα πάνω στο footer */
}

/* RESPONSIVE DESIGN */
@media (min-width: 900px) {
  .videos-grid, .books-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 600px) and (max-width: 899px) {
  .videos-grid, .books-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
  .videos-grid, .books-grid { grid-template-columns: 1fr; }
}

/* 1. Κοινές ιδιότητες για ΟΛΑ τα grids (για να στοιχίζονται πάντα στην ίδια ευθεία) */
.home-grid, 
.videos-grid, 
#posts, 
.books-grid {
  display: grid;
  gap: 30px;      /* Ίδιο κενό παντού */
  padding: 20px;  /* Ίδια απόσταση από τις άκρες παντού */
  max-width: 1200px; /* Για να μην απλώνουν υπερβολικά σε τεράστιες οθόνες */
  margin: 0 auto; /* Κεντράρισμα */
}

/* 2. Responsive αλλαγές μόνο για τις στήλες */
@media (min-width: 768px) {
  .home-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .books-grid { 
    grid-template-columns: repeat(3, 1fr); 
  }
  .videos-grid, #posts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 3. Για κινητά (κάτω από 768px) */
@media (max-width: 767px) {
  .home-grid, .books-grid, .videos-grid, #posts {
    grid-template-columns: 1fr; /* Όλα μια στήλη */
    gap: 20px; /* Προαιρετικά λίγο μικρότερο κενό στα κινητά */
  }
}

@media (max-width: 800px) {
  .profile-pic {
    width: 60px;
    height: 60px;
  }
  h1 { font-size: 1.3rem; }
  .header-container {
    justify-content: space-between;
    position: static;
  }
  .header-content { flex: 1; }
  .menu-toggle {
    display: block;
    position: static;
    transform: none;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  nav {
    flex-direction: column;
    align-items: stretch;
    display: none;
    width: 100%;
    gap: 10px;
    margin-top: 20px;
  }
  nav.show { display: flex; }
  nav a {
    width: auto;
    padding: 15px 20px;
    box-sizing: border-box;
    margin-left: 0;
    border-radius: 15px; /* Πιο "τετραγωνισμένο" αλλά καμπυλωτό για κινητά */
  }
}

@media (max-width: 768px) {
  #scrollToTopBtn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}