:root {
  /* Χρωματική παλέτα εμπνευσμένη από almacy.org (θα ρυθμίσουμε ακριβή hex στη συνέχεια) */
  --color-bg: #ffffff;
  --color-text: #0f172a; /* σκούρο μπλε-γκρι */
  --color-muted: #475569;
  --color-primary: #99ac27;
  --color-primary-600: #7f8d20;
  --color-accent: #26507a;
  --color-surface: #f8fafc;
  --color-border: #e2e8f0;
  --header-height: 72px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  padding-top: var(--header-height);
}

.container {
  width: min(1200px, 94%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand {
  text-decoration: none;
  color: inherit;
  display: grid;
}
.brand-top {
  font-size: 12px;
  color: var(--color-muted);
}
.brand-name {
  font-weight: 700;
  font-size: 18px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
}
.site-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav li { display: flex; align-items: center; white-space: nowrap; }
.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.site-nav a:hover {
  background: var(--color-surface);
  text-decoration: none;
}

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--color-surface); }

.hero {
  background: linear-gradient(180deg, #e2ecf5 0%, #ffffff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; justify-items: center; align-items: center; gap: 28px; }
.hero-inner { text-align: center; }
.hero .hero-inner { margin-top: -12px; }
.hero-title {
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.2;
  margin: 16px 0 8px;
  color: var(--color-accent);
}
.kicker { color: var(--color-accent); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; font-size: 12px; }
.prose .kicker { margin-bottom: 8px; display: block; }
.hero-subtitle {
  color: var(--color-muted);
  margin-bottom: 20px;
}
.hero-tagline {
  font-weight: 700;
  font-size: clamp(20px, 3.2vw, 30px);
  color: var(--color-accent);
  line-height: 1.2;
}
.hero-cta { display: inline-flex; gap: 12px; }

.hero-visual { display: grid; place-items: center; }
.avatar-lg { width: 280px; height: 280px; border-radius: 999px; background: radial-gradient(circle at 30% 30%, #eef5da, var(--color-primary)); box-shadow: var(--shadow-md); border: 6px solid #ffffff; }

/* Call page hero with background effect */
.call-hero-section {
  position: relative;
  padding: 72px 0 32px;
  /* Παλαιό εφέ: πράσινο ↔ μπλε με ομαλή κίνηση */
  background: linear-gradient(135deg, var(--color-primary) 0%, #b6c64a 25%, #4b82b4 75%, var(--color-accent) 100%);
  background-size: 200% 200%;
  animation: gradient-pan 18s ease-in-out infinite alternate;
  overflow: hidden;
}
.call-hero-section::before { content: none; }
.call-hero-content { position: relative; z-index: 1; text-align: center; }
.call-hero-title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  color: #0b2f4a;
  text-shadow: 0 2px 10px rgba(11, 47, 74, 0.18);
}
@keyframes gradient-pan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.button.primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary-600);
}
.button.primary:hover { background: var(--color-primary-600); }
.button.ghost { background: transparent; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card.highlight {
  border-color: #d7e6a0;
  background: #f5f9e6;
}

.posts { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 20px; 
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.post { 
  border: 1px solid var(--color-border); 
  border-radius: var(--radius); 
  padding: 16px; 
  background: #fff; 
  overflow: hidden; 
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.post.deleting {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}
.post img { width: 100%; height: auto; border-radius: 10px; display: block; margin-bottom: 10px; }
.post .meta { color: var(--color-muted); font-size: 14px; }
.post .excerpt { margin: 8px 0 12px; }

.text-link { color: var(--color-primary-600); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.media-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px; }
.media-thumb { height: 160px; border-radius: 10px; background: linear-gradient(135deg, var(--color-accent), var(--color-primary)); box-shadow: var(--shadow-md); }

.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; box-shadow: var(--shadow-sm); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.news-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; }
.tag { background: #eef5da; color: var(--color-accent); padding: 4px 8px; border-radius: 999px; font-size: 12px; }
.news-list time { color: var(--color-muted); font-size: 14px; }
.thumb { width: 160px; height: 100px; object-fit: cover; border-radius: 8px; margin-right: 10px; vertical-align: middle; background: #e2e8f0; display: inline-block; }

.contact-list { padding-left: 18px; }
.contact-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field input, .field textarea { padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 10px; font: inherit; }
.form-note { color: var(--color-muted); font-size: 12px; margin-top: 10px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #b6c64a 25%, #4b82b4 75%, var(--color-accent) 100%);
  background-size: 200% 200%;
  animation: gradient-pan 18s ease-in-out infinite alternate;
  color: var(--color-text);
}
.site-footer a { color: var(--color-text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner { display: grid; gap: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 0.9fr; gap: 24px; align-items: start; }
.footer-title { font-weight: 700; margin: 0 0 8px 0; color: var(--color-text); }
.footer-list { list-style: none; padding: 0; margin: 0 0 8px 0; display: grid; gap: 6px; color: var(--color-text); }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-menu li { border-bottom: 1px solid rgba(15,23,42,0.25); padding-bottom: 6px; color: var(--color-text); }
.footer-menu li:last-child { border-bottom: 0; padding-bottom: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid rgba(15,23,42,0.6); border-radius: 999px; font-size: 12px; color: var(--color-text); }
.footer-social a svg { width: 16px; height: 16px; display: block; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer a { text-decoration: none; color: var(--color-text); }
.small { color: var(--color-muted); font-size: 14px; }

/* Footer logo */
.footer-logo {
  width: min(60%, 360px);
  max-width: 360px;
  height: auto;
  display: block;
  margin: 8px auto 0;
}

/* Footer contact block */
.footer-contact { text-align: center; }
.footer-contact h4 { margin: 4px 0; font-weight: 700; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .posts { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  /* articles-grid now handled by dedicated mobile-first rules above */
}

/* Tablet and small mobile */
@media (max-width: 768px) {
  .posts { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  /* articles-grid now handled by dedicated mobile-first rules above */
}

@media (max-width: 720px) {
  .site-nav { display: none; position: absolute; right: 4%; top: calc(var(--header-height) + 8px); background: #fff; border: 1px solid var(--color-border); border-radius: 10px; box-shadow: var(--shadow-md); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px; }
  .nav-toggle { display: inline-block; }
  .posts { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .hero-inner { margin-top: -8px; }
  /* articles-grid now handled by dedicated mobile-first rules above */
  /* Compact footer on mobile */
  .site-footer { padding: 18px 0; }
  .footer-inner { gap: 12px; }
  .footer-grid { gap: 14px; }
  .footer-title { margin-bottom: 6px; }
  .footer-menu { gap: 6px; }
  .footer-menu li { padding-bottom: 4px; }
  .footer-logo { max-width: 160px; width: 50%; margin-top: 4px; }
  .footer-social a { width: 24px; height: 24px; font-size: 11px; }
  .footer-social a svg { width: 14px; height: 14px; }
  .footer-list, .footer-menu, .footer-title { font-size: 14px; }
}

/* Extra small phones */
@media (max-width: 480px) {
  .site-footer { padding: 14px 0; }
  .footer-inner { gap: 10px; }
  .footer-grid { gap: 10px; }
  .footer-logo { max-width: 120px; width: 42%; }
  .footer-social a { width: 20px; height: 20px; }
  .footer-social a svg { width: 12px; height: 12px; }
  .footer-list, .footer-menu, .footer-title { font-size: 13px; }
}

@media (max-width: 360px) {
  .footer-logo { max-width: 100px; width: 40%; }
  .footer-social a { width: 18px; height: 18px; }
  .footer-social a svg { width: 11px; height: 11px; }
  .footer-list, .footer-menu, .footer-title { font-size: 12.5px; }
}

/* Authentication Styles */
.auth-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-btn, .logout-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-btn:hover, .logout-btn:hover {
  background: var(--color-primary-600);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.user-menu span {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 600;
}

/* Footer Authentication Styles */
.footer-auth {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-top: 8px;
}

.footer-login-btn, .footer-logout-btn {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text);
  border: 1px solid rgba(15, 23, 42, 0.3);
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.footer-login-btn:hover, .footer-logout-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(15, 23, 42, 0.5);
}

.footer-user-menu {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
  gap: 8px;
}

.footer-user-menu span {
  font-size: 12px;
  color: var(--color-text);
  font-weight: 600;
}

/* Login Form Styles */
.login-form {
  max-width: 400px;
  margin: 0 auto;
}

.login-form .field {
  margin-bottom: 20px;
}

.login-form .field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--color-text);
}

.login-form .field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form .field input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(153, 172, 39, 0.1);
}

.error-message {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px;
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
}

.loading-message {
  color: var(--color-primary);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 12px;
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Responsive authentication styles */
@media (max-width: 720px) {
  .footer-auth {
    justify-content: center;
    margin-top: 6px;
  }
  
  .footer-user-menu {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 6px 8px;
  }
  
  .footer-user-menu span {
    font-size: 11px;
  }
  
  .footer-logout-btn {
    font-size: 11px;
    padding: 4px 8px;
  }
}

.hidden {
  display: none;
}

/* Articles Header */
.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.articles-header h1 {
  margin: 0;
}

.articles-header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 768px) {
  .articles-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .articles-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Admin-only elements - ΔΙΑΓΡΑΦΗΚΑΝ */

/* Articles Grid - mobile-first responsive */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 column */
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

/* Tablet: 2 columns */
@media (min-width: 769px) and (max-width: 900px) {
  .articles-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop: 3 columns */
@media (min-width: 901px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Articles page container should not inherit .posts grid constraints */
#articles-list.posts {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

/* Article Card - CSS Grid layout */
.article-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
  min-height: 300px;
  height: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-card-image {
  margin-bottom: 16px;
  flex-shrink: 0;
}

.article-card-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.article-card-meta {
  color: var(--color-muted);
  font-size: 14px;
  margin: 8px 0 12px;
}

.article-card-category {
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.article-card-title {
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  flex-shrink: 0;
}

.article-card-title a {
  color: var(--color-primary-600);
  text-decoration: none;
}

.article-card-title a:hover {
  text-decoration: underline;
}

.article-card-excerpt {
  margin: 8px 0 16px;
  line-height: 1.6;
  color: var(--color-text);
  flex: 1;
}

.article-card-actions {
  margin-top: auto;
  padding-top: 12px;
  flex-shrink: 0;
}

.article-card-read-btn {
  color: var(--color-primary-600);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  margin-right: 12px;
}

.article-card-read-btn:hover {
  text-decoration: underline;
}

.article-delete-btn {
  color: #dc3545;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  font-size: 0.9rem;
}

.article-delete-btn:hover {
  text-decoration: underline;
}

.article-admin-actions {
  display: none;
  gap: 0.5rem;
}

/* Show admin actions only when logged in */
body.admin-logged-in .article-admin-actions {
  display: flex;
}

.article-edit-btn,
.article-delete-btn {
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-edit-btn:hover {
  background: #f3f4f6;
  border-color: var(--color-primary);
}

.article-delete-btn:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .article-card {
    min-height: 280px;
  }
  
  .article-card-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .article-admin-actions {
    justify-content: center;
  }
}

/* No articles message */
.no-articles {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.no-articles p {
  margin-bottom: 10px;
}

/* admin-only στυλ διαγράφηκε */

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Admin Widget - ΔΙΑΓΡΑΦΗΚΕ ΚΑΙ ΤΟ ΔΕΥΤΕΡΟ ΜΕΡΟΣ */

/* Article Actions */
.article-actions {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 10px;
}

.article-actions button {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-light);
  color: var(--color-text);
  font-size: 0.85em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-article-btn:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.delete-article-btn:hover {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}



/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal:not(.hidden) {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  margin: 0;
  color: var(--color-accent);
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  background: var(--color-surface);
}

.modal-body {
  padding: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}

/* Editor Toolbar */
.editor-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px;
  background: var(--color-surface);
  border-radius: 8px;
}

.editor-toolbar button {
  background: white;
  border: 1px solid var(--color-border);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  min-width: 32px;
}

.editor-toolbar button:hover {
  background: var(--color-primary);
  color: white;
}

.editor-toolbar button.active {
  background: var(--color-primary);
  color: white;
}

/* Form Fields */
.field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--color-text);
}

.field select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  background: white;
}

#article-content {
  min-height: 300px;
  font-family: 'Noto Sans', system-ui, sans-serif;
  resize: vertical;
}

/* Image Upload Styles */
.image-upload-container {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.image-upload-container:hover {
  border-color: var(--color-primary);
}

.image-upload-container input[type="file"] {
  width: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.image-preview {
  position: relative;
  margin-top: 15px;
  display: inline-block;
}

.image-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  background: var(--color-light);
  display: block;
}

.image-preview img[src=""], .image-preview img:not([src]), .image-preview img[src]:invalid {
  display: none !important;
}

.remove-image-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.remove-image-btn:hover {
  background: #b91c1c;
}

.upload-progress {
  margin-top: 15px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-surface);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

#progress-text {
  font-size: 14px;
  color: var(--color-muted);
}

/* Article Editor Styles */
.large-modal .modal-content {
  max-width: 900px;
  width: 95%;
}

.article-form .field {
  margin-bottom: 24px;
}

.rich-editor {
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: white;
  transition: border-color 0.3s ease;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.rich-editor:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(153, 172, 39, 0.1);
}

.rich-editor[placeholder]:empty::before {
  content: attr(placeholder);
  color: #9ca3af;
}

.rich-editor p {
  margin: 0 0 16px 0;
}

.rich-editor div {
  margin-bottom: 16px;
}

.rich-editor br {
  line-height: 1.6;
}

.rich-editor ul, .rich-editor ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.rich-editor li {
  margin-bottom: 8px;
}

.rich-editor a {
  color: var(--color-primary);
  text-decoration: underline;
}

.rich-editor strong {
  font-weight: 700;
}

.rich-editor em {
  font-style: italic;
}

/* Admin-only elements */
.admin-only {
  display: none;
}

body.admin-logged-in .admin-only {
  display: block;
}



/* Responsive article editor */
@media (max-width: 768px) {
  .large-modal .modal-content {
    width: 98%;
    max-height: 95vh;
  }
  
  .rich-editor {
    min-height: 200px;
    font-size: 14px;
    padding: 12px;
  }
  
  .editor-toolbar {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .editor-toolbar button {
    min-width: 28px;
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* Link Editor Modal */
#linkEditorModal .modal-content {
  max-width: 500px;
}

#linkEditorModal .field {
  margin-bottom: 16px;
}

#linkEditorModal .field label {
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 6px;
}

#linkEditorModal .field input[type="text"],
#linkEditorModal .field input[type="url"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

#linkEditorModal .field input[type="text"]:focus,
#linkEditorModal .field input[type="url"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(153, 172, 39, 0.1);
}

#linkEditorModal .field input[type="text"][readonly] {
  background-color: var(--color-bg-alt);
  color: var(--color-muted);
}

#linkEditorModal .field input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

#linkEditorModal .field label[for="link-new-tab"] {
  display: inline;
  font-weight: normal;
  margin-bottom: 0;
  cursor: pointer;
}

/* Video Editor Modal */
#videoEditorModal .modal-content {
  max-width: 650px;
}

/* Video Tabs */
.video-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.video-tabs .tab-button {
  padding: 12px 24px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.video-tabs .tab-button:hover {
  color: var(--color-text);
  background-color: var(--color-bg-alt);
}

.video-tabs .tab-button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Tab Content */
.tab-content {
  margin-bottom: 20px;
}

.tab-content.hidden {
  display: none;
}

/* Video Settings Section */
.video-settings {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  margin-top: 20px;
}

#videoEditorModal .field {
  margin-bottom: 16px;
}

#videoEditorModal .field label {
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 6px;
}

#videoEditorModal .field input[type="url"],
#videoEditorModal .field input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

#videoEditorModal .field input[type="url"]:focus,
#videoEditorModal .field input[type="number"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(153, 172, 39, 0.1);
}

#videoEditorModal .field input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

#videoEditorModal .field label[for="video-controls"],
#videoEditorModal .field label[for="video-autoplay"] {
  display: inline;
  font-weight: normal;
  margin-bottom: 0;
  cursor: pointer;
}

#videoEditorModal .form-note {
  color: var(--color-muted);
  font-size: 12px;
  margin-top: 4px;
  font-style: italic;
}

/* Upload Progress */
.upload-progress {
  margin: 16px 0;
  padding: 16px;
  background-color: var(--color-bg-alt);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  font-size: 14px;
  color: var(--color-text);
  text-align: center;
  font-weight: 500;
}

/* Upload Result */
.upload-result {
  margin: 16px 0;
  padding: 16px;
  background-color: var(--color-success-bg, #f0f9f0);
  border: 1px solid var(--color-success, #28a745);
  border-radius: 8px;
}

.upload-result .field input[type="text"] {
  background-color: white;
  border: 1px solid var(--color-success, #28a745);
  color: var(--color-success-dark, #1e7e34);
  font-weight: 500;
}

.upload-result .form-note {
  color: var(--color-success-dark, #1e7e34);
  font-weight: 500;
}

/* File Input Styling */
#videoEditorModal input[type="file"] {
  padding: 12px;
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  background-color: var(--color-bg-alt);
  cursor: pointer;
  transition: all 0.2s;
}

#videoEditorModal input[type="file"]:hover {
  border-color: var(--color-primary);
  background-color: var(--color-bg);
}

#videoEditorModal input[type="file"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(153, 172, 39, 0.1);
}

/* Video Modal Button States */
#videoEditorModal .button:disabled {
  background-color: var(--color-border);
  color: var(--color-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

#videoEditorModal .button.primary:disabled {
  background-color: var(--color-border);
  color: var(--color-muted);
}

/* Video Elements in Articles */
.rich-editor video,
.rich-editor iframe[src*="youtube"],
.rich-editor iframe[src*="vimeo"] {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  display: block;
}

.rich-editor video {
  background: #000;
}

/* Responsive video containers */
.article-content video,
.article-content iframe[src*="youtube"],
.article-content iframe[src*="vimeo"] {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  display: block;
}

@media (max-width: 768px) {
  .rich-editor video,
  .rich-editor iframe,
  .article-content video,
  .article-content iframe {
    width: 100% !important;
    height: auto !important;
    margin: 15px auto;
  }
}

/* Utilities */
h1, h2, h3 { margin: 0 0 10px 0; }
p { margin: 0 0 10px 0; }

/* Focus */
a:focus, button:focus, input:focus, textarea:focus { outline: 3px solid rgba(38,80,122,0.35); outline-offset: 2px; }

.prose { max-width: 75ch; margin: 0 auto; }
.prose h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin-bottom: 18px; color: var(--color-accent); }
.prose h2 { font-size: clamp(22px, 3vw, 32px); margin-top: 24px; margin-bottom: 8px; font-weight: 700; }
.prose h3 { font-size: clamp(20px, 2.6vw, 28px); margin-top: 20px; margin-bottom: 6px; font-weight: 700; }
.prose p { font-size: 18px; line-height: 1.85; color: var(--color-text); margin: 12px 0; }
.prose p + p { margin-top: 14px; }

/* Justified text for call page */
.prose.prose-justify p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
}

/* Signatories table */
.prose .sign-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 16px; }
.prose .sign-table + .sign-table { margin-top: 18px; }
.prose .sign-table th, .prose .sign-table td { border: 1px solid var(--color-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose .sign-table th { background: var(--color-surface); font-weight: 700; }
.prose .sign-table td:first-child { width: 42px; text-align: center; }
.prose .sign-table tr:nth-child(even) td { background: #fafbfd; }

/* Kicker lines inside prose should be bold and normal case */
.prose .kicker {
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  text-transform: none;
  letter-spacing: normal;
  color: inherit;
  line-height: 1.2;
  margin: 0;
}

/* Σφικτή στοίχιση για την τριάδα: Άλμα (h2) + δύο kickers */
.prose h2 + .kicker { margin-top: 0; }
.prose .kicker + .kicker { margin-top: 0; }
.prose .kicker + p { margin-top: 16px; }

/* Ακόμη πιο σφιχτό για το call page */
.prose.prose-justify h2 { margin-top: 0; margin-bottom: 2px; line-height: 1.15; }
.prose.prose-justify .kicker { line-height: 1.15; }

/* Single Article */
.article { max-width: 900px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Article Header */
.article-header {
  margin-bottom: 32px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.article-category-tag {
  background: var(--color-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.article-date {
  color: var(--color-muted);
  font-size: 14px;
}

.article-title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px;
  line-height: 1.2;
  color: var(--color-accent);
}

.article-excerpt {
  font-size: 18px;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* Article Image */
.article-image-container {
  margin: 32px 0;
}

.article-cover {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: var(--shadow-md);
}

/* Article Body */
.article-body {
  font-size: 18px;
  line-height: 1.7;
  margin: 32px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: left;
}

.article-body h2 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-body h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 20px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--color-muted);
}

/* Article Footer */
.article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.article-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.article-admin-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Article Loading States */
.article-loading, .article-not-found {
  text-align: center;
  padding: 60px 20px;
}

.article-loading p {
  color: var(--color-muted);
  font-size: 18px;
}

.article-not-found h1 {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.article-not-found p {
  color: var(--color-muted);
  margin-bottom: 32px;
}

/* Responsive Article */
@media (max-width: 768px) {
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .article-body {
    font-size: 16px;
  }
  
  .article-actions {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .article-admin-actions {
    justify-content: center;
  }
}

/* Media System Styles */
.media-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.media-header h1 {
  margin: 0;
}

.media-header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Media Grid - 3 columns on desktop */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

/* Media Card */
.media-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.media-card-thumbnail {
  margin-bottom: 16px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}

.media-card-thumbnail video,
.media-card-thumbnail iframe,
.media-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-card-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.media-card:hover .media-card-play-overlay,
.post:hover .media-card-play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.media-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.media-card-meta {
  color: var(--color-muted);
  font-size: 14px;
  margin: 8px 0 12px;
}

.media-card-category {
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-right: 0.5rem;
}

.media-card-title {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  flex-shrink: 0;
}

.media-card-title a {
  color: var(--color-primary-600);
  text-decoration: none;
}

.media-card-title a:hover {
  text-decoration: underline;
}

.media-card-description {
  margin: 8px 0 16px;
  line-height: 1.6;
  color: var(--color-text);
  flex: 1;
}

.media-card-actions {
  margin-top: auto;
  padding-top: 12px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-card-watch-btn {
  color: var(--color-primary-600);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.media-card-watch-btn:hover {
  text-decoration: underline;
}

.media-admin-actions {
  display: none;
  gap: 0.5rem;
}

/* Show media admin actions only when logged in */
body.admin-logged-in .media-admin-actions {
  display: flex;
}

.media-edit-btn,
.media-delete-btn {
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-edit-btn:hover {
  background: #f3f4f6;
  border-color: var(--color-primary);
}

.media-delete-btn:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

/* Video Preview Styles */
.video-preview {
  position: relative;
  margin-top: 15px;
  display: inline-block;
}

.video-preview video {
  max-width: 300px;
  max-height: 200px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  background: #000;
  display: block;
}

/* Facebook video placeholder styles */
.facebook-video-placeholder {
  background: linear-gradient(135deg, #1877f2, #42a5f5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
}

.facebook-video-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  text-align: center;
}

.facebook-video-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.facebook-video-text {
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* YouTube embed container for responsive videos */
.youtube-embed-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.youtube-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Mobile responsive for YouTube embeds */
@media (max-width: 720px) {
  .youtube-embed-container {
    margin: 16px 0;
    border-radius: 8px;
  }
  
  .youtube-embed-container iframe {
    border-radius: 8px;
  }
}

.remove-video-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.remove-video-btn:hover {
  background: #b91c1c;
}

/* URL Preview Styles */
.url-preview {
  margin-top: 15px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px;
  background: var(--color-surface);
}

.url-preview iframe {
  width: 100%;
  min-height: 200px;
  border: 0;
  border-radius: 4px;
}

/* No media message */
.no-media {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-muted);
}

.no-media p {
  margin-bottom: 10px;
}

/* Responsive Media Grid */
@media (max-width: 900px) {
  .media-grid { grid-template-columns: 1fr 1fr; }
  .media-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .media-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .media-grid { grid-template-columns: 1fr; }
  
  .media-card-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .media-admin-actions {
    justify-content: center;
  }
}

/* ================================== */
/* ANNOUNCEMENT CONTENT EDITOR STYLES */
/* ================================== */

.content-editor {
  min-height: 300px;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
  overflow-y: auto;
}

.content-editor:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.content-editor.empty::before {
  content: attr(data-placeholder);
  color: #999;
  font-style: italic;
  pointer-events: none;
  position: absolute;
}

.content-editor.empty {
  position: relative;
}

/* Announcement editor specific styles */
.announcement-editor .editor-content {
  max-width: none;
}

.announcement-editor .editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.announcement-editor .editor-actions {
  display: flex;
  gap: 0.5rem;
}

.announcement-meta {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.editor-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
  color: #666;
}

.save-status {
  font-weight: 500;
}

.word-count {
  color: #999;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-controls {
  display: flex;
  gap: 0.5rem;
}

.admin-controls.hidden {
  display: none !important;
}

/* Announcement admin actions */
.announcement-admin-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.news-list li:hover .announcement-admin-actions {
  opacity: 1;
}

.announcement-edit-btn,
.announcement-delete-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  margin: 0;
}

.announcement-edit-btn:hover {
  background: #e3f2fd;
  border-color: #2196F3;
}

.announcement-delete-btn:hover {
  background: #ffebee;
  border-color: #f44336;
}

/* Make news list items flex for better layout */
.news-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.news-list li a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-list li time {
  margin-left: auto;
  margin-right: 1rem;
}

@media (max-width: 768px) {
  .announcement-editor .editor-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .announcement-editor .editor-actions {
    justify-content: center;
  }
  
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* News/Announcements List Layout */
/* ============================== */

.news-list li {
  display: flex !important;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.news-list li:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.announcement-thumbnail {
  flex-shrink: 0;
  width: 190px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-background);
  border: 1px solid var(--color-border);
}

.announcement-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.news-list li:hover .announcement-thumbnail img {
  transform: scale(1.05);
}

.announcement-info {
  flex: 1;
  min-width: 0;
}

.announcement-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
}

.announcement-info .meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  align-items: center;
}

.announcement-info .category {
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.announcement-info .summary {
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .news-list li {
    flex-direction: column;
    gap: 1rem;
  }
  
  .announcement-thumbnail {
    width: 100%;
    height: 200px;
  }
  
  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
}

/* ================================== */
/* THUMBNAIL UPLOAD STYLES */
/* ================================== */

/* Thumbnail Preview Styles */
.thumbnail-preview {
  margin-top: 10px;
  position: relative;
  display: inline-block;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  max-width: 200px;
}

.thumbnail-preview img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: cover;
  display: block;
}

.remove-thumbnail-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-thumbnail-btn:hover {
  background: rgba(255, 0, 0, 1);
}

/* Media card thumbnail styles */
.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* File upload container for thumbnails */
.file-upload-container {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.3s ease;
  background: var(--color-surface);
}

.file-upload-container:hover {
  border-color: var(--color-primary);
}

.file-upload-container input[type="file"] {
  width: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.file-upload-container p {
  margin: 5px 0 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

/* Media Filters */
.media-filters {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.filter-btn.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

@media (max-width: 768px) {
  .media-filters {
    justify-content: center;
    gap: 8px;
    padding: 12px;
  }
  
  .filter-btn {
    flex: 1;
    text-align: center;
    min-width: 70px;
    max-width: none;
    padding: 6px 8px;
    font-size: 12px;
    white-space: normal;
    line-height: 1.2;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .media-filters {
    gap: 6px;
    padding: 10px;
  }
  
  .filter-btn {
    min-width: 60px;
    padding: 5px 6px;
    font-size: 11px;
    font-weight: 400;
  }
}
