:root {
  --primary-color: #199e9a;
  --secondary-color: #6691cc;
  --margin-top-section: 3rem;
  --gray-color: #616161;
}

* {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
}

html,
body {
  overflow-x: hidden;
}

/* ========== HERO (header) ========== */
.here-section-layout {
  position: relative; /* مهم للـ overlay */
  margin-top: var(--margin-top-section);
  min-height: 70vh;
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url("../../images/healthcareimages/senior-couple-holding-hands.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.here-section-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent; /* عندك بالفعل جراديانت في background-image */
}

/* نص الهيرو */
.here-section-layout .container .col-md-12,
.here-section-layout .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.here-section-layout h2 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 3rem;
  text-align: center;
}

.here-section-layout p {
  color: #fff;
  text-align: center;
  font-size: 1rem;
}

/* ========== CONTENT SECTION ========== */
.section-layout {
  padding: 2rem;
  margin-top: 2rem;
}

.section-layout .row .col-md-6 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
}

.section-layout .row .col-md-6 h2 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 2rem;
}

.section-layout .row .col-md-6 h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  margin-top: 5px;
}

.section-layout .row .col-md-6 p,
.section-layout .row .col-md-6 ul li {
  color: var(--gray-color);
  font-size: 1rem;
}

/* ========== NAVBAR HOVER/SCROLL ========== */
.home-page .hero-section nav .navbar-collapse .navbar-nav .nav-item {
  position: relative;
}
.home-page .hero-section nav .navbar-collapse .navbar-nav .nav-item a {
  color: #000;
}

@media (max-width: 990px) {
  .hero-section-content {
    margin-top: 4rem !important;
  }
}

.home-page .hero-section nav .navbar-collapse .nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
#navbarSupportedContent .navbar-nav .nav-item:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
#navbarSupportedContent .navbar-nav .nav-item:hover .nav-link {
  color: var(--primary-color);
}

.home-page .hero-section nav {
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.home-page .hero-section nav.scrolled {
  background-color: #fff;
  box-shadow: 0 4px 12px #0000001a;
}

#navbarSupportedContent .nav-contact .apply-jop-btn {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 16px;
}
#navbarSupportedContent .nav-contact .contact-phone {
  font-size: 16px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ========== CONTACT US ========== */
.contact-us {
  margin-top: var(--margin-top-section);
  margin-bottom: var(--margin-top-section);
}

.contact-us .heading h2 {
  text-align: center;
  color: var(--primary-color);
  font-weight: 700;
  font-family: "Inter", sans-serif;
}
.contact-us .heading p {
  text-align: center;
  color: var(--gray-color); /* كان مكتوبة grag-color */
}

.form-contact-us form textarea,
.form-contact-us form input {
  box-shadow: none;
}

.form-contact-us form textarea:focus,
.form-contact-us form input:focus {
  box-shadow: none;
  border: 1px solid var(--primary-color);
}

.form-contact-us form button {
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  outline: none;
  padding: 10px 30px;
  border-radius: 150px;
  border: 1px solid transparent;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}
.form-contact-us form button:hover {
  background-color: #fff;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}
@media (max-width: 990px) {
  .form-contact-us form {
    width: 100%;
    padding: 10px;
  }
}

/* ========== FOOTER ========== */
footer {
  background-color: #f9f9ff;
  padding: 40px 0 20px;
  color: #333;
}
footer h5 {
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
  color: var(--primary-color);
}
footer h5::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  margin-top: 5px;
}
footer ul {
  list-style: none;
  padding: 0;
}
footer ul li {
  margin-bottom: 8px;
}
footer ul li a {
  text-decoration: none;
  color: #333;
  transition: 0.3s;
  font-size: 15px;
}
footer ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid #ddd;
  margin-top: 20px;
  padding-top: 15px;
  text-align: center;
  font-size: 14px;
  color: #666;
}
.social-icons a {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  text-align: center;
  line-height: 36px;
  border-radius: 50%;
  background: #f1f1f1;
  color: #333;
  transition: 0.3s;
}
.social-icons a:hover {
  background: var(--primary-color);
  color: #fff;
}
.footer-logo img {
  max-width: 120px;
}
.subscribe-box input {
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 5px 0 0 5px;
  outline: none;
}
.subscribe-box button {
  border: none;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 15px;
  border-radius: 0 5px 5px 0;
}
/* زر اللغة: دائرة بنفس ستايل الأيقونات */
.btn-lang {
  width: 44px;
  height: 44px;
  border: 0;
  outline: none;
  border-radius: 50%;
  background: var(--main-color, #199e9a);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-lang .fa-globe {
  font-size: 16px;
  line-height: 1;
}
.btn-lang:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.btn-lang:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* البادچ الصغيرة (تعرض EN/ع) */
.badge-lang {
  position: absolute;
  top: -6px;
  right: -6px;
  height: 18px;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--main-color, #199e9a);
  border: 2px solid #fff;
  font-weight: 700;
  font-size: 10px;
  line-height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* لما الصفحة RTL خليه على اليسار عشان يتوازن بصريًا */
html[dir="rtl"] .badge-lang {
  left: -6px;
  right: auto;
}
