.content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* Backdrop */
.news-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  visibility: hidden; /* Add initial hidden state */
}

.news-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* Toggle Button */
.news-toggle {
  position: fixed;
  bottom: -3px;
  left: 30px;
  height: 50px;
  border-radius: 20px 20px 0px 0px;
  background: #b71833;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1100;
  padding: 0 25px;
  color: white;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
}

.news-toggle:hover {
  /* GSAP will handle hover effects */
}

.news-toggle.active {
  background: #000000;
  border-radius: 20px 20px 0 0;
  bottom: 220px;
  box-shadow: 0 -4px 16px rgba(37, 99, 235, 0);
}

.news-toggle.active:hover {
  /* GSAP will handle this */
}

/* News Slider Container */
.news-slider-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #b71833;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  z-index: 1100;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
  height: 220px;
  overflow: hidden;
  /* Add these lines to hide initially and prevent flash */
  transform: translateY(100%);
  visibility: hidden;
}

.news-slider-container.open {
  /* GSAP will handle the animation */
}

.news-slider {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.news-slider-wrapper {
  display: flex;
  height: 100%;
}

.news-slide {
  min-width: 100%;
  padding: 30px;
  display: flex;
  position: relative;
  gap: 10px;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.news-slide.active {
  opacity: 1;
}

.news-slide-image {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

.news-slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.news-date {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 10px;
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 15px;
  overflow: hidden;
}

.news-description {
  font-size: 15px;
  color: #f5f5f5;
  overflow: hidden;
}

.news-read-more {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  background-color: #000000;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: gap 0.3s ease;
  margin-top: auto;
  max-width: 300px;
  align-self: end;
  z-index: 1000;
  top: 20px;
  position: absolute;
}

.news-read-more:hover {
  gap: 10px;
}

/* Navigation */
.news-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 0 25px;
}

.news-nav-button {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.news-nav-button:hover {
  background-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.news-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
}

.news-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
  transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

.news-indicator.active {
  background-color: #000000;
  width: 24px;
  border-radius: 4px;
}

/* Slide Loader */
.slide-loader-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(203, 213, 225, 0.3);
  z-index: 10;
  overflow: hidden;
}

.slide-loader {
  height: 100%;
  width: 0;
  background: #ffffff;
  /* GSAP will handle the animation */
}

/* Animation for toggle button when new news arrives */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}
.news-toggle.pulse {
  animation: pulse 1.5s infinite;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .news-slide-image {
    width: 60px;
    height: 70px;
    top: 0;
    bottom: 0;
    margin: auto;
  }
  .news-date {
    margin-bottom: 0;
  }
  .news-title {
    font-size: 15px;
    margin-bottom: 0;
  }
  .news-description {
    font-size: 10px;
  }
  .news-read-more {
    top: 10px;
    padding: 5px 10px;
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  .news-toggle {
    bottom: -3px;
  }
  .news-nav {
    bottom: 10px;
    gap: 15px;
    scale: 0.8;
  }
  .news-nav-button {
    width: 36px;
    height: 36px;
  }
  .news-slider-container {
    height: 250px;
    padding-top: 15px;
    /* Keep initial hidden state for mobile too */
    transform: translateY(100%);
    visibility: hidden;
  }
  .news-toggle.active {
    bottom: 250px;
  }
}
/* Sample content styles */
.sample-content {
  max-width: 800px;
  margin: 0 auto;
}

.sample-content h1 {
  margin-bottom: 20px;
  color: #0f172a;
}

.sample-content p {
  margin-bottom: 16px;
  line-height: 1.6;
  color: #475569;
}

.news-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

.news-slide.active {
  pointer-events: auto;
  opacity: 1;
  z-index: 10;
}

.news-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-nav {
  z-index: 100 !important;
}

.news-nav * {
  z-index: 101 !important;
}

/* RTL (Arabic) Support - Flip navigation arrows */
.ar_font .news-nav-button svg {
  transform: scaleX(-1);
}

/* Alternative approach for specific buttons in RTL */
.ar_font #prevBtn svg {
  transform: scaleX(-1);
}

.ar_font #nextBtn svg {
  transform: scaleX(-1);
}

/* RTL Support - Reverse navigation layout */
.ar_font .news-nav {
  direction: rtl;
}

/* RTL Support - Reverse indicators flow */
.ar_font .news-indicators {
  direction: rtl;
}

/* RTL Support - Flip news content layout */
.ar_font .news-slide {
  direction: rtl;
}

.ar_font .news-slide-content {
  text-align: right;
}

/* RTL Support - Adjust read more button position */
.ar_font .news-read-more {
  align-self: start;
  left: 20px;
  right: auto;
}/*# sourceMappingURL=news.css.map */