/* =====================================================================
   KOP DESIGN SYSTEM — core stylesheet
   Plugin:  KOP_DesignSystem v2.1.0
   Project: volleyball.org.cy (Cyprus Volleyball Federation / ΚΟΠΕ)

   CONVENTIONS (match KOP_Hero v3.1.2):
   - Everything is OPT-IN. No raw-element rules outside .kop-* scopes,
     so activating this stylesheet changes nothing until a section is
     rebuilt with these classes (v1.1.0+).
   - All component rules scoped `.kop-ds .kop-*` (body class added by
     the plugin) and critical layout properties carry !important to
     beat Elementor's flat selectors.
   - Tokens live on :root so future snippets/plugins can consume them.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKENS (brief §3.1)
   --------------------------------------------------------------------- */
:root {
  --kop-navy:        #0d1f3c;   /* primary brand */
  --kop-navy-deep:   #050e22;   /* gradients, footer */
  --kop-red:         #e8002d;   /* accent ONLY: badges, LIVE, hovers, underlines */
  --kop-red-dark:    #b0001f;
  --kop-bg:          #ffffff;
  --kop-bg-alt:      #f6f8fb;   /* alternating section background */
  --kop-text:        #1c2430;
  --kop-text-muted:  #5f6b7a;
  --kop-border:      rgba(13, 31, 60, .10);
  --kop-shadow-sm:   0 1px 3px rgba(0, 0, 0, .08);
  --kop-shadow-md:   0 8px 24px rgba(13, 31, 60, .12);
  --kop-radius:      12px;
  --kop-radius-sm:   8px;

  /* Typography (brief §3.2) */
  --kop-font:        'Noto Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --kop-fs-h1:       clamp(28px, 3vw, 40px);
  --kop-fs-h2:       clamp(22px, 2.4vw, 30px);
  --kop-fs-h3:       18px;
  --kop-fs-body:     16px;
  --kop-lh-body:     1.7;

  /* Spacing & rhythm (brief §3.3) */
  --kop-section-pad:        90px;   /* desktop vertical rhythm (80–100px band) */
  --kop-section-pad-mobile: 48px;
  --kop-maxw:               1240px;
  --kop-gap:                24px;

  /* Motion */
  --kop-ease: .2s ease;
}

/* ---------------------------------------------------------------------
   2. LAYOUT PRIMITIVES (brief §3.3)
   --------------------------------------------------------------------- */
.kop-ds .kop-container {
  max-width: var(--kop-maxw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  box-sizing: border-box;
}

.kop-ds .kop-section {
  padding-top: var(--kop-section-pad) !important;
  padding-bottom: var(--kop-section-pad) !important;
  background: var(--kop-bg);
  border: 0 !important;          /* no rules between sections */
}

.kop-ds .kop-section--alt {
  background: var(--kop-bg-alt) !important;
}

@media (max-width: 767px) {
  .kop-ds .kop-section {
    padding-top: var(--kop-section-pad-mobile) !important;
    padding-bottom: var(--kop-section-pad-mobile) !important;
  }
}

/* Responsive grid helper: 4 / 2 / 1 (news) and 3 / 2 / 1 (link hub) */
.kop-ds .kop-grid {
  display: grid !important;
  gap: var(--kop-gap) !important;
  grid-template-columns: repeat(4, 1fr) !important;
}
.kop-ds .kop-grid--3 { grid-template-columns: repeat(3, 1fr) !important; }

@media (max-width: 1023px) {
  .kop-ds .kop-grid,
  .kop-ds .kop-grid--3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 639px) {
  .kop-ds .kop-grid,
  .kop-ds .kop-grid--3 { grid-template-columns: 1fr !important; }
}

/* ---------------------------------------------------------------------
   3. SIGNATURE HEADING (brief §3.2)
   Uppercase, 2.5px tracking, weight 800, navy, short red underline.
   Replaces all black bars / double-rules site-wide.
   --------------------------------------------------------------------- */
.kop-ds .kop-heading {
  font-family: var(--kop-font) !important;
  font-size: var(--kop-fs-h2) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 2.5px !important;
  color: var(--kop-navy) !important;
  margin: 0 0 28px !important;
  padding: 0 0 12px !important;
  position: relative;
  border: 0 !important;            /* kills inherited double-rules */
  background: none !important;     /* kills inherited black bars   */
  line-height: 1.25;
}
.kop-ds .kop-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--kop-red);
  border-radius: 2px;
}
.kop-ds .kop-heading--center { text-align: center !important; }
.kop-ds .kop-heading--center::after {
  left: 50%;
  transform: translateX(-50%);
}
/* Smaller variant for card headers (link-hub category titles, §4.2) */
.kop-ds .kop-heading--sm {
  font-size: 15px !important;
  letter-spacing: 2px !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
}

