/* -------------------------------
   Base Styles
--------------------------------- */

:root {
  --section-step: 380px;
}

html {
  direction: rtl;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  /* background-color: black; */
  background: #000;
  color: #fff;
  /* padding-top: 90px; */
  /* equal or a bit more than your navbar height */
}

body {
  font-family: 'Tajawal', sans-serif;
}

h1,
.title {
  font-family: 'Bebas Neue', sans-serif;
}


.mobile-navbar {
  display: none;
}

.bottom-nav {

  display: none;
}


.mobile-buttons {
  display: none;
}

.all {
  display: none;
}

.navbar {
  position: fixed;
  top: 2%;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10px;
  margin-left: 0%;
  margin-right: 0%;
  /* background-color: #11132d; */
  background: transparent;
  /* Dark background */
 

  z-index: 1000;
}


.logo {
  display: flex;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #0033cc;
}

.logo img {
  height: 27px;
  margin-right: 8px;
  width: 100px;
  padding-bottom: 20%;
  margin-top: 10%;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
  /* controls distance between logo & nav-links */
}


.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}

.nav-links a:hover {
  color: #0033cc;
}

.nav-links a.active {
  color: #0033cc;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  z-index: 1000000000;

  margin-right: 20px;

}

.nav-actions input[type="search"] {
  background: transparent;
  border: none;
  color: #fff;
}


.nav-actions select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1em;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 4px 8px;
  cursor: pointer;
}

.nav-actions select:focus {
  outline: none;
}


.btn-subscribe {
  background-color: #0000ee;
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  margin-right: 20px;
}

.nav-actions .search-icon {
  color: white;
  font-size: 1.2em;
  cursor: pointer;
}

.nav-actions .search-icon:hover {
  color: #0033cc;
}

.studio-slider {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  /* margin-bottom: 5%; */
  border-radius: 7px;

}

.swiper-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}







/* Play icon overlay in center — hidden by default */
.show {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: white;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
  font-size: 5em;
  font-weight: 800;
}

.categorie {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: white;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10000;
  font-weight: 800;
  font-size: 1.8em;

}










.top10 {
  padding: 4px 12px;
  width: 99%;
  /* margin: 0 auto; */
  /* background-color: yellow; */

  position: relative;
}

.top-header {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 12px;
  position: absolute;
  top: 0%;
  /* margin-top: 20px; */
}

.top-header>a {
  color: white;
  font-size: small;
}

.top10-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 7px;
}


.top10-wrapper {
  position: relative;
  margin-top: 2%;
}





.item {
  flex: 0 0 auto;
  /* Prevent items from shrinking */
  position: relative;
}





.item:hover {
  transform: scaleY(1.1);
  transform: scaleX(1.1);

  z-index: 100000;
}


.item {
  text-align: center;
  position: relative;
  margin-bottom: 7%;
}

.item span {
  position: absolute;
  left: -10px;
  top: 0;
  font-size: 3em;
  font-weight: bold;
  color: #444;
  z-index: 0;
}

.item img {
  max-width: 210px;
  height: 250px;
  border-radius: 6px;
  z-index: 1;
  position: relative;
  padding-top: 20%;


}



.item p {
  margin-top: 8px;
  font-size: 0.9em;
}

/* -------------------------------
     Responsive Styles
  --------------------------------- */

@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    margin-left: 5%;
    margin-right: 5%;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .nav-actions select,
  .nav-actions a,
  .btn-subscribe {
    font-size: 0.9em;
  }

  .studio-slider {
    width: 95%;
    height: 45vh;
  }

  .slide-content {
    max-width: 100%;
    padding: 30px 20px;
    padding-top: 20%;
  }

  .slide-content h1 {
    font-size: 2em;
  }

  .description {
    font-size: 0.9em;
  }


  .item span {
    font-size: 2em;
  }

  .item p {
    font-size: 0.8em;
  }
}





.item img {
  width: 100%;
  border-radius: 6px;
  transition: transform 0.3s ease;
  margin-bottom: 0%;
}












