/* Historical Events Widget - Fixed Styling */

.historical-event-image:hover {
  opacity: 0.9;
}


/* Main Container */
.historical-events-fixed {
  width: 100%;
  margin: 40px 0;
  padding: 0;
  position: relative;
}



.historical-events-container {
  max-width: 100%;
  margin: 0 auto;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Title Styling */
.historical-events-title {
  margin: 0;
  padding: 20px 30px;
  background: #fff;
  border-top: 3px solid #dc3545; /* Single red line like Stellans demo */
  border-bottom: 1px solid #e9ecef;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.historical-events-title i {
  color: #dc3545;
  font-size: 1.1rem;
}

/* Widget Container */
.historical-events-widget {
  position: relative;
  background: #fff;
  min-height: 300px;
}

/* Content Area */
.historical-events-content {
  position: relative;
  padding: 30px;
  overflow: hidden;
}

/* Event Items */
.historical-event-item {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.historical-event-item.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* Event Title */
.event-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #dc3545;
  margin-bottom: 15px;
  padding-top: 60px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

/* Event Description */
.event-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
  margin-top: 40px; 
}

.event-description p {
  margin-bottom: 15px;
}

.event-description strong {
  color: #333;
  font-weight: 600;
}

/* Event Images */
.event-images {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.event-image-container {
  flex: 0 0 auto;
  max-width: 150px;
}

.historical-event-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.historical-event-image:hover {
  transform: scale(1.05);
}

/* Navigation Controls */
.historical-events-navigation {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.nav-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #dc3545;
  background: #fff;
  color: #dc3545;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
}

.nav-btn:hover:not(:disabled) {
  background: #dc3545;
  color: #fff;
  transform: translateY(-1px);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.nav-btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Event Indicators */
.historical-events-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.indicator {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.indicator.active {
  background: #dc3545;
  transform: scale(1.2);
}

.indicator:hover {
  background: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
  .historical-events-container {
    margin: 0 -15px;
    border-radius: 0;
  }
  
  .historical-events-title {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  
  .historical-events-content {
    padding: 20px;
  }
  
  .historical-events-navigation {
    top: 15px;
    right: 15px;
  }
  
  .nav-btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  
  .event-images {
    gap: 10px;
  }
  
  .event-image-container {
    max-width: 120px;
  }
}

/* Override Bootstrap Carousel Styles */
.historical-events-fixed .carousel,
.historical-events-fixed .carousel-inner,
.historical-events-fixed .carousel-item {
  position: static !important;
  transform: none !important;
  transition: none !important;
  overflow: visible !important;
}

/* Prevent Layout Disruption */
.historical-events-fixed {
  clear: both;
  float: none !important;
  position: relative;
  z-index: 1;
}

/* Ensure Proper Container Behavior */
.historical-events-fixed .col-md-12 {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

/* Animation Overrides */
.historical-events-fixed * {
  animation: none !important;
}

.historical-events-fixed .carousel-item {
  transition: none !important;
  transform: none !important;
}

/* Focus States for Accessibility */
.nav-btn:focus,
.indicator:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .historical-events-navigation,
  .historical-events-indicators {
    display: none;
  }
  
  .historical-event-item {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    page-break-inside: avoid;
    margin-bottom: 30px;
  }
}