/* ---------------------------------------------------------------------
   4. CARD (brief §3.4)
   --------------------------------------------------------------------- */
.kop-ds .kop-card {
  display: flex !important;
  flex-direction: column !important;
  background: var(--kop-bg) !important;
  border-radius: var(--kop-radius) !important;
  box-shadow: var(--kop-shadow-sm);
  border: 1px solid var(--kop-border);
  overflow: hidden !important;     /* lets media sit edge-to-edge */
  transition: transform var(--kop-ease), box-shadow var(--kop-ease);
  text-decoration: none !important;
  color: var(--kop-text);
}
.kop-ds .kop-card:hover,
.kop-ds .kop-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--kop-shadow-md);
}

/* Category accent (link-hub §4.2): identity via thin border, not bg */
.kop-ds .kop-card--accent-top  { border-top: 3px solid var(--kop-navy) !important; }
.kop-ds .kop-card--accent-left { border-left: 3px solid var(--kop-navy) !important; }
.kop-ds .kop-card--accent-red.kop-card--accent-top  { border-top-color: var(--kop-red) !important; }
.kop-ds .kop-card--accent-red.kop-card--accent-left { border-left-color: var(--kop-red) !important; }

/* Edge-to-edge media, uniform 16:9 crop (news grid §4.1) */
.kop-ds .kop-card__media {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  overflow: hidden !important;
  background: var(--kop-bg-alt);
}
.kop-ds .kop-card__media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
}

.kop-ds .kop-card__body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  padding: 18px 20px 16px !important;
  gap: 8px;
}

.kop-ds .kop-card__title {
  font-family: var(--kop-font) !important;
  font-size: var(--kop-fs-h3) !important;
  font-weight: 800 !important;
  color: var(--kop-navy) !important;
  line-height: 1.35;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

.kop-ds .kop-card__excerpt {
  font-family: var(--kop-font) !important;
  font-size: 14px !important;
  font-weight: 400;
  color: var(--kop-text-muted) !important;
  line-height: 1.55;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

/* Footer meta row: date + author over a hairline (§4.1) */
.kop-ds .kop-card__meta {
  margin-top: auto !important;
  padding-top: 10px !important;
  border-top: 1px solid var(--kop-border) !important;
  display: flex !important;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--kop-font) !important;
  font-size: 12px !important;
  font-weight: 600;
  color: var(--kop-text-muted) !important;
}

/* ---------------------------------------------------------------------
   5. CHIP / BADGE (brief §3.4)
   10%-opacity background, full-strength text.
   --------------------------------------------------------------------- */
.kop-ds .kop-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  font-family: var(--kop-font) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px;
  line-height: 1.4;
  background: rgba(13, 31, 60, .10) !important;  /* navy default */
  color: var(--kop-navy) !important;
  text-decoration: none !important;
  border: 0;
  transition: background var(--kop-ease);
}
.kop-ds .kop-chip--red {
  background: rgba(232, 0, 45, .10) !important;
  color: var(--kop-red) !important;
}
.kop-ds a.kop-chip:hover            { background: rgba(13, 31, 60, .18) !important; }
.kop-ds a.kop-chip--red:hover       { background: rgba(232, 0, 45, .18) !important; }

/* ---------------------------------------------------------------------
   6. BUTTONS (brief §3.4)
   --------------------------------------------------------------------- */
.kop-ds .kop-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px !important;
  border-radius: var(--kop-radius-sm) !important;
  font-family: var(--kop-font) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background var(--kop-ease), color var(--kop-ease),
              transform var(--kop-ease), box-shadow var(--kop-ease);
  border: 2px solid transparent !important;
}
.kop-ds .kop-btn--primary {
  background: var(--kop-red) !important;
  color: #fff !important;
}
.kop-ds .kop-btn--primary:hover {
  background: var(--kop-red-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--kop-shadow-sm);
}
.kop-ds .kop-btn--secondary {
  background: transparent !important;
  border-color: var(--kop-navy) !important;
  color: var(--kop-navy) !important;
}
.kop-ds .kop-btn--secondary:hover {
  background: var(--kop-navy) !important;
  color: #fff !important;
}

/* ---------------------------------------------------------------------
   7. LINK-LIST ROW (brief §3.4, used by link-hub cards §4.2)
   White row, right chevron, 3px transparent left border → red on hover.
   --------------------------------------------------------------------- */
