/* Homepage-specific styles for Diraya */

/* Base */
html,
body {
  height: 100%;
}

body {
  font-family: 'Tajawal', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Page sections */
header,
footer {
  text-align: right;
}

/* Navbar (RTL alignment and spacing) */
.navbar-nav {
  margin-left: 0 !important;
  margin-right: auto !important;
  direction: rtl;
}

.navbar-dark .navbar-nav .nav-link {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.navbar-nav .nav-item {
  text-align: right;
}

/* Brand */
.brand-logo {
  height: 40px;
  margin-left: 8px;
}

.brand-title {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

/* Dropdowns */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.dropdown-menu {
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  padding: 0.5rem 0;
  background-color: #fff;
  min-width: 200px;
}

.dropdown-item {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  color: #333;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(46, 137, 70, 0.1);
  color: rgb(46, 137, 70);
  padding-left: 1.3rem;
}

/* Navbar dropdown – RTL alignment and mobile behavior */
.navbar .dropdown-menu { right: 0; left: auto; text-align: center; }

/* Desktop: keep default alignment */

/* Mobile: make dropdown full-width and readable */


/* Feature icon helper (from template) */
.feature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  font-size: 1.5rem;
}

/* Buttons (brand color) */
.btn-primary {
  /* Override Bootstrap button CSS variables to prevent blue fallback */
  --bs-btn-bg: #2e8946;
  --bs-btn-border-color: #2e8946;
  --bs-btn-hover-bg: #256e38;
  --bs-btn-hover-border-color: #256e38;
  --bs-btn-active-bg: #1f5a2c;
  --bs-btn-active-border-color: #1f5a2c;
  --bs-btn-disabled-bg: #2e8946;
  --bs-btn-disabled-border-color: #2e8946;
  --bs-btn-focus-shadow-rgb: 46,137,70;
  background-color: #2e8946;
  border-color: #2e8946;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #256e38;
  border-color: #256e38;
}

/* Pressed/active state (distinct green) */
.btn-primary:active,
.btn-primary.active,
.btn-check:checked + .btn.btn-primary,
.btn-primary.show {
  background-color: #1f5a2c;
  border-color: #1f5a2c;
}

.btn-primary:active:focus,
.btn-primary.active:focus,
.btn-check:checked + .btn.btn-primary:focus,
.btn-primary.show:focus {
  box-shadow: 0 0 0 0.25rem rgba(46, 137, 70, 0.25);
}

/* Footer */
footer a.link-light:hover {
  opacity: 0.85;
}

/* Make the four feature icons green instead of blue */
.bg-primary { background-color: #2e8946 !important; }

/* Typography tweaks for Arabic readability */
h1.display-5 { font-weight: 800; letter-spacing: 0.2px; }
h2, .h2 { font-weight: 700; }
p, .lead { line-height: 1.9; }
body { font-size: 1.05rem; }

.service-img {
  width: 600px !important;
  height: 400px !important;
  object-fit: cover; /* keeps aspect ratio while cropping */
}


