:root {
  --primary: #8aa5ff;
  --primary-dark: rgba(19, 50, 126, 0.881);
  --accent: #0b1224;
  --text-dark: #151b2a;
  --text-light: #f8faff;
  --muted: rgba(248, 250, 255, 0.8);
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 14px 38px rgba(10, 18, 40, 0.25);
  --glass-border: 1px solid rgba(255, 255, 255, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(138, 165, 255, 0.14), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(107, 126, 219, 0.16), transparent 25%),
    url("images/background.jpg") center/cover fixed no-repeat;
  position: relative;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 18, 36, 0.86), rgba(14, 22, 42, 0.7));
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

section+section {
  margin-top: 3rem;
}

header {
  background: rgba(11, 18, 36, 0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  color: var(--text-light);
  flex-direction: row-reverse;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  font-size: 0.96rem;
  flex-direction: row-reverse;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--text-light);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
  left: 20%;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  color: var(--text-light);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.hero-text p {
  color: rgba(248, 249, 255, 0.82);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 1.25rem 0 0.5rem;
}

.hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  background: var(--primary);
  color: var(--text-light);
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

.hero-cta:hover {
  transform: translateY(-2px);
}

.pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--primary-dark);
  color: var(--text-light);
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pill.solid {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.24);
}

.tag-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tag {
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2.1rem;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  position: relative;
  overflow: hidden;
}

.glass-card h2 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(138, 165, 255, 0.1), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(107, 126, 219, 0.12), transparent 25%);
  pointer-events: none;
}

.grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(138, 165, 255, 0.35);
  box-shadow: 0 12px 28px rgba(12, 20, 40, 0.16);
}

.stat-card strong {
  font-size: 1.6rem;
  color: var(--primary-dark);
  display: block;
}

.stat-card span {
  color: rgba(21, 27, 42, 0.7);
}

.list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.list li::before {
  content: "•";
  color: var(--primary-dark);
  font-size: 1.4rem;
  line-height: 1;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(131, 152, 195, 0.15);
  color: var(--text-dark);
  transition: background 0.2s ease;
}

.contact-link span:last-child {
  font-weight: 600;
}

.contact-link:hover {
  background: rgba(131, 152, 195, 0.28);
}

.journal-entry {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(99, 110, 134, 0.4);
}

.journal-entry:not(:last-child) {
  margin-bottom: 1.5rem;
}

.journal-entry time {
  display: block;
  font-size: 0.8rem;
  color: rgba(38, 48, 74, 0.7);
  margin-bottom: 0.4rem;
}

.journal-entry h3 {
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
}

.rating-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(31, 37, 51, 0.85);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.rating-card .stars {
  color: #ffd166;
  letter-spacing: 0.15rem;
}

.footer {
  text-align: center;
  color: rgba(248, 249, 255, 0.65);
  padding: 2rem;
  font-size: 0.9rem;
}

.swiper-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 2rem;
}

.swiper-wrapper {
  display: flex;
  column-gap: 1.5rem;
  transition: transform 0.4s ease;
  will-change: transform;
  padding-inline: 0.75rem;
}

.swiper-slide {
  flex: 0 0 100%;
  min-width: 100%;
  flex-shrink: 0;
}

.swiper-slide .glass-card,
.swiper-slide .rating-card {
  border-radius: 20px;
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swiper-slide .glass-card:hover,
.swiper-slide .rating-card:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 35px rgba(16, 25, 44, 0.2);
}

.swiper-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.swiper-btn {
  background: var(--primary);
  color: var(--text-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.swiper-btn:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.swiper-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: scale(1);
}

.swiper-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.swiper-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(131, 152, 195, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.swiper-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(131, 152, 195, 0.2);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-dark);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(131, 152, 195, 0.4);
  transform: rotate(90deg);
}

.modal-content h2 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-dark);
  color: var(--text-light);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-primary-light {
  background: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow);
}

.btn-primary-light:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
}

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.5rem;
  margin-top: 1.5rem;
}

.schedule-table th,
.schedule-table td {
  padding: 1rem;
  text-align: center;
  border-radius: 10px;
}

.schedule-table th {
  background: var(--primary-dark);
  color: var(--text-light);
  font-weight: 600;
}

.schedule-table td {
  background: rgba(131, 152, 195, 0.15);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.schedule-table td:hover:not(.booked) {
  background: rgba(131, 152, 195, 0.3);
  transform: scale(1.05);
}

.schedule-table td.booked {
  background: rgba(200, 100, 100, 0.3);
  color: rgba(100, 50, 50, 0.8);
  cursor: not-allowed;
  position: relative;
}

.schedule-table td.booked::after {
  content: "محجوز";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: 600;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.glass-card.feature-card--compact {
  padding: 1.3rem 1.6rem;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(131, 152, 195, 0.1), transparent);
  border-radius: 50%;
  transition: all 0.5s ease;
}

.feature-card:hover::before {
  top: -30%;
  right: -30%;
}

.section-title {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.01em;
}

.section-subtitle {
  text-align: center;
  color: rgba(248, 249, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.callout {
  padding: 1rem 1.25rem;
  background: rgba(138, 165, 255, 0.14);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page {
    padding: 2.5rem 1.5rem 3rem;
  }

  .modal-content {
    padding: 2rem 1.5rem;
  }

  .schedule-table {
    font-size: 0.85rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.7rem 0.5rem;
  }

  .swiper-slide {
    min-width: 100%;
  }
}

#openAboutModalLink {
  color: var(--primary);
}
#openAboutModalLink:hover {
  color: #ffffff;
}

.small-card {
  align-self: start;
}