
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary:       #081B33;
  --secondary:     #0E2A47;
  --gold:          #D4AF37;
  --gold-light:    #E8C84A;
  --gold-dark:     #B8962E;
  --white:         #FFFFFF;
  --light-gray:    #F4F6F9;
  --mid-gray:      #8A9BB0;
  --dark-text:     #1A2F4A;
  --border-color:  rgba(212,175,55,0.2);
  --shadow-sm:     0 2px 12px rgba(8,27,51,0.08);
  --shadow-md:     0 8px 32px rgba(8,27,51,0.15);
  --shadow-lg:     0 20px 60px rgba(8,27,51,0.25);
  --shadow-gold:   0 8px 32px rgba(212,175,55,0.25);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --transition:    all 0.35s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; height: auto; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.font-playfair { font-family: 'Playfair Display', serif; }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--mid-gray);
  font-weight: 400;
  max-width: 600px;
}

.gold-text { color: var(--gold); }
.primary-text { color: var(--primary); }
.white-text { color: var(--white); }

.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 1rem 0;
}

.gold-divider.center { margin: 1rem auto; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 0.7rem 1.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  padding: 0.7rem 1.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

.section-pad { padding: 90px 0; overflow-x: hidden; }
.section-pad-sm { padding: 60px 0; overflow-x: hidden; }
.bg-primary-dark { background: var(--primary); }
.bg-secondary-dark { background: var(--secondary); }
.bg-light-gray { background: var(--light-gray); }

#mainNav {
  background: transparent;
  padding: 0;
  transition: var(--transition);
  z-index: 1050;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

#mainNav.scrolled {
  background: var(--primary) !important;
  box-shadow: 0 4px 30px rgba(8,27,51,0.4);
}

#mainNav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.brand-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.brand-icon::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1.5px solid rgba(8,27,51,0.3);
  border-radius: 6px;
  pointer-events: none;
  z-index: 1;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  z-index: 0;
}

.brand-text { line-height: 1.15; }

.brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 1.5px;
  font-family: 'Playfair Display', serif;
  display: block;
}

.brand-tagline {
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 1.5px;
  font-weight: 600;
  display: block;
  text-transform: uppercase;
}

#mainNav .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem !important;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--gold) !important;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { width: 70%; }

.lang-btn {
  background: rgba(212,175,55,0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Cairo', sans-serif;
}

.lang-btn:hover {
  background: var(--gold);
  color: var(--primary);
}

#hero {
  height: calc(90vh + 0.25cm);
  background: var(--primary);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,10,14,0.85) 0%, rgba(8,10,14,0.6) 50%, rgba(8,10,14,0.4) 100%);
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('./photo/خلفية.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(14,42,71,0.7) 0%, rgba(8,27,51,0.95) 70%);
  z-index: 0;
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: stretch;
}

.hero-left {
  padding: 120px 40px 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.hero-badge i { font-size: 0.9rem; }

.hero-heading-ar {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-sub-ar {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.9;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-center {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
}

.col-xl-4.col-lg-6.d-none.d-lg-flex.align-items-end.justify-content-center.pb-5 {
  height: 100%;
}

.col-xl-4.col-lg-6.d-none.d-lg-flex.align-items-end.justify-content-center.pb-5 .hero-main-image {
  min-height: 420px;
}

.hero-main-image {
  width: 100%;
  max-width: 560px;
  height: auto;
  background-image: url('./photo/خلفية.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 20px 60px rgba(212,175,55,0.15));
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero-right {
  background: rgba(14,42,71,0.6);
  backdrop-filter:blur(20px);
  padding: 100px 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-right::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(212,175,55,0.15);

  align-self: flex-start;
}

.hero-right-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.hero-right-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}

.hero-right-btn {
  display: inline-block;
  margin-bottom: 2rem;
  background: var(--secondary);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.hero-right-btn:hover {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
}

.tech-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tech-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: rgba(8,27,51,0.5);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.tech-icon-item:hover {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.4);
  transform: translateY(-3px);
}

.tech-icon-item i {
  font-size: 1.5rem;
  color: var(--gold);
}

.tech-icon-item span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.hero-stats {
  background: rgba(8,27,51,0.92);
  border-top: 1px solid rgba(212,175,55,0.2);
  position: relative;
  z-index: 2;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  border-right: 1px solid rgba(212,175,55,0.15);
  justify-content: center;
}

.stat-item:last-child { border-right: none; }

.stat-icon {
  width: 44px;
  height: 44px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i { font-size: 1.1rem; color: var(--gold); }

.stat-info { text-align: right; }

.stat-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.products-section { padding: 0; }


.product-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 260px;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.product-card:hover img { transform: scale(1.08); }

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,27,51,0.92) 0%, rgba(8,27,51,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px 20px;
  transition: var(--transition);
}

.product-card:hover .product-overlay {
  background: linear-gradient(to top, rgba(8,27,51,0.97) 0%, rgba(8,27,51,0.5) 60%, rgba(8,27,51,0.1) 100%);
}

.product-label {
  display: inline-block;
  background: var(--gold);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.product-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(8px);
}

.product-card:hover .product-btn {
  opacity: 1;
  transform: translateY(0);
}

.services-row { background: var(--light-gray); overflow-x: hidden; }

.service-panel {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}

.service-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.service-panel:hover img { transform: scale(1.06); }

.service-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,27,51,0.95) 0%, rgba(8,27,51,0.5) 50%, transparent 100%);
}

.service-panel-content {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
}

.service-panel-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.service-list { list-style: none; padding: 0; margin: 0; }

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.82);
  font-size: 0.85rem;
  padding: 5px 0;
  font-weight: 500;
}

