:root {
  --primary-color: #2e3a87;
  --secondary-color: #d62828;
  --accent-color: #f77f00;
  --light-bg: #f8f9fa;
  --dark-text: #212529;
  --light-text: #f8f9fa;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

.home-section {
  background-color: var(--light-bg);
  padding: 4rem 0 6rem;
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-wrapper {
  display: flex;
  flex-direction: row;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero-wrapper:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

@media (max-width: 992px) {
  .hero-wrapper {
    flex-direction: column;
  }
}

.slider-section {
  flex: 3;
  padding: 0;
  position: relative;
}

.carousel {
  height: 100%;
  border-radius: 20px 0 0 20px;
  overflow: hidden;
}

@media (max-width: 992px) {
  .carousel {
    border-radius: 20px 20px 0 0;
  }
}

.carousel-item {
  height: 500px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  transition: transform 0.5s ease;
}

.carousel-item:hover img {
  transform: scale(1.03);
}

.carousel-control-prev, 
.carousel-control-next {
  width: 50px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 15px;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover, 
.carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.4);
}

.events-section {
  flex: 1;
  background: var(--primary-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border-radius: 0 20px 20px 0;
}

@media (max-width: 992px) {
  .events-section {
    border-radius: 0 0 20px 20px;
  }
}

.events-header {
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.events-header h2 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.events-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

.events-marquee {
  height: auto;
  overflow: visible;
}

.events-marquee-inner {
  display: block;
  height: 400px;
}

/* Disable marquee scrolling */
.events-marquee {
  -moz-transform: none !important;
  -webkit-transform: none !important;
  transform: none !important;
  animation: none !important;
  -webkit-animation: none !important;
  -moz-animation: none !important;
  -o-animation: none !important;
  -ms-animation: none !important;
  scrollamount: 0 !important;
}

.event-item {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent-color);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-item:nth-child(1) { animation-delay: 0.1s; }
.event-item:nth-child(2) { animation-delay: 0.2s; }
.event-item:nth-child(3) { animation-delay: 0.3s; }
.event-item:nth-child(4) { animation-delay: 0.4s; }
.event-item:nth-child(5) { animation-delay: 0.5s; }

.event-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.event-item p {
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.event-item .event-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.event-item .event-title i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.event-date {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-item {
    height: 350px;
  }
  
  .events-section {
    padding: 1.5rem;
  }
  
  .events-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .home-section {
    padding: 2rem 0 4rem;
  }
  
  .carousel-item {
    height: 250px;
  }
}
/* End slider & news & Event  */