.modal-body {
  padding: 30px 25px;
  background: #fafbfc;
  position: relative;
}

.news-view-container {
  max-width: 100%;
  margin: 0 auto;
}

.news-title-section {
  border-bottom: 2px solid #e9ecef;
}

.news-main-title {
  color: #2c3e50;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.news-image-section {
  position: relative;
  margin-bottom: 30px !important;
}

.news-image-section img {
  border-radius: 15px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.3s ease;
  border: 3px solid rgba(102, 126, 234, 0.1);
}

.news-image-section img:hover {
  transform: scale(1.02);
}

.news-content-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.news-content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
}

.news-full-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #34495e;
  /* font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; */
}

.news-full-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.news-full-content h1,
.news-full-content h2,
.news-full-content h3,
.news-full-content h4,
.news-full-content h5,
.news-full-content h6 {
  color: #2c3e50;
  font-weight: 600;
  margin: 25px 0 15px 0;
  position: relative;
}

.news-full-content ul,
.news-full-content ol {
  padding-left: 25px;
  margin-bottom: 20px;
}

.news-full-content li {
  margin-bottom: 8px;
  position: relative;
}

.news-full-content ul li::before {
  content: "●";
  color: #667eea;
  font-weight: bold;
  position: absolute;
  left: -15px;
}

.news-full-content blockquote {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #6c757d;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-full-content a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.news-full-content a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

.news-full-content a:hover::after {
  width: 100%;
}

.news-full-content a:hover {
  color: #764ba2;
  text-decoration: none;
}

.btn-secondary {
  background: #dc3545 !important;
  border: none !important;
  color: white !important;
  padding: 12px 25px !important;
  border-radius: 25px !important;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-secondary i {
  margin-right: 8px;
}

@media (max-width: 768px) {
  .modal-body {
    padding: 20px 15px;
  }

  .news-main-title {
    font-size: 1.6rem;
  }

  .news-content-section {
    padding: 20px;
  }

  .news-full-content {
    font-size: 1rem;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-title {
    font-size: 1.2rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-view-container {
  animation: fadeIn 0.6s ease-out;
}

.news-title-section {
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.news-image-section {
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.news-content-section {
  animation: fadeIn 0.8s ease-out 0.6s both;
}

body[dir="rtl"] .news-full-content {
  text-align: right;
}

body[dir="rtl"] .news-full-content h2::before {
  right: -20px;
  left: auto;
}

body[dir="rtl"] .news-full-content ul {
  padding-right: 25px;
  padding-left: 0;
}

body[dir="rtl"] .news-full-content ul li::before {
  right: -15px;
  left: auto;
}

body[dir="rtl"] .news-full-content blockquote {
  border-right: 4px solid #667eea;
  border-left: none;
  border-radius: 10px 0 0 10px;
}

.image-slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slideshow-image {
  display: none;
  position: relative;
}

.slideshow-image.active {
  display: block;
}

.slideshow-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  border: none !important;
  box-shadow: none !important;
}

.slideshow-prev,
.slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.slideshow-prev:hover,
.slideshow-next:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slideshow-prev {
  left: 15px;
}

.slideshow-next {
  right: 15px;
}



.slideshow-counter {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
}

@media (max-width: 768px) {
  .slideshow-prev,
  .slideshow-next {
    padding: 10px 15px;
    font-size: 14px;
  }

  .slideshow-prev {
    left: 10px;
  }

  .slideshow-next {
    right: 10px;
  }

  .dot {
    height: 10px;
    width: 10px;
    margin: 0 3px;
  }

  .slideshow-counter {
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 12px;
  }
}

.slideshow-image {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slideshow-image.active {
  opacity: 1;
}

body[dir="rtl"] .slideshow-prev {
  right: 15px;
  left: auto;
}

body[dir="rtl"] .slideshow-next {
  left: 15px;
  right: auto;
}

body[dir="rtl"] .slideshow-counter {
  left: 15px;
  right: auto;
}

@media (max-width: 768px) {
  body[dir="rtl"] .slideshow-prev {
    right: 10px;
    left: auto;
  }

  body[dir="rtl"] .slideshow-next {
    left: 10px;
    right: auto;
  }

  body[dir="rtl"] .slideshow-counter {
    left: 10px;
    right: auto;
  }
}

/* Font family styles for news content display */
.news-full-content .ql-font-arial {
  font-family: Arial, sans-serif;
}

.news-full-content .ql-font-courier-new {
  font-family: 'Courier New', monospace;
}

.news-full-content .ql-font-lucida {
  font-family: 'Lucida Console', monospace;
}

.news-full-content .ql-font-times-new-roman {
  font-family: 'Times New Roman', serif;
}

/* Arabic fonts for content display */
.news-full-content .ql-font-amiri {
  font-family: 'Amiri', serif;
  direction: rtl;
  text-align: right;
}

.news-full-content .ql-font-cairo {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
}

.news-full-content .ql-font-noto-sans-arabic {
  font-family: 'Noto Sans Arabic', sans-serif;
  direction: rtl;
  text-align: right;
}

.news-full-content .ql-font-tajawal {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
}

.news-full-content .ql-font-almarai {
  font-family: 'Almarai', sans-serif;
  direction: rtl;
  text-align: right;
}

.news-full-content .ql-font-changa {
  font-family: 'Changa', sans-serif;
  direction: rtl;
  text-align: right;
}
