@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;1,100;1,300&display=swap");
/*
Dark Blue
RGB: (36, 103, 175)
HEX: #2467AF

Light Blue
RGB: (57, 154, 210)
HEX: #2467AF

Golden Yellow
RGB: (217, 180, 42)
HEX: #D9B42A*/
:root {
  --blue: #2467AF;
  --black: #2467AF;
  --yellow: #D9B42A;
}

* {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none !important;
  outline: none !important;
  text-decoration: none !important;
  font-weight: 400;
  transition: all 0.2s linear;
}

*::selection {
  background: var(--black);
  color: #fff;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

section {
  overflow: hidden;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 5rem;
  width: 20rem;
  background: var(--blue);
  color: #fff;
  font-size: 1.7rem;
  border-radius: 0.5rem;
  cursor: pointer;
  position: relative;
  z-index: 0;
  overflow: hidden;
  margin: 1rem auto 0;
  transition: background 0.3s ease;
}

.button::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--black);
  z-index: -1;
  transition: 0.2s linear;
}

.button:hover:before {
  top: 0%;
}

.button:hover {
  box-shadow: 0.1rem 0.5rem var(--yellow), 0 0.3rem 0.5rem rgba(0, 0, 0, 0.3);
}
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 2rem 1rem;
  z-index: 1000;
}

.header-active {
  background: #fff;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header a {
  color: var(--black);
}

header a:hover {
  color: var(--blue);
}

header .container .logo {
  font-size: 3rem;
}

header .container .logo span {
  color: var(--blue);
}

header .nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

header .nav ul li {
  margin: 0 2rem;
}

header .nav ul li a {
  font-size: 2rem;
}

header .fa-bars {
  font-size: 3.5rem;
  color: var(--blue);
  cursor: pointer;
  display: none;
}

.home .content h1 {
  font-size: 5rem;
  color: var(--black);
}

.home .content h1 span {
  color: var(--blue);
}

.home .content h3 {
  font-size: 4rem;
  color: var(--black);
}

.about {
  background: #eee;
}

.about .content .box {
  margin: 3rem 0;
}

.about .content .box h3 {
  font-size: 2.5rem;
  color: var(--black);
}

.about .content .box h3 i {
  padding: 0 1rem;
  color: var(--blue);
}

.about .content .box p {
  font-size: 1.7rem;
  padding-left: 6rem;
  color: #666;
}

.facility {
  min-height: 100vh;
}

.facility .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 3rem;
}

.facility .box-container .box {
  height: 20rem;
  width: 30rem;
  margin: 0.3rem;
  overflow: hidden;
}

.facility .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.facility .box-container .box:hover img {
  transform: scale(1.3);
}

.review {
  background: url(../images/review-bg.jpg),
    linear-gradient(var(--black), var(--black)) no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

.review .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 5rem;
}

.review .box-container .box {
  background: #fff;
  width: 30rem;
  margin: 5rem 1rem;
  padding: 1.5rem;
  position: relative;
}

.review .box-container .box img {
  position: absolute;
  bottom: -7.5rem;
  left: -1rem;
  height: 5rem;
  width: 5rem;
  border-radius: 50%;
  object-fit: cover;
}

.review .box-container .box p {
  font-size: 1.4rem;
  color: var(--black);
}

.review .box-container .box h3 {
  text-align: end;
  color: var(--blue);
}

.review .box-container .box span {
  text-align: end;
  color: var(--black);
  display: block;
  font-size: 1.5rem;
}

.review .box-container .box::before {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0.4rem;
  height: 2rem;
  width: 2rem;
  background: #fff;
  transform: rotate(45deg);
}

.counter .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.counter .box-container .box {
  margin: 2rem 5rem;
  text-align: center;
}

.counter .box-container .box i {
  color: var(--blue);
  font-size: 5rem;
}

.counter .box-container .box span {
  color: var(--black);
  font-size: 3rem;
  display: block;
  padding: 1rem 0;
}

.counter .box-container .box h3 {
  color: #666;
}

.footer {
  background: var(--black);
}

.footer p {
  font-size: 1.5rem;
  color: #eee;
  padding: 1.5rem 0;
}

.footer .col-md-4 {
  padding: 3rem;

}

.footer .col-md-4:nth-child(1) a {
  font-size: 3rem;
  color: #fff;
}

.footer .col-md-4:nth-child(1) a span {
  color: var(--blue);
}

.footer a {
  font-size: 1.5rem;
  color: #ccc;
  display: block;
}

.footer h3 {
  color: #fff;
  font-size: 2rem;
}

.footer a:hover {
  color: white;
}


.footer .credit span {
  color: var(--blue);
}

::-webkit-scrollbar {
  width: 0.5rem;
}

