/* IE Panel Styles */
.ie-panel {
  display: none;
  background: #212121;
  padding: 10px 0;
  box-shadow: 3px 3px 5px 0 rgba(0,0,0,.3);
  clear: both;
  text-align: center;
  position: relative;
  z-index: 1;
} 

html.ie-10 .ie-panel, 
html.lt-ie-10 .ie-panel {
  display: block;
}

/* Welcome Video Modal Styles */
#welcomeVideoModal .modal-dialog {
  max-width: 900px;
  margin: 1.75rem auto;
}

#welcomeVideoModal .modal-content {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

#welcomeVideoModal .modal-header {
  color: white;
  border-bottom: none;
  padding: 1.5rem;
} 

#welcomeVideoModal .modal-header-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#welcomeVideoModal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

#welcomeVideoModal .close {
  color: black;
  opacity: 0.6;
  font-size: 1.5rem;
}

#welcomeVideoModal .close:hover {
  color: black;
  opacity: 1;
}

#welcomeVideoModal .modal-body {
  padding: 0;
  background: #000;
}

#welcomeVideoModal video {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

#welcomeVideoModal .modal-footer {
  background: #f8f9fa;
  border-top: none;
  padding: 1.5rem;
  justify-content: center;
}

#welcomeVideoModal .btn-primary {
  background-color: #7b8eaf;
  border: 2px solid #7b8eaf;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

#welcomeVideoModal .btn-primary:hover {
  background-color: #dac390;
  border-color: #dac390;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123, 142, 175, 0.3);
}

#welcomeVideoModal .btn-primary:focus {
  background-color: #dac390;
  border-color: #dac390;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(123, 142, 175, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #welcomeVideoModal .modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  #welcomeVideoModal .modal-title {
    font-size: 1.25rem;
  }
  
  #welcomeVideoModal video {
    max-height: 300px;
  }
}

/* Loading animation for modal */
.modal.fade .modal-dialog {
  transition: transform 0.4s ease-out;
  transform: translate(0, -50px) scale(0.9);
}

.modal.show .modal-dialog {
  transform: translate(0, 0) scale(1);
}

/* Próximos Eventos Section Styles */
.proximos-eventos-section {
  position: relative;
  overflow: hidden;
}

.proximos-eventos-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23dac390" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%237b8eaf" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23dac390" opacity="0.15"/><circle cx="10" cy="90" r="0.5" fill="%237b8eaf" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.eventos-header {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.eventos-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #7b8eaf;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.eventos-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #7b8eaf 0%, #dac390 50%, #7b8eaf 100%);
  border-radius: 2px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.eventos-subtitle {
  font-size: 1.3rem;
  color: #2b251a;
  font-weight: 500;
  font-style: italic;
  opacity: 0.9;
}

.video-container {
  position: relative;
  z-index: 2;
}

.video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(123, 142, 175, 0.3);
  transition: all 0.4s ease;
  background: #000;
}

.video-wrapper:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(123, 142, 175, 0.4);
}

.eventos-video {
  width: 100%;
  height: auto;
  max-height: 500px;
  display: block;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-wrapper:hover .video-overlay {
  opacity: 0;
}

.eventos-video:not([controls]) + .video-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #7b8eaf 0%, #dac390 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.play-button:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(123, 142, 175, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(123, 142, 175, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 142, 175, 0); }
}

/* Responsive adjustments for eventos */
@media (max-width: 768px) {
  .eventos-title {
    font-size: 2rem;
  }
  
  .eventos-subtitle {
    font-size: .75rem;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .eventos-video {
    max-height: 300px;
  }
}
