* {
  padding: 0;
  margin: 0;
  list-style: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  text-decoration: none;
  line-height: 2;
  border: none
}

.img-fluid {
  display: block;
  width: 100%;
  height: auto
}

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  background-color: #f7f9fc;
  color: #333;
  scroll-behavior: smooth;
  line-height: 2 !important;
}

.container {
  padding: 0 15px;
  max-width: 1140px;
  margin: 0 auto;
}


.btn {
  display: inline-block;
  background-color: #0e66c4;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 20px;
  
  transition: color 0.3s ease, text-decoration 0.3s ease;
}


header {
  margin-top: 0px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/assets/img/banner1.jpg') center/cover;
  color: white;
  padding: 240px 20px;
  text-align: center;
}
.header-banner {

}

header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5em;
}

header p {
  font-size: 1.2em;
}

nav {
  background-color: #0e66c4;
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  background-color: transparent;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}
nav a:hover {
  text-decoration: underline;
  color: #ffffff;
  
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: color 0.3s ease, text-decoration 0.3s ease;
}


#menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
} 


.navbar.scrolled {
  background: rgba(0, 0, 0, 0.8);
}

.navbar a {
  color: white;
  transition: color 0.3s;
}

.navbar.scrolled a {
  color: #fff;
}
 */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  z-index: 1000;
}

.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 1rem;
}

.menu-icon span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  transition: 0.4s;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li a {
  display: block;
  padding: 1rem;
  color: #fff;
  text-decoration: none;
}


.site-header {
  padding: 1rem;
  margin-top: 60px; /* Щоб не перекривалось фіксованим меню */
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.logo {
  width: 80px;
  height: auto;
}

.text-block h1 {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.text-block p {
  margin: 0.3rem 0;
}


section {
  padding: 40px 20px;
  /* max-width: 1000px; */
  margin: auto;
}

section h2 {
  font-family: 'Montserrat', sans-serif;
  color: #0e66c4;
  text-align: center;
}

section h2 {
  font-size: 2.2rem;
  color: #0F8EE3;
  text-align: center;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #0F8EE3;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}


.about {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px 20px;
  background-color: #f8f9fb;
  border-radius: 20px;
  margin: 20px 0;
  flex-wrap: wrap;  
}

.about-icon {
  flex: 0 0 100px;
  max-width: 100px;
}

.about-icon svg {
  width: 100%;
  height: auto;
}

.about-text {
  flex: 1;
  min-width: 250px;
}

.about-text p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}


.program-section {
  text-align: center;
  background-color: #ffffff;
  padding: 60px 20px;
}

.program-tabs {
  margin: 30px 0 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.program-tabs .tab {
  padding: 10px 20px;
  border: 2px solid #0F8EE3;
  background-color: white;
  color: #0F8EE3;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  border-radius: 30px;
}

.program-tabs .tab:hover,
.program-tabs .tab.active {
  background-color: #0F8EE3;
  color: white;
}

.program-content .program-day {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.program-content .program-day.active {
  display: block;
}

.program-content ul {
  list-style-type: disc;
  padding-left: 0;
  margin: 0 auto;
  /* max-width: 600px; */
  max-width: 780px;
  text-align: left;
}

.program-content li {
  margin: 10px 0;
  font-size: 1.1rem;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}


.topics ul, .conditions ul {
  list-style: none;
  padding-left: 0;
}

.sponsors-section {
  background-color: #ffffff;
  padding: 60px 20px;
}

.speakers, .sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.speaker-card, .sponsor-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  width: 30%;
  text-align: center;
  transition: transform 0.3s;
}

.speaker-card:hover, .sponsor-card:hover {
  transform: translateY(-5px);
}
.sponsor-card {
  width: 49%;
}

.sponsor-card img {
  max-width: 140px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.speaker-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}


.register {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
}

.register-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  width: 47%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.register-card:hover {
  transform: translateY(-5px);
}

.register-card h3 {
  font-family: 'Montserrat', sans-serif;
  color: #0e66c4;
  margin-bottom: 15px;
}

.register-card .btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: #0e66c4;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.register-card .btn:hover {
  background-color: #0056b3;
}

.initiative {
  /* background-color: #f4f4f4; */
  padding: 20px 0px;
  text-align: center;
  border-bottom: 2px solid #0F8EE3;
}

.initiative-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  gap: 20px;
}

.initiative-content img {
  max-width: 100px;
  height: auto;
}

.initiative-content p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
}



.contacts-section {
  background-color: #ffffff;
  padding: 60px 20px;
}

.gallery {
  background-color: #f8f9fb;
  padding: 20px 0px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 20%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 2rem;
  background: #f0f0f0;
}

.gallery img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

.video{
  display: flex;
  flex-wrap: wrap;
}
.video .video-card {
  width: 48%;
  margin: 0 10px;
}
.video .video-card iframe{
  width: 100%;
}


/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

header.scrolled,
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.8);
}


footer {
  background-color: #e9ecef;
  text-align: center;
  padding: 20px;
}

@media (max-width: 1070px) {
  
  .video .video-card {
    width: 100%;
  }
  .video .video-card iframe{
    width: 100%;
  }

}

/* Mobile-first: для екранів до 768px */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 15px;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .navbar a {
    display: block;
    padding: 8px 0;
    font-size: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-icon {
    display: flex;
  }

  .menu {
    flex-direction: column;
    background-color: #333;
    width: 100%;
    display: none;
  }

  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }

  .menu li a {
    padding: 1rem;
    border-top: 1px solid #444;
  }


  .hero h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 16px;
    width: 100%;
    text-align: center;
  }

  .logo-block {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    width: 60px;
  }

  .text-block h1 {
    font-size: 1.2rem;
  }


  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-icon {
    margin-bottom: 20px;
    width: 80px;
    height: auto;
  }

  .about-text p {
    font-size: 16px;
  }

  .program-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .program-tabs .tab {
    width: 100%;
    font-size: 16px;
    padding: 10px;
  }

  .program-day ul {
    padding-left: 20px;
  }

  .speakers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .speaker-card {
    width: 90%;
    text-align: center;
  }

  .speaker-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .sponsor-card {
    width: 100%;
  }

  .register-card {
    width: 100%;
  }

  .video .video-card {
    width: 100%;
  }
  
  .video .video-card iframe{
    width: 100%;
  }

  footer {
    text-align: center;
    padding: 20px 10px;
  }
}
