/* Responsive breakpoints + project additions on top of styles.css */

@media (max-width: 880px) {
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 200; }
  .admin-sidebar:not(.open) { display: none !important; }
  .admin-mobile-bar { display: flex !important; }
}

/* ============================================================
   "Αποστολή" strip on the home page — the mission/quick-links
   block previously had hardcoded inline styles that did not
   respond to viewport width. Migrated to classes so we can
   gracefully reduce padding and stack cards on small screens.
   ============================================================ */

.section--apostoli { padding-top: 0; }

.quick-strip {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.quick-strip-title { margin-top: 8px; }
.quick-strip-lead { color: var(--ink-soft); margin-bottom: 18px; }
.quick-strip-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 880px) {
  .quick-strip {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 24px;
  }
}
@media (max-width: 480px) {
  .quick-strip {
    padding: 24px 18px;
    border-radius: var(--rad);
  }
  .quick-strip-cards { gap: 10px; }
}

.mobile-drawer { display: none; }
.mobile-drawer[hidden] { display: none; }
.mobile-drawer.open { display: block; }

[data-drawer-group] .submenu-mobile[hidden] { display: none; }
[data-drawer-group] .submenu-mobile { display: flex; flex-direction: column; padding-left: 12px; }

/* ============================================================
   Brand logo (replaces the round mark + text from the prototype)
   ============================================================ */

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
@media (max-width: 640px) {
  .brand-logo { height: 36px; max-width: 160px; }
}

/* ============================================================
   Desktop dropdown — fix hover-gap so the trail to submenu
   stays inside an interactive surface. We replace the prototype's
   `top: calc(100% + 8px)` gap with internal padding-top, and add
   an invisible bridge over the gap with a ::before pseudo-element.
   ============================================================ */

.nav-item .submenu {
  top: 100%;
  padding: 16px 8px 8px;
}
.nav-item .submenu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

/* ============================================================
   Hero card art — now a real photograph instead of the
   striped gradient placeholder.
   ============================================================ */

.hero-card-art {
  display: block;
  height: 220px;
  overflow: hidden;
  border-radius: var(--rad);
  margin-bottom: 20px;
  background:
    radial-gradient(120% 80% at 10% 0%, oklch(0.96 0.018 80) 0%, transparent 60%),
    var(--bg-warm);
  position: relative;
  isolation: isolate;
  opacity: 1;
}
.hero-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transition: transform 0.6s ease;
}
.hero-card:hover .hero-card-art img {
  transform: scale(1.02);
}
.hero-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,30,50,0.18) 100%);
  pointer-events: none;
}
@media (max-width: 880px) {
  .hero-card-art { height: 200px; }
}

/* ============================================================
   Page-photo banner — sits between page-header and the page body
   on /school and /activities. Full-bleed within the container.
   ============================================================ */

.page-photo {
  margin: 0;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}
.page-photo picture,
.page-photo img {
  display: block;
  width: 100%;
}
.page-photo img {
  max-width: 1280px;
  margin: 0 auto;
  height: clamp(220px, 32vw, 380px);
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   Brand link tightening — wordmark stands alone now, drop the
   gap inherited from the prototype's icon+text layout.
   ============================================================ */

.brand {
  align-items: center;
  gap: 0;
}

/* ============================================================
   Phone-sized viewports — the prototype's default paddings
   (.container 18px, .news-card 24px, .hero-card 28px, .section
   64px) eat too much horizontal real estate at 320–480 px.
   Tighten them so text gets more room without changing desktop.
   ============================================================ */

@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .section { padding: 48px 0; }
  .news-card { padding: 20px 18px; }
  .hero-card { padding: 22px; }
  .hero-stat { padding: 10px 12px; }
  .section-head { gap: 16px; margin-bottom: 24px; }
  .page-header { padding: 40px 0 32px; }
}
@media (max-width: 400px) {
  .container { padding: 0 12px; }
  .news-card { padding: 18px 16px; }
  .hero-card { padding: 18px; }
  .section { padding: 40px 0; }
}
