/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #333;
}

/* Header + Footer من تصميمك الأصلي */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2563eb;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #2563eb;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Footer */
footer {
  background: #1f2937;
  color: white;
  padding: 3rem 1rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
}

.footer-links a:hover {
  color: #2563eb;
}

.footer-content p {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Blog Page (Cards) */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card h2 {
  font-size: 1.3rem;
  margin: 0.5rem 0;
  color: #2563eb;
}

.card p {
  color: #555;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.card a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.card a:hover {
  background: #1d4ed8;
}

/* Article Page */
article h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #111;
}

article em {
  color: #666;
  font-size: 0.9rem;
}

article p {
  margin: 1rem 0;
  font-size: 1.05rem;
  color: #333;
}

article #post-content {
  margin-top: 1.5rem;
  line-height: 1.7;
}

article #post-content h2 {
  margin-top: 1.5rem;
  color: #2563eb;
  font-size: 1.3rem;
}

article #post-content ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

article #post-content li {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid #ddd;
  }

  nav ul.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
    color: #333;
  }

  header .header-container {
    padding: 0 1rem;
  }

  article h1 {
    font-size: 1.6rem;
  }

  .card h2 {
    font-size: 1.1rem;
  }
}


/* Article Page Card */
.article-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin: auto;
  max-width: 900px;
  line-height: 1.8;
  color: #111;
}

.article-card h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #2563eb;
}

.article-card p,
.article-card div {
  font-size: 1.05rem;
  color: #333;
}

.article-card a {
  color: blue;
  text-decoration: underline;
}

.article-card a:hover {
  color: #1d4ed8;
}
