.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 3000;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--white);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: sticky;
  top: 20px;
  right: 20px;
  float: right;
  background: var(--secondary);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  margin-bottom: -40px;
}

.modal-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.modal-body {
  padding: 60px 50px 50px;
}

.modal-body h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--secondary);
}

.modal-body .article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
  font-size: 14px;
  color: var(--text-light);
}

.modal-body .article-content-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.modal-body .article-content-text h2 {
  font-size: 32px;
  margin: 40px 0 20px;
  color: var(--secondary);
}

.modal-body .article-content-text h3 {
  font-size: 24px;
  margin: 30px 0 15px;
  color: var(--secondary);
}

.modal-body .article-content-text p {
  margin-bottom: 20px;
}

.modal-body .article-content-text ul,
.modal-body .article-content-text ol {
  margin: 20px 0 20px 30px;
}

.modal-body .article-content-text li {
  margin-bottom: 10px;
}

.article-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px var(--shadow);
}

.article-image {
  position: relative;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-image i {
  font-size: 64px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .modal-body {
    padding: 50px 30px 30px;
  }

  .modal-body h1 {
    font-size: 32px;
  }

  .modal-body .article-content-text h2 {
    font-size: 26px;
  }

  .modal-body .article-content-text h3 {
    font-size: 20px;
  }

  .modal-content {
    max-height: 95vh;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .modal.active {
    padding: 10px;
  }

  .modal-body {
    padding: 50px 20px 20px;
  }

  .modal-body h1 {
    font-size: 28px;
  }

  .modal-body .article-meta {
    flex-direction: column;
    gap: 8px;
  }
}
