/* Events specific styles */

/* Event card */
.event-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.event-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-img img {
    transform: scale(1.05);
}

.event-date-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.3);
}

.event-date-tag .day {
    font-size: 1.5rem;
    display: block;
}

.event-date-tag .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-status {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 30px;
}

.event-status.upcoming {
    background-color: var(--highlight-color);
    color: white;
}

.event-status.past {
    background-color: #6c757d;
    color: white;
}

.event-status.ongoing {
    background-color: var(--primary-color);
    color: white;
}

.event-status.conference {
    background-color: var(--accent-color);
    color: white;
}

.event-status.training {
    background-color: var(--secondary-color);
    color: white;
}

.event-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.event-info {
    margin-bottom: 15px;
}

.event-info-item {
    display: flex;
    margin-bottom: 10px;
}

.event-info-icon {
    color: var(--accent-color);
    margin-right: 10px;
    flex-shrink: 0;
    width: 20px;
}

.event-info-text {
    font-size: 0.95rem;
}

.event-description {
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 0.95rem;
}

.event-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-registration {
    display: flex;
    align-items: center;
}

.event-registration-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(136, 176, 75, 0.1);
    color: var(--highlight-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.event-registration-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--highlight-color);
}

/* Featured event */
.featured-event {
    margin-bottom: 80px;
}

.featured-event-card {
    background: linear-gradient(to right, rgba(15, 76, 129, 0.9), rgba(95, 75, 139, 0.8)), url('/static/images/featured-event-bg.jpg') center/cover;
    border-radius: 20px;
    overflow: hidden;
    padding: 40px;
    color: white;
    position: relative;
    height: 100%;
}

.featured-event-content {
    position: relative;
    z-index: 2;
}

.featured-event-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.featured-event-date {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 20px;
}

.featured-event-info {
    margin-bottom: 20px;
}

.featured-event-info-item {
    display: flex;
    margin-bottom: 10px;
}

.featured-event-info-icon {
    margin-right: 10px;
    flex-shrink: 0;
    width: 20px;
}

.featured-event-description {
    margin-bottom: 30px;
    opacity: 0.9;
}

.featured-event-countdown {
    margin-bottom: 30px;
}

.countdown-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.countdown-container {
    display: flex;
}

.countdown-item {
    text-align: center;
    margin-right: 20px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Event filters */
.event-filters {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(15, 76, 129, 0.2);
}

/* Event Hero Section for Detail Page */
.event-hero {
    position: relative;
    background-color: var(--accent-color);
    padding: 40px 0;
    color: white;
}

.event-hero-content {
    position: relative;
    z-index: 2;
}

.event-date-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 20px;
}

.event-meta {
    margin: 30px 0;
}

.event-meta-item {
    display: flex;
    margin-bottom: 15px;
}

.event-meta-icon {
    margin-right: 15px;
    flex-shrink: 0;
    width: 24px;
    font-size: 1.2rem;
}

/* Event Detail Tabs */
.event-tabs {
    background-color: white;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.event-tabs .nav-link {
    padding: 15px 25px;
    font-weight: 600;
    color: var(--text-color);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.event-tabs .nav-link.active, 
.event-tabs .nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: transparent;
}

.event-tab-content {
    background-color: white;
    border-radius: 0 0 15px 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Info Boxes */
.event-info-box, .event-registration-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.event-info-box h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Schedule Section */
.schedule-item {
    background-color: rgba(15, 76, 129, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background-color: rgba(15, 76, 129, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.schedule-time {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 15px;
}

.schedule-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.schedule-speaker {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.schedule-speaker-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.schedule-speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schedule-speaker-name {
    font-weight: 600;
}

.schedule-speaker-position {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Speakers Grid */
.speaker-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.speaker-card-img {
    height: 250px;
    overflow: hidden;
}

.speaker-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.speaker-card:hover .speaker-card-img img {
    transform: scale(1.05);
}

.speaker-card-body {
    padding: 25px;
    text-align: center;
}

.speaker-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.speaker-card-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.speaker-card-bio {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #6c757d;
}

.speaker-social {
    margin-top: 15px;
}

.speaker-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(15, 76, 129, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.speaker-social a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Venue Information */
.venue-map {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.venue-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.venue-info {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.venue-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.venue-info-item {
    display: flex;
    margin-bottom: 15px;
}

.venue-info-icon {
    margin-right: 15px;
    flex-shrink: 0;
    width: 24px;
    color: var(--accent-color);
}

/* Documents List */
.documents-list {
    list-style: none;
    padding: 0;
}

.document-item {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.document-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.document-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
}

.document-icon.pdf {
    background-color: #dc3545;
}

.document-icon.doc {
    background-color: #0d6efd;
}

.document-icon.xls {
    background-color: #198754;
}

.document-icon.ppt {
    background-color: #fd7e14;
}

.document-info {
    flex-grow: 1;
}

.document-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.document-size {
    font-size: 0.9rem;
    color: #6c757d;
}

.document-download {
    padding: 8px 15px;
    border-radius: 30px;
    background-color: rgba(15, 76, 129, 0.1);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.document-download:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Gallery */
.gallery-container {
    margin-top: 30px;
}

.gallery-item {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Registration Form */
.registration-form {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.3);
    transition: all 0.3s ease;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e56559;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 111, 97, 0.5);
}

/* Response design for mobile */
@media (max-width: 767px) {
    .featured-event-card {
        padding: 25px;
    }
    
    .featured-event-title {
        font-size: 1.6rem;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-item {
        margin-right: 15px;
    }
    
    .event-tabs .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .event-hero {
        padding: 30px 0;
    }
    
    .speaker-card-img {
        height: 200px;
    }
}

/* Gallery Slideshow Styles */
.gallery-slideshow {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
    display: block;
    z-index: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 15px;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-slide:hover .gallery-caption {
    transform: translateY(0);
}

/* Navigation Controls */
.gallery-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.gallery-nav:hover {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

/* Indicators */
.gallery-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
    pointer-events: auto;
}

.gallery-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Lightbox styles */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 30px;
    flex-direction: column;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    border: 5px solid white;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 15px;
    font-size: 1rem;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.close-lightbox:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .gallery-slideshow {
        height: 250px;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .gallery-caption {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
}

/* Стили для новых табов фильтров */
.event-filters-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 30px;
  }
  
  .filter-tab {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
    text-align: center;
    min-width: 130px;
  }
  
  .filter-tab:hover {
    background-color: rgba(15, 76, 129, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(15, 76, 129, 0.1);
    color: var(--accent-color);
  }
  
  .filter-tab.active {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 5px 15px rgba(15, 76, 129, 0.2);
  }
  
  /* Более компактная версия на малых экранах */
  @media (max-width: 767px) {
    .event-filters-tabs {
      gap: 5px;
    }
    
    .filter-tab {
      padding: 8px 15px;
      font-size: 0.9rem;
      min-width: unset;
    }
  }
  
  /* Если много категорий, на мобильном делаем прокрутку */
  @media (max-width: 575px) {
    .event-filters-tabs {
      justify-content: flex-start;
      overflow-x: auto;
      white-space: nowrap;
      padding-bottom: 15px;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      flex-wrap: nowrap;
    }
    
    .filter-tab {
      scroll-snap-align: start;
    }
  }