body {
  font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e3f0ff 100%);
  margin: 0;
  direction: rtl;
  color: #222;
}

nav {
  background: linear-gradient(90deg, #1e293b 60%, #2563eb 100%);
  color: #fff;
  padding: 0 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  box-shadow: 0 2px 12px rgba(30,41,59,0.07);
  position: relative;
}

nav .logo {
  font-family: 'Cairo', Arial, sans-serif;
  font-size: 2em;
  font-weight: 900;
  margin-right: 30px;
  color: #fff;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}
nav .logo .plus {
  color: #22d3ee;
  font-size: 1.2em;
  margin-right: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Tajawal', Arial, sans-serif;
  font-size: 1.1em;
  transition: color 0.2s;
  padding: 8px 16px;
  border-radius: 8px;
}

nav ul li a:hover {
  background: #22d3ee;
  color: #1e293b;
}

.search-box {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 30px;
  background: #f1f5f9;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(34,211,238,0.10);
  padding: 3px 8px 3px 3px;
  transition: box-shadow 0.2s;
}

.search-box:focus-within {
  box-shadow: 0 4px 16px rgba(37,99,235,0.18);
}

.search-box input {
  font-family: 'Tajawal', Arial, sans-serif;
  padding: 10px 38px 10px 16px;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 1em;
  background: transparent;
  color: #222;
  width: 180px;
  box-shadow: none;
}

.search-box .search-icon {
  position: absolute;
  right: 16px;
  color: #22d3ee;
  font-size: 1.2em;
  pointer-events: none;
}

.search-box button {
  background: linear-gradient(90deg, #22d3ee 0%, #2563eb 100%);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 1.1em;
  cursor: pointer;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}

.search-box button:hover {
  background: linear-gradient(90deg, #2563eb 0%, #22d3ee 100%);
  transform: scale(1.08);
}

.hero-section {
  position: relative;
  background: url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
}

.hero-section.sports-bg {
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  /* صورة كرة قدم حديثة من Unsplash */
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(34,211,238,0.7) 0%, rgba(37,99,235,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-family: 'Cairo', Arial, sans-serif;
  font-size: 2.7em;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.hero-content .plus {
  color: #22d3ee;
}

.hero-content p {
  font-family: 'Tajawal', Arial, sans-serif;
  font-size: 1.3em;
  margin-bottom: 25px;
}

.hero-btn {
  background: linear-gradient(90deg, #22d3ee 0%, #2563eb 100%);
  color: #fff;
  font-family: 'Tajawal', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  padding: 12px 32px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(34,211,238,0.15);
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}

.hero-btn:hover {
  background: linear-gradient(90deg, #2563eb 0%, #22d3ee 100%);
  transform: scale(1.05);
}

main {
  padding: 40px 8vw 0 8vw;
}

section {
  margin-bottom: 40px;
}

section h2 {
  font-family: 'Cairo', Arial, sans-serif;
  font-size: 2em;
  font-weight: 900;
  color: #2563eb;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.posts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 18px;
}

.post-card {
  background: linear-gradient(120deg, #f1f5f9 70%, #e0f2fe 100%);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(37,99,235,0.18), 0 2px 16px rgba(34,211,238,0.12);
  padding: 22px 24px;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 260px;
  text-decoration: none;
  color: #222;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card:hover {
  box-shadow: 0 12px 48px rgba(34,211,238,0.28), 0 6px 24px rgba(37,99,235,0.22);
  transform: translateY(-6px) scale(1.04);
  background: linear-gradient(120deg, #e0f2fe 70%, #f1f5f9 100%);
}

.match-card .teams {
  font-family: 'Cairo', Arial, sans-serif;
  font-size: 1.3em;
  font-weight: 900;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.match-card .vs {
  color: #22d3ee;
  font-weight: bold;
  font-size: 1.1em;
}

.match-card .match-info {
  font-family: 'Tajawal', Arial, sans-serif;
  font-size: 1em;
  color: #334155;
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
}

.news-card h3 {
  font-family: 'Cairo', Arial, sans-serif;
  font-size: 1.15em;
  color: #2563eb;
  margin: 0 0 5px 0;
}

.news-card p {
  font-family: 'Tajawal', Arial, sans-serif;
  font-size: 1em;
  color: #222;
  margin: 0 0 7px 0;
}

.news-date {
  font-size: 0.95em;
  color: #64748b;
  font-family: 'Tajawal', Arial, sans-serif;
}

.post-action {
  font-family: 'Tajawal', Arial, sans-serif;
  font-size: 1em;
  color: #22d3ee;
  margin-top: 8px;
  text-align: left;
  transition: color 0.2s;
}

.post-card:hover .post-action {
  color: #2563eb;
}

.section-link {
  display: inline-block;
  font-family: 'Tajawal', Arial, sans-serif;
  font-size: 1.1em;
  color: #2563eb;
  background: #e0f2fe;
  padding: 8px 22px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37,99,235,0.07);
  transition: background 0.2s, color 0.2s;
}

.section-link:hover {
  background: #2563eb;
  color: #fff;
}

footer {
  background: linear-gradient(90deg, #1e293b 60%, #2563eb 100%);
  color: #fff;
  padding: 28px 0 18px 0;
  text-align: center;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: 'Tajawal', Arial, sans-serif;
  font-size: 1.1em;
}

.footer-content .plus {
  color: #22d3ee;
  font-size: 1.2em;
  margin-right: 2px;
}

.social-icons {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}

.social-icons a {
  color: #22d3ee;
  font-size: 1.5em;
  transition: color 0.2s;
}

.social-icons a:hover {
  color: #fff;
}

.standings-section {
  margin-bottom: 40px;
}

.standings-section h2 {
  font-family: 'Cairo', Arial, sans-serif;
  font-size: 1.5em;
  font-weight: 900;
  color: #2563eb;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(37,99,235,0.07);
}

.standings-table th, .standings-table td {
  border: 1px solid #e0e7ef;
  padding: 10px 8px;
  text-align: center;
  font-family: 'Tajawal', Arial, sans-serif;
  font-size: 1em;
}

.standings-table th {
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}

.standings-table td {
  background: #f8fafc;
}

.club-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  background: #e0f2fe;
  border: 1px solid #e0e7ef;
  box-shadow: 0 1px 4px rgba(34,211,238,0.10);
}

.leagues-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin: 40px 0;
}

.league-card {
  background: linear-gradient(120deg, #e0f2fe 70%, #f1f5f9 100%);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(37,99,235,0.10);
  min-width: 210px;
  max-width: 230px;
  flex: 1 1 210px;
  transition: box-shadow 0.2s, transform 0.2s;
  font-family: 'Cairo', Arial, sans-serif;
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid #e0e7ef;
}

.league-card[open] {
  box-shadow: 0 12px 48px rgba(34,211,238,0.18), 0 2px 16px rgba(37,99,235,0.12), 0 24px 48px rgba(0,0,0,0.13);
  transform: scale(1.04);
}

.league-card summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  font-size: 1.08em;
  font-weight: 900;
  color: #2563eb;
  border-bottom: 1px solid #e0e7ef;
  background: #fff;
  outline: none;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.league-card[open] summary {
  background: #e0f2fe;
  box-shadow: 0 4px 16px rgba(34,211,238,0.10);
}

.league-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0e7ef;
  box-shadow: 0 1px 4px rgba(34,211,238,0.10);
}

.clubs-list {
  padding: 10px 0 18px 0;
  animation: slideDown 0.5s;
  background: #fff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px);}
  to { opacity: 1; transform: translateY(0);}
}

.club-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid #e0e7ef;
  font-family: 'Tajawal', Arial, sans-serif;
  font-size: 1.08em;
  background: #f8fafc;
  transition: background 0.2s;
}

.club-row:last-child {
  border-bottom: none;
}

.club-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  background: #e0f2fe;
  border: 1px solid #e0e7ef;
  box-shadow: 0 1px 4px rgba(34,211,238,0.10);
}

.club-name {
  flex: 1;
  color: #2563eb;
  font-weight: 700;
  font-size: 1em;
}

.club-points {
  color: #22d3ee;
  font-weight: 900;
  font-size: 1em;
  background: #e0f2fe;
  padding: 4px 14px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(34,211,238,0.07);
}

/* Responsive */
@media (max-width: 900px) {
  main {
    padding: 30px 2vw 0 2vw;
  }
  .posts-list {
    gap: 18px;
  }
  .leagues-grid {
    gap: 16px;
  }
  .league-card {
    min-width: 160px;
    max-width: 98vw;
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 10px;
  }
  nav .logo {
    margin-right: 0;
    margin-bottom: 8px;
    font-size: 1.5em;
  }
  nav ul {
    gap: 10px;
  }
  .search-box {
    margin-left: 0;
    margin-top: 8px;
  }
  .hero-section {
    height: 220px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
  .hero-content h1 {
    font-size: 1.5em;
  }
  section h2 {
    font-size: 1.3em;
  }
  .post-card {
    min-width: 90vw;
    max-width: 100vw;
    padding: 14px 10px;
  }
  footer {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    font-size: 0.95em;
  }
  .league-card {
    min-width: 90vw;
    max-width: 100%;
  }
  .league-card summary {
    font-size: 1em;
    padding: 12px 10px;
  }
  .clubs-list {
    padding: 8px 0 12px 0;
  }
  .club-row {
    padding: 8px 8px;
    font-size: 0.98em;
  }
}

/* الكود سليم ولا توجد أخطاء بنيوية أو في القواعد. */