.kop-ds .kop-linkrow {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px !important;
  background: var(--kop-bg) !important;
  border-left: 3px solid transparent !important;
  border-bottom: 1px solid var(--kop-border);
  font-family: var(--kop-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--kop-text) !important;
  text-decoration: none !important;
  transition: border-color var(--kop-ease), background var(--kop-ease),
              color var(--kop-ease);
}
.kop-ds .kop-linkrow:last-child { border-bottom: 0; }
.kop-ds .kop-linkrow::after {
  content: '›';
  font-size: 18px;
  font-weight: 700;
  color: var(--kop-text-muted);
  transition: color var(--kop-ease), transform var(--kop-ease);
  flex: 0 0 auto;
}
.kop-ds .kop-linkrow:hover {
  border-left-color: var(--kop-red) !important;
  background: var(--kop-bg-alt) !important;
  color: var(--kop-navy) !important;
}
.kop-ds .kop-linkrow:hover::after {
  color: var(--kop-red);
  transform: translateX(2px);
}

/* ---------------------------------------------------------------------
   8. TEXT UTILITIES
   --------------------------------------------------------------------- */
.kop-ds .kop-body {
  font-family: var(--kop-font) !important;
  font-size: var(--kop-fs-body) !important;
  font-weight: 400;
  line-height: var(--kop-lh-body) !important;
  color: var(--kop-text) !important;
}
.kop-ds .kop-muted {
  color: var(--kop-text-muted) !important;
  font-weight: 600;
}

/* ---------------------------------------------------------------------
   9. NEWS GRID — [kop_news_grid] additions (v1.1.0, brief §4.1)
   --------------------------------------------------------------------- */
.kop-ds .kop-news .kop-heading { margin-bottom: 32px !important; }

/* Flat placeholder when a post has no featured image */
.kop-ds .kop-card__media-empty {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, var(--kop-bg-alt) 0%, rgba(13, 31, 60, .08) 100%);
}

/* Responsive grid: 2 / 2 / 1 variant */
.kop-ds .kop-grid--2 { grid-template-columns: repeat(2, 1fr) !important; }
@media (max-width: 639px) {
  .kop-ds .kop-grid--2 { grid-template-columns: 1fr !important; }
}

/* ---------------------------------------------------------------------
   9b. LINK HUB — B1.4 photo-forward cards + Pill C (v2.1.0, brief §4.2)
   --------------------------------------------------------------------- */
/* Container: 100% width — Elementor section controls width */
.kop-ds .kop-lh-container {
  width: 100% !important;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Grid */
.kop-ds .kop-lh-grid {
  display: grid !important;
  gap: 16px !important;
  align-items: stretch !important;
}
.kop-ds .kop-lh-grid--3 { grid-template-columns: repeat(3, 1fr) !important; }
.kop-ds .kop-lh-grid--2 { grid-template-columns: repeat(2, 1fr) !important; }
.kop-ds .kop-lh-grid--4 { grid-template-columns: repeat(4, 1fr) !important; }
.kop-ds .kop-lh-grid--5 { grid-template-columns: repeat(5, 1fr) !important; }
.kop-ds .kop-lh-grid--6 { grid-template-columns: repeat(6, 1fr) !important; }
@media (max-width: 1279px) {
  .kop-ds .kop-lh-grid--5,
  .kop-ds .kop-lh-grid--6 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 1023px) {
  .kop-ds .kop-lh-grid--3,
  .kop-ds .kop-lh-grid--4,
  .kop-ds .kop-lh-grid--5,
  .kop-ds .kop-lh-grid--6,
  .kop-ds .kop-lh-grid--2 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 639px) {
  .kop-ds .kop-lh-grid--2,
  .kop-ds .kop-lh-grid--3,
  .kop-ds .kop-lh-grid--4,
  .kop-ds .kop-lh-grid--5,
  .kop-ds .kop-lh-grid--6 { grid-template-columns: 1fr !important; }
}

/* Card */
.kop-ds .kop-lh-card {
  border-radius: 12px !important;
  min-height: 220px;
  overflow: hidden !important;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  background-size: cover !important;
  background-position: center !important;
}
.kop-ds .kop-lh-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

/* Color stripe at top */
.kop-ds .kop-lh-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--lh-ac, #e8002d);
  z-index: 3;
}

