/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #222;
  direction: rtl;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
  flex: 1;
}

/* Form */
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

form input[type="date"],
form input[type="time"],
form button {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

form button {
  background-color: #0d6efd;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #0845c4;
}

/* Result */
#result {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0d6efd;
}

/* Navigation */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #0d6efd;
  padding: 10px 0;
  margin-bottom: 20px;
}

nav a {
  color: white;
  margin: 0 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  text-decoration: underline;
  color: #a8c0ff;
}

/* Footer */
footer {
  background-color: #0d6efd;
  color: white;
  padding: 20px 0;
  text-align: center;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.article-card {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgb(0 0 0 / 0.15);
}

.article-card a {
  text-decoration: none;
  color: #0d6efd;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
  }

  nav a {
    margin: 8px 0;
  }
}
