@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600&display=swap');

:root {
  --primary-color: #0d47a1;
  --primary-light: #1976d2;
  --background: #f5f7fa;
  --text-dark: #1c1c1e;
  --card-bg: #fbfcfe;
  --card-border: #e0e0e0;
  --accent-color: #f57c00;
  --footer-bg: #1a1a1a;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Tajawal', sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  text-align: center;
}

body > .content {
  flex: 1;
}

header {
  padding: 0;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

footer {
  padding: 15px;
  background-color: var(--footer-bg);
  color: #fff;
  font-size: 14px;
  text-align: center;
  border-top: 1px solid var(--card-border);
  margin-top: auto;
}

.main-video,
#live-video {
  width: 90%;
  max-width: 1000px;
  border: 4px solid var(--primary-color);
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(13, 71, 161, 0.15);
  background: #000;
  margin-top: 0px;
}

#main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(80vh - 120px);
  padding-top: 0px;
  color: var(--text-dark);
  transition: opacity 0.4s ease;
}

#main-content h1 {
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  font-size: clamp(28px, 6vw, 60px);
}

#main-content p {
  font-weight: 400;
  color: var(--text-dark);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  line-height: 1.8;
  font-size: clamp(16px, 3vw, 22px);
  padding: 0 15px;
}

.about-section {
  background: var(--background);
  padding: 60px 20px 80px;
  color: var(--text-dark);
}

.about-container {
  max-width: 1100px;
  margin: auto;
}

.about-title {
  text-align: center;
  font-size: 34px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
}

.about-subtitle {
  text-align: center;
  font-size: 18px;
  color: #555;
  margin-bottom: 50px;
}

.about-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.about-card {
  background: var(--card-bg);
  padding: 25px 20px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
  color: var(--text-dark);
  border: 1px solid var(--card-border);
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-card img {
  width: 70px;
  margin-bottom: 15px;
}

.about-card h3 {
  color: var(--primary-light);
  font-size: 20px;
  margin-bottom: 10px;
}

.about-card p,
.about-card ul {
  font-size: 16px !important;
  color: var(--text-dark) !important;
  line-height: 1.8 !important;
  margin: 0 !important;
}

.about-card ul {
  padding-right: 20px;
  margin-top: 10px;
  text-align: right;
}

.about-card ul li {
  margin-bottom: 8px;
  list-style: none;
  position: relative;
  padding-right: 22px;
}

.about-card ul li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--primary-light);
  font-weight: bold;
}

.about-map {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 12px;
  margin-top: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 30px 20px;
  max-width: 1350px;
  margin: auto;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: auto;
}

.news-card:hover {
  transform: translateY(-6px);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card .content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.news-card .content h3 {
  font-size: 15px;
  color: var(--text-dark);
  margin: 0 0 6px 0;
  line-height: 1.6;
  overflow: hidden;
  text-align: right;
}

.news-card .content span {
  font-size: 12px;
  color: #666;
  text-align: left;
}

.contact-section {
  padding: 60px 20px;
  background-color: #ffffff;
  max-width: 1000px;
  margin: auto;
  text-align: right;
}

.contact-section h1 {
  text-align: center;
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 600;
}

.contact-details {
  font-size: 18px;
  line-height: 2.2;
  color: var(--text-dark);
  padding-bottom: 25px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 35px;
}

.contact-details strong {
  color: var(--primary-color);
}

.contact-map {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.contact-form {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 17px;
  width: 100%;
  max-width: 520px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  background-color: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 8px rgba(13, 71, 161, 0.15);
  background-color: #fff;
}

.contact-form button {
  padding: 14px 32px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 17px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #00337f;
}

/* الفيديو والمباريات */
.video-section {
  max-height: 70vh;
  overflow: hidden;
}

.matches-section {
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin: 20px;
  border-radius: 10px;
}

.matches-section h2 {
  margin-bottom: 15px;
  color: #d90429;
}

.match-card {
  background: #f1f1f1;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  text-align: right;
}

/* شريط التنقل */
#main-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.85);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

nav {
  width: 100%;
  margin: auto;
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  height: 70px;
}

.logo a {
  font-size: 22px;
  font-weight: bold;
  color: #004aad;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #004aad;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #004aad;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: #003882;
  color: #fff;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  nav ul.show {
    display: flex;
  }

  nav ul li a {
    padding: 12px 20px;
    font-size: 18px;
  }

  .about-title,
  .contact-section h1 {
    font-size: 26px;
  }

  .about-card h3,
  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }

  .news-card .content h3 {
    font-size: 14px;
  }
}

/* تأثير دخول ناعم */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}




 body {
    font-family: 'Tajawal', sans-serif;
	color:black;
  }

  .rz{right:0;}
  #main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  .logo a {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
  }

  #nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #nav-links li {
    position: relative;
  }

  #nav-links a {
    text-decoration: none;
 
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s;
  }

  #nav-links a:hover {
    background-color: #0d47a1;
  }

  .menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
  }

  /* صورة المستخدم */
  .user-thumb {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    margin-left: 6px;
    border: 1px solid #ccc;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    top: 100%;
    right: 0;
    min-width: 160px;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 0;
  }

  .dropdown-menu li {
    list-style: none;
  }

  .dropdown-menu a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
  }

  .dropdown-menu a:hover {
    background-color: #f4f4f4;
  }

  /* استجابة للجوال */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }

    #nav-links {
      display: none;
      flex-direction: column;
      background: white;
      width: 100%;
    }

    #nav-links.show {
      display: flex;
    }
  }
  
  .p5px{margin-bottom:5px; }