/* ============ HEADER ============= */
header {
  height: 60vh;
  background: url("./images/mge 3.jpg") no-repeat center center/cover;
  background-attachment: fixed;
  background-size: cover;
  position: relative;
}

header h1 {
  font-size: 13rem;
  color: white;
  font-family: "Playfair Display", serif;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin: auto;
  width: fit-content;
}

/* ============ SECTION IMAGE ============= */
.transition-image {
  height: 50vh;
  background: url("./images/mge 4.jpg") no-repeat center center;
  background-attachment: fixed;
  background-size: cover;
}

section {
  padding: 4rem 2rem;
}

.story {
  background: url("./images/mge\ 6.png") no-repeat center center/cover;
  background-attachment: fixed;
  background-size: cover;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem;
}

.story-left,
.story-right {
  flex: 1 1 150px;
  max-width: 400px;
}

.story-left h2 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.story-left .subtitle {
  color: #aaa;
  font-size: 0.9rem;
}

.story-center {
  flex: 1 1 150px;
  display: flex;
  justify-content: center;
}

.story-center img {
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
}

.story-right p {
  line-height: 1.6;
  font-size: 1rem;
  color: #aaa;
}

.mission {
  background-color: #000;
  color: white;
  padding: 4rem 2rem;
  text-align: left;
}

.mission h2 {
  font-size: 2.8rem;
  max-width: 950px;
  margin: 0 auto 2rem auto;
  font-family: "Playfair Display", serif;
  line-height: 1.6;
  text-align: left;
}

.mission-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: left;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.mission-content img {
  max-width: 400px;
  border-radius: 20px;
}

.mission-text {
  flex: 1;
  min-width: 300px;
}

.mission-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}

.mission-text p {
  line-height: 1.8;
  font-size: 1rem;
  color: #aaa;
}

.values-parallax {
  background: url("./images/mge\ 5.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  height: 75vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.values-parallax .overlay {
  color: white;
  max-width: 900px;
  padding: 2rem;
  border-radius: 10px;
}

.dash {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1rem;
  line-height: 0.5;
}

.values-parallax h1 {
  font-size: 2.5rem;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
}

.values-parallax p {
  font-size: 1.1rem;
  line-height: 1.9;
}

.benefits-section {
  background-color: #1f1f1f;
  padding: 6rem 1rem;
  color: white;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.benefits-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.benefit {
  flex: 1 1 250px;
  max-width: 300px;
  text-align: left;
}

.benefit i {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
  display: inline-block;
}

.benefit h4 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.benefit p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
}

.benefit {
  text-align: center;
}


.overlay button {
  background-color: #e91e63;
  color: white;
  border: none;
  padding: 0.75rem 2.5rem;
  font-size: 1.2rem;
  margin-top: 2rem;
  cursor: pointer;
  border-radius: 2px;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #000;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}

.search-container {
  display: flex;
  align-items: center;
  width: 350px;
  height: 50px;
  padding: 1rem;
  gap: 0.5rem;
  background-color: #2e2e2e;
  border-radius: 8px;
  margin: auto;
}

.search-container input {
  width: 100%;
  height: 100%;
  padding-left: 3rem;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  font-size: 1rem;
  outline: none;
}

.search-container i {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

/* ------------------------------------------------------reg page ---------------------------------------------------- */

/* كل التنسيقات خاصة فقط بصفحة تسجيل الدخول والتسجيل */

.auth-page {
  margin: 0;
  padding: 0;
  background: #0e0d1c;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-register-page {
  max-width: 1200px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  height: 90vh;
}

.image-slider {
  flex: 1;
  position: relative;
  background: #222;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.back-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  text-decoration: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  z-index: 10;
  transition: background 0.3s ease;
}

.back-btn:hover {
  /* background: rgba(255, 255, 255, 0.2); */
  opacity: 0.8;
}

.form-area {
  flex: 1;
  background: #1a182a;
  padding: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-wrapper {
  width: 100%;
  max-width: 400px;
  position: relative;
}

.form-panel {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(60px) scale(0.92);
  transition: all 0.5s ease-in-out;
  z-index: 0;
}

.form-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  position: relative;
  z-index: 1;
}

.form-panel h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: #eee;
  font-size: 15px;
}

.image-upload {
  text-align: center;
}

#preview {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  display: none;
  margin: auto;
  margin-bottom: 10px;
  border: 3px solid #6a5acd;
}

.upload-btn {
  background-color: #6a5acd;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.upload-btn:hover {
  background-color: #483d8b;
}

#photo {
  display: none;
}

.btnn {
  width: 100%;
  padding: 12px;
  background: #6a5acd;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btnn:hover {
  background: #483d8b;
}

.error-message {
  color: red;
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
}

.invalid {
  border-color: red !important;
}

.form-error {
  margin-bottom: 10px;
  color: red;
  font-weight: bold;
  text-align: center;
}

.toggle-text {
  text-align: center;
  color: #aaa;
  margin-top: 15px;
}

.toggle-text span {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}

.toggle-text span:hover {
  color: #e91e63;
}

.image-slider,
.form-area {
  width: 100%;
  min-height: 400px;
}

/* ----------------------------------------------- contact page --------------------------------------------------------- */

.contact-section {
  background-color: #1e1e1e;
  color: white;
  padding: 100px 30px;
  font-family: "Open Sans", sans-serif;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1250px;
  margin: 0 auto;
  gap: 40px;
}

.contact-left {
  flex: 1 1 400px;
}

.contact-left h2 {
  font-size: 3rem;
  font-family: "Playfair Display", serif;
  margin-bottom: 40px;
}

.contact-left p {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 30px;
}

.contact-left .dash {
  width: 50px;
  height: 3px;
  background-color: white;
  margin: 20px 0;
  border: none;
}

.info-block {
  margin-bottom: 20px;
}

.info-block h4 {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.info-block p {
  font-size: 1.2rem;
  color: white;
}

.contact-right {
  flex: 1 1 400px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 30px;
  border: none;
  border-bottom: 1px solid #555;
  background: transparent;
  color: white;
  font-size: 1rem;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777;
}

.contact-form button {
  background-color: var(--defaltColor);
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  opacity: 0.7;
}

#successMessage {
  display: none;
  color: #aaa;
  font-size: 1.2rem;
  text-align: center;
  padding-top: 40px;
}

.contact-left,
.contact-right {
  width: 100%;
}
