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

:root {
  --ua-blue: #0057b8;
  --ua-yellow: #ffd700;
  --ca-red: #c41e3a;
  --light-bg: #f5f7fa;
  --text-dark: #1a1a1a;
  --text-light: #555;
  --border-light: #e0e0e0;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}

/* ============= HEADER & NAV ============= */
header {
  background: var(--white);
  border-bottom: 3px solid var(--ua-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ua-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 50px;
}

.logo img, .logo svg {
  height: 100%;
  width: auto;
  max-width: 50px;
}

.logo-text {
  font-weight: 700;
  letter-spacing: -0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--ua-blue);
}

.lang-toggle {
  background: var(--ua-blue);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  font-size: 0.9rem;
}

.lang-toggle:hover {
  background: #004191;
  transform: translateY(-2px);
}

/* ============= HERO ============= */
.hero {
  background: linear-gradient(135deg, var(--ua-blue) 0%, rgba(0, 87, 184, 0.95) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 650px;
  opacity: 0.95;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
}

.btn-primary {
  background: var(--ua-yellow);
  color: var(--ua-blue);
}

.btn-primary:hover {
  background: #ffed4e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--ua-blue);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: transparent;
  color: var(--white);
}

/* ============= SECTIONS ============= */
section {
  padding: 4rem 2rem;
}

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

section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--ua-blue);
  font-weight: 700;
  text-align: center;
}

/* ============= NEWS PREVIEW ============= */
.news-preview {
  background: var(--light-bg);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.news-card {
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
}

.news-card:hover {
  border-color: var(--ua-blue);
  box-shadow: 0 4px 12px rgba(0, 87, 184, 0.1);
}

.news-card-image {
  display: none;
}

.news-card-content {
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.news-card-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.news-card-text {
  flex: 1;
  min-width: 0;
}

.news-card-text h3 {
  margin-bottom: 0.3rem;
}

.news-card-preview {
  display: block;
  height: auto;
  max-height: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card-full-description {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  line-height: 1.7;
}

.news-card.expanded .news-card-preview {
  display: none;
}

.news-card.expanded .news-card-full-description {
  display: block;
  max-height: none;
  overflow: visible;
}

.news-card-date {
  font-size: 0.85rem;
  color: var(--ca-red);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-size: 1.2rem;
  color: var(--ua-blue);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.news-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.view-more {
  display: inline-block;
  margin-top: 3rem;
  text-align: center;
  width: 100%;
}

.link-arrow {
  color: var(--ua-blue);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.link-arrow:hover {
  gap: 0.75rem;
}

/* ============= EVENTS CALENDAR ============= */
.events-section {
  background: var(--white);
}

.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.event-item {
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.event-item:hover {
  box-shadow: 0 6px 16px rgba(0, 87, 184, 0.15);
  transform: translateY(-4px);
  border-color: var(--ua-blue);
}

.event-date {
  background: linear-gradient(135deg, var(--ua-blue) 0%, rgba(0, 87, 184, 0.9) 100%);
  color: var(--white);
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 3px solid var(--ua-yellow);
}

.event-title {
  font-size: 1rem;
  color: var(--ua-blue);
  font-weight: 600;
  padding: 1rem 1rem 0.5rem;
  line-height: 1.4;
}

.event-description {
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 0 1rem 1rem;
  flex-grow: 1;
  line-height: 1.5;
}

/* ============= SPONSOR SECTION ============= */
.sponsor-section {
  background: linear-gradient(135deg, rgba(0, 87, 184, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.sponsor-content {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  border: 2px solid var(--border-light);
  max-width: 700px;
  margin: 0 auto;
}

.sponsor-content h3 {
  color: var(--ua-blue);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.sponsor-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.sponsor-email {
  font-weight: 600;
  color: var(--ca-red);
  word-break: break-all;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.sponsor-placeholder {
  background: var(--white);
  border: 2px dashed var(--border-light);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  transition: all 0.3s;
}

.sponsor-placeholder:hover {
  border-color: var(--ua-blue);
  background: rgba(0, 87, 184, 0.02);
}

/* ============= ABOUT SECTION ============= */
.about-section {
  background: var(--light-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  color: var(--ua-blue);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-highlights {
  list-style: none;
  margin-top: 1.5rem;
}

.about-highlights li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dark);
}

.about-highlights li:before {
  content: "🇺🇦";
  position: absolute;
  left: 0;
  color: var(--ua-blue);
}

.about-image {
  background: linear-gradient(135deg, var(--ua-blue) 0%, rgba(0, 87, 184, 0.8) 100%);
  height: 400px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============= FOOTER ============= */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-links a {
  color: var(--ua-yellow);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-social span {
  display: inline-block;
  font-size: 1.5rem;
}

/* ============= PAGES ============= */
.page-content {
  min-height: 60vh;
  padding: 3rem 2rem;
}

.page-header {
  background: linear-gradient(135deg, var(--ua-blue) 0%, rgba(0, 87, 184, 0.95) 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 300px;
    font-size: 6rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-content {
    padding: 2rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  nav a {
    display: block;
    padding: 0.5rem 0;
  }

  .hero {
    padding: 3rem 1rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 1rem;
  }

  section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .about-highlights li:before {
    font-size: 0.8rem;
  }

  footer {
    padding: 2rem 1rem;
  }
}