.site-footer {
  margin: 0 auto;              /* ✅ Center horizontally */

  margin-top: calc(var(--dynamic-category-count) * var(--section-step));
  background:transparent; /* Dark background */
  max-width: 80%;
  color: #fff;
  text-align: center;
  padding: 15px 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  bottom: 0;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 400;
}

.footer-links a:hover {
  color: #0033cc;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-social span {
  font-weight: bold;
}

.footer-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.show-category {
  position: relative;


}

.hover-card {
  display: none;
}



@media screen and (min-width: 969px) {

  .mobile-navbar,
  .bottom-nav,
  .mobile-buttons,
  .all {
    display: none !important;
  }
}



.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  background: #2c2f44;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  border-radius: 4px;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #0033cc;
  color: #fff;
}

.dropdown .all-categories {
  border-top: 1px solid #444;
}

.btn-subscribe-header {
  display: inline-block;
  background-color: #0033cc;
  color: #fff;
  text-align: center;
  padding: 7px 17px;
  font-size: 13px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}


.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0033cc;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 60px;
  z-index: 99999999999999;
  overflow-y: auto;
}

.search-box {
  position: relative;
  width: 80%;
  max-width: 60%;
}

.search-box input {
  width: 100%;
  padding: 14px 40px 14px 14px;
  font-size: 1.2em;
  border: none;
  border-radius: 6px;
  box-sizing: border-box;
}

.close-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #000;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 100;
}

[dir="rtl"] .close-btn {
  left: 20px;
  transform: translateX(-50%);
  top: 20%;

}

.search-results {
  width: 60%;
  max-width: 60%;
  margin-top: 15px;
  background: white;
  border-radius: 6px;
  /* padding: 20px; */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  color: black;
  text-align: left;
  background: white;
  color: black;
  /* ✅ fallback for text nodes */
  z-index: 99999999999999;

}

.search-results a {
  display: block;
  margin: 8px 0;
  font-size: 1rem;
  font-weight: 500;
  color: #00512B;
  /* ✅ Dark green — visible on white */
  text-decoration: underline;
  transition: color 0.2s ease;
  padding-left: 20px;
  padding-right: 20px;
}

[dir="rtl"] .search-results a {
  text-align: right;
  z-index: 99999999999999;


}

.search-results a:hover {
  color: #003f20;
  text-decoration: none;
}




.nav-account-navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  /* padding: 10px 20px; */
  background-color:transparent;
  position: relative;
  cursor: pointer;

}

.nav-account-subscribe-btn {
  background-color: #1500ff;
  color: white;
  padding: 10px 24px;
  border-radius: 25px;
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.4);
}

/* Account avatar */
.nav-account-menu {
  position: relative;
}

.nav-account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
}

/* Dropdown style */
.nav-account-dropdown {
  display: none;
  position: absolute;
  top: 60px;
  right: 0;
  background-color: #2b2b3f;
  border-radius: 8px;
  width: 260px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  z-index: 100;
}


[dir="rtl"] .nav-account-dropdown {
  right: auto;
  left: 0;
}

.nav-account-dropdown.show {
  display: block;
}

.nav-account-header {
  display: flex;
  align-items: center;
  padding: 12px;
}

.nav-account-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-account-info {
  flex-grow: 1;
  margin-left: 10px;
}

.nav-account-name {
  font-weight: bold;
  color: white;
  padding: 10%;
}

.nav-account-arrow {
  font-size: 18px;
  color: white;
}

.nav-account-item {
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 15px;
  border-top: 1px solid #444;
}

.nav-account-item i.icon {
  margin-right: 10px;
}

.nav-account-item:hover {
  background-color: #3b3b5c;
}

.nav-account-center {
  text-align: center;
  justify-content: center;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  color: #333;
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.btn-confirm {
  background-color: red;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cancel {
  background-color: #ccc;
  color: black;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}


.nav-search {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;               /* or inherit */
  text-decoration: none;
  padding: 3px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-search:hover {
  background: rgba(255,255,255,0.1);
  color: #ff007a;           /* highlight color */
}
.nav-search svg {
  width: 22px;
  height: 22px;
}