@font-face {
  font-family: 'Alegreya Sans SC';
  src: url('../fonts/AlegreyaSansSC-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #0c2e60;
  --secondary-color: #255F3E;
  --text-color: #333;
  --light-color: #f9f9f9;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --main-font: 'Alegreya Sans SC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--main-font);
}

body {
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.language-toggle {
  display: flex;
  align-items: center;
}

.language-toggle button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: 10px;
  font-size: 0.9rem;
  padding: 5px 10px;
}

.language-toggle button.active {
  background-color: var(--secondary-color);
  border-radius: 4px;
}

/* Hero Section */
.hero {
  height: 600px;
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 80%;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Main Content */
.main-content {
  padding: 4rem 0;
  background-image: url('../images/background.webp?v=1');
}

.main-message {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.main-message h2 {
  font-size: 2rem;
  color: var(--light-color);
  margin-bottom: 1rem;
}

.main-message p {
  font-size: 1.1rem;
  color: var(--light-color);
}

/* Form Section */
.form-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(12, 46, 96, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  text-align: center;
}

.btn-submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: #0a2248;
}

/* Tooltip Styles */
.tooltip-container {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
}

.info-icon {
  color: var(--primary-color);
  cursor: pointer;
}

.tooltip-text {
  visibility: hidden;
  width: 240px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -120px;
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: normal; /* Reset bold from label */
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Testimonials Section */
.testimonials {
  padding: 4rem 0;
  background-color: #f2f2f2;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  transition: transform 0.3s;
}

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

.testimonial-text {
  margin-bottom: 1rem;
  font-style: italic;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.author-info div {
  margin-bottom: 0.2rem;
  color: var(--primary-color);
  font-weight: bold;
}

.author-info p {
  font-size: 0.9rem;
  color: #666;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-content p {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
}

/* RTL Styling for Arabic */
.rtl {
  direction: rtl;
  text-align: right;
}

.rtl .language-toggle button {
    margin-left: 0;
    margin-right: 10px;
}

.rtl .tooltip-container {
    margin-left: 0;
    margin-right: 5px;
}

.rtl .testimonial-author {
  flex-direction: row-reverse;
}

.rtl .testimonial-photo {
  margin-right: 0;
  margin-left: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 1.1rem;
  }
}

.header-branding {
  display: flex;
  align-items: center;
}

.header-branding img {
  height: 44px;
  margin-right: 10px;
  margin-left: 10px;
}