:root {
  --color-primary: #414042;
  --color-secondary: #6ab4e3;
  --color-text: #333333;
  --color-background: #ffffff;
  --color-muted: #f4f4f4;
  --color-border: #dddddd;
  --color-whatapp: #25D366;
  --font-family-base: 'Cairo', sans-serif;
  --btn-radius: 8px;
  --transition-speed: 0.3s;
  --swiper-navigation-size: 48px;
  --swiper-pagination-bullet-size: 12px;
  --swiper-pagination-bullet-horizontal-gap: 6px;
  --slide-min-height: 400px;
  --slide-border-radius: 12px;
  --slide-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --slide-content-padding: 2rem;
  --arrow-color-rgb: 59, 130, 246;
  --arrow-icon-color: white;
  --bullet-color: #ccc;
  --bullet-active-color: #000;
  --bullet-text-color: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

button, .btn {
  border-radius: var(--btn-radius);
  padding: 0.6rem 1.2rem;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.whatsapp {
    color: var(--color-whatapp) !important;;
}
.text-secondary {
  color: var(--color-secondary) !important;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: #2e2e2f;
}

.btn-accent {
  background-color: var(--color-secondary);
  color: white;
}

.btn-accent:hover {
  background-color: #51a3dc;
}

.btn-danger {
  background-color: #a30000;
  color: white;
}
.btn-danger:hover {
  background-color: #c70808;
}
.lang-switch {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.lang-switch .btn {
  min-width: 100px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.navbar {
  background-color: var(--color-primary);
  color: white;
  padding: 1rem 2rem;
}

.navbar a {
  color: white;
  margin-right: 1rem;
  text-decoration: none;
  transition: color var(--transition-speed);
}

.navbar a:hover {
  color: var(--color-secondary);
}

.navbar .nav-link {
  position: relative;
  transition: color var(--transition-speed);
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: all var(--transition-speed) ease-in-out;
  transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
  width: 100%;
}

#langDropdown + .dropdown-menu a {
  color: var(--color-text);
  background-color: white;
}

#langDropdown + .dropdown-menu a:hover {
  background-color: var(--color-secondary);
  color: white;
}

.dropdown-menu {
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--btn-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  min-width: auto;
  width: max-content;
  z-index: 1050;
  white-space: nowrap;
}

.dropdown-menu .dropdown-item {
  color: white;
  background-color: transparent;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  min-width: auto !important;
  width: max-content;
  white-space: nowrap;
  top: 0;
  left: 100%;
  margin-top: -1px;
  border-radius: var(--btn-radius);
  background-color: var(--color-primary);
  display: none;
}

[dir="rtl"] .dropdown-submenu > .dropdown-menu {
  left: auto;
  right: 100%;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Completely hide any ::after from dropdowns */
.dropdown-toggle::after {
  content: none !important;
  display: none !important;
}

/* Show arrow only for dropdowns that are submenus on hover or focus */
.dropdown-submenu > .dropdown-toggle.show-arrow::after {
  content: "";
  display: inline-block;
  border: solid white;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  margin-inline-start: 0.5rem;
  vertical-align: middle;
}

/* Show custom arrow only on hover/focus in submenu */
.dropdown-submenu:hover > .dropdown-toggle::after,
.dropdown-submenu > .dropdown-toggle:focus::after {
  content: "";
  display: inline-block !important;
  border: solid white;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  margin-inline-start: 0.5rem;
  vertical-align: middle;
}

[dir="rtl"] .dropdown-submenu > .dropdown-toggle.show-arrow::after {
  transform: rotate(-135deg);
  margin-inline-end: 0.5rem;
  margin-inline-start: 0;
}

[dir="rtl"] .dropdown-submenu:hover > .dropdown-toggle::after,
[dir="rtl"] .dropdown-submenu > .dropdown-toggle:focus::after {
  transform: rotate(-135deg);
  margin-inline-end: 0.5rem;
  margin-inline-start: 0;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background-color: var(--color-background);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: box-shadow var(--transition-speed);
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-body {
  overflow-x: auto;
}

.card .btn-primary {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card .btn-primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: 0.6rem 1rem;
  font-family: var(--font-family-base);
  width: 100%;
  transition: border-color var(--transition-speed);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-secondary);
  outline: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th, td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  text-align: left;
}

th {
  background-color: var(--color-primary);
  color: white;
}

tr:nth-child(even) {
  background-color: var(--color-muted);
}

.alert {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
}

.page-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.page-content img,
.page-content iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn i {
  margin-inline-start: 0.5rem;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--color-secondary);
  color: white;
}

.logo-img {
  height: 50px;
  width: auto;
}

.footer {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  padding: 3rem 0;
}

.footer h5 {
  color: var(--color-secondary);
  font-weight: bold;
  font-size: 1.2rem;
}

.footer a,
.footer .list-unstyled li a {
  color: white;
  text-decoration: none;
  transition: color var(--transition-speed);
}

.footer a:hover,
.footer .list-unstyled li a:hover {
  color: var(--color-secondary) !important;
}

.footer .social-icons a {
  color: white;
  font-size: 1.25rem;
  margin-inline-end: 0.75rem;
  transition: color var(--transition-speed);
}

.footer .social-icons a:hover {
  color: var(--color-secondary) !important;
}

.ltr .highlight-brand,
.highlight-brand {
  color: var(--color-secondary);
  font-weight: bold;
}

.ltr,
.ltr .banner-content {
  text-align: left;
}

.service-feature {
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
}

.service-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-lg {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.section-divider {
  height: 3px;
  width: 100px;
  background: var(--color-secondary);
  margin: 1.5rem auto;
}

.circle-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.circle-icon:hover {
  transform: rotate(360deg);
}

.material-symbols-outlined,
.material-icons {
  font-size: 20rem;
  line-height: 1;
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
}

iconify-icon {
  color: var(--color-secondary);
}

.contact-form {
  --form-border-color: var(--color-secondary);
}

.contact-form .form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.contact-form .form-control,
.contact-form .form-select,
.contact-form textarea {
  border: 2px solid var(--form-border-color);
  border-radius: 8px;
  min-height: 46px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(106, 180, 227, 0.25);
}

.contact-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn {
  padding: 0.6rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 100px;
  height: 180px;
  cursor: pointer;
  z-index: 9999;
}


#batteryIcon {
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

.card.text-center:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.card .card-body i,
.card .card-body svg,
.card .card-body .fa,
.card .card-body .fas,
.card .card-body .material-icons {
  color: var(--color-secondary) !important;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card .card-body i.fas {
  font-size: 2.5rem !important;
}


.contact-info-section,
.map-section {
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  padding: 60px 0;
  border-top: 1px solid #ddd;
}

.contact-info-section h2,
.map-section h2 {
  color: var(--color-primary, #414042);
}

.contact-info-section p,
.map-section p {
  color: #555;
  font-size: 1rem;
}

.contact-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-card .icon {
  color: var(--color-secondary, #6ab4e3);
  margin-bottom: 16px;
}

.contact-card i {
  font-size: 2rem;
}

.contact-card h5 {
  color: var(--color-primary, #414042);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.contact-card p,
.contact-card a {
  color: #555;
  font-size: 0.95rem;
}

.contact-card a:hover {
  color: var(--color-secondary, #6ab4e3);
  text-decoration: underline;
}

.map-section iframe,
.map-section #mapPreview,
.map-section #mapCanvas {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  background-color: #e9ecef;
}

input[type="date"],
input[type="datetime-local"] {
  direction: ltr; /* Ensure proper interaction */
  text-align: right; /* Keeps date readable */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 1.5rem;
  position: relative;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 1rem;
}

/*video.js*/
/* Make control bar taller */
.video-js .vjs-control-bar {
  height: 48px !important;
  align-items: center !important;
  padding: 0 !important;
}

/* Make progress bar fill the control bar */
.video-js .vjs-progress-control {
  flex: 1 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* Remove radius and make it full height */
.video-js .vjs-progress-holder {
  height: 100% !important;
  background-color: #e0e0e0 !important;
  border-radius: 0 !important;
}

/* Fill progress with secondary color */
.video-js .vjs-play-progress {
  background-color: var(--color-secondary) !important;
  height: 100% !important;
  border-radius: 0 !important;
}

/* Hide circular knob */
.video-js .vjs-play-progress::before {
  display: none !important;
}

.video-js .vjs-control:hover {
  color: var(--color-secondary) !important;
}

.video-js {
  width: 100% !important;
  height: 400px !important;
  max-height: 500px;
  margin: 0 auto;
  display: block;
  background-color: #000; /* Black background for letterboxing */
  border-radius: 8px;     /* Rounded corners (optional) */
  overflow: hidden;
}

/* Apply object-fit to the <video> element inside */
.video-js video {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

/* Fullscreen mode: ensure cover remains */
.video-js.vjs-fullscreen video {
  object-fit: cover !important;
}

#compareBar a.btn {
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .contact-card {
    padding: 20px 15px;
  }

  .contact-card h5 {
    font-size: 1.1rem;
  }

  .contact-card i {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {

section.bg-light {
  padding-top: 1rem;
  padding-bottom: 1rem;
}


@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #121212;
    --color-text: #f0f0f0;
    --color-border: #444;
    --color-muted: #1e1e1e;
  }
}