::-webkit-scrollbar-track {
  background: #f9f9f9;
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 1rem;
}

header .fa-times {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  header .nav {
    position: fixed;
    top: -100rem;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    padding: 2rem;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1000;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  }

  header .nav.nav-toggle {
    top: 6rem; /* Adjust based on header height */
    opacity: 1;
  }

  header .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  header .nav ul li {
    margin: 0;
  }

  header .nav ul li a {
    font-size: 2.5rem;
    padding: 1rem 2rem;
    display: block;
    width: 100%;
    text-align: center;
  }

  header .fa-bars {
    display: block;
    font-size: 3rem;
    cursor: pointer;
    color: var(--blue);
    margin-left: auto;
  }

  header .fa-times {
    transform: rotate(180deg);
  }

  .language-switcher {
    margin-left: auto;
    margin-right: 1rem;
  }

  .dashboard-icon {
    margin-left: 1rem;
  }
}
.certificates {
  padding: 50px 0;
  background: #f9f9f9;
}

.certificates .box-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.certificates .box {
  flex: 1 1 calc(50% - 40px);
  max-width: 400px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.certificates .box:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.certificates .box i {
  font-size: 3rem;
  color: var(--blue);
  margin-bottom: 20px;
}

.certificates .birth i {
  color: #28a745;
}

.certificates .death i {
  color: #dc3545;
}

.certificates .box h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--black);
}

.certificates .box p {
  font-size: 1.6rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}
.language-switcher {
  position: relative;
  display: inline-block;
  margin-left: 20px;
}

.language-toggle {
  display: none;
}

.language-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 40px;
  cursor: pointer;
  background: linear-gradient(135deg, #399AD2, #2467AF);
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.language-label:hover {
  background: linear-gradient(135deg, #2467AF, #D9B42A);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.language-text {
  position: absolute;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.language-text.ar {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.language-text.en {
  opacity: 0;
  transform: translateY(20px) scale(0);
}

.language-toggle:checked + .language-label .language-text.ar {
  opacity: 0;
  transform: translateY(-20px) scale(0);
}

.language-toggle:checked + .language-label .language-text.en {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}
.certificates .box .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 5rem;
  width: 20rem;
  background: var(--blue);
  color: #fff;
  font-size: 1.7rem;
  border-radius: 0.5rem;
  cursor: pointer;
  position: relative;
  z-index: 0;
  overflow: hidden;
  margin: 1rem auto 0;
  transition: background 0.3s ease;
}

.certificates .box .button:hover {
  background: var(--black);
}

.certificates .box .button span {
  display: block;
  width: 100%;
  text-align: center;
}

.dashboard-icon {
  font-size: 24px;
  color: var(--blue);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s ease-in-out;
}

.dashboard-icon:hover {
  color: var(--black);
}
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.popup-overlay.active {
  display: flex;
  animation: fadeInBackground 0.5s forwards;
}

@keyframes fadeInBackground {
  from {
    background-color: rgba(0, 0, 0, 0);
  }
  to {
    background-color: rgba(0, 0, 0, 0.7);
  }
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(-100%);
  animation: slideDown 0.5s forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #007bff;
}

button[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #2467AF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}


.slider {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
}

.slider::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider-image.active {
  opacity: 1;
}
.contact {
  background-color: #eee;
}

.floating-group {
  margin-bottom: 2rem;
  position: relative;
}

.floating-group label {
  display: block;
  position: relative;
  color: #999;
  font-size: 1rem;
}

.floating-group label input,
.floating-group label textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background: #fff;
  transition: border-color 0.3s ease;
  outline: none;
  font-size: 1.7rem;
  color: var(--black);
}

.floating-group label textarea {
  height: 10rem;
  resize: none;
}

.floating-group label input::placeholder,
.floating-group label textarea::placeholder {
  opacity: 0;
}

.floating-group label span {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  background-color: #fff;
  padding: 0 0.25rem;
  pointer-events: none;
  font-size: 1.7rem;
}

.floating-group label input:focus + span,
.floating-group label input:not(:placeholder-shown) + span,
.floating-group label textarea:focus + span,
.floating-group label textarea:not(:placeholder-shown) + span {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 1.3rem;
  color: #007bff;
}

.contact form input.button {
  display: block;
  width: 20rem;
  margin: 2rem auto;
  padding: 0.75rem 1rem;
  font-size: 1.7rem;
  cursor: pointer;
  border: none;
  background: var(--blue);
  color: #fff;
  border-radius: 0.25rem;
  transition: background 0.3s ease;
}

.contact form input.button:hover {
  background: var(--black);
}

html[dir="rtl"] .floating-group label {
  text-align: right;
}

html[dir="rtl"] .floating-group label span {
  right: 1rem;
  left: auto;
}

html[dir="rtl"] .floating-group label input:focus + span,
html[dir="rtl"] .floating-group label input:not(:placeholder-shown) + span,
html[dir="rtl"] .floating-group label textarea:focus + span,
html[dir="rtl"] .floating-group label textarea:not(:placeholder-shown) + span {
  right: 0.75rem;
  left: auto;
}


.error {
  border-color: red !important;
}

.contact {
  background-color: #eee;
}

.floating-group {
  margin-bottom: 2rem;
  position: relative;
}

.floating-group label {
  display: block;
  position: relative;
  color: #999;
  font-size: 1rem;
}

.floating-group label input,
.floating-group label textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background: #fff;
  transition: border-color 0.3s ease;
  outline: none;
  font-size: 1.7rem;
  color: var(--black);
}

.floating-group label textarea {
  height: 10rem;
  resize: none;
}

.floating-group label input::placeholder,
.floating-group label textarea::placeholder {
  opacity: 0;
}

.floating-group label span {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  background-color: #fff;
  padding: 0 0.25rem;
  pointer-events: none;
  font-size: 1.7rem;
}

.floating-group label input:focus + span,
.floating-group label input:not(:placeholder-shown) + span,
.floating-group label textarea:focus + span,
.floating-group label textarea:not(:placeholder-shown) + span {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 1.3rem;
  color: #007bff;
}

.contact form input.button {
  display: block;
  width: 20rem;
  margin: 2rem auto;
  padding: 0.75rem 1rem;
  font-size: 1.7rem;
  cursor: pointer;
  border: none;
  background: var(--blue);
  color: #fff;
  border-radius: 0.25rem;
  transition: background 0.3s ease;
}

.contact form input.button:hover {
  background: var(--black);
}

html[dir="rtl"] .floating-group label {
  text-align: right;
}

html[dir="rtl"] .floating-group label span {
  right: 1rem;
  left: auto;
}

html[dir="rtl"] .floating-group label input:focus + span,
html[dir="rtl"] .floating-group label input:not(:placeholder-shown) + span,
html[dir="rtl"] .floating-group label textarea:focus + span,
html[dir="rtl"] .floating-group label textarea:not(:placeholder-shown) + span {
  right: 0.75rem;
  left: auto;
}

.error {
  border-color: red !important;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.popup-overlay.active {
  display: flex;
  animation: fadeInBackground 0.5s forwards;
}

.popup-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  width: 95%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(-100%);
  animation: slideDown 0.5s forwards;
}

.popup-content h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 24px;
  color: #333;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #007bff;
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid #ccc;
  font-size: 16px;
  outline: none;
  background-color: transparent;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  border-bottom-color: #007bff;
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
  color: #007bff;
}

.form-group .line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #007bff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.form-group input:focus ~ .line {
  transform: scaleX(1);
}