/* Top area: centered layout, transitions to top-left on hover */
.kop-ds .kop-lh-card-top {
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px;
  position: relative;
  z-index: 3;
  text-align: center;
  gap: 8px;
  transition: opacity .3s ease;
}
.kop-ds .kop-lh-card:hover .kop-lh-card-top {
  opacity: 0;
  pointer-events: none;
}
.kop-ds .kop-lh-badge {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--lh-ac, #e8002d) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: width .35s ease, height .35s ease, font-size .35s ease, border-radius .35s ease;
  position: relative;
  z-index: 4;
}
/* icon stays same size — no animation */
.kop-ds .kop-lh-card-title {
  font-family: var(--kop-font) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.8px !important;
  color: #fff !important;
  line-height: 1.3;
  transition: opacity .25s ease, transform .25s ease;
}
.kop-ds .kop-lh-card:hover .kop-lh-card-title {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.kop-ds .kop-lh-card-sub {
  font-size: 9px !important;
  color: rgba(255,255,255,.35) !important;
  letter-spacing: .5px;
  transition: opacity .2s ease, transform .2s ease;
}
.kop-ds .kop-lh-card:hover .kop-lh-card-sub {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

/* Discovery hint pulse */
@keyframes kopLhHintPulse {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(-3px); opacity: .7; }
}
.kop-ds .kop-lh-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  margin-left: -10px;
  width: 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,.4);
  animation: kopLhHintPulse 2s ease-in-out infinite;
  z-index: 1;
  transition: opacity .2s;
}
.kop-ds .kop-lh-card:hover .kop-lh-hint { opacity: 0; }

/* Glass panel — slides up on hover, leaves icon visible */
.kop-ds .kop-lh-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  top: 0;
  background: var(--lh-panel, rgba(10,22,46,.93));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 16px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  border-top: 2px solid var(--lh-ac, #e8002d);
  z-index: 2;
  justify-content: center;
  align-items: stretch;
}
.kop-ds .kop-lh-card:hover .kop-lh-panel {
  transform: translateY(0);
}

