/* Media Center Modern Styling */

/* Latest News Section Container */
.latest-news-container {
  position: relative;
  background: linear-gradient(249deg, #1a4b84 0%, #06111e 100%);
  min-height: 700px;
  padding: 3rem 0;
  overflow: hidden;
}

.latest-news-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.7;
  pointer-events: none;
}

/* Media Center Header */
.media-center-header {
  margin-bottom: 4rem;
}

.media-center-title {
  color: white;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.media-center-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 600px;
}

/* Tabs Navigation Styling */
.media-tabs-container {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
}

.nav-tabs-custom {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px;
  display: inline-flex;
  gap: 6px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-tabs-custom::-webkit-scrollbar {
  display: none;
}

.nav-tabs-custom .nav-item {
  flex-shrink: 0;
}

.nav-tabs-custom .nav-link {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.nav-tabs-custom .nav-link:hover {
  color: white !important;
  background: linear-gradient(263.36deg, #1d56af 42.68%, #1a4b84 93.93%);
  transform: translateY(-1px);
}

.nav-tabs-custom .nav-link.active {
  background: linear-gradient(263.36deg, #1d56af 42.68%, #1a4b84 93.93%);

  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Navigation Arrows Container */
.media-nav-arrows {
  display: flex;
  gap: 12px;
  z-index: 10;
}

.media-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  backdrop-filter: blur(20px);
}

.media-nav-btn:hover:not(.disabled) {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  color: #075985;
}

.media-nav-btn:active:not(.disabled) {
  transform: translateY(-1px);
}

.media-nav-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.6);
  color: #9ca3af;
}

/* Card Container */
.media-cards-container {
  position: relative;
  margin-top: 2rem;
}

/* Modern Card Styling */
.news-card {
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.03) 0%,
    rgba(147, 51, 234, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* .news-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
} */

.news-card:hover::before {
  opacity: 1;
}
.bg-service-block:hover {
  transform: scale(1.05);
  transition: 0.5s ease-in-out;
}

/* Event Card Styling */
.event-card {
  /* background: linear-gradient(
    131deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 52.59%,
    rgba(255, 255, 255, 0) 100%
  ) !important; */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  /* border: 1px solid #1a4b84; */
  position: relative;
  background: #ffffff26 !important;
  /* border: 1px solid rgba(255, 255, 255, 0.3); */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Video Card Styling */
.video-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Publication Card Styling */
.publication-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.publication-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Card Image Styling */
.card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.event-card-image {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.news-card-image,
.video-card-image,
.publication-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.card-image img,
.video-card-image img,
.publication-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  object-fit: inherit;
}

.news-card:hover .news-card-image img,
.video-card:hover .video-card-image img,
.publication-card:hover .publication-card-image img {
  transform: scale(1.08);
}
.event-card-date {
  /* position: absolute;
  top: 16px;
  left: 16px; */
  background: #004b8d;
  color: white;
  padding: 2px 5px !important;
  font-size: 14px !important;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Date Badge */
.card-date,
.news-card-date {
  /* position: absolute;
  top: 16px;
  left: 16px; */
  background: #b33146;
  color: white;
  padding: 2px 5px !important;
  font-size: 14px !important;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Video Play Button Overlay */
.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #004b8d;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.video-card:hover .video-play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background: white;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

/* Publication Type Badge */
.publication-type-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(147, 51, 234, 0.95);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Placeholder Image Styling */
.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 8px;
}

/* Card Content Styling */
.card-content,
.news-card-content,
.event-card-content,
.video-card-content,
.publication-card-content {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Card Titles */
.card-title,
.news-card-title,
.event-card-title,
.video-card-title,
.publication-card-title {
  font-size: 16px !important;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Excerpts/Descriptions */
.card-excerpt,
.news-card-excerpt,
.event-card-excerpt,
.video-card-excerpt {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Event Specific Styling */
.event-details {
  margin-bottom: 1rem;
}

.event-type-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #1a4b84;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.event-card:hover .event-type-badge {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: white;
}

.event-meta-icon {
  color: #1a4b84;
  font-size: 1rem;
}

/* Card Footer Styling */
.card-footer,
.news-card-footer,
.event-card-footer,
.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Action Buttons */
.action-btn {
  color: #004b8d;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(12, 74, 110, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(12, 74, 110, 0.1);
}
.read-more-btn {
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 20px;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid white;
}
.action-btn:hover {
  color: white;
  background: #004b8d;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12, 74, 110, 0.3);
}

/* Event Action Button */
.event-action-btn {
  background: linear-gradient(263.36deg, #1d56af 42.68%, #1a4b84 93.93%);

  color: white;
  padding: 10px 30px 10px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

[dir="rtl"] .event-action-btn {
  padding: 10px 10px 10px 30px;
}

.event-action-btn:hover {
  transform: translateY(-2px);
  /* box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); */
  background: linear-gradient(263.36deg, #1d56af 42.68%, #1a4b84 93.93%);

  color: white !important;
  text-decoration: none;
}

/* Show All Button */
.show-all-btn {
  background: white;
  color: #004b8d;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  align-items: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.show-all-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #075985;
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.show-all-btn i {
  transition: transform 0.3s ease;
}

.show-all-btn:hover i {
  transform: translateX(4px);
}

/* Swiper Pagination Styling */
.swiper-pagination {
  text-align: center;
  margin-top: 2rem;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  margin: 0 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: white;
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1400px) {
  .media-center-header {
    margin-bottom: 3rem;
  }

  .media-nav-arrows {
    gap: 10px;
  }
}

@media (max-width: 1200px) {
  .nav-tabs-custom {
    padding: 8px;
  }

  .nav-tabs-custom .nav-link {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .card-content,
  .news-card-content,
  .event-card-content,
  .video-card-content,
  .publication-card-content {
    padding: 1.5rem;
  }
}

@media (max-width: 992px) {
  .latest-news-container {
    padding: 2rem 0 4rem 0;
  }

  .media-tabs-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .card-image,
  .news-card-image,
  .video-card-image,
  .publication-card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .latest-news-container {
    padding: 3rem 0 3rem 0;
  }

  .media-center-header {
    margin-bottom: 2.5rem;
  }

  .nav-tabs-custom {
    width: 100%;
    justify-content: flex-start;
    padding: 6px;
  }

  .nav-tabs-custom .nav-link {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .media-nav-arrows {
    justify-content: center;
    position: absolute;
    top: 60px;
    right: 10px;
  }

  .media-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .card-content,
  .news-card-content,
  .event-card-content,
  .video-card-content,
  .publication-card-content {
    padding: 1.25rem;
    top: initial !important;
    position: relative !important;
  }

  .show-all-btn {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 2.5rem auto 0;
    display: block;
    width: fit-content;
    padding: 14px 28px;
  }
}

@media (max-width: 576px) {
  .latest-news-container {
    padding: 2.5rem 0 3rem 0;
  }

  .media-center-header {
    margin-bottom: 2rem;
  }

  .media-center-title::after {
    width: 60px;
    height: 3px;
  }

  .nav-tabs-custom .nav-link {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .media-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .card-image,
  .news-card-image,
  .video-card-image,
  .publication-card-image {
    height: 180px;
  }

  .card-content,
  .news-card-content,
  .event-card-content,
  .video-card-content,
  .publication-card-content {
    padding: 1rem;
    top: initial !important;
    position: relative !important;
  }

  .card-title,
  .news-card-title,
  .event-card-title,
  .video-card-title,
  .publication-card-title {
    font-size: 16px !important;
  }

  .card-excerpt,
  .news-card-excerpt,
  .event-card-excerpt,
  .video-card-excerpt {
    font-size: 0.9rem;
  }

  .show-all-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* RTL Support */
[dir="rtl"] .media-nav-arrows {
  left: 0;
  right: auto;
}

[dir="rtl"] .read-more-btn:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .show-all-btn:hover {
  transform: translateX(-50%) translateY(-4px);
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Animation */
.media-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: white;
}

.media-loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.news-card-content {
  position: absolute;
  top: 140px;
  background: #242424b2;
}
.news-card-title {
  font-size: 14px !important;
  color: white !important;
}

.news-card:hover .news-card-content {
  top: 95px;
  background: #242424b2;
  transition: 0.4s ease-in-out all;
}
.event-card-footer {
  /* display: none; */
  transition: 0.4s ease-in-out all;
}

.event-card:hover .event-card-footer {
  display: flex;
  transition: 0.4s ease-in-out all;
}
.event-card {
  min-height: 300px;
  width: 100%;
  overflow: visible;
}

/* .arrow-link {
  text-decoration: none;
}

.arrow-link:after {
  position: relative;
  content: "\2192";
  margin-left: 10px;
  right: 0;
  color: inherit;
  display: inline-block;
  -webkit-transition: all 0.2s ease-in-out;
} */

.media-center-content .swiper-pagination {
  bottom: -20px !important;
}
.event-meta-item a,
.event-meta-item a:hover {
  color: white !important;
}

.event-meta-icon {
  color: #1a4b84;
  font-size: 1rem;
  background: white;
  border-radius: 5px;
  padding: 3px;
}

.event-card-title {
  color: white !important;
}
.event-card .btn-outline-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
  width: 150px;;
}

.event-card .btn-outline-primary:hover,
.event-card .btn-outline-primary:focus,
.event-card .btn-outline-primary:active {
  background-color: #fff;
  color: #1a4b84;
  border-color: #fff;
}

.event-card .btn-outline-secondary {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
}

.event-card .btn-outline-secondary:hover,
.event-card .btn-outline-secondary:focus,
.event-card .btn-outline-secondary:active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.event-card .dropdown-menu {
  z-index: 9999 !important;
}

.btn-transparent {
  background: transparent;
  box-shadow: none;
}
.service-description {
  text-align: start;
  display: -webkit-box;
  -webkit-line-clamp: 6; /* Number of lines to show before truncating */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-wrap;
}
.media-cards-container h6 {
  color: white !important;
}
.gallery-item {
  height: 210px !important;
}

.gallery-item img {
  height: 210px !important;
}
.initiative-description p {
  margin: 0;
}
