
/* General page styling */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  direction: rtl;
}

h1 {
  text-align: center;
  font-size: 1.2rem;
  padding: 10px;
  color: #333;
}

/* 3-column square grid layout */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
}

.item {
  width: calc(100% / 3);
  padding-bottom: calc(100% / 3);
  position: relative;
  background: #eee;
  border: 1px solid #fff;
  box-sizing: border-box;
}

.item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Loader text */
#loader {
  text-align: center;
  font-size: 1rem;
  color: #666;
  padding: 10px;
}

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
}

/* Close button (X) */
.modal .close {
  position: absolute;
  top: 20px;
  left: 20px;
  color: red;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
}

/* Modal content container */
.carousel-content {
  position: relative;
  text-align: center;
  height: 100%;
}

/* Image inside modal */
#carouselImage {
  max-height: 90%;
  max-width: 90%;
  margin-top: 50px;
  touch-action: none;
  transition: transform 0.3s ease;
}

/* Navigation arrows */
.nav {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  user-select: none;
  z-index: 1000;
}

.nav.left {
  right: 90%; /* RTL: arrow visually left */
}

.nav.right {
  left: 90%;  /* RTL: arrow visually right */
}

/* Image indicator (e.g., 1 / 6) */
.carousel-indicator {
  color: white;
  font-size: 1rem;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 12px;
  border-radius: 15px;
  z-index: 1001;
  font-family: sans-serif;
  direction: ltr;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 10px 15px 25px; /* ⬅️ adds 25px padding at the bottom */
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
}



.header-left,
.header-center,
.header-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-left {
  justify-content: flex-start;
}

.header-center {
  justify-content: center;
}

.header-right {
  justify-content: flex-end;
}


.logo {
  max-height: 40px;
}

.post-ad-btn {
  background: #007bff;
  color: white;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Dropdown menu (hidden by default) */
.dropdown-menu {
  display: none;
  flex-direction: column;
  background-color: white;
  border-top: 1px solid #ccc;
  position: absolute;
  top: 50px;
  right: 15px; /* ✅ Position dropdown near the right edge */
  width: 180px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 999;
}


.dropdown-menu a {
  padding: 12px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

/* Responsive behavior */
@media (max-width: 600px) {
  .logo {
    max-height: 30px;
  }

  .post-ad-btn {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .dropdown-menu {
    width: 100%;
    right: 0;
  }
}
.offer-card {
  width: calc(33.333% - 8px);
  margin: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease;
  cursor: pointer;
  direction: rtl;
}

.offer-card:hover {
  transform: translateY(-5px);
}

.offer-card img {
  width: 100%;
  aspect-ratio: 1 / 1; /* Square box */
  object-fit: cover;
  display: block;
}


.offer-details {
  padding: 10px;
}

.offer-details h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
   white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.offer-details .offer-title {
  font-weight: bold;
  font-size: 0.9rem;
  margin: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-details .offer-date {
  font-size: 0.85rem;
  color: #777;
}
/* Fix dropdown for mobile toggle */
.dropdown-menu.show {
  display: flex !important;
}

.footer {
  background-color: #f2f2f2;
  color: #333;
  font-size: 0.9rem;
  padding: 30px 20px 10px;
  margin-top: 40px;
  direction: rtl;
  border-top: 1px solid #ccc;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 100%;
}

.footer-col {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #007bff;
}

.footer-col p,
.footer-col a {
  margin: 6px 0;
  color: #333;
  text-decoration: none;
}

.footer-col a:hover {
  color: #007bff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin: 6px 0;
}

.footer-logo-wrapper {
  text-align: center;
  margin-top: 20px;
}

.footer-logo {
  max-width: 100px;
  margin-bottom: 10px;
  display: inline-block;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #ddd;
  margin-top: 20px;
  padding-top: 10px;
}


.lang-switch {
  font-size: 1.2rem;
  text-decoration: none;
  color: #333;
  margin-right: 10px;
}

.lang-switch:hover {
  color: #007bff;
}
body.en .offer-card .offer-details {
  text-align: left;
  direction: ltr;
}

body.en .offer-card h3,
body.en .offer-card .offer-title,
body.en .offer-card .offer-date {
  direction: ltr;
}
.vip-card {
  width: 95%;
  max-width: 800px;
  margin: 0 auto 10px;
  border: 2px solid red;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  position: relative;
}


.vip-label {
  position: absolute;
  top: 8px;
  right: 8px;
  background: red;
  color: white;
  padding: 4px 10px;
  font-weight: bold;
  border-radius: 4px;
  font-size: 0.85rem;
  z-index: 10;
}

.vip-card video,
.vip-card img {
  width: 100%;
  height: auto;
  display: block;
}

.vip-details {
  padding: 10px;
}

.vip-details h3 {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.vip-details .vip-title {
  font-weight: bold;
  margin: 6px 0;
}

.vip-details .vip-date {
  font-size: 0.85rem;
  color: #777;
}
.vip-card video {
  pointer-events: auto;
  user-select: none;
}
.vip-video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.vip-video {
  width: 100%;
  display: block;
  cursor: pointer;
  object-fit: cover;
  pointer-events: auto;
  user-select: none;
  touch-action: manipulation;
}
.vip-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* margin-bottom: 30px; ❌ REMOVE THIS LINE */
}

.vip-container.no-bottom-gap {
  margin-bottom: 0 !important;
}

.commercial-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
  flex-wrap: nowrap; /* 🔒 Prevent wrapping */
  overflow-x: auto;   /* Optional: horizontal scroll if screen is small */
  padding: 0 10px;
}

.commercial-item {
  flex: 0 0 calc(25% - 7.5px); /* 4 items with gaps */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.commercial-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* ⬅️ show full image */
  display: block;
  background: white;    /* optional clean look */
}

@keyframes scroll-text {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.carousel-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 10px;
}

.carousel-gallery img {
  touch-action: pan-y pinch-zoom !important;
  user-select: none;
  max-width: 90%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: white;
}
.offer-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
