
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

/* БАЗОВІ СТИЛІ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  font-size: 14px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ХЕДЕР */
.site-header {
  background: linear-gradient(270deg, #003366, #005b99, #003366);
  background-size: 600% 600%;
  animation: headerGradientShift 6s ease infinite;
  color: white;
  padding: 8px 0 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  position: static;
}

@keyframes headerGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.header-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding-bottom: 12px;
}

.logo-block {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  display: flex;
  text-align: center;
}

.logo-text {
  text-align: center;
  margin: 0;
}

.logo-text h1 {
  font-size: 1.4rem;
  margin: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
  color: white;
}

.logo-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #e0f0ff;
}

.profession-list {
  padding: 0;
  gap: 6px;
  display: flex;
  flex-direction: column;
}

.profession-list li span {
  display: inline-block;
  background: #fff;
  padding: 0.2em 0.4em;
  border-bottom: 8px solid #005b99;  
  line-height: 1.3;
  font-size: 1.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  color: #111;
}

.logo-img {
  max-width: 200px;
  height: auto;
  display: block;
  margin-right: 30px;
}

/* Анімація */
.logo-img,
.logo-text {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInUp 0.8s ease forwards;
}

.logo-text { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ЛИПКЕ МЕНЮ */
.sticky-nav {
  position: sticky;
  top: 0;
  background: #005b99;
  background-size: 600% 600%;
  animation: headerGradientShift 15s ease infinite;
  z-index: 1000;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px;  
}

.burger {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.burger-icon {
  font-size: 28px;
  line-height: 1;
}

.burger-label {
  font-size: 1rem;
  font-weight: 500;
  color: white;
}


.main-nav {
  display: none;
  flex-direction: column;
  background-color: #003366;
  padding: 14px 12px;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-top: 1px solid #66ccff;
  z-index: 1000;
  animation: fadeInMenu 0.3s ease forwards;
}

.main-nav.active {
  display: flex;
}

.main-nav ul {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav li { width: 100%; }

.main-nav a {
  font-size: 0.95rem;
  padding: 10px 16px;
  width: 100%;
  text-align: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  background-color: #f0f8ff;
  color: #014080;
}

/* СЕКЦІЇ */
section {
  padding: 60px 0;
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
}

.section:nth-child(even) {
  background-color: #f0f8ff;
}

.section h2 {
  display: inline-block;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: white;
  background: linear-gradient(90deg, #003366, #005b99);
  padding: 8px 20px;
  border-radius: 0;
  margin: 0 auto 30px;
  position: relative;
  z-index: 1;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;

  text-align: center;
  display: table;
}


.section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.section p.intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* === СЕКЦІЯ ПРОГРАМИ ЗАХОДУ === */


.event-schedule {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.event-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  border-left: 5px solid #005b99;
  border-right: 5px solid #005b99;
  padding-left: 15px;
  background-color: #f5faff;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.event-time {
  font-weight: bold;
  background: linear-gradient(90deg, #003366, #005b99);
  color: white;
  padding: 6px 12px;
  display: inline-block;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 1rem;
}

.event-lab {
  font-weight: bold;
  background: linear-gradient(90deg, #003366, #005b99);
  color: white;
  padding: 6px 12px;
  display: inline-block;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 1rem;
  text-align: center;
}

.event-item p,
.event-item ul {
  margin: 0 0 10px;
  padding: 0;
  text-align: justify;
  text-wrap: normal;         
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}


.event-item ul {
  padding-left: 25px;
  list-style-type: disc;
}

.highlighted-role {
  display: inline-block;
  background-color: #e6f2ff;
  color: #003366;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
  margin-top: 4px;
  margin-bottom: 8px;
  text-align: left;
  
}



/* === СТИЛІ ДЛЯ ІНФОРМАЦІЙНИХ БЛОКІВ === */


.npc-text-block {
  font-size: 1.1rem;
  background: rgba(240, 248, 255, 0.65);
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: 1000px;
  margin: 0 auto 60px;
  border-left: 6px solid #005b99;
  border-right: 6px solid #005b99;
  transition: all 0.3s ease;
  animation: fadeInBlock 0.8s ease forwards;  
  text-align: justify;
  text-wrap: pretty;
  letter-spacing: 0.2px;
  line-height: 1.7;
}

.npc-text-block p {
  text-align: justify;
  text-wrap: pretty;
  line-height: 1.7;
  letter-spacing: 0.2px;
  font-size: 1.1rem;
  margin-bottom: 16px;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}


@keyframes fadeInBlock {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.npc-info-block {
  margin-bottom: 60px;
}

.npc-text h3 {
  background-color: #cce6ff;
  color: #111;
  font-size: 1.3rem;
  padding: 10px 20px;
  margin: 40px auto 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 1000px;
}


.npc-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 16px;
  padding: 0 40px;
  max-width: 900px;
  text-align: justify;
  letter-spacing: 0.2px;
  text-wrap: pretty;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}



/* Точніший вигляд списків */
.npc-text ul {
  padding: 0 40px 10px 60px;
  margin: 0 auto 20px;
  max-width: 900px;
  font-size: 1.05rem;
  line-height: 1.6;
  list-style-type: disc;
}

/* Відступи між елементами списку */
.npc-text ul li {
  margin-bottom: 8px;
}


/* === СЛАЙДЕР === */
.npc-slider {
  max-width: 1000px;
  margin: 20px auto;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.npc-slider .slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.npc-slider .slide {
  min-width: 100%;
  box-sizing: border-box;
  user-select: none;
}

.npc-slider img {
  width: 100%;
  height: auto;
  max-height: 600px; /* обмеження по висоті */
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  user-select: none;
  pointer-events: none;
}


/* === НАВІГАЦІЯ СЛАЙДЕРА === */
.slider-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-dot.active {
  background-color: #005b99;
}


/* ФУТЕР */
.site-footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 співвідношення сторін */
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 30px auto 0; /* відступи та вирівнювання */
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}


.photo-placeholder {
  background-color: #f0f8ff;
  border: 2px dashed #005b99;
  padding: 40px 20px;
  text-align: center;
  font-size: 1.2rem;
  color: #003366;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.photo-placeholder p {
  margin: 0;
  line-height: 1.6;
}

.photoarchive-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #005b99;
  color: white;
  text-decoration: none;
  font-size: 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.photoarchive-button:hover {
  background-color: #1e40af;
}

/* === СЕКЦІЯ ФІНАНСУВАННЯ === */
.funding-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.funding-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  background-color: #e6f2ff;
  padding: 20px 30px;
  border-left: 6px solid #005b99;
  border-right: 6px solid #005b99;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  max-width: 1000px;
  width: 100%;
}

.funding-flag {
  max-width: 300px;
  height: auto;
  flex-shrink: 0;
}

.funding-caption {
  font-size: 1.3rem;
  font-weight: 500;
  color: #003366;
  text-align: left;
  line-height: 1.4;
  max-width: 600px;
}

/* Адаптив */
@media (max-width: 600px) {
  .funding-banner {
    flex-direction: column;
    text-align: center;
  }

  .funding-caption {
    text-align: center;
  }
  .funding-flag {
    max-width: 250px;
      }
}


/* === АДАПТИВ === */

@media (min-width: 915px) {
  body {
    font-size: 16px;
  }

  .header-flex {
    flex-direction: row;
    justify-content: center;
  }

  .logo-block {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }

  .logo-text {
    text-align: right;
  }

  .nav-inner {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding: 10px 20px;    
  }

  .burger {
    display: none;
  }

  .main-nav {
    display: block !important;
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    width: auto;
    margin: 0 auto;
  }
  
  .main-nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    flex-wrap: nowrap; 
    white-space: nowrap; 
  }
  
  .main-nav a {
    font-size: 1.05rem;
    padding: 12px 20px;         
    display: flex;              
    align-items: center;        
    height: 100%;               
    transition: all 0.3s ease;
    box-sizing: border-box;     
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0;
  }

  .npc-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 auto 16px;
    padding: 0 60px;
    max-width: 1000px;
    text-align: justify;
    letter-spacing: 0.2px;
    text-wrap: pretty;
  }

  .npc-text ul {
    padding: 0 60px 10px 80px;
    margin: 0 auto 20px;
    max-width: 1000px;
    font-size: 1.05rem;
    line-height: 1.7;
    list-style-type: disc;
  }
    
  
}




@media (max-width: 914px) {
  .main-nav {
    display: none;
    flex-direction: column;
    background-color: #005b99;
    padding: 14px 12px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-top: 1px solid #66ccff;
    z-index: 1000;
    animation: fadeInMenu 0.3s ease forwards;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;       
    justify-content: center;
    gap: 8px;                  
    padding: 10px 0;
    list-style: none;
    margin: 0;
  }

  .main-nav li {
    width: auto;              
    text-align: center;
  }

  .main-nav a {
    font-size: 1rem;
    padding: 10px 20px;
    display: inline-block;    
    width: auto;
    text-align: center;
    white-space: nowrap;          
    transition: background 0.3s ease;
    color: white;
    text-decoration: none;
  }

  .main-nav a:hover {
    background-color: #f0f8ff;
    color: #003366;
  }

  .profession-list li span {
    display: block;
    width: 100vw;
    margin: 20 0;
    padding: 0.6em 1.2em;
    font-size: 1.2rem;
    line-height: 1.4;
    text-align: center;
  
    background: #FFF;    
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }
    
  .logo-img {    
    margin-right: 0px;
  }

  .npc-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 0 30px;
    margin: 0 0 16px;
    letter-spacing: 0.2px;
    text-align: justify;
    text-wrap: pretty;
  }
  

  .npc-text h3 {
    font-size: 1.1rem;
    padding: 8px 15px;
  }

  .npc-slider {
    margin: 15px auto;
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }

  .event-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  

  .event-time {
    display: inline-block;
    align-self: flex-start;
    text-align: left;
    margin-bottom: 10px;
    font-size: 1rem;
    background-color: #005b99;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
  }
  
  
}

