/* ========================================
   Council Articles - Premium Design
   ======================================== */

:root {
  --primary: var(--primary-color);
  --primary-light: color-mix(in srgb, var(--primary-color) 70%, white);
  --secondary: var(--secondary-color);
  --accent: var(--basic-color);
  --dark: color-mix(in srgb, var(--primary-color) 35%, black);
  --light: #f8fafc;
  --gray: #6b7280;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px color-mix(in srgb, var(--primary-color) 8%, transparent);
  --shadow-md: 0 8px 30px color-mix(in srgb, var(--primary-color) 12%, transparent);
  --shadow-lg: 0 20px 50px color-mix(in srgb, var(--primary-color) 18%, transparent);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 50px;

  /* Article Type Colors */
  --type-article: var(--primary-color);
  --type-video: #dc2626;
  --type-gallery: #7c3aed;
  --type-document: #ea580c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
/*  font-family: 'Cairo', sans-serif;*/
  background: var(--light);
  color: #1f2937;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ========================================
   Hero Section
   ======================================== */
.articles-hero {
  position: relative;
  padding: 180px 0 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  overflow: hidden;
}

.articles-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.articles-hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--light);
  border-radius: 50% 50% 0 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
  color: var(--accent);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-title span {
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 12px;
  background: color-mix(in srgb, var(--basic-color) 40%, transparent);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .articles-hero {
    padding: 140px 0 80px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ========================================
   Filter Section
   ======================================== */
.filter-section {
  position: relative;
  z-index: 10;
  margin-top: -40px;
  padding: 0 20px;
}

.filter-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--light);
  color: var(--gray);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover i {
  transform: scale(1.1);
}

.filter-btn.active {
  color: var(--white);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Filter Button Types */
.filter-btn[data-filter="all"].active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.filter-btn[data-filter="Default"] {
  border-color: color-mix(in srgb, var(--primary-color) 20%, transparent);
}
    .filter-btn[data-filter="Default"].active {
        background: linear-gradient(135deg, var(--type-article) 0%, var(--primary-light) 100%);
    }

.filter-btn[data-filter="Video"] {
  border-color: rgba(220, 38, 38, 0.2);
}
.filter-btn[data-filter="Video"].active {
  background: linear-gradient(135deg, var(--type-video) 0%, #ef4444 100%);
}

.filter-btn[data-filter="Gallery"] {
  border-color: rgba(124, 58, 237, 0.2);
}
.filter-btn[data-filter="Gallery"].active {
  background: linear-gradient(135deg, var(--type-gallery) 0%, #8b5cf6 100%);
}

.filter-btn[data-filter="Document"] {
  border-color: rgba(234, 88, 12, 0.2);
}
.filter-btn[data-filter="Document"].active {
  background: linear-gradient(135deg, var(--type-document) 0%, #f97316 100%);
}

@media (max-width: 768px) {
  .filter-container {
    padding: 16px;
    gap: 8px;
  }
  
  .filter-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* ========================================
   Articles Grid
   ======================================== */
.articles-section {
  padding: 60px 0 100px;
}

.articles-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
}

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

/* ========================================
   Article Card - Premium Design
   ======================================== */
.article-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Card Image Container */
.card-image-container {
  position: relative;
  height: 240px;
  overflow: hidden;
}

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

.article-card:hover .card-image {
  transform: scale(1.08);
}

/* Image Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.article-card:hover .card-overlay {
  opacity: 1;
}

/* Type Badge */
.type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.type-badge i {
  font-size: 0.8rem;
}

/* Type Badge Colors */
.type-badge.type-article {
  background: linear-gradient(135deg, var(--type-article) 0%, var(--primary-light) 100%);
}

.type-badge.type-video {
  background: linear-gradient(135deg, var(--type-video) 0%, #ef4444 100%);
}

.type-badge.type-gallery {
  background: linear-gradient(135deg, var(--type-gallery) 0%, #8b5cf6 100%);
}

.type-badge.type-document {
  background: linear-gradient(135deg, var(--type-document) 0%, #f97316 100%);
}

/* Date Badge */
.date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.date-day {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.date-month {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray);
  margin-top: 2px;
}

.date-year {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--gray);
  margin-top: 1px;
}

/* Play Button for Video */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  z-index: 3;
  opacity: 0;
}

.play-button i {
  font-size: 1.8rem;
  color: var(--type-video);
  margin-right: -4px;
}

.article-card[data-type="Video"]:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.article-card[data-type="Video"]:hover .play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--white);
}

/* Gallery Preview */
.gallery-preview {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 4px;
  z-index: 3;
  opacity: 0.8;
  transform: translateY(10px);
  transition: var(--transition);
}

.article-card[data-type="Gallery"]:hover .gallery-preview {
  opacity: 1;
  transform: translateY(0);
}

.gallery-thumb {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.gallery-thumb:hover {
  transform: scale(1.1);
  z-index: 1;
}

.gallery-more {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.9);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Document Icon */
.document-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(234, 88, 12, 0.9);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.article-card[data-type="Document"]:hover .document-icon {
  opacity: 1;
  transform: translateY(0);
}

/* Card Content */
.card-content {
  padding: 24px;
}

.card-category {
  display: inline-block;
  padding: 6px 14px;
  background: color-mix(in srgb, var(--secondary-color) 8%, transparent);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.article-card:hover .card-title {
  color: var(--secondary);
}

.card-excerpt {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray);
}

.meta-item i {
  font-size: 0.9rem;
  color: var(--secondary);
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.read-more-btn:hover {
  transform: translateX(-4px);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--secondary-color) 30%, transparent);
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

.read-more-btn:hover i {
  transform: translateX(-4px);
}

/* ========================================
   Modals - Premium Design
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--dark) 85%, transparent);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  width: 100%;
  max-height: 100vh;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Modal Close Button */
.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--dark);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
  background: var(--white);
  transform: rotate(90deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Article Modal
   ======================================== */
.article-modal .modal-container {
  max-width: 900px;
  overflow-y: auto;
}

.article-modal-header {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.article-modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-modal-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
}

.article-modal-title-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  z-index: 2;
}

.article-modal-category {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.article-modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-modal-body {
  padding: 40px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray);
}

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

.article-content {
  font-size: 1.1rem;
  line-height: 2;
  color: #374151;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 32px 0 16px;
}

.article-content ul,
.article-content ol {
  margin: 20px 0;
  padding-right: 24px;
}

.article-content li {
  margin-bottom: 12px;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.share-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.share-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  transform: translateY(-3px);
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #4267B2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

/* ========================================
   Video Modal
   ======================================== */
.video-modal .modal-container {
  max-width: 1000px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-modal .modal-close {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.video-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 24px;
  background: var(--dark);
  color: var(--white);
}

.video-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.video-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* ========================================
   Gallery Modal
   ======================================== */
.gallery-modal .modal-container {
  max-width: 1100px;
  background: var(--dark);
}

.gallery-modal .modal-close {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.gallery-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.gallery-main {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.gallery-main-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.gallery-nav.prev { right: 20px; }
.gallery-nav.next { left: 20px; }

.gallery-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  overflow-x: auto;
  justify-content: center;
}

.gallery-thumb-item {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  flex-shrink: 0;
  border: 2px solid transparent;
}

.gallery-thumb-item:hover,
.gallery-thumb-item.active {
  opacity: 1;
  border-color: var(--accent);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-info {
  padding: 20px 24px;
  background: var(--dark);
}

.gallery-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.gallery-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Document Modal
   ======================================== */
.document-modal .modal-container {
  max-width: 800px;
}

.document-preview {
  height: 500px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.document-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.document-placeholder {
  text-align: center;
  padding: 40px;
}

.document-icon-large {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--type-document) 0%, #f97316 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.document-icon-large i {
  font-size: 3rem;
  color: var(--white);
}

.document-filename {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.document-size {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 24px;
}

.document-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.doc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.doc-action-btn.primary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--secondary-color) 30%, transparent);
}

.doc-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--secondary-color) 40%, transparent);
}

.doc-action-btn.secondary {
  background: var(--light);
  color: var(--dark);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.doc-action-btn.secondary:hover {
  background: var(--white);
  border-color: var(--secondary);
  color: var(--secondary);
}

.document-info {
  padding: 24px 32px;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.document-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.document-description {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991px) {
  .article-modal-header {
    height: 280px;
  }
  
  .article-modal-title-wrapper {
    padding: 24px;
  }
  
  .article-modal-title {
    font-size: 1.5rem;
  }
  
  .article-modal-body {
    padding: 24px;
  }
  
  .gallery-main {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .article-meta-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .document-actions {
    flex-direction: column;
  }
  
  .gallery-nav {
    width: 40px;
    height: 40px;
  }
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--secondary-color) 10%, transparent) 0%, color-mix(in srgb, var(--basic-color) 10%, transparent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.empty-icon i {
  font-size: 2.5rem;
  color: var(--secondary);
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.empty-text {
  font-size: 1rem;
  color: var(--gray);
}

/* ===================================================
   Articles Index — Layout & Card Enhancements
   Extracted from Articles/Index.cshtml
   Extends the base council-articles.css styles
=================================================== */

/* ─── Page Wrapper ─── */
.art-section {
    padding: 80px 0 100px;
    background: #f6f9fc;
    position: relative;
}

.art-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(38,51,112,0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 85%, rgba(12,127,174,0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* ─── Strip double-padding from nested section ─── */
.articles-section { padding: 0; background: transparent; }
.articles-container { max-width: 100%; padding: 0; }

/* ─── Proper 3-column grid ─── */
.articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 575px) {
    .articles-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ─── Aspect-ratio image (replaces fixed 240px height) ─── */
.card-image-container {
    height: auto;
    aspect-ratio: 16 / 10;
}

/* ─── Card shell refinements ─── */
.article-card {
    box-shadow: 0 2px 16px rgba(0,0,0,0.06), 0 0 0 1px rgba(226,232,240,0.7);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 52px rgba(12,127,174,0.14),
                0 0 0 1px rgba(12,127,174,0.12);
}

/* Bottom accent stripe slides in on hover */
.article-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #263370, #0c7fae, #5DD0F0);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.38s ease;
}

[dir="ltr"] .article-card::after { transform-origin: left; }
.article-card:hover::after { transform: scaleX(1); }

/* Type-specific accent colors */
.article-card[data-type="Video"]::after {
    background: linear-gradient(90deg, #991b1b, #dc2626, #fca5a5);
}

.article-card[data-type="Gallery"]::after {
    background: linear-gradient(90deg, #4c1d95, #7c3aed, #c4b5fd);
}

.article-card[data-type="Document"]::after {
    background: linear-gradient(90deg, #7c2d12, #ea580c, #fed7aa);
}

/* ─── Date badge: enhanced appearance ─── */
.date-badge {
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.96);
}

.date-day { font-size: 1.2rem; font-weight: 800; }

/* ─── Play button: always visible for video cards ─── */
.play-button {
    width: 58px;
    height: 58px;
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1);
}

.play-button i { font-size: 1.3rem; }

.article-card[data-type="Video"]:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.14);
}

/* ─── Gallery preview: always visible ─── */
.gallery-preview {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Document icon: always visible ─── */
.document-icon {
    opacity: 0.95;
    transform: translateY(0);
}

/* ─── Card content refinements ─── */
.card-content { padding: 22px 24px 20px; }

.card-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 4px 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 800;
}

.card-excerpt { font-size: 13.5px; }

/* ─── Read-more: text-link style (replaces gradient button) ─── */
.read-more-btn {
    background: transparent;
    color: #0c7fae;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
}

.read-more-btn:hover {
    background: transparent;
    color: #263370;
    transform: none;
    box-shadow: none;
    gap: 10px;
}

.read-more-btn i { transition: transform 0.25s ease; }
[dir="rtl"] .read-more-btn:hover i { transform: translateX(-3px); }
[dir="ltr"] .read-more-btn:hover i { transform: translateX(3px); }

@media (max-width: 767px) {
    .art-section { padding: 56px 0 72px; }
    .art-header { margin-bottom: 36px; }
    .card-content { padding: 16px 18px 14px; }
}