.service-list li i { color: var(--gold); font-size: 0.95rem; }

.tech-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.tech-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.tech-section-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/373543/pexels-photo-373543.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  opacity: 0.16;
}

.tech-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.tech-card:hover {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.tech-card:hover::before { transform: scaleX(1); }

.tech-card-icon {
  width: 70px;
  height: 70px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: var(--transition);
}

.tech-card:hover .tech-card-icon {
  background: rgba(212,175,55,0.2);
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(212,175,55,0.2);
}

.tech-card-icon i {
  font-size: 1.8rem;
  color: var(--gold);
}

.tech-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.tech-card-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.investment-section {
  position: relative;
  overflow: hidden;
  background: var(--secondary);
}

.investment-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/1105766/pexels-photo-1105766.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

.inv-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: var(--transition);
  height: 100%;
}

.inv-card:hover {
  background: rgba(212,175,55,0.08);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.inv-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(212,175,55,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.inv-card-icon i { font-size: 1.6rem; color: var(--gold); }

.inv-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.inv-card-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

.logistics-section { background: var(--light-gray); }

.logistics-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.logistics-image-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.logistics-image-wrap:hover img { transform: scale(1.04); }

.logistics-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--gold);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.88rem;
}

.logistics-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(8,27,51,0.08);
  transition: var(--transition);
}

.logistics-feature:last-child { border-bottom: none; }
.logistics-feature:hover { transform: translateX(4px); }

.logistics-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(8,27,51,0.06);
  border: 1px solid rgba(8,27,51,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.logistics-feature:hover .logistics-feature-icon {
  background: var(--primary);
}

.logistics-feature:hover .logistics-feature-icon i { color: var(--gold); }

.logistics-feature-icon i { font-size: 1.3rem; color: var(--primary); transition: var(--transition); }

.logistics-feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
}

.logistics-feature-desc {
  font-size: 0.8rem;
  color: var(--mid-gray);
  line-height: 1.6;
}

.partners-section { background: var(--white); }

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border: 1px solid rgba(8,27,51,0.08);
  border-radius: var(--radius-md);
  transition: var(--transition);
  height: 90px;
  filter: grayscale(100%);
  opacity: 0.55;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.partner-logo img { max-height: 40px; max-width: 120px; object-fit: contain; }
.partner-logo span {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.cert-section { background: var(--light-gray); }

.cert-card {
  background: var(--white);
  border: 1px solid rgba(8,27,51,0.08);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.cert-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.cert-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
}

.cert-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0.5;
}

.cert-icon i { font-size: 2rem; color: var(--gold); }

.cert-badge { width: 120px; height: auto; margin: 0 auto 16px; display: block; }

.cert-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.cert-desc { font-size: 0.8rem; color: var(--mid-gray); line-height: 1.7; }

.gallery-section { background: var(--primary); }

