/* ============================================================
   HOME PAGE — hero, sections, news grid
   ============================================================ */

/* ── HERO ── */
.hero {
  background: var(--bg-page);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Темна тема — бордовий радіальний градієнт як у референсі */
body.dark-mode .hero {
  background: radial-gradient(ellipse at 60% 50%, #3d0a12 0%, #1a0308 50%, #0d0d14 100%);
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-style: italic;
}

.hero-accent {
  color: var(--accent);
}

.text-gradient {
  background: linear-gradient(90deg, #ff0055, #ff00df, #ffcc00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.hero-btn:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.hero-btn--primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.35);
}

.hero-btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.5);
}

.hero-btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero-btn--secondary:hover {
  background: var(--bg-card-inner);
  border-color: var(--border-strong);
}

body.dark-mode .hero-btn--secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

body.dark-mode .hero-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── SECTIONS ── */
.home-section {
  padding: 56px 0;
}

.home-section--alt {
  background: var(--bg-card-inner);
}

body.dark-mode .home-section--alt {
  background: rgba(255, 255, 255, 0);
}

.home-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.section-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.section-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent) !important;
  white-space: nowrap;
  padding-top: 4px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.section-more:hover {
  opacity: 0.75;
}

/* ── NEWS HOME GRID ── */
.news-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .news-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .news-home-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-style: normal;
  }
}

.news-home-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit !important;
}

.news-home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
  opacity: 1;
}

.news-home-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  position: relative;
}

.news-home-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.news-home-card-img-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-home-card:hover .news-home-card-img-wrap img {
  transform: scale(1.04);
}

.news-home-card-date {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.news-home-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-home-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-home-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent) !important;
  margin-top: auto;
}

/* ── Carousel без зайвого фону на цій сторінці ── */
.home-section--alt .carousel-wrapper {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}