html[dir="rtl"] .form-group label {
  left: auto;
  right: 0;
  text-align: right;
}

html[dir="rtl"] .form-group input:focus + label,
html[dir="rtl"] .form-group input:not(:placeholder-shown) + label {
  left: auto;
  right: 0;
  top: 0;
  font-size: 12px;
  color: #007bff;
}

@keyframes fadeInBackground {
  from { background-color: rgba(0, 0, 0, 0); }
  to { background-color: rgba(0, 0, 0, 0.5); }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.heading {
  text-align: center;
  font-size: 4rem;
  font-weight: bold;
  margin: 3rem 0 2rem;
  padding: 1rem;
  color: var(--black);
  position: relative;
}

.heading span {
  color: var(--blue);
  display: block;
}

.heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--blue);
  margin: 1rem auto 0;
  border-radius: 2px;
}
.yemen-logo {
  width: 250px;
  height: 70px;
}

@media (max-width: 768px) {
  .yemen-logo {
    width: 100%;
    height: auto;
  }
}
/* تنسيق صندوق دليل المستخدم */
.user-guide-box {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
  border-left: 5px solid var(--blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.user-guide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.user-guide-content i {
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 10px;
}

.user-guide-content p {
  font-size: 1.6rem;
  color: #444;
  margin-bottom: 15px;
}

.user-guide-link {
  display: inline-block;
  background-color: white;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.user-guide-link:hover {
  background-color: var(--blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-guide-link i {
  margin-right: 8px;
  font-size: 1.4rem;
}

/* نافذة عرض الوثيقة المنبثقة */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: black;
}

.modal-actions {
  margin-top: 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .modal-content {
    margin: 25% auto;
    width: 90%;
  }

  .user-guide-link {
    padding: 8px 15px;
    font-size: 1.3rem;
  }
}