
/*--------------------------------------------------------------
# News Section Styles
--------------------------------------------------------------*/

/* View Toggle Buttons */
.news-view-toggle {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.view-toggle-buttons {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-toggle-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-toggle-btn:hover {
  background: #f6f6f6;
  color: var(--color-primary);
}

.view-toggle-btn.active {
  background: var(--color-secondary);
  color: #fff;
}

/* News Cards Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* News List View */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  /* Prevent image dragging and saving */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: relative;
  transition: transform 0.3s ease;
}

.news-card-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

/* Quick Actions for News Cards */
.news-card .quick-actions {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.news-card:hover .quick-actions {
  opacity: 1;
}

.news-card .quick-actions a {
  background: rgba(14, 33, 51, 0.85);
  backdrop-filter: blur(5px);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.news-card .quick-actions a:hover {
  background: var(--color-secondary);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(219, 163, 39, 0.4);
}

.news-card .quick-actions a.share-facebook:hover {
  background: #1877f2;
}

.news-card .quick-actions a.share-whatsapp:hover {
  background: #25d366;
}

.news-card .quick-actions a.quick-read {
  background: rgba(219, 163, 39, 0.85);
}

.news-card .quick-actions a.quick-read:hover {
  background: var(--color-secondary);
}

.news-card .quick-actions a.copy-link {
  background: rgba(108, 117, 125, 0.85);
}

.news-card .quick-actions a.copy-link:hover {
  background: #6c757d;
}

.news-card .quick-actions a.share-native {
  background: rgba(0, 123, 255, 0.85);
}

.news-card .quick-actions a.share-native:hover {
  background: #007bff;
}

.news-card:hover .news-card-image {
  transform: scale(1.05);
}

.news-card-date-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-card-date-overlay i {
  font-size: 14px;
  color: var(--color-secondary);
}

.news-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news-card-meta i {
  color: var(--color-secondary);
}

.news-card-meta span {
  background-color: #f6f6f6;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.news-card-meta span:hover {
  background-color: var(--color-secondary);
  color: #fff;
}

.news-card-meta span:hover i {
  color: #fff;
}

.news-card-excerpt {
  font-size: 14px;
  color: var(--color-default);
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-read-more {
  margin-top: 15px;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 14px;
}

.news-card-read-more:hover {
  color: var(--color-primary);
}

/* News Filters */
.news-filters {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

.filters-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.filters-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.filters-row-main {
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.filters-row-secondary {
  align-items: flex-end;
}

.filters-row-actions {
  justify-content: center;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.filter-section {
  flex: 1;
  min-width: 200px;
}

.filter-section-date {
  flex: 0 0 auto;
  min-width: 150px;
}

.filter-section-search {
  flex: 1;
  min-width: 250px;
}

.filter-label {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.filter-label i {
  color: var(--color-secondary);
  font-size: 14px;
}

.news-filters .form-control {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  transition: all 0.3s ease;
  background: #fff;
  width: 100%;
}

.news-filters .form-select {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 35px 8px 12px; /* مساحة للسهم على اليمين في RTL */
  font-size: 13px;
  transition: all 0.3s ease;
  background: #fff;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 10px;
}

.news-filters .form-control:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(219, 163, 39, 0.1);
  background: #fff;
}

.news-filters .form-select:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(219, 163, 39, 0.1);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dba327' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 10px;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
  font-size: 14px;
}

.search-input-wrapper .form-control {
  padding-right: 38px;
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #6c757d;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-reset-filters:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-reset-filters i {
  font-size: 16px;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  padding: 8px 16px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(219, 163, 39, 0.2);
}

.filter-pill.active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(219, 163, 39, 0.3);
}

.filter-pill.active:hover {
  background: #c8941f;
  border-color: #c8941f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(219, 163, 39, 0.4);
}

.news-filters .btn-search {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s;
}

.news-filters .btn-search:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.news-pagination .page-link {
  color: var(--color-primary);
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
}

.news-pagination .page-link:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

.news-pagination .page-link.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.news-pagination .page-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Horizontal News Card */
.news-card-horizontal {
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.news-card-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-card-horizontal-image-container {
  flex: 0 0 200px;
  height: 150px;
  position: relative;
  overflow: hidden;
}

.news-card-horizontal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card-horizontal:hover .news-card-horizontal-image {
  transform: scale(1.05);
}

.news-card-horizontal-date-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.news-card-horizontal-date-overlay i {
  font-size: 12px;
  color: var(--color-secondary);
}

.news-card-horizontal-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-horizontal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-horizontal-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news-card-horizontal-meta span {
  background-color: #f6f6f6;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.news-card-horizontal-meta span:hover {
  background-color: var(--color-secondary);
  color: #fff;
}

.news-card-horizontal-meta span:hover i {
  color: #fff;
}

.news-card-horizontal-meta i {
  color: var(--color-secondary);
  font-size: 12px;
}

.news-card-horizontal-excerpt {
  font-size: 14px;
  color: var(--color-default);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-horizontal-read-more {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.news-card-horizontal-read-more:hover {
  color: var(--color-primary);
  gap: 8px;
}

.news-card-horizontal-read-more i {
  transition: transform 0.3s ease;
}

.news-card-horizontal-read-more:hover i {
  transform: translateX(-3px);
}

/* News List Container */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.news-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.news-empty i {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 20px;
}

.news-empty h3 {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.news-empty p {
  font-size: 16px;
  color: #666;
}

/* Quick Actions for Horizontal Cards */
.news-card-horizontal .quick-actions {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.news-card-horizontal:hover .quick-actions {
  opacity: 1;
}

.news-card-horizontal .quick-actions a {
  background: rgba(14, 33, 51, 0.85);
  backdrop-filter: blur(5px);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.news-card-horizontal .quick-actions a:hover {
  background: var(--color-secondary);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(219, 163, 39, 0.4);
}

.news-card-horizontal .quick-actions a.share-facebook:hover {
  background: #1877f2;
}

.news-card-horizontal .quick-actions a.share-whatsapp:hover {
  background: #25d366;
}

.news-card-horizontal .quick-actions a.quick-read {
  background: rgba(219, 163, 39, 0.85);
}

.news-card-horizontal .quick-actions a.quick-read:hover {
  background: var(--color-secondary);
}

.news-card-horizontal .quick-actions a.copy-link {
  background: rgba(108, 117, 125, 0.85);
}

.news-card-horizontal .quick-actions a.copy-link:hover {
  background: #6c757d;
}

.news-card-horizontal .quick-actions a.share-native {
  background: rgba(0, 123, 255, 0.85);
}

.news-card-horizontal .quick-actions a.share-native:hover {
  background: #007bff;
}

@media (max-width: 768px) {
  .news-card-horizontal {
    flex-direction: column;
  }
  
  .news-card-horizontal-image-container {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
  }
  
  .news-card-horizontal-body {
    width: 100%;
  }
  
  .news-card-horizontal-title {
    font-size: 16px;
  }
  
  .news-card-horizontal .quick-actions {
    top: 8px;
    left: 8px;
  }
  
  .news-card-horizontal .quick-actions a {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* Homepage News Section */
.home-news-section {
  padding: 60px 0;
  background: #f6f6f6;
}

.home-news-header {
  text-align: center;
  margin-bottom: 40px;
}

.home-news-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.home-news-header h2 a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s;
}

.home-news-header h2 a:hover {
  color: var(--color-secondary);
}

.home-news-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.home-news-main-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  justify-content: flex-start;
  align-self: stretch;
}

.home-news-main {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-news-main:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.home-news-main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  /* Prevent image dragging and saving */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: relative;
  transition: transform 0.3s ease;
}

.home-news-main:hover .home-news-main-image {
  transform: scale(1.05);
}

.home-news-main-image-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.home-news-main-date-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.home-news-main-date-overlay i {
  font-size: 16px;
  color: var(--color-secondary);
}

/* Quick Actions for Home News Main */
.home-news-main .quick-actions {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.home-news-main:hover .quick-actions {
  opacity: 1;
}

.home-news-main .quick-actions a {
  background: rgba(14, 33, 51, 0.85);
  backdrop-filter: blur(5px);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.home-news-main .quick-actions a:hover {
  background: var(--color-secondary);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(219, 163, 39, 0.4);
}

.home-news-main .quick-actions a.share-facebook:hover {
  background: #1877f2;
}

.home-news-main .quick-actions a.share-whatsapp:hover {
  background: #25d366;
}

.home-news-main .quick-actions a.quick-read {
  background: rgba(219, 163, 39, 0.85);
}

.home-news-main .quick-actions a.quick-read:hover {
  background: var(--color-secondary);
}

.home-news-main .quick-actions a.copy-link {
  background: rgba(108, 117, 125, 0.85);
}

.home-news-main .quick-actions a.copy-link:hover {
  background: #6c757d;
}

.home-news-main .quick-actions a.share-native {
  background: rgba(0, 123, 255, 0.85);
}

.home-news-main .quick-actions a.share-native:hover {
  background: #007bff;
}

.home-news-main-content {
  padding: 25px 25px 15px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-news-main-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.5;
  transition: all 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-main:hover .home-news-main-title {
  color: #c8941f;
}

.home-news-main-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.home-news-main-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  background-color: #f6f6f6;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.home-news-main-meta-item i {
  color: var(--color-secondary);
  font-size: 14px;
}

.home-news-main-meta-item:hover {
  background-color: var(--color-secondary);
  color: #fff;
}

.home-news-main-meta-item:hover i {
  color: #fff;
}

.home-news-main-excerpt {
  font-size: 17px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background-color: #f8f8f8;
  padding: 18px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.home-news-main:hover .home-news-main-excerpt {
  background-color: #f0f0f0;
  color: #444;
}

.home-news-main-divider {
  height: 1px;
  background: linear-gradient(to left, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
  margin: 18px 0;
}

.home-news-main-link {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.home-news-main-link:hover {
  color: var(--color-primary);
  gap: 12px;
}

.home-news-main-link i {
  transition: transform 0.3s ease;
}

/* Secondary News (Below Main News) */
.home-news-secondary {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.home-news-secondary:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.home-news-secondary-image-container {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.home-news-secondary-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Prevent image dragging and saving */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: transform 0.3s ease;
}

.home-news-secondary:hover .home-news-secondary-image {
  transform: scale(1.05);
}

.home-news-secondary-date-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.home-news-secondary-date-overlay i {
  font-size: 12px;
  color: var(--color-secondary);
}

/* Quick Actions for Home News Secondary */
.home-news-secondary .quick-actions {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.home-news-secondary:hover .quick-actions {
  opacity: 1;
}

.home-news-secondary .quick-actions a {
  background: rgba(14, 33, 51, 0.85);
  backdrop-filter: blur(5px);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.home-news-secondary .quick-actions a:hover {
  background: var(--color-secondary);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(219, 163, 39, 0.4);
}

.home-news-secondary .quick-actions a.share-facebook:hover {
  background: #1877f2;
}

.home-news-secondary .quick-actions a.share-whatsapp:hover {
  background: #25d366;
}

.home-news-secondary .quick-actions a.quick-read {
  background: rgba(219, 163, 39, 0.85);
}

.home-news-secondary .quick-actions a.quick-read:hover {
  background: var(--color-secondary);
}

.home-news-secondary .quick-actions a.copy-link {
  background: rgba(108, 117, 125, 0.85);
}

.home-news-secondary .quick-actions a.copy-link:hover {
  background: #6c757d;
}

.home-news-secondary .quick-actions a.share-native {
  background: rgba(0, 123, 255, 0.85);
}

.home-news-secondary .quick-actions a.share-native:hover {
  background: #007bff;
}

.home-news-secondary-content {
  flex: 1;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s ease;
  min-height: 0;
}


.home-news-secondary-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.home-news-secondary-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #666;
  background-color: #f6f6f6;
  padding: 4px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.home-news-secondary-meta-item i {
  color: var(--color-secondary);
  font-size: 12px;
}

.home-news-secondary-meta-item:hover {
  background-color: var(--color-secondary);
  color: #fff;
}

.home-news-secondary-meta-item:hover i {
  color: #fff;
}

.home-news-secondary-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.5;
  transition: all 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-secondary:hover .home-news-secondary-title {
  color: #c8941f;
}

.home-news-secondary-excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  background-color: #f8f8f8;
  padding: 12px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.home-news-secondary:hover .home-news-secondary-excerpt {
  background-color: #f0f0f0;
  color: #333;
}

.home-news-secondary-divider {
  height: 1px;
  background: linear-gradient(to left, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
  margin: 12px 0;
}

.home-news-secondary-link {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.home-news-secondary-link:hover {
  color: var(--color-primary);
  gap: 10px;
}

.home-news-secondary-link i {
  transition: transform 0.3s ease;
}

.home-news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  justify-content: space-between;
  align-self: stretch;
}

.home-news-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.home-news-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.home-news-item-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  /* Prevent image dragging and saving */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: transform 0.3s ease;
}

.home-news-item:hover .home-news-item-image {
  transform: scale(1.05);
}

.home-news-item-image-container {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.home-news-item-date-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.home-news-item-date-overlay i {
  font-size: 12px;
  color: var(--color-secondary);
}

/* Quick Actions for Home News Items */
.home-news-item .quick-actions {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.home-news-item:hover .quick-actions {
  opacity: 1;
}

.home-news-item .quick-actions a {
  background: rgba(14, 33, 51, 0.85);
  backdrop-filter: blur(5px);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.home-news-item .quick-actions a:hover {
  background: var(--color-secondary);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(219, 163, 39, 0.4);
}

.home-news-item .quick-actions a.share-facebook:hover {
  background: #1877f2;
}

.home-news-item .quick-actions a.share-whatsapp:hover {
  background: #25d366;
}

.home-news-item .quick-actions a.quick-read {
  background: rgba(219, 163, 39, 0.85);
}

.home-news-item .quick-actions a.quick-read:hover {
  background: var(--color-secondary);
}

.home-news-item .quick-actions a.copy-link {
  background: rgba(108, 117, 125, 0.85);
}

.home-news-item .quick-actions a.copy-link:hover {
  background: #6c757d;
}

.home-news-item .quick-actions a.share-native {
  background: rgba(0, 123, 255, 0.85);
}

.home-news-item .quick-actions a.share-native:hover {
  background: #007bff;
}

.home-news-item-content {
  padding: 15px;
  position: relative;
  border-top: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.home-news-item:hover .home-news-item-content {
  border-top-color: rgba(219, 163, 39, 0.2);
}

.home-news-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.home-news-item:hover .home-news-item-title {
  color: #c8941f;
}

.home-news-item-excerpt {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background-color: #f8f8f8;
  padding: 12px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.home-news-item:hover .home-news-item-excerpt {
  background-color: #f0f0f0;
  color: #333;
}

.home-news-item-divider {
  height: 1px;
  background: linear-gradient(to left, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
  margin: 12px 0;
}

.home-news-item-link {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.home-news-item-link:hover {
  color: var(--color-primary);
  gap: 10px;
}

.home-news-item-link i {
  transition: transform 0.3s ease;
  font-size: 14px;
}

.home-news-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.home-news-item-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #666;
  background-color: #f6f6f6;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.home-news-item-meta-item i {
  color: var(--color-secondary);
  font-size: 14px;
}

.home-news-item-meta-item:hover {
  background-color: var(--color-secondary);
  color: #fff;
}

.home-news-item-meta-item:hover i {
  color: #fff;
}

/* More News Button */
.home-news-more {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
}

.btn-more-news {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14, 33, 51, 0.2);
}

.btn-more-news:hover {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(219, 163, 39, 0.3);
}

.btn-more-news i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-more-news:hover i {
  transform: translateX(-5px);
}

@media (max-width: 768px) {
  .home-news-more {
    margin-top: 30px;
    padding-top: 20px;
  }
  
  .btn-more-news {
    padding: 12px 30px;
    font-size: 16px;
  }
  
  .home-news-main-image-container {
    height: 250px;
  }
}

/* Full-Screen News Modal */
.news-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  height: 4px;
  width: 0%;
  background: var(--color-secondary);
  z-index: 100000;
  transition: width 0.1s ease;
  box-shadow: 0 2px 4px rgba(219, 163, 39, 0.3);
}

.news-modal.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.news-modal-content {
  position: relative;
  background: #fff;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  min-height: 100vh;
  animation: slideUp 0.3s ease;
  box-sizing: border-box;
  overflow-x: hidden;
}

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

.news-modal-close {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100000;
  background: var(--color-primary);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 24px;
  border: none;
}

.news-modal-close:hover {
  background: var(--color-secondary);
  transform: rotate(90deg);
}

.news-modal-header {
  padding: 40px;
  border-bottom: 1px solid #eee;
}

.news-modal-title {
  color: var(--color-primary);
  margin-bottom: 20px;
  overflow-y: hidden;
}

.news-modal-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.news-modal-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-modal-meta-item i {
  color: var(--color-secondary);
}

.news-modal-share {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.news-modal-share a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 18px;
}

.news-modal-share a.facebook {
  background: #1877f2;
}

.news-modal-share a.twitter {
  background: #1da1f2;
}

.news-modal-share a.whatsapp {
  background: #25d366;
}

.news-modal-share a.copy-link {
  background: #6c757d;
}

.news-modal-share a.share-native {
  background: #007bff;
}

.news-modal-share a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.news-modal-body {
  padding: 40px;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.news-modal-image-container {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

/* Fixed height only when containing image, not video */
.news-modal-image-container:has(img) {
  height: 500px;
}

/* Auto height when containing video */
.news-modal-image-container:has(.video-embed-wrapper),
.news-modal-image-container:has(iframe) {
  height: auto;
}

.news-modal-main-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
}

/* News Modal Swiper */
.news-modal-swiper {
  width: 100%;
  height: 100%;
}

.news-modal-swiper .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-modal-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-modal-swiper .swiper-button-next,
.news-modal-swiper .swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.news-modal-swiper .swiper-button-next:hover,
.news-modal-swiper .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.news-modal-swiper .swiper-button-next::after,
.news-modal-swiper .swiper-button-prev::after {
  font-size: 20px;
  font-weight: 700;
}

.news-modal-swiper .swiper-pagination {
  bottom: 20px;
}

.news-modal-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: all 0.3s ease;
}

.news-modal-swiper .swiper-pagination-bullet-active {
  background: var(--color-secondary);
  width: 30px;
  border-radius: 6px;
}

.news-modal-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-default);
  margin-bottom: 30px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  overflow-x: hidden;
}

.news-modal-text p {
  margin-top: 0;
  margin-bottom: 6px;
  padding: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.news-modal-text h1,
.news-modal-text h2,
.news-modal-text h3,
.news-modal-text h4,
.news-modal-text h5,
.news-modal-text h6 {
  margin-top: 8px;
  margin-bottom: 6px;
  padding: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.news-modal-text p + h1,
.news-modal-text p + h2,
.news-modal-text p + h3,
.news-modal-text p + h4,
.news-modal-text p + h5,
.news-modal-text p + h6 {
  margin-top: 6px;
  margin-bottom: 6px;
}

.news-modal-text h1 + p,
.news-modal-text h2 + p,
.news-modal-text h3 + p,
.news-modal-text h4 + p,
.news-modal-text h5 + p,
.news-modal-text h6 + p {
  margin-top: 6px;
}

/* Fix for large content - images and media */
.news-modal-text img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 8px;
}

.news-modal-text iframe,
.news-modal-text video,
.news-modal-text embed,
.news-modal-text object {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
}

.news-modal-text table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
  margin: 15px 0;
}

.news-modal-text pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  overflow-x: auto;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 6px;
  margin: 15px 0;
}

.news-modal-text code {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  max-width: 100%;
}

/* Styling for Rich Content in News Modal - Links as Buttons */
/* Only style links with class "link-button" or "btn-link" - making it optional */
.news-modal-text a.link-button,
.news-modal-text a.btn-link {
  display: inline-block;
  padding: 10px 25px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(14, 33, 51, 0.2);
  margin: 5px 5px 5px 0;
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

.news-modal-text a.link-button:hover,
.news-modal-text a.btn-link:hover {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(219, 163, 39, 0.3);
}

/* Regular links styling (default) */
.news-modal-text a:not(.link-button):not(.btn-link) {
  color: var(--color-primary);
  text-decoration: underline;
  word-break: break-all;
  overflow-wrap: break-word;
}

.news-modal-text a:not(.link-button):not(.btn-link):hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Reset styling for invalid/empty links */
.news-modal-text a[href=""],
.news-modal-text a[href="#"],
.news-modal-text a[href^="javascript:"],
.news-modal-text a[href^="#"]:not([href^="#http"]):not([href^="#https"]),
.news-modal-text a:not([href]) {
  display: inline;
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  border-radius: 0;
  font-weight: normal;
  font-size: inherit;
  box-shadow: none;
  margin: 0;
  word-break: normal;
  overflow-wrap: normal;
}

.news-modal-text strong,
.news-modal-text b {
  font-weight: 700;
  color: var(--color-primary);
}

.news-modal-text ul,
.news-modal-text ol {
  padding-right: 25px; /* (padding-left for LTR) */
  margin-top: 15px;
  margin-bottom: 20px;
}

.news-modal-text li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* News Signature Styling */
.news-signature {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
  text-align: right;
  direction: rtl;
}

.news-signature p {
  margin: 8px 0;
  line-height: 1.8;
}

.news-signature p:first-child {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.news-signature p:last-child {
  font-size: 20px;
  color: #000;
  font-weight: 500;
}

.news-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Related News Section */
.news-modal-related {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #eee;
}

.related-news-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-news-title i {
  color: var(--color-secondary);
  font-size: 26px;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.related-news-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.related-news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.related-news-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.related-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-news-item:hover .related-news-image img {
  transform: scale(1.05);
}

.related-news-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.related-news-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-news-item-excerpt {
  font-size: 13px;
  color: var(--color-default);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.related-news-item-date {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}

.related-news-item-date i {
  color: var(--color-secondary);
  font-size: 14px;
}

.news-modal-gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.news-modal-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-modal-gallery-item:hover .news-modal-gallery-image {
  transform: scale(1.05);
}

.news-modal-navigation {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100000;
  background: var(--color-primary);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 24px;
  border: none;
}

.news-modal-navigation:hover {
  background: var(--color-secondary);
  transform: translateY(-50%) scale(1.1);
}

.news-modal-prev {
  right: 20px;
}

.news-modal-next {
  left: 20px;
}

/* Image Overlay Styles */
.image-overlay-container {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.image-overlay-container img:first-of-type {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Prevent image dragging and saving */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.image-overlay-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: auto;
  max-width: 20%;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.image-overlay-text {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  z-index: 10;
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.5px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
}

/* General Image Protection - Prevent dragging and saving */
img {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.gallery-modal-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  /* Fixed dimensions will be set by JavaScript (800x600 for landscape, 800x800 for square) */
  /* Prevent image dragging and saving */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: auto;
}

/* Gallery Modal Overlay */
.gallery-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

.gallery-modal-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 150px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gallery-modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-modal-url {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 4px;
  backdrop-filter: blur(5px);
  letter-spacing: 0.5px;
  font-family: 'Arial', sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.gallery-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  background: none;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-close:hover {
  color: var(--color-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
  .home-news-content {
    grid-template-columns: 1fr;
  }

  .home-news-secondary {
    flex-direction: column;
  }

  .home-news-secondary-image-container {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
  }

  .news-modal-title {
    font-size: 28px;
    /* سيتم تجاوزها في news-fullview.css */
  }

.news-modal-header,
.news-modal-body {
  padding: 30px 20px;
}

/* News Modal Footer */
.news-modal-footer {
  padding: 25px 30px;
  border-top: 2px solid #f0f0f0;
  background: #f9f9f9;
  flex-shrink: 0;
}

.news-modal-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.news-modal-footer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.news-modal-footer-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 600;
}

.news-modal-footer-meta-item i {
  color: var(--color-secondary);
  font-size: 16px;
}

.news-modal-footer .news-modal-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news-modal-footer .news-modal-share a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.news-modal-footer .news-modal-share a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.news-modal-footer .news-modal-share a.facebook {
  background: #1877f2;
}

.news-modal-footer .news-modal-share a.twitter {
  background: #1da1f2;
}

.news-modal-footer .news-modal-share a.whatsapp {
  background: #25d366;
}

.news-modal-footer .news-modal-share a.copy-link {
  background: #6c757d;
}

.news-modal-footer .news-modal-share a.share-native {
  background: #007bff;
}

.news-modal-related {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: block !important;
  width: 100%;
}

  .news-modal-gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-filters {
    padding: 15px;
    margin-bottom: 20px;
  }

  .filters-container {
    gap: 12px;
  }

  .filters-row {
    flex-direction: column;
    gap: 12px;
  }

  .filters-row-main {
    padding-bottom: 12px;
  }

  .filters-row-secondary {
    align-items: stretch;
  }

  .filter-section {
    min-width: 100%;
    width: 100%;
  }

  .filter-section-date {
    min-width: 100%;
  }

  .filter-section-search {
    min-width: 100%;
  }

  .news-modal-title {
    font-size: 24px;
    /* سيتم تجاوزها في news-fullview.css */
  }

  .news-modal-navigation {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .news-modal-prev {
    right: 10px;
  }

  .news-modal-next {
    left: 10px;
  }

  .news-modal-close {
    width: 40px;
    height: 40px;
    font-size: 20px;
    top: 10px;
    left: 10px;
  }

  .home-news-main-image {
    height: 250px;
  }

  .home-news-secondary {
    flex-direction: column;
  }

  .home-news-secondary-image-container {
    width: 100%;
    height: 180px;
  }

  .home-news-secondary-content {
    padding: 15px;
  }

  .home-news-secondary-title {
    font-size: 16px;
  }

  .home-news-item-image {
    height: 120px;
  }
}

/* Empty State */
.news-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.news-empty i {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 20px;
}

.news-empty h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.news-empty p {
  font-size: 16px;
  color: #999;
}

/* Copy Notification */
.copy-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--color-primary);
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.copy-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.copy-notification.error {
  background: #dc3545;
}

@media (max-width: 768px) {
  .copy-notification {
    bottom: 20px;
    right: 20px;
    left: 20px;
    text-align: center;
  }
}

/* Hide empty alert-danger elements */
.alert.alert-danger:empty,
.alert-danger:empty {
  display: none !important;
}

.alert.alert-danger:not(:has(*)):not(:has(text)),
.alert-danger:not(:has(*)):not(:has(text)) {
  display: none !important;
}

/* Alternative method for browsers that don't support :has() */
.alert.alert-danger {
  min-height: 0;
}

.alert.alert-danger:empty {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* ============================================================================
   FULL VIEW MODAL STYLES - Merged from news-fullview.css
   ============================================================================ */

/* CSS Custom Properties لعنوان الخبر */
:root {
  --news-modal-title-font: "Almarai", "Arial", "Helvetica", sans-serif;
  --news-modal-title-weight: 800;
  --news-modal-title-size: 32px;
  --news-modal-title-line-height: 1.3;
  --news-modal-title-color: #0e2133;
  --news-modal-title-size-mobile: 24px;
  --news-modal-title-line-height-mobile: 1.4;
}

/* Override news-modal background for full view */
.news-modal {
  background: rgba(0, 0, 0, 0.7);
}

/* Override news-modal-content for full view */
.news-modal-content {
  max-width: 1200px;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  animation: slideDown 0.3s ease;
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Override news-modal-header for full view */
.news-modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  position: relative;
  top: auto;
  z-index: auto;
}

/* ===== عنوان الخبر في النافذة المنبثقة - قواعد موحدة ===== */
/* استخدام selectors محددة بدلاً من !important */

/* القاعدة الأساسية الموحدة - تتجاوز جميع القواعد السابقة */
#newsModal .news-modal-header h1.news-modal-title,
#newsModal .news-modal-header .news-modal-title,
.news-modal.active .news-modal-header h1.news-modal-title,
.news-modal.active .news-modal-header .news-modal-title,
.news-modal-header h1.news-modal-title,
.news-modal-header .news-modal-title {
  font-family: var(--news-modal-title-font, "Almarai", "Arial", "Helvetica", sans-serif);
  font-weight: var(--news-modal-title-weight, 800);
  font-size: var(--news-modal-title-size, 32px);
  line-height: var(--news-modal-title-line-height, 1.3);
  color: var(--news-modal-title-color, #0e2133);
  text-align: right;
  direction: rtl;
  margin: 0 0 20px 0;
  padding: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  letter-spacing: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  font-style: normal;
  text-transform: none;
  text-decoration: none;
  overflow-x: hidden;
  overflow-y: hidden;
  box-sizing: border-box;
}

/* Override news-modal-meta for full view */
.news-modal-meta {
  font-size: 13px;
  gap: 15px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}

.news-modal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 14px;
  font-weight: 600;
}

.news-modal-meta-item.news-modal-department,
.news-modal-meta-item.news-modal-category {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}

.news-modal-meta-item i {
  color: var(--color-secondary);
  font-size: 16px;
}

.news-modal-meta-item.news-modal-department i,
.news-modal-meta-item.news-modal-category i {
  font-size: 18px;
}

.news-modal-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.news-modal-header .news-modal-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0;
}

.news-modal-header .news-modal-share a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.news-modal-header .news-modal-share a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.news-modal-header .news-modal-share a.facebook {
  background: #1877f2;
}

.news-modal-header .news-modal-share a.twitter {
  background: #1da1f2;
}

.news-modal-header .news-modal-share a.whatsapp {
  background: #25d366;
}

.news-modal-header .news-modal-share a.copy-link {
  background: #6c757d;
}

.news-modal-header .news-modal-share a.share-native {
  background: #007bff;
}

/* Override news-modal-body for full view */
.news-modal-body {
  padding: 0;
  overflow: visible;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Override news-modal-image-container for full view */
.news-modal-image-container {
  width: 100%;
  max-width: 1200px;
  height: 675px;
  margin: 0 auto;
  margin-bottom: 0;
  border-radius: 0;
  flex-shrink: 0;
  background: #000;
  position: relative;
  top: auto;
  z-index: auto;
  overflow: hidden;
}

.news-modal-image-container .image-overlay-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.news-modal-image-container .news-modal-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Prevent image dragging and saving */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.news-modal-image-container .news-modal-swiper {
  height: 100%;
}

.news-modal-full-content {
  padding: 25px 30px 30px;
  flex: 1;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Override news-modal-text for full view */
.news-modal-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-default);
  margin-bottom: 30px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  overflow-x: hidden;
}

/* Additional Images Container */
.news-modal-additional-images {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.news-additional-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-additional-image-item {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  background: #000;
}

.news-additional-image-item:hover {
  transform: scale(1.02);
}

.news-additional-image-item .image-overlay-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.news-additional-image-item .news-additional-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Prevent image dragging and saving */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Image Overlay Styles */
.image-overlay-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-embassy-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

.embassy-logo-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 150px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.embassy-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.embassy-url-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 4px;
  backdrop-filter: blur(5px);
  letter-spacing: 0.5px;
  font-family: 'Arial', sans-serif;
}

/* Override news-modal-text styles for full view */
.news-modal-text p {
  margin-top: 0;
  margin-bottom: 6px;
  padding: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.news-modal-text h1,
.news-modal-text h2,
.news-modal-text h3,
.news-modal-text h4,
.news-modal-text h5,
.news-modal-text h6 {
  margin-top: 8px;
  margin-bottom: 6px;
  padding: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.news-modal-text p + h1,
.news-modal-text p + h2,
.news-modal-text p + h3,
.news-modal-text p + h4,
.news-modal-text p + h5,
.news-modal-text p + h6 {
  margin-top: 6px;
  margin-bottom: 6px;
}

.news-modal-text h1 + p,
.news-modal-text h2 + p,
.news-modal-text h3 + p,
.news-modal-text h4 + p,
.news-modal-text h5 + p,
.news-modal-text h6 + p {
  margin-top: 6px;
}

/* Fix for large content - images and media */
.news-modal-text img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 8px;
}

.news-modal-text iframe,
.news-modal-text video,
.news-modal-text embed,
.news-modal-text object {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
}

.news-modal-text table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
  margin: 15px 0;
}

.news-modal-text pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  overflow-x: auto;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 6px;
  margin: 15px 0;
}

.news-modal-text code {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  max-width: 100%;
}

/* Only style links with class "link-button" or "btn-link" in full view */
.news-modal-text a.link-button,
.news-modal-text a.btn-link {
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
  display: inline-block;
}

/* Regular links in full view */
.news-modal-text a:not(.link-button):not(.btn-link) {
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
  display: inline;
  color: var(--color-primary);
  text-decoration: underline;
}

/* Reset invalid links */
.news-modal-text a[href=""],
.news-modal-text a[href="#"],
.news-modal-text a[href^="javascript:"],
.news-modal-text a[href^="#"]:not([href^="#http"]):not([href^="#https"]),
.news-modal-text a:not([href]) {
  display: inline;
  word-break: normal;
  overflow-wrap: normal;
}

/* Override news-signature for full view */
.news-signature {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
  text-align: right;
  direction: rtl;
}

.news-signature p {
  margin: 8px 0;
  line-height: 1.8;
}

.news-signature p:first-child {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.news-signature p:last-child {
  font-size: 20px;
  color: #000;
  font-weight: 500;
}

/* Override news-modal-footer for full view */
.news-modal-footer {
  padding: 25px 30px;
  border-top: 2px solid #f0f0f0;
  background: #f9f9f9;
  flex-shrink: 0;
}

.news-modal-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.news-modal-footer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.news-modal-footer-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 600;
}

.news-modal-footer-meta-item i {
  color: var(--color-secondary);
  font-size: 16px;
}

.news-modal-footer .news-modal-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news-modal-footer .news-modal-share a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.news-modal-footer .news-modal-share a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.news-modal-footer .news-modal-share a.facebook {
  background: #1877f2;
}

.news-modal-footer .news-modal-share a.twitter {
  background: #1da1f2;
}

.news-modal-footer .news-modal-share a.whatsapp {
  background: #25d366;
}

.news-modal-footer .news-modal-share a.copy-link {
  background: #6c757d;
}

.news-modal-footer .news-modal-share a.share-native {
  background: #007bff;
}

/* Override news-modal-related for full view */
.news-modal-related {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: block;
  width: 100%;
}

.related-news-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-news-title i {
  color: var(--color-secondary);
  font-size: 22px;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.related-news-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}

.related-news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.related-news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.related-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-news-item:hover .related-news-image img {
  transform: scale(1.05);
}

.related-news-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.related-news-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-news-item-date {
  font-size: 11px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}

.related-news-item-date i {
  color: var(--color-secondary);
  font-size: 12px;
}

.news-modal-gallery {
  display: none;
}

/* Scrollbar styling */
.news-modal-content::-webkit-scrollbar {
  width: 8px;
}

.news-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.news-modal-content::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 4px;
}

.news-modal-content::-webkit-scrollbar-thumb:hover {
  background: #c8941f;
}

/* Full View Container for index-fullview.html */
.news-fullview-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-fullview-header {
  padding: 30px;
  border-bottom: 1px solid #eee;
}

.news-fullview-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.news-fullview-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.news-fullview-share {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.news-fullview-share a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 18px;
}

.news-fullview-share a.facebook {
  background: #1877f2;
}

.news-fullview-share a.twitter {
  background: #1da1f2;
}

.news-fullview-share a.whatsapp {
  background: #25d366;
}

.news-fullview-share a.copy-link {
  background: #6c757d;
}

.news-fullview-share a.share-native {
  background: #007bff;
}

.news-fullview-share a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.news-fullview-body {
  display: flex;
  flex-direction: column;
}

.news-fullview-image-container {
  width: 100%;
  height: 400px;
  background: #000;
  position: relative;
}

.news-fullview-image-container .news-modal-swiper {
  height: 100%;
}

.news-fullview-content {
  padding: 30px;
}

.news-fullview-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-default);
  margin-bottom: 30px;
}

.news-fullview-text p {
  margin-top: 0;
  margin-bottom: 6px;
  padding: 0;
}

.news-fullview-text h1,
.news-fullview-text h2,
.news-fullview-text h3,
.news-fullview-text h4,
.news-fullview-text h5,
.news-fullview-text h6 {
  margin-top: 8px;
  margin-bottom: 6px;
  padding: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.news-fullview-text p + h1,
.news-fullview-text p + h2,
.news-fullview-text p + h3,
.news-fullview-text p + h4,
.news-fullview-text p + h5,
.news-fullview-text p + h6 {
  margin-top: 6px;
  margin-bottom: 6px;
}

.news-fullview-text h1 + p,
.news-fullview-text h2 + p,
.news-fullview-text h3 + p,
.news-fullview-text h4 + p,
.news-fullview-text h5 + p,
.news-fullview-text h6 + p {
  margin-top: 6px;
}

.home-news-section-fullview {
  padding: 60px 0;
  background: #f6f6f6;
}

/* Mobile Responsive for Full View */
@media (max-width: 768px) {
  .news-modal-content {
    max-width: 100%;
    margin: 0;
    height: 100vh;
    border-radius: 0;
  }
  
  .news-modal-header {
    padding: 20px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .news-modal-full-content {
    padding: 20px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .news-modal-image-container {
    height: 300px;
    max-width: 100%;
  }
  
  .news-additional-images-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .news-additional-image-item {
    height: 200px;
  }
  
  .embassy-logo-overlay {
    width: 120px;
    height: 32px;
    top: 16px;
    right: 16px;
    padding: 3px 6px;
  }
  
  .embassy-url-overlay {
    font-size: 9px;
    bottom: 10px;
    left: 10px;
    padding: 4px 8px;
  }
  
  .news-modal-text {
    font-size: 15px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .news-modal-text img,
  .news-modal-text iframe,
  .news-modal-text video {
    max-width: 100%;
    height: auto;
  }
  
  .related-news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-modal-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    max-width: 100%;
  }
  
  .news-modal-meta {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .news-modal-header .news-modal-share {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  
  /* للجوال - تعديل حجم العنوان */
  .news-modal-header .news-modal-title,
  .news-modal-header h1.news-modal-title {
    font-size: var(--news-modal-title-size-mobile, 24px);
    line-height: var(--news-modal-title-line-height-mobile, 1.4);
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .news-fullview-container {
    border-radius: 0;
    margin: 0 -15px;
  }
  
  .news-fullview-header {
    padding: 20px;
  }
  
  .news-fullview-title {
    font-size: 22px;
  }
  
  .news-fullview-content {
    padding: 20px;
  }
  
  .news-fullview-image-container {
    height: 300px;
  }
  
  .news-fullview-text {
    font-size: 15px;
  }
}

/* ===== قاعدة نهائية - الأقوى والأخيرة ===== */
/* هذه القاعدة في نهاية الملف لتكون الأقوى بترتيب التحميل */
/* استخدام selectors عالية التحديد بدلاً من !important */
body #newsModal.news-modal.active .news-modal-header h1.news-modal-title,
body #newsModal.news-modal.active .news-modal-header .news-modal-title,
body .news-modal.active#newsModal .news-modal-header h1.news-modal-title,
body .news-modal.active#newsModal .news-modal-header .news-modal-title {
  font-family: "Almarai", "Arial", "Helvetica", sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.3;
  color: #0e2133;
  text-align: right;
  direction: rtl;
  margin: 0 0 20px 0;
  padding: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  letter-spacing: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  font-style: normal;
  text-transform: none;
  text-decoration: none;
  font-variant: normal;
  font-stretch: normal;
  font-optical-sizing: auto;
  overflow-x: hidden;
  overflow-y: hidden;
  box-sizing: border-box;
}

/* Video container in news modal */
.news-modal-video {
  width: 100%;
  margin: 20px 0;
}

.news-modal-video .video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 20px 0;
  border-radius: 8px;
  background: #000;
}

.news-modal-video .video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Video in image container (replaces main image) */
.news-modal-image-container .video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  border-radius: 8px;
  background: #000;
  margin: 0;
}

.news-modal-image-container .video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.news-modal-image-container iframe {
  width: 100%;
  border: none;
  border-radius: 8px;
}

/* Video embeds in content */
.news-modal-text .video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 20px 0;
  border-radius: 8px;
  background: #000;
}

.news-modal-text .video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}