.gallery-grid {
  columns: 4 260px;
  column-gap: 12px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,27,51,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay i { font-size: 2rem; color: var(--gold); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: var(--gold);
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover { transform: rotate(90deg); }

.video-section {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/1117210/pexels-photo-1117210.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,27,51,0.88) 0%, rgba(8,27,51,0.75) 100%);
}

.video-content { position: relative; z-index: 1; text-align: center; }

.play-btn {
  width: 80px;
  height: 80px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 24px;
  position: relative;
}

.play-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(212,175,55,0.4);
  border-radius: 50%;
  animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.15); opacity: 0.3; }
}

.play-btn i { font-size: 1.8rem; color: var(--primary); margin-left: 4px; }

.play-btn:hover {
  background: var(--gold-light);
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(212,175,55,0.5);
}

.contact-section { background: var(--primary); }

.contact-info-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(212,175,55,0.1);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i { color: var(--gold); font-size: 1rem; }

.contact-label { font-size: 0.72rem; color: var(--mid-gray); font-weight: 500; display: block; }
.contact-value { font-size: 0.9rem; color: var(--white); font-weight: 600; display: block; margin-top: 2px; }

.map-placeholder {
  width: 100%;
  height: 220px;
  background: rgba(14,42,71,0.6);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder i { font-size: 3rem; color: rgba(212,175,55,0.3); }

.contact-form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius-md);
  padding: 36px 32px;
}

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

.form-label-custom {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
  display: block;
}

.form-control-custom {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: var(--white);
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.form-control-custom::placeholder { color: rgba(255,255,255,0.3); }

.form-control-custom option { background: var(--primary); color: var(--white); }

.social-links { display: flex; gap: 10px; margin-top: 20px; }

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  font-size: 0.9rem;
}

.social-link:hover {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.values-bar {
  background: rgba(8,27,51,0.98);
  border-top: 1px solid rgba(212,175,55,0.15);
}

.value-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
  border-right: 1px solid rgba(212,175,55,0.1);
}

.value-item:last-child { border-right: none; }

.value-item i { font-size: 1.3rem; color: var(--gold); }

.value-text { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.75); }

#footer {
  background: #050F1E;
  border-top: 1px solid rgba(212,175,55,0.15);
}

.footer-top { padding: 70px 0 50px; }

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  margin-top: 16px;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.5;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--gold); transform: translateX(4px); }
.footer-links a:hover::before { opacity: 1; }

.newsletter-form { display: flex; gap: 0; margin-top: 4px; }

.newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.2);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 0.65rem 1rem;
  color: var(--white);
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-input:focus { border-color: var(--gold); }
.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }

.newsletter-btn {
  background: var(--gold);
  color: var(--primary);
  border: none;
  padding: 0 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.newsletter-btn:hover { background: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.page-hero {
  background: var(--primary);
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}

.page-hero-sub { font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 0; }

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.breadcrumb-custom a { color: var(--gold); font-size: 0.82rem; }
.breadcrumb-custom span { color: rgba(255,255,255,0.4); font-size: 0.82rem; }
.breadcrumb-custom .current { color: rgba(255,255,255,0.7); font-size: 0.82rem; }

.about-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  bottom: -1px;
  right: -1px;
  background: var(--gold);
  padding: 20px 24px;
  border-radius: var(--radius-lg) 0 0 0;
  text-align: center;
}

.about-image-badge .num { font-size: 2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.about-image-badge .lbl { font-size: 0.72rem; color: var(--primary); font-weight: 700; }

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.about-feature-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.about-feature-text { font-size: 0.88rem; font-weight: 500; color: var(--dark-text); }

.vision-card {
  background: var(--white);
  border: 1px solid rgba(8,27,51,0.08);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
}

.vision-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.vision-card-icon { font-size: 2rem; color: var(--gold); margin-bottom: 12px; }
.vision-card-title { font-size: 1rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.vision-card-text { font-size: 0.84rem; color: var(--mid-gray); line-height: 1.8; }

.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.team-card img { width: 100%; height: 400px; object-fit: cover; object-position: top center; }

.team-card-body { padding: 20px; }

.team-card-name { font-size: 1rem; font-weight: 700; color: var(--primary); }
.team-card-role { font-size: 0.78rem; color: var(--gold); font-weight: 600; }

.chairman-signature-block { padding: 20px 0 0; }

.chairman-photo-card { aspect-ratio: 547 / 536; }

.chairman-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.chairman-pullquote-icon { font-size: 2.5rem; color: var(--gold); opacity: 0.6; margin-bottom: 16px; display: inline-block; }

.chairman-pullquote-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  color: var(--white);
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto;
}

.chairman-pullquote-attribution {
  margin-top: 22px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.chairman-bio-text { color: var(--mid-gray); font-size: 0.97rem; line-height: 1.95; margin-bottom: 20px; }

.product-page-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--white);
}

.product-page-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.product-page-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.product-page-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-page-card:hover .product-page-card-img img { transform: scale(1.08); }

.product-page-card-body { padding: 22px; }

.product-page-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-page-card-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.product-page-card-desc { font-size: 0.82rem; color: var(--mid-gray); line-height: 1.8; }

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }

