/*@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');*/

:root {
  --primary: #039bbc;
  --secondary: #03a1c3;
  --text-color: #000;
  --bg: #fff;
  --font: 'Tajawal', sans-serif;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: var(--font);
  margin: 0;
  background: var(--bg);
  color: var(--text-color);
  line-height: 1.4;
}

/* Header */
header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  background: white;
  border-bottom: 4px solid #039bbc;
  z-index: 1000;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1em 3em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo img {
  height: 80px;
  width: auto;
}

header nav a {
  color: var(--text-color, #333);
  margin-right: 1.5em; /* RTL flip */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

header nav a:hover {
  color: var(--primary, #039bbc);
}

    nav img.language-icon {
      vertical-align: middle;
      margin-right: 5px;
    }

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('images/hero1.jpg');
  background-size: cover;
  background-position: center 2%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  direction: rtl;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  padding: 2em;
  text-align: center;
}

/* Text Styling */
.hero h1 {
  font-size: 4em;
  margin-bottom: 0.5em;
  color: #fff;
}

.hero p {
  font-size: 1.6em;
  margin-bottom: 1.5em;
  color: #ddd;
}

.hero h1,
.hero p {
  margin-left: 0;
  margin-right: 0;
}
/* Buttons */
/*
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
}
*/

.cta-buttons a {
  display: inline-block;
  background-color: #039bbc;
  color: white;
  padding: 0.75em 1.5em;
  margin: 0.5em;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-buttons a:hover {
  background-color: #027c99;
}

/* Sections */
section {
  padding: 3em 2em;
  max-width: 1200px;
  margin: auto;
  scroll-margin-top: 80px;
}

section h2 {
  font-size: 2em;
  color: var(--primary);
  margin-bottom: 1em;
  text-align: right;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
}

.card {
  flex: 1 1 300px;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 1em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  text-align: right;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0;
}

.card p {
  margin-top: 0.5em;
}

.video-embed,
.map-embed {
  text-align: center;
  margin-top: 2em;
}

.video-embed iframe,
.map-embed iframe {
  max-width: 100%;
  border-radius: 10px;
}

footer {
  background: #f1f1f1;
  padding: 3em 2em;
  text-align: center;
  font-size: 0.9em;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

.newsletter input {
  padding: 0.6em;
  margin: 0.5em;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.newsletter button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.6em 1em;
  border-radius: 6px;
}

.spacer {
  height: 2em;
}

/* -------------------------------
   Responsive (Mobile) - RTL
-------------------------------- */
@media (max-width: 768px) {
  * {
    box-sizing: border-box;
  }

  body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
  }

  header {
    width: 100%;
    padding: 1em 1em;
  }

  header .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  header .logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  header .logo img {
    height: 80px;
  }

  header nav {
    display: none; /* Hide nav on mobile */
  }

  .hero {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    padding: 3em 1.5em 3em;
    text-align: center;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 2em;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1em;
    margin-bottom: 1.5em;
    color: #ddd;
  }

  .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  section {
    padding: 2em 1.2em;
  }

  section h2 {
    font-size: 1.5em;
    text-align: center;
  }

  .grid {
    flex-direction: column;
  }

  .grid-2 {
    display: flex;
    flex-direction: column;
  }

  .card {
    flex: 1 1 100%;
    padding: 1.2em;
    text-align: right;
  }

  .card img {
    height: 180px;
  }

  .video-embed iframe,
  .map-embed iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  footer {
    padding: 2em 1em;
    text-align: center;
  }

  .newsletter input,
  .newsletter button {
    width: 100%;
    box-sizing: border-box;
    margin: 0.3em 0;
  }
}