/* Pill C: tinted background, glow on hover */
.kop-ds .kop-lh-pills {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
}
.kop-ds .kop-lh-pill {
  display: inline-flex !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-family: var(--kop-font) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.85) !important;
  text-decoration: none !important;
  transition: all .2s;
  /* Tinted background derived from accent via color-mix */
  background: color-mix(in srgb, var(--lh-ac, #2980b9) 15%, transparent) !important;
}
.kop-ds .kop-lh-pill:hover {
  background: var(--lh-ac, #2980b9) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--lh-ac, #2980b9) 30%, transparent);
}

/* Fallback for browsers without color-mix (Safari < 16.4) */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .kop-ds .kop-lh-pill {
    background: rgba(255,255,255,.08) !important;
  }
  .kop-ds .kop-lh-pill:hover {
    background: var(--lh-ac, #2980b9) !important;
  }
}

/* Link rows display type (alternative to pills) */
.kop-ds .kop-lh-rows {
  display: flex !important;
  flex-direction: column;
  gap: 1px;
}
.kop-ds .kop-lh-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px !important;
  border-radius: 5px;
  font-family: var(--kop-font) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.75) !important;
  text-decoration: none !important;
  border-left: 2px solid transparent;
  transition: all .2s;
}
.kop-ds .kop-lh-row::after {
  content: '›';
  font-size: 16px;
  color: rgba(255,255,255,.2);
  transition: all .15s;
}
.kop-ds .kop-lh-row:hover {
  color: #fff !important;
  border-left-color: var(--lh-ac, #e8002d);
  background: rgba(255,255,255,.04);
}
.kop-ds .kop-lh-row:hover::after {
  color: var(--lh-ac, #e8002d);
  transform: translateX(3px);
}

/* Mobile: tap instead of hover — panel always visible, icon stays centered */
@media (hover: none) {
  .kop-ds .kop-lh-hint { display: none; }
  .kop-ds .kop-lh-panel {
    position: relative;
    transform: none;
    border-top: 2px solid var(--lh-ac, #e8002d);
  }
  .kop-ds .kop-lh-card { min-height: auto; }
  .kop-ds .kop-lh-card-top {
    padding: 16px;
  }
  .kop-ds .kop-lh-card:hover .kop-lh-card-top {
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
  }
  .kop-ds .kop-lh-card:hover .kop-lh-card-title,
  .kop-ds .kop-lh-card:hover .kop-lh-card-sub {
    opacity: 1;
    transform: none;
  }
  .kop-ds .kop-lh-card:hover .kop-lh-badge {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px;
  }
}

/* ---------------------------------------------------------------------
   ALERT BAR (v2.2.0)
   --------------------------------------------------------------------- */
.kop-ds .kop-alert {
  display: flex !important;
  align-items: center;
  padding: 11px 24px !important;
  font-family: var(--kop-font) !important;
  font-size: 13px !important;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.kop-ds .kop-alert::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.04), transparent 60%);
  pointer-events: none;
}
.kop-ds .kop-alert--navy {
  background: linear-gradient(135deg, #0d1f3c, #162d52) !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.kop-ds .kop-alert--red {
  background: linear-gradient(135deg, #b0001f, #e8002d) !important;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@keyframes kopAlertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,0,45,.6); }
  70% { box-shadow: 0 0 0 6px rgba(232,0,45,0); }
}
.kop-ds .kop-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: kopAlertPulse 2s infinite;
}
.kop-ds .kop-alert--navy .kop-alert-dot { background: #e8002d; }
.kop-ds .kop-alert--red .kop-alert-dot { background: #fff; }
.kop-ds .kop-alert-tag {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 5px;
  flex-shrink: 0;
}
.kop-ds .kop-alert--navy .kop-alert-tag { background: rgba(232,0,45,.2); color: #ff6b82; }
.kop-ds .kop-alert--red .kop-alert-tag { background: rgba(255,255,255,.18); color: #fff; }
.kop-ds .kop-alert-text {
  flex: 1;
  color: rgba(255,255,255,.9) !important;
  font-weight: 500;
  line-height: 1.4;
}
.kop-ds .kop-alert-link {
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: 1.5px solid rgba(255,255,255,.3);
  padding-bottom: 1px;
  margin-left: 6px;
  transition: border-color .2s;
}
.kop-ds .kop-alert-link:hover { border-bottom-color: #fff; }
.kop-ds .kop-alert-x {
  background: none !important;
  border: none !important;
  color: rgba(255,255,255,.35) !important;
  font-size: 16px;
  cursor: pointer;
  padding: 6px !important;
  margin-left: auto;
  flex-shrink: 0;
  border-radius: 4px;
  transition: all .15s;
  line-height: 1;
}
.kop-ds .kop-alert-x:hover { color: #fff !important; background: rgba(255,255,255,.1) !important; }

/* ---------------------------------------------------------------------
   FOOTER (v2.2.0)
   --------------------------------------------------------------------- */
.kop-ds .kop-footer { font-family: var(--kop-font) !important; overflow: hidden; }

/* Sponsors — dark background, 3-column grid of tier cells */
.kop-ds .kop-ft-sponsors {
  background: linear-gradient(180deg, #0a1525 0%, #0d1f3c 100%) !important;
  padding: 28px 32px !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  position: relative;
}
.kop-ds .kop-ft-sponsors::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,0,45,.3), transparent);
  grid-column: 1 / -1;
}
/* Heading spans full width */
.kop-ds .kop-ft-sp-heading {
  grid-column: 1 / -1 !important;
  text-align: center !important;
  margin-bottom: 8px !important;
}
.kop-ds .kop-ft-sp-heading h3 {
  font-family: var(--kop-font) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.35) !important;
  margin: 0 !important;
}
.kop-ds .kop-ft-sp-line {
  width: 40px !important;
  height: 2px !important;
  background: var(--kop-red) !important;
  margin: 8px auto 0 !important;
  border-radius: 2px;
  display: block !important;
}
/* Separators hidden — grid handles spacing */
.kop-ds .kop-ft-sp-sep { display: none !important; }
/* Each tier = one grid cell, centered */
.kop-ds .kop-ft-sp-tier {
  text-align: center !important;
  padding: 16px 12px !important;
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  border: .5px solid rgba(255,255,255,.04);
  transition: background .2s;
}
.kop-ds .kop-ft-sp-tier:hover {
  background: rgba(255,255,255,.04);
}
.kop-ds .kop-ft-sp-tier-label {
  font-family: var(--kop-font) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.4) !important;
  margin-bottom: 12px !important;
  display: block !important;
}
.kop-ds .kop-ft-sp-tier-label::before,
.kop-ds .kop-ft-sp-tier-label::after { display: none !important; }
.kop-ds .kop-ft-sp-logos {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}
.kop-ds .kop-ft-sp-logo-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  transition: all .3s !important;
  text-decoration: none !important;
}
.kop-ds .kop-ft-sp-logo-wrap:hover {
  background: rgba(255,255,255,.06) !important;
}
.kop-ds .kop-ft-sp-logo {
  max-height: 40px !important;
  width: auto !important;
  opacity: .8 !important;
  transition: opacity .3s !important;
}
.kop-ds .kop-ft-sp-logo-wrap:hover .kop-ft-sp-logo {
  opacity: 1 !important;
}
.kop-ds .kop-ft-sp-logo-text {
  color: rgba(255,255,255,.6) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
}
@media (max-width: 767px) {
  .kop-ds .kop-ft-sponsors {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .kop-ds .kop-ft-sponsors {
    grid-template-columns: 1fr !important;
  }
}
.kop-ds .kop-ft-sp-tier {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 10px 0 !important;
  border-bottom: .5px solid rgba(255,255,255,.04);
}
.kop-ds .kop-ft-sp-tier:last-child { border-bottom: 0; margin-bottom: 0; }
.kop-ds .kop-ft-sp-tier-label {
  font-size: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.22) !important;
  white-space: nowrap;
  flex-shrink: 0;
  width: 140px;
  text-align: right;
}
.kop-ds .kop-ft-sp-tier-label::before,
.kop-ds .kop-ft-sp-tier-label::after { display: none; }
.kop-ds .kop-ft-sp-logos {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  flex: 1;
}
.kop-ds .kop-ft-sp-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all .3s;
  text-decoration: none !important;
}
.kop-ds .kop-ft-sp-logo-wrap:hover { background: rgba(255,255,255,.06); }
.kop-ds .kop-ft-sp-logo {
  max-height: 36px !important;
  width: auto !important;
  opacity: .65 !important;
  transition: opacity .3s !important;
  /* NO filter — logos display in their original colors */
}
.kop-ds .kop-ft-sp-logo-wrap:hover .kop-ft-sp-logo { opacity: 1 !important; }
.kop-ds .kop-ft-sp-logo-text {
  color: rgba(255,255,255,.5) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
}
.kop-ds .kop-ft-sp-sep {
  height: 0.5px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,.06) 50%, transparent 90%);
  margin: 12px 0 !important;
}

