/*
Theme Name: Asmia Theme
Theme URI: https://asmia.org/
Author: الاتحاد العربي للتسويق والاستثمار الرياضي
Author URI: https://asmia.org/
Description: قالب مخصص لموقع الاتحاد العربي للتسويق والاستثمار الرياضي.
Version: 1.0
Text Domain: asmia-theme
*/
body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background-color: #f0f0f0;
}
header {
  background-color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #ddd;
}
.logo {
  height: 80px;
}
.ad-banner img {
  height: 80px;
  object-fit: contain;
}
nav {
  background-color: #004080;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
}
.nav-links {
  display: flex;
  gap: 15px;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
.social-icons {
  display: flex;
  gap: 10px;
}
.social-icons a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
}
.breaking-news {
  display: flex;
  align-items: center;
  background-color: #c62828;
  color: #fff;
  padding: 10px;
  position: relative;
}
.breaking-news .label {
  font-weight: bold;
  margin-left: 15px;
  white-space: nowrap;
}
.breaking-news .news-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 30px;
}
.breaking-news .news {
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.breaking-news .news.active {
  opacity: 1;
}
.breaking-news .news a {
  color: white;
  text-decoration: none;
}
.breaking-news .controls {
  display: flex;
  flex-direction: column;
  margin-right: 10px;
}
.breaking-news .controls button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 2px;
}
.main-boxed {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fdfdfd;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 8px;
}
.slider-wrapper {
  display: flex;
  box-sizing: border-box;
  align-items: flex-start;
}
.custom-slider {
  flex: 2;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  height: 450px;
}
.custom-slide {
  display: none;
  position: absolute;
  height: 100%;
  width: 100%;
}
.custom-slide.active {
  display: block;
  position: relative;
}
.custom-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.custom-slide .caption {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  width: 100%;
  padding: 10px;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
}
.custom-slide .caption a {
  color: white;
  text-decoration: none;
}
.slider-buttons {
  position: absolute;
  width: 100%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 1;
}
.slider-buttons button {
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
}
.sponsor {
  flex: 1;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 10px;
  height: 450px;
}
.sponsor p {
  font-weight: bold;
  font-size: 18px;
  background: #004080;
  color: white;
  padding: 8px;
  border-radius: 5px;
  margin: 0 0 10px;
  text-align: center;
}
.sponsor img {
  width: 100%;
  height: calc(100% - 50px);
  object-fit: cover;
  border-radius: 5px;
}
.intro-section {
  display: flex;
  align-items: center;
  padding: 40px 20px;
  background: #fff;
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  gap: 20px;
}
.intro-section img {
  width: 150px;
}
.intro-section .text {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}
.events-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.events-section h2 {
  text-align: center;
  color: #004080;
  margin-bottom: 20px;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.event {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fafafa;
}
.event img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.event a {
  display: block;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  color: #004080;
  text-decoration: none;
}
footer {
  background: #004080;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}


/* القائمة على الموبايل */
.menu-toggle {
  display: none;
  background-color: #004080;
  color: #fff;
  padding: 10px;
  border: none;
  font-size: 20px;
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #004080;
    width: 100%;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }

  .slider-wrapper {
    flex-direction: column;
  }
  .custom-slider,
  .sponsor {
    width: 100%;
    height: auto;
  }
  .ad-banner img {
    width: 100%;
    height: auto;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
}

nav ul,
nav li,
.nav-links li,
.menu li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

nav li::marker,
.nav-links li::marker,
.menu li::marker {
    display: none !important;
}
nav {
  background-color: #004080;
  padding: 10px 20px; /* بدل 10px بس */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
}

.nav-links a {
  padding-right: 10px; /* مسافة بسيطة من اليمين */
}

.breaking-news {
  display: flex;
  align-items: center;
  background-color: #c62828;
  color: #fff;
  padding: 10px 20px; /* زيادة padding من الجوانب */
  position: relative;
}
.breaking-news .label {
  margin-left: 15px;
}
.breaking-news .news {
  padding-right: 10px;
}
@media (max-width: 768px) {
  nav {
    flex-direction: row-reverse;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .nav-links {
    order: 2;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .social-icons {
    order: 1;
    display: flex;
    gap: 10px;
  }

  .mobile-menu-toggle {
    order: 1;
    margin-right: 10px;
  }

  /* جعل السوشيال والمينيو في نفس السطر */
  .nav-top-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
  }
}
