/* ================================================
   EduContinuum Custom CSS — поверх Material Theme
   ================================================ */

:root {
  --edu-navy:   #0d2b4e;
  --edu-blue:   #1a5276;
  --edu-accent: #e8a020;
  --edu-light:  #e8f4fd;
  --edu-border: #dce3ea;
  --edu-white:  #ffffff;
  --edu-radius: 8px;
}

/* ---- СКРЫТЬ старый hero Material темы ---- */
.relative.overflow-hidden.bg-slate-200 {
  display: none !important;
}

/* ---- HERO SLIDER ---- */
.edu-hero {
  position: relative;
  width: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  background: var(--edu-navy);
  overflow: hidden;
}

.edu-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/slider-bg.png');
  background-size: cover;
  background-position: center top;
  opacity: 0.28;
}

.edu-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 680px;
}

.edu-hero-label {
  display: inline-block;
  background: var(--edu-accent);
  color: var(--edu-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.edu-hero-title {
  font-size: 2.4rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  margin-bottom: 14px !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

.edu-hero-sub {
  font-size: 14px;
  color: #b8d4ea;
  margin-bottom: 28px;
  line-height: 1.7;
}

.edu-hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.edu-btn-primary {
  display: inline-block !important;
  background: var(--edu-accent) !important;
  color: var(--edu-navy) !important;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 28px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: background .2s, transform .15s;
}

.edu-btn-primary:hover {
  background: #f5b530 !important;
  transform: translateY(-1px);
  color: var(--edu-navy) !important;
}

.edu-btn-secondary {
  display: inline-block !important;
  background: rgba(255,255,255,0.12) !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 11px 28px;
  border-radius: 50px;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background .2s;
}

.edu-btn-secondary:hover {
  background: rgba(255,255,255,0.22) !important;
  color: #ffffff !important;
}

.edu-hero-dots {
  position: absolute;
  bottom: 18px;
  left: 48px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.edu-hero-dots span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
}

.edu-hero-dots span.active {
  background: var(--edu-accent);
  width: 28px;
  border-radius: 5px;
}

/* ---- ШАПКА ---- */
header.sticky {
  background: var(--edu-white) !important;
  border-bottom: 3px solid var(--edu-accent) !important;
}

/* ---- ЛЕВОЕ МЕНЮ ---- */
nav.text-base a, nav.text-sm a {
  color: var(--edu-navy) !important;
  font-weight: 500;
  border-radius: 6px;
  transition: background .15s;
}
nav.text-base a:hover, nav.text-sm a:hover {
  background: var(--edu-light) !important;
  color: var(--edu-accent) !important;
  text-decoration: none !important;
}

/* ---- КОНТЕНТ: ЗАГОЛОВКИ ---- */
main article h2 {
  color: var(--edu-navy) !important;
  font-weight: 700 !important;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--edu-accent);
  margin-bottom: 16px !important;
}

/* ---- ТЕКУЩИЙ ВЫПУСК ---- */
.current_issue {
  background: var(--edu-white);
  border-radius: var(--edu-radius);
  border: 1px solid var(--edu-border);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(13,43,78,.07);
  margin-bottom: 20px;
}

/* ---- СЕКЦИИ СТАТЕЙ ---- */
.issue_toc h3, .section_title {
  color: var(--edu-navy) !important;
  font-weight: 700 !important;
  background: var(--edu-light);
  padding: 8px 14px;
  border-radius: var(--edu-radius);
  border-left: 4px solid var(--edu-accent);
  margin: 12px 0 !important;
  font-size: 14px !important;
}

/* ---- СТАТЬИ ---- */
.article_summary, .obj_article_summary {
  padding: 12px 0;
  border-bottom: 1px solid var(--edu-border);
}
.article_summary:last-child { border-bottom: none; }

.article_summary h3 a, .obj_article_summary .title a {
  color: var(--edu-navy) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.article_summary h3 a:hover, .obj_article_summary .title a:hover {
  color: var(--edu-accent) !important;
}
.article_summary .authors, .obj_article_summary .authors {
  font-size: 11px;
  color: #6c7f8e;
  margin: 3px 0 6px;
}

/* ---- КНОПКА "ВСЕ ВЫПУСКИ" ---- */
a.read_more {
  display: inline-block;
  border: 2px solid var(--edu-navy) !important;
  color: var(--edu-navy) !important;
  background: transparent !important;
  padding: 8px 24px !important;
  border-radius: 50px !important;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  text-decoration: none !important;
  transition: all .2s;
}
a.read_more:hover {
  background: var(--edu-navy) !important;
  color: var(--edu-white) !important;
}

/* ---- PDF / GALLEY ---- */
.galley_link, a[class*="galley"] {
  background: var(--edu-navy) !important;
  color: var(--edu-white) !important;
  border-radius: 5px !important;
  padding: 5px 14px !important;
  font-size: 12px !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .2s;
}
.galley_link:hover { background: var(--edu-accent) !important; color: var(--edu-navy) !important; }

/* ---- ФУТЕР ---- */
footer { background: var(--edu-navy) !important; color: #a8c4dc !important; margin-top: 24px; }
footer a { color: var(--edu-accent) !important; }
footer a:hover { color: #ffffff !important; }

/* ---- АДАПТИВ ---- */
@media (max-width: 768px) {
  .edu-hero-title { font-size: 1.7rem !important; }
  .edu-hero-content { padding: 28px 20px; }
  .edu-hero-buttons { flex-direction: column; }
}