/* Main footer */
.kop-ds .kop-ft-main {
  background: linear-gradient(180deg, #0d1f3c 0%, #081220 100%) !important;
  position: relative;
}
.kop-ds .kop-ft-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
}
.kop-ds .kop-ft-main-inner {
  display: grid !important;
  grid-template-columns: 280px 1fr 1fr;
  gap: 0;
}
@media (max-width: 1023px) {
  .kop-ds .kop-ft-main-inner { grid-template-columns: 1fr 1fr !important; }
  .kop-ds .kop-ft-col-contact { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .kop-ds .kop-ft-main-inner { grid-template-columns: 1fr !important; }
}

/* Contact column */
.kop-ds .kop-ft-col-contact {
  background: rgba(255,255,255,.02) !important;
  padding: 36px 28px !important;
  border-right: 0.5px solid rgba(255,255,255,.04);
}
.kop-ds .kop-ft-logo-area { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.kop-ds .kop-ft-logo-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: rgba(255,255,255,.4);
}
.kop-ds .kop-ft-brand { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: 1px; line-height: 1.2; }
.kop-ds .kop-ft-brand span { display: block; font-size: 10px; font-weight: 500; color: rgba(255,255,255,.35); letter-spacing: .5px; margin-top: 2px; }
.kop-ds .kop-ft-c-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0; font-size: 13px; color: rgba(255,255,255,.55);
  transition: color .15s;
}
.kop-ds .kop-ft-c-row:hover { color: rgba(255,255,255,.85); }
.kop-ds .kop-ft-c-row i { font-size: 15px; color: rgba(255,255,255,.25); margin-top: 1px; width: 16px; text-align: center; flex-shrink: 0; transition: color .15s; }
.kop-ds .kop-ft-c-row:hover i { color: var(--kop-red); }
.kop-ds .kop-ft-c-row a { color: inherit !important; text-decoration: none !important; }
.kop-ds .kop-ft-map {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 50px; border-radius: 6px; margin-top: 10px;
  background: rgba(255,255,255,.04) !important; color: rgba(255,255,255,.25) !important;
  font-size: 13px; text-decoration: none !important;
  transition: all .2s;
}
.kop-ds .kop-ft-map:hover { background: rgba(255,255,255,.08) !important; color: rgba(255,255,255,.5) !important; }
.kop-ds .kop-ft-social { display: flex !important; gap: 6px; margin-top: 16px; }
.kop-ds .kop-ft-social a {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.04) !important;
  border: .5px solid rgba(255,255,255,.06);
  display: flex !important; align-items: center; justify-content: center;
  color: rgba(255,255,255,.35) !important; font-size: 16px;
  text-decoration: none !important; transition: all .25s;
}
.kop-ds .kop-ft-social a:hover {
  background: rgba(232,0,45,.12) !important;
  border-color: rgba(232,0,45,.2);
  color: var(--kop-red) !important;
  transform: translateY(-2px);
}

/* Other columns */
.kop-ds .kop-ft-col { padding: 36px 28px !important; }
.kop-ds .kop-ft-col + .kop-ft-col { border-left: .5px solid rgba(255,255,255,.04); }
.kop-ds .kop-ft-col h4 {
  font-size: 10px !important; font-weight: 700 !important;
  letter-spacing: 2.5px !important; text-transform: uppercase !important;
  color: rgba(255,255,255,.25) !important; margin: 0 0 16px !important;
  display: flex; align-items: center; gap: 6px;
}
.kop-ds .kop-ft-col h4 i { font-size: 12px; }

