.article-card {
   background-color: #ffffff;
   border-radius: 15px;
   padding: 20px;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
   text-align: center;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   cursor: pointer;
   overflow: hidden;
}

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

.container-articles {
   display: flex;
   color:#000000;
   flex-direction: row;
   flex-wrap: wrap;
   gap: 30px;
   justify-content: center;
   padding: 40px;
   max-width: 1400px;
   margin: 0 auto;
   margin-top : 50px;
   /* background-color: #f4f4f4; */
   border-radius: 10px;
}

.popup {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.7);
   display: none;
   justify-content: center;
   align-items: center;
   z-index: 9999;
}

.popup-content {
   background-color: #fff;
   padding: 20px;
   border-radius: 10px;
   box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
   position: relative;
   width: 80%;
   max-width: 600px;
   text-align: left;
}

.popup-content h2 {
   margin-bottom: 20px;
   color: #333;
   font-size: 20px;
   text-align: center;
}

.popup-content input[type="text"] {
   width: 100%;
   padding: 12px;
   margin-bottom: 15px;
   border: 1px solid #ddd;
   border-radius: 5px;
   font-size: 16px;
}

.popup-content textarea {
   width: 100%;
   padding: 12px;
   margin-bottom: 15px;
   border: 1px solid #ddd;
   border-radius: 5px;
   font-size: 16px;
   font-family: inherit;
}

.popup-content input[type="file"] {
   width: 100%;
   padding: 10px;
   margin-bottom: 15px;
   border: 1px solid #ddd;
   border-radius: 5px;
   background-color: #f8f8f8;
}

.popup-content button[type="submit"] {
   background-color: #4CAF50;
   color: white;
   padding: 12px 24px;
   border: none;
   border-radius: 5px;
   cursor: pointer;
   font-size: 16px;
   width: 100%;
   transition: background-color 0.3s ease;
}

.popup-content button[type="submit"]:hover {
   background-color: #45a049;
}

.close {
   position: absolute;
   right: 10px;
   top: 0px;
   font-size: 52px;
   cursor: pointer;
   color: #ee1919;
   transition: color 0.3s ease;
   padding: 50px;
   z-index: 99999;
}

.close:hover {
   color: #333;
}

.toast {
   position: fixed;
   top: 20px;
   right: 20px;
   padding: 15px 25px;
   border-radius: 5px;
   color: #ffffff;
   font-weight: bold;
   opacity: 0;
   transition: opacity 0.3s ease-in-out;
   z-index: 10000;
   animation: fadeOut 2s forwards 2s;
}

@keyframes fadeOut {
   to {
      opacity: 0;
   }
}

.toast.success {
   background-color: #4CAF50;
}

.toast.error {
   background-color: #f44336;
}

.toast.show {
   opacity: 1;
}

.article-image {
   height: 50px;
   object-fit: cover;
   border-radius: 10px;
   margin-bottom: 15px;
}

.popup-image {
   max-width: 20%;
   max-height: 400px;
   object-fit: contain;
   margin-bottom: 20px;
}

.article-card h3 {
   font-size: 1.5em;
   color: #333;
   margin: 10px 0;
   font-weight: 600;
}

.article-card p {
   color: #000000;
   line-height: 1.6;
   margin-bottom: 15px;
   font-size: 0.9em;
}

.article-card a {
   display: inline-block;
   margin-top: 10px;
   padding: 10px 20px;
   background-color: #4CAF50;
   color: #ffffff;
   text-decoration: none;
   border-radius: 5px;
   transition: background-color 0.3s ease;
}

.article-card a:hover {
   background-color: #45a049;
}

.popup-content p {
   margin: 10px 0;
   line-height: 1.5;
}

.img {
   height: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
   .container-articles {
      padding: 20px;
      gap: 20px;
   }

   .article-card {
      width: 45%;
   }
}

@media (max-width: 768px) {
   .container-articles {
      padding: 10px;
      gap: 15px;
   }

   .article-card {
      width: 100%;
   }

   .popup-content {
      width: 90%;
      max-width: 100%;
   }

   .popup-content input[type="text"],
   .popup-content textarea,
   .popup-content input[type="file"] {
      padding: 10px;
   }

   .popup-content button[type="submit"] {
      padding: 10px 20px;
   }
}

@media (max-width: 480px) {
   .article-card h3 {
      font-size: 1.2em;
   }

   .article-card p {
      font-size: 0.8em;
   }

   .popup-content h2 {
      font-size: 18px;
   }
}


