.program {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    justify-content: center;
    background-color: #f8fbff;
}

.program-title{
    width: 100%;
    text-align: center;
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 50px;
    color: #222;
}

.program-container {
    width: 70%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.tab-buttons{
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-content: center;
    gap: 100px;
}

.tab-btn {
    width: 200px;
    height: 60px;
    padding: 10px 0;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: #007bff;
    color: white;
}

.timeline {
    display: none;
}

.timeline.active {
    display: block;
}


.program-timeline {
    width: 100%;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
}

.program-video {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.timeline-container{
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.timeline {
    width: 100%;
    border-left: 4px solid #007bff;
    position: relative;
}

.timeline-title{
    font-size: 30px;
    margin-bottom: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 4px;
    width: 20px;
    height: 20px;
    background: #007bff;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #007bff22;
    border-radius: 50%;
    z-index: 1;
}

.time {
    font-weight: bold;
    color: #007bff;
    font-size: 25px;
    margin-bottom: 8px;
    display: inline-block;
}

.event h3 {
    font-size: 20px;
    margin: 5px 0 10px;
    color: #333;
}

.event p {
    font-size: 18px;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.program-exhib {
    margin-top: 40px;
    width: 200px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.4);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    text-align: center;
    transition: 0.3s ease;
}

.program-exhib:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #a450ff, #5f00ff);
    box-shadow: 0 0 18px rgba(138, 43, 226, 0.6);
}



/* 📱 Маленькие устройства: до 768px */
@media (max-width: 768px) {
  .program {
    padding: 30px 0;
  }

  .program-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
    text-align: center;
  }

  .program-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .tab-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .tab-btn {
    width: 100%;
    max-width: 280px;
    height: 50px;
    font-size: 14px;
  }

  .timeline-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .timeline {
    width: 100%;
    padding-top: 40px;
    border-left: 2px solid #007bff;
  }

  .timeline-title {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
  }

  .timeline-item {
    position: relative;
  }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 0.5em;
    width: 12px;
    height: 12px;
    background-color: #007bff;
    border-radius: 50%;
  }

  .time {
    font-size: 14px;
  }

  .event h3 {
    font-size: 14px;
  }

  .event p {
    font-size: 13px;
  }

  .program-video,
  .video {
    width: 100%;
    border-radius: 8px;
  }

  .program-exhib {
    width: 160px;
    height: 40px;
    font-size: 14px;
  }
}


/* 💻 Планшеты: 769px – 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .program-container {
    width: 90%;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .tab-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  .tab-btn {
    width: 200px;
    height: 50px;
    font-size: 15px;
  }

  .timeline-container {
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .timeline {
    width: 45%;
    padding-top: 40px;
  }

  .timeline-title {
    font-size: 24px;
  }

  .time {
    font-size: 16px;
  }

  .event h3 {
    font-size: 16px;
  }

  .event p {
    font-size: 14px;
  }

  .program-exhib {
    font-size: 15px;
  }
}

/* 🖥️ Десктоп: 1025px – 1440px */
@media (min-width: 1025px) and (max-width: 1440px) {
  .program {
    padding: 60px 0;
  }

  .program-title {
    font-size: 44px;
    margin-bottom: 40px;
    text-align: center;
  }

  .program-container {
    width: 100%;
    margin: 0 auto;
    gap: 40px;
    display: flex;
    align-items: center;
  }

  .tab-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }

  .tab-btn {
    width: 180px;
    height: 50px;
    font-size: 16px;
    text-align: center;
  }

  .timeline-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    width: 80%;
  }

  .program-timeline{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .timeline.day1.active{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .timeline.day2.active{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .timeline {
    width: 45%;
    padding-left: 20px;
    border-left: 4px solid #007bff;
  }

  .timeline-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .timeline-item {
    padding-left: 20px;
    margin-bottom: 20px;
  }

  .timeline-item::before {
    left: -14px;
    width: 18px;
    height: 18px;
  }

  .time {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .event h3 {
    font-size: 18px;
    margin: 5px 0 8px;
  }

  .event p {
    font-size: 15px;
    line-height: 1.6;
  }
}