/* Hours table */
.kop-ds .kop-ft-hours { width: 100% !important; border-collapse: collapse !important; margin-bottom: 20px; background: transparent !important; }
.kop-ds .kop-ft-hours th { font-family: var(--kop-font) !important; font-size: 11px !important; font-weight: 700 !important; color: #fff !important; padding: 9px 8px !important; text-align: center !important; background: rgba(255,255,255,.1) !important; border: none !important; letter-spacing: .5px; }
.kop-ds .kop-ft-hours th:first-child { text-align: left !important; border-radius: 4px 0 0 4px; }
.kop-ds .kop-ft-hours th:last-child { border-radius: 0 4px 4px 0; }
.kop-ds .kop-ft-hours td { font-family: var(--kop-font) !important; padding: 8px !important; text-align: center !important; font-size: 12px !important; font-weight: 500 !important; color: rgba(255,255,255,.75) !important; border-top: 1px solid rgba(255,255,255,.06) !important; border-bottom: none !important; border-left: none !important; border-right: none !important; background: transparent !important; }
.kop-ds .kop-ft-hours td:first-child { text-align: left !important; font-weight: 600 !important; color: rgba(255,255,255,.5) !important; }
.kop-ds .kop-ft-hours tr:hover td { color: #fff !important; background: rgba(255,255,255,.03) !important; }
.kop-ds .kop-ft-hours tr { background: transparent !important; }
.kop-ds .kop-ft-hours tr:nth-child(even) { background: transparent !important; }
.kop-ds .kop-ft-hours tr:nth-child(odd) { background: transparent !important; }
.kop-ds .kop-ft-hours tbody tr td { background: transparent !important; color: rgba(255,255,255,.85) !important; }

/* Footer links */
.kop-ds .kop-ft-flink {
  display: flex !important; align-items: center; gap: 8px;
  font-size: 13px !important; color: rgba(255,255,255,.4) !important;
  padding: 6px 0; text-decoration: none !important;
  transition: all .2s; border-radius: 4px;
}
.kop-ds .kop-ft-flink:hover { color: rgba(255,255,255,.85) !important; padding-left: 4px; }
.kop-ds .kop-ft-flink i { font-size: 13px; transition: color .2s; }
.kop-ds .kop-ft-flink:hover i { color: var(--kop-red) !important; }

/* Copyright */
.kop-ds .kop-ft-copy {
  padding: 14px 32px !important;
  background: rgba(0,0,0,.25) !important;
  display: flex !important; align-items: center; justify-content: space-between;
  font-size: 11px !important; color: rgba(255,255,255,.2) !important;
}
.kop-ds .kop-ft-copy a { color: rgba(255,255,255,.25) !important; text-decoration: none !important; transition: color .15s; }
.kop-ds .kop-ft-copy a:hover { color: rgba(255,255,255,.5) !important; }
.kop-ds .kop-ft-copy-links { display: flex; gap: 16px; }
@media (max-width: 639px) {
  .kop-ds .kop-ft-copy { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------------------------------------------------------------------
   12. HEADING ROW + TOGGLE (v1.3.1) — "Περισσότερα / Λιγότερα" inline
   with the section heading, right-aligned, small italic grey.
   --------------------------------------------------------------------- */
.kop-ds .kop-heading-row {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.kop-ds .kop-heading-row .kop-heading {
  margin-bottom: 28px !important;
}
.kop-ds .kop-ds-toggle {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  font-family: var(--kop-font) !important;
  font-size: 13px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--kop-text-muted) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: color var(--kop-ease);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
  position: relative;
  top: -16px;
}
.kop-ds .kop-ds-toggle:hover {
  color: var(--kop-red) !important;
}
.kop-ds .kop-ds-toggle[disabled] {
  opacity: .5;
  cursor: wait;
}

/* Cards loaded via "Περισσότερα" are hidden when collapsing back */
.kop-ds .kop-card.kop-ds-extra { display: flex !important; }
.kop-ds .kop-card.kop-ds-extra.kop-ds-hidden { display: none !important; }

/* ---------------------------------------------------------------------
   11. POST MODAL (v1.3.0) — value-for-value clone of KOP_Hero v3.1.2,
   namespaced kop-dsm-* so both modals can coexist without interference.
   --------------------------------------------------------------------- */
.kop-dsm-bg      { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 999999; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.kop-dsm-bg.open { display: flex !important; }
@keyframes kopDsModalIn {
  from { opacity: 0; transform: scale(.88) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.kop-dsm-box   { background: #fff; border-radius: 14px; max-width: 820px; width: 92%; max-height: 88vh; overflow-y: auto; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: kopDsModalIn .35s cubic-bezier(.34,1.56,.64,1); }
.kop-dsm-img   { width: 100%; max-height: 320px; object-fit: cover; border-radius: 14px 14px 0 0; display: block; }
.kop-dsm-inner { padding: 28px 36px 36px; }
.kop-dsm-x     { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.45); border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 15px; cursor: pointer; color: #fff; z-index: 10; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.kop-dsm-x:hover { background: var(--kop-red); }
.kop-dsm-tag   { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--kop-red); margin-bottom: 10px; }
.kop-dsm-title { font-family: var(--kop-font) !important; font-size: clamp(18px,2.5vw,26px); font-weight: 900; color: var(--kop-navy); margin: 0 0 20px; line-height: 1.3; }
.kop-dsm-body  { font-size: 15px; line-height: 1.85; color: #374151; }
.kop-dsm-body img { max-width: 100%; border-radius: 6px; margin: 10px 0; }

.kop-dsm-loading      { display: none; padding: 40px 0; text-align: center; }
.kop-dsm-loading.show { display: block; }
@keyframes kopDsSpin { to { transform: rotate(360deg); } }
.kop-dsm-spinner {
  display: inline-block;
  width: 36px; height: 36px;
  border: 3px solid rgba(232,0,45,.15);
  border-top-color: var(--kop-red);
  border-radius: 50%;
  animation: kopDsSpin .7s linear infinite;
}

.kop-dsm-share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.kop-dsm-share-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #999; flex-shrink: 0; }
.kop-dsm-share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  text-decoration: none !important;
  transition: all .2s; color: #fff !important; line-height: 1;
  border: none; cursor: pointer;
  position: relative;
}
.kop-dsm-fb          { background: #1877f2; }
.kop-dsm-fb:hover    { background: #1463cc; color: #fff !important; }
.kop-dsm-x-btn       { background: #000; }
.kop-dsm-x-btn:hover { background: #333; color: #fff !important; }
.kop-dsm-ig          { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.kop-dsm-ig:hover    { filter: brightness(1.12); color: #fff !important; }
.kop-dsm-mail        { background: #5f6b7a; }
.kop-dsm-mail:hover  { background: #49545f; color: #fff !important; }
.kop-dsm-share-btn svg { width: 16px; height: 16px; fill: #fff; flex-shrink: 0; }
.kop-dsm-copied-tip {
  position: absolute;
  bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--kop-navy); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 5px 11px; border-radius: 5px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.kop-dsm-copied-tip.show { opacity: 1; }

.kop-dsm-sponsors       { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,.08); }
.kop-dsm-sponsors-label { font-size: 8px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #bbb; margin-bottom: 10px; }
.kop-dsm-sponsors-logos {
  display: flex;
  flex-wrap: nowrap;               /* one line, always */
  align-items: center;
  justify-content: space-between;  /* spread across full width */
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(160deg, #0d1f3c 0%, #16294a 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;            /* the single pill */
  padding: 12px 26px;
  box-shadow: 0 2px 10px rgba(13,31,60,.2);
}
.kop-dsm-spn-logo {
  display: flex; align-items: center; justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  text-decoration: none !important;
  opacity: .92;
  transition: opacity .2s, transform .2s;
}
.kop-dsm-spn-logo:hover { opacity: 1; transform: scale(1.06); }
.kop-dsm-spn-logo img {
  height: clamp(18px, 4vw, 32px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 480px) {
  .kop-dsm-inner          { padding: 20px 18px 24px; }
  .kop-dsm-sponsors-logos { padding: 9px 14px; gap: 5px; border-radius: 16px; }
  .kop-dsm-spn-logo img   { height: 16px; }
}

/* ---------------------------------------------------------------------
   12. ACCESSIBILITY & MOTION (brief §4.5, applied to all DS components)
   --------------------------------------------------------------------- */
.kop-ds .kop-btn:focus-visible,
.kop-ds .kop-chip:focus-visible,
.kop-ds .kop-card:focus-visible,
.kop-ds .kop-linkrow:focus-visible,
.kop-ds .kop-card a:focus-visible {
  outline: 2px solid var(--kop-red) !important;
  outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
  .kop-ds .kop-card,
  .kop-ds .kop-btn,
  .kop-ds .kop-chip,
  .kop-ds .kop-linkrow,
  .kop-ds .kop-linkrow::after {
    transition: none !important;
    transform: none !important;
  }
}
