:root {
  --primary-color: #0057b7; /* Ukrainian blue */
  --primary-glow: rgba(0, 87, 183, 0.2);
  --secondary-color: #ffd700; /* Ukrainian gold */
  --accent-color: #0057b7;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #0f172a;
  --text-muted: #64748b;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.1);
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Mulish', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Hero */
.hero-header {
  position: relative;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.35)), url('./img/bg.webp');
  background-size: cover;
  background-position: center;
  color: var(--text-color);
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--glass-border);
}

/* For inner pages */
.inner-page .hero-header {
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6)), url('./img/bg.webp');
  padding: 2rem 0;
}

.logo-container {
  position: relative;
  display: inline-block;
}

.header-logo {
  width: 300px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  /* color: var(--secondary-color); */
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1rem;
  /* text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25); */
  color: #3c7cc4;
  background-color: var(--secondary-color);
  border-radius: 3px;
}

.org-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 5px;
  text-transform: uppercase;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
  display: inline-block;
}

/* Grid Layout */
.main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.nav-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nav-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-media {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.card-media img, .card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card-content {
  padding: 1.5rem;
  text-align: center;
}

.card-title {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Featured / Special Item */
.featured-item {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, rgba(0, 87, 183, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
}

@media (max-width: 768px) {
  .featured-item {
    grid-template-columns: 1fr;
  }
}



/* Footer Section */
footer {
  margin-top: 4rem;
  padding: 2rem 0 2rem;
  background: #f1f5f9;
  border-top: 1px solid var(--glass-border);
}

.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-btn {
  padding: 0.8rem 2rem;
  background: #fff;
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.footer-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Common UI Elements */
.search-container {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-color);
  outline: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.5;
}

/* Inner Page Specifics */
.sub-page-header {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.back-link:hover {
  color: var(--primary-color);
}

.page-title {
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--primary-color);
}

.inner-content {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.stat-badge {
  background: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  border: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-color);
}

/* Classic News Feed */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.news-card-classic {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2.5rem;
  background: #fff;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 3rem;
  transition: var(--transition);
}

.news-card-classic:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .news-card-classic {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .news-card-classic .news-img-box {
    height: 250px;
  }
}

.news-img-box {
  border-radius: 16px;
  overflow: hidden;
  height: 240px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.news-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-content-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.news-category {
  background: var(--primary-color);
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-date-classic {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.news-title-classic {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.3;
}

.news-excerpt {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.read-more:hover {
  gap: 0.75rem;
}

/* News Filters & Pagination */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-color);
}

.page-btn:hover, .page-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Heros Page Styles */
.heros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.hero-card:hover {
  /* transform: translateY(-5px); */
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hero-img-box {
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #f8fafc;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.hero-info {
  padding: 1.5rem 1rem;
  text-align: center;
}

.hero-name {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.hero-drones-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.hero-drone-badge {
  padding: 0.2rem 0.5rem;
  background: #f1f5f9;
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: var(--transition);
}
/* Search Wrapper Styles */
.search-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.search-wrapper .search-container {
  max-width: 600px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-radius: 50px;
}

/* Thanks Page Styles */
.thanks-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
}

.thanks-item {
  width: 100%;
  max-width: 900px; /* Приблизно 80% від контейнера 1200px */
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.thanks-info {
  text-align: center;
}

.thanks-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.3;
}

/* Mobile Optimizations - Must be at the end to override previous styles */
@media (max-width: 768px) {
  .hero-header {
    margin-bottom: 1rem;
    padding: 2rem 0 1.5rem;
  }
  
  .inner-page .hero-header {
    padding: 1.5rem 0 1rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .inner-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 2rem;
  }

  .search-wrapper {
    margin-bottom: 1.5rem;
  }

  .stat-badge {
    padding: 0.8rem 1.5rem;
    gap: 0.5rem;
  }
  
  .stat-value {
    font-size: 1.3rem;
  }

  .news-filters {
    gap: 0.6rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  .page-title {
    font-size: 1.5rem;
  }
  
  .heros-grid {
    gap: 2rem;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-card {
    max-width: 100%;
    width: 100%;
  }

  .news-card-classic {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    background: transparent !important;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: none !important;
  }

  .news-img-box {
    height: 220px;
    border-radius: 12px;
  }

  .news-category {
    padding: 0.15rem 0.6rem;
    font-size: 0.6rem;
  }
  
  .news-title-classic {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }

  .news-meta {
    margin-bottom: 0.5rem;
  }

  .news-content-box {
    padding: 0 0.5rem;
  }

  .news-feed {
    gap: 1.5rem;
  }

  .pagination {
    margin-top: 2rem;
    gap: 0.4rem;
  }

  .page-btn {
    width: 35px;
    height: 35px;
    font-size: 0.85rem;
  }

  .thanks-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .thanks-title {
    font-size: 1.15rem;
    min-height: auto;
    -webkit-line-clamp: initial;
    line-clamp: initial;
  }
}