.filter-tab {
  padding: 8px 22px;
  border-radius: 30px;
  border: 1px solid rgba(8,27,51,0.15);
  background: var(--white);
  color: var(--dark-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Cairo', sans-serif;
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--primary);
  color: var(--gold);
  border-color: var(--primary);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img { transform: scale(1.06); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,27,51,0.95) 0%, transparent 60%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.project-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }

.project-location { font-size: 0.78rem; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 4px; }

@media (max-width: 1200px) {
  .hero-left { padding: 100px 20px 60px 0; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .footer-top .row > div:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .hero-stats .row > div:last-child,
  .values-bar .row > div:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-stats .row > div:nth-child(4),
  .hero-stats .row > div:nth-child(5) {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 991.98px) {
  .about-stats-row > div:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 1399.98px) {
  #mainNav .navbar-brand {
    min-width: 0;
    flex-shrink: 1;
  }
  #mainNav .brand-text {
    min-width: 0;
    overflow: hidden;
  }
  #mainNav .brand-tagline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #mainNav .navbar-toggler {
    flex-shrink: 0;
  }
  #mainNav .navbar-collapse {
    background: var(--primary);
    padding: 18px 20px;
    border-radius: 0 0 12px 12px;
    margin-top: 8px;
    box-shadow: 0 16px 40px rgba(8,27,51,0.35);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  #mainNav .navbar-nav {
    width: 100%;
  }
  #mainNav .nav-link {
    padding: 0.75rem 0.65rem !important;
  }
  #mainNav .nav-link::after { display: none; }
  #mainNav .d-flex.align-items-center.gap-2 {
    justify-content: center;
    border-top: 1px solid rgba(212,175,55,0.15);
    padding-top: 14px;
  }
}

@media (max-width: 991px) {
  .hero-content-wrap { flex-direction: column; }
  .hero-left { padding: 100px 0 40px; text-align: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-center { display: none; }
  .hero-right { border-left: none; border-top: 1px solid rgba(212,175,55,0.15); padding: 40px 20px; }
  .tech-icons-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(212,175,55,0.1); }
  .stat-item:last-child { border-bottom: none; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 767px) {
  .section-pad { padding: 60px 0; }
  .hero-heading-ar { font-size: 2.2rem; }
  .hero-right-title { font-size: 1.3rem; }
  .tech-icons-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { height: 200px; }
  .gallery-grid { columns: 1; }
  .contact-form-card { padding: 24px 20px; }
  .footer-top { padding: 50px 0 30px; }
}

@media (max-width: 575px) {
  .hero-badge { display: none; }
  .hero-heading-ar { font-size: 1.9rem; }
  .brand-name { font-size: 1rem; }
  .brand-icon { width: 54px; height: 54px; }
}

@media (max-width: 380px) {
  .brand-tagline { display: none; }
}

[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

@media (hover: none) {
  .product-btn { opacity: 1; transform: translateY(0); }
  .gallery-overlay { opacity: 1; }
}

#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 9000;
}

#scrollTop.visible { opacity: 1; transform: translateY(0); }
#scrollTop:hover { background: var(--gold-light); transform: translateY(-3px); }

.overflow-hidden { overflow: hidden; }
.rounded-custom { border-radius: var(--radius-md); }
.border-gold { border: 1px solid rgba(212,175,55,0.3); }
.text-right { text-align: right; }
.text-left { text-align: left; }
.lh-lg { line-height: 2; }

[dir="rtl"] .footer-links a { flex-direction: row-reverse; }
[dir="rtl"] .footer-links a:hover { transform: translateX(-4px); }
[dir="rtl"] .logistics-feature:hover { transform: translateX(-4px); }
[dir="rtl"] .stat-info { text-align: left; }
[dir="rtl"] .play-btn i { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .newsletter-input { border-right: 1px solid rgba(212,175,55,0.2); border-left: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
[dir="rtl"] .newsletter-btn { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

#preloader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden { opacity: 0; visibility: hidden; }

.loader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(212,175,55,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Dashboard / Auth (login.html, dashboard.html) ===== */

.auth-page-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 60px;
}

.auth-card { max-width: 100%; }

/* .contact-form-card (which .auth-card extends) is a translucent overlay
   meant to sit on a dark section (bg-primary-dark). Bootstrap's modal has no
   such dark ancestor — its .modal-content defaults to solid white — so give
   the product modal its own opaque dark background, otherwise the white
   text/labels render invisible (white-on-white). */
.modal-content.auth-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Same white-on-white risk as .modal-content.auth-card above, for the one
   dashboard form that isn't inside a modal (About page "Page Text" panel) —
   .form-control-custom needs a dark ancestor. */
.admin-form-panel {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  padding: 24px;
}

.admin-form-panel .section-title { color: var(--white); }

.auth-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 12px; }

.form-error {
  background: rgba(220,53,69,0.12);
  border: 1px solid rgba(220,53,69,0.4);
  color: #ff8a95;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.admin-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(212,175,55,0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
}

.admin-badge-active { background: rgba(40,167,69,0.12); border-color: #28a745; color: #28a745; }
.admin-badge-inactive { background: rgba(138,155,176,0.12); border-color: var(--mid-gray); color: var(--mid-gray); }

.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9rem;
}

.admin-table th, .admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: middle;
}

.admin-table th {
  background: var(--light-gray);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.admin-table-actions { display: flex; gap: 8px; }

.btn-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.btn-icon-danger { color: #dc3545; border-color: rgba(220,53,69,0.3); }
.btn-icon-danger:hover { background: #dc3545; border-color: #dc3545; color: var(--white); }

.icon-picker-menu {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 280px;
  padding: 8px;
}

/* Bootstrap's own ".dropdown-menu.show { display: block }" rule has the
   same specificity (two classes) as this one; this wins the tie because
   style.css loads after bootstrap's CSS. Not scoping to .show would force
   the menu to always render, even when Bootstrap hasn't opened it. */
.icon-picker-menu.show {
  display: grid;
}

.icon-picker-option {
  border: none;
  background: transparent;
  padding: 6px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  transition: var(--transition);
}

.icon-picker-option:hover,
.icon-picker-option.active { background: rgba(212,175,55,0.2); color: var(--primary); }

/* ── Dashboard sidebar layout ────────────────────────────────────────────── */

.dashboard-layout {
  display: flex;
  align-items: flex-start;
  padding-top: 84px; /* clears the fixed #mainNav */
  min-height: 100vh;
}

.dashboard-sidebar {
  --bs-offcanvas-width: 280px;
  flex-shrink: 0;
  /* Bootstrap's responsive offcanvas resets background-color to transparent
     with !important at the >=lg breakpoint (so it can blend in as a plain
     static sidebar); match that specificity or the navy background is lost
     on desktop, leaving near-white link text on a white page background. */
  background-color: var(--primary) !important;
  border-right: 1px solid rgba(212,175,55,0.15);
}

@media (min-width: 992px) {
  .dashboard-sidebar { width: 240px; position: sticky; top: 84px; height: calc(100vh - 84px); }
}

.dashboard-sidebar-body { padding: 0; }

.dashboard-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 16px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-link i { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-link:hover { background: rgba(212,175,55,0.12); color: var(--white); }

.sidebar-link.active { background: var(--gold); color: var(--primary); }

.sidebar-group-label {
  padding: 16px 16px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.sidebar-group-label:first-child { padding-top: 0; }

.dashboard-content {
  flex: 1;
  min-width: 0;
  padding: 32px clamp(16px, 4vw, 48px) 60px;
}
