:root {
  --blue: #0a4b8c;
  --blue-dark: #072f5c;
  --blue-light: #e8f0fe;
  --yellow: #f5a623;
  --yellow-light: #fef3e0;
  --white: #ffffff;
  --black: #1a1a2e;
  --gray: #6c757d;
  --gray-light: #f8f9fa;
  --transition: 0.4s ease;
  --shadow: 0 8px 32px rgba(10, 75, 140, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 75, 140, 0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --font: 'Noto Kufi Arabic', sans-serif;
  --bg-body: #ffffff;
  --bg-section: #f8faff;
  --text-color: #2d3436;
  --text-muted: #636e72;
  --card-bg: #ffffff;
  --card-border: #eef2f7;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #072f5c;
  --footer-text: #c8d6e5;
  --input-bg: #f8f9fa;
  --input-border: #dfe6e9;
}

[data-theme="dark"] {
  --bg-body: #0f172a;
  --bg-section: #1e293b;
  --text-color: #e2e8f0;
  --text-muted: #94a3b8;
  --card-bg: #1e293b;
  --card-border: #334155;
  --navbar-bg: rgba(15, 23, 42, 0.95);
  --footer-bg: #020617;
  --footer-text: #94a3b8;
  --input-bg: #1e293b;
  --input-border: #334155;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --blue-light: #0a2a4a;
  --yellow-light: #2a1f00;
}

* { transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition); }

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-color);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ── Navbar ── */
.navbar-fidaa {
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 12px 0;
  transition: var(--transition);
}
.navbar-fidaa .navbar-brand img { height: 50px; }
.navbar-fidaa .nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar-fidaa .nav-link:hover,
.navbar-fidaa .nav-link.active {
  background: var(--blue-light);
  color: var(--blue) !important;
}
.theme-toggle {
  background: none;
  border: 2px solid var(--blue);
  color: var(--blue);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}
.theme-toggle:hover {
  background: var(--blue);
  color: var(--white);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, #0d6eb8 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.5;
}
.hero-content { position: relative; z-index: 2; padding: 120px 0 80px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--yellow); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-fidaa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-fidaa-primary {
  background: var(--yellow);
  color: var(--blue-dark);
}
.btn-fidaa-primary:hover { background: #e09515; color: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,166,35,0.4); }
.btn-fidaa-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-fidaa-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--white); transform: translateY(-2px); }

.hero-image {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-image img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-video-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(245,166,35,0.95);
  border: none;
  color: var(--blue-dark);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.hero-video-btn:hover { transform: translate(-50%, -50%) scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,166,35,0.6); }
  70% { box-shadow: 0 0 0 20px rgba(245,166,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); }
}

/* ── Sections ── */
.section-padding { padding: 100px 0; }
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title span {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--blue-dark);
}
[data-theme="dark"] .section-title h2 { color: var(--white); }
.section-title h2 span { color: var(--yellow); background: none; padding: 0; }
.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 15px;
}

/* ── About ── */
.about-section { background: var(--bg-section); }
.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img { width: 100%; display: block; }
.about-img-wrap .experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--yellow);
  color: var(--blue-dark);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.about-img-wrap .experience-badge span { font-size: 36px; line-height: 1; }
.about-img-wrap .experience-badge small { font-size: 12px; font-weight: 600; }
.about-text h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 20px;
}
[data-theme="dark"] .about-text h3 { color: var(--white); }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.about-feature i {
  color: var(--yellow);
  font-size: 18px;
}

/* ── Stats / Fun Facts ── */
.stats-section { background: var(--blue-dark); position: relative; overflow: hidden; }
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.02)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
  background-size: cover;
}
.stat-item { text-align: center; position: relative; z-index: 2; padding: 20px; }
.stat-item .stat-icon { font-size: 40px; color: var(--yellow); margin-bottom: 16px; }
.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  line-height: 1.2;
}
.stat-item .stat-label { color: rgba(255,255,255,0.7); font-size: 15px; margin-top: 8px; }

/* ── Services ── */
.services-section { background: var(--bg-section); }
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: var(--blue-light);
  border-radius: 0 0 0 80px;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { width: 100%; height: 100%; border-radius: 0; opacity: 0.03; }
.service-card .s-icon {
  width: 64px;
  height: 64px;
  background: var(--blue-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--blue);
  margin: 0 auto 20px;
  transition: var(--transition);
}
.service-card:hover .s-icon { background: var(--yellow); color: var(--blue-dark); }
.service-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ── Timeline ── */
.timeline-section { background: var(--bg-body); }
.timeline {
  position: relative;
  padding: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 3px;
  background: var(--blue);
  transform: translateX(50%);
}
[data-theme="dark"] .timeline::before { background: var(--yellow); }
.timeline-item {
  position: relative;
  margin-bottom: 48px;
  width: 100%;
}
.timeline-item:nth-child(odd) .timeline-content { margin-right: calc(50% + 30px); }
.timeline-item:nth-child(even) .timeline-content { margin-left: calc(50% + 30px); }
.timeline-dot {
  position: absolute;
  right: 50%;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--yellow);
  border: 4px solid var(--blue);
  border-radius: 50%;
  transform: translateX(50%);
  z-index: 2;
}
[data-theme="dark"] .timeline-dot { border-color: var(--yellow); background: var(--blue); }
.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.timeline-content .t-year {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue-dark);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.timeline-content h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.timeline-content p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 0; }

/* ── Video ── */
.video-section {
  position: relative;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  overflow: hidden;
}
.video-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/video-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.video-content { position: relative; z-index: 2; text-align: center; padding: 60px 0; }
.video-content h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 16px; }
.video-content p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 32px; }
.video-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--yellow);
  color: var(--blue-dark);
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.video-play-btn:hover { background: var(--white); color: var(--blue); transform: scale(1.05); }

/* ── News ── */
.news-section { background: var(--bg-section); }
.news-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card-img { position: relative; overflow: hidden; height: 200px; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.news-card:hover .news-card-img img { transform: scale(1.08); }
.news-card-img .news-date {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--yellow);
  color: var(--blue-dark);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.news-card-body { padding: 20px; }
.news-card-body .news-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.news-card-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.news-card-body h4 a { color: var(--text-color); text-decoration: none; }
.news-card-body h4 a:hover { color: var(--blue); }
.news-card-body p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.news-card-body .news-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* ── FAQ / Q&A ── */
.faq-section { background: var(--bg-body); }
.accordion-fidaa .accordion-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-fidaa .accordion-button {
  background: var(--card-bg);
  color: var(--text-color);
  font-weight: 600;
  font-size: 15px;
  padding: 18px 24px;
  box-shadow: none;
}
.accordion-fidaa .accordion-button:not(.collapsed) {
  background: var(--blue-light);
  color: var(--blue);
}
.accordion-fidaa .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230a4b8c'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}
.accordion-fidaa .accordion-body { padding: 0 24px 18px; color: var(--text-muted); font-size: 14px; line-height: 1.8; }

/* ── Contact ── */
.contact-section { background: var(--bg-section); }
.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-info-card i {
  width: 56px;
  height: 56px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--blue);
  margin: 0 auto 16px;
}
.contact-info-card h5 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.contact-info-card p { color: var(--text-muted); font-size: 14px; margin: 0; }
.contact-form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form-wrap .form-control {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
}
.contact-form-wrap .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.contact-form-wrap textarea { resize: none; }

/* ── Footer ── */
.footer-fidaa {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 80px;
}
.footer-fidaa h4 {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.footer-fidaa h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}
.footer-fidaa p, .footer-fidaa li { font-size: 14px; line-height: 1.8; }
.footer-fidaa a { color: var(--footer-text); text-decoration: none; transition: var(--transition); }
.footer-fidaa a:hover { color: var(--yellow); padding-right: 4px; }
.footer-logo { height: 50px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--yellow); color: var(--blue-dark); padding: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links li i { margin-left: 8px; color: var(--yellow); font-size: 12px; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-contact-item i { color: var(--yellow); font-size: 18px; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
}

/* ── Accessibility Toolbar ── */
.access-trigger {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 20px;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
  transition: var(--transition);
}
.access-trigger:hover { background: var(--yellow); color: var(--blue-dark); width: 50px; }
.access-panel {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--card-bg);
  border-left: 1px solid var(--card-border);
  z-index: 99998;
  padding: 24px;
  overflow-y: auto;
  transition: left 0.35s ease;
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
}
.access-panel.open { left: 0; }
.access-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99997;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.access-overlay.open { opacity: 1; visibility: visible; }
.access-panel h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
[data-theme="dark"] .access-panel h5 { color: var(--white); }
.access-panel h5 i { color: var(--yellow); }
.access-panel .close-access {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
}
.access-panel .close-access:hover { color: var(--blue); }
.access-group { margin-bottom: 20px; }
.access-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.access-group .btn-group-custom {
  display: flex;
  gap: 6px;
}
.access-group .btn-group-custom button {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--card-border);
  background: var(--input-bg);
  color: var(--text-color);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.access-group .btn-group-custom button:hover { border-color: var(--blue); color: var(--blue); }
.access-group .btn-group-custom button.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.access-reset {
  width: 100%;
  padding: 10px;
  background: var(--yellow);
  color: var(--blue-dark);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.access-reset:hover { opacity: 0.85; transform: translateY(-1px); }
/* Large cursor */
body.large-cursor, body.large-cursor * { cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="4" cy="4" r="14" fill="none" stroke="%230a4b8c" stroke-width="3"/><circle cx="4" cy="4" r="4" fill="%230a4b8c"/></svg>') 4 4, auto !important; }

/* Color blindness filters */
body.colorblind-protanopia { filter: url('#cb-protanopia'); -webkit-filter: url('#cb-protanopia'); }
body.colorblind-deuteranopia { filter: url('#cb-deuteranopia'); -webkit-filter: url('#cb-deuteranopia'); }
body.colorblind-tritanopia { filter: url('#cb-tritanopia'); -webkit-filter: url('#cb-tritanopia'); }
body.colorblind-achromatopsia { filter: grayscale(1); -webkit-filter: grayscale(1); }
body.colorblind-normal { filter: none; -webkit-filter: none; }

/* Inverted colors */
body.invert-colors { filter: invert(1) hue-rotate(180deg); -webkit-filter: invert(1) hue-rotate(180deg); }
body.invert-colors img,
body.invert-colors video,
body.invert-colors iframe,
body.invert-colors [style*="background-image"] { filter: invert(1) hue-rotate(180deg); -webkit-filter: invert(1) hue-rotate(180deg); }
/* When both invert and colorblind are active, combine carefully */
body.invert-colors.colorblind-achromatopsia { filter: invert(1) grayscale(1); -webkit-filter: invert(1) grayscale(1); }
body.invert-colors.colorblind-protanopia { filter: invert(1) hue-rotate(180deg); -webkit-filter: invert(1) hue-rotate(180deg); }
body.invert-colors.colorblind-deuteranopia { filter: invert(1) hue-rotate(180deg); -webkit-filter: invert(1) hue-rotate(180deg); }
body.invert-colors.colorblind-tritanopia { filter: invert(1) hue-rotate(180deg); -webkit-filter: invert(1) hue-rotate(180deg); }

/* ── Survey Floating ── */
.survey-trigger {
  position: fixed;
  bottom: 100px;
  left: 30px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  z-index: 9995;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.survey-trigger:hover { background: var(--yellow); color: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.survey-trigger i { font-size: 18px; }

/* Survey Modal */
.survey-modal .modal-content {
  background: var(--card-bg);
  color: var(--text-color);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}
.survey-modal .modal-header {
  border-bottom: 1px solid var(--card-border);
  padding: 20px 24px;
}
.survey-modal .modal-title {
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.survey-modal .modal-title i { color: var(--yellow); }
.survey-modal .btn-close { filter: none; }
.survey-modal .modal-body { padding: 24px; }
.survey-question {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.6;
}
.survey-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}
.survey-stars .star-btn {
  background: none;
  border: none;
  font-size: 36px;
  color: #d1d5db;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px;
}
.survey-stars .star-btn:hover,
.survey-stars .star-btn.active { color: var(--yellow); transform: scale(1.15); }
.survey-stars .star-btn.active ~ .star-btn { color: #d1d5db; }
.survey-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 0 4px;
}
.survey-thanks {
  text-align: center;
  padding: 30px 0;
}
.survey-thanks i { font-size: 52px; color: var(--yellow); margin-bottom: 16px; }
.survey-thanks h5 { font-weight: 700; margin-bottom: 8px; }
.survey-thanks p { color: var(--text-muted); font-size: 14px; }

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-dark);
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); }

/* ── Responsive ── */
@media (max-width: 991px) {
  .timeline::before { right: 20px; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { margin-right: 50px; margin-left: 0; }
  .timeline-dot { right: 20px; }
  .hero { min-height: auto; }
  .hero-content { padding: 100px 0 40px; }
  .about-img-wrap .experience-badge { right: 10px; bottom: 10px; width: 90px; height: 90px; }
  .about-img-wrap .experience-badge span { font-size: 26px; }
  .section-padding { padding: 60px 0; }
}
/* ── Partners ── */
.partners-section { background: var(--bg-body); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.partner-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.partner-item i { font-size: 36px; color: var(--blue); }
[data-theme="dark"] .partner-item i { color: var(--yellow); }

/* ── Gallery ── */
.gallery-section { background: var(--bg-section); }
.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,75,140,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 { color: var(--white); font-size: 28px; }
/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox-overlay.show { opacity: 1; }
.lightbox-overlay img { max-width: 90%; max-height: 90%; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 20px;
  left: 30px;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

/* ── Testimonials ── */
.testimonials-section { background: var(--bg-body); }
.testimonial-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 40px 20px;
}
.testimonial-avatar i { font-size: 64px; color: var(--blue); margin-bottom: 20px; }
[data-theme="dark"] .testimonial-avatar i { color: var(--yellow); }
.testimonial-text {
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 24px;
  position: relative;
}
.testimonial-text::before {
  content: '\201C';
  font-size: 60px;
  color: var(--yellow);
  position: absolute;
  top: -30px;
  right: -10px;
  opacity: 0.5;
  font-family: serif;
}
.testimonial-card h5 { font-weight: 700; margin-bottom: 4px; }
.testimonial-role { font-size: 13px; color: var(--text-muted); }
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  width: 48px;
  height: 48px;
  background: var(--blue);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}
#testimonialCarousel .carousel-control-prev { right: -60px; left: auto; }
#testimonialCarousel .carousel-control-next { left: -60px; right: auto; }
#testimonialCarousel .carousel-indicators { position: static; margin-top: 20px; }
#testimonialCarousel .carousel-indicators button {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); opacity: 0.3;
}
#testimonialCarousel .carousel-indicators button.active { opacity: 1; }

/* ── Map ── */
.map-section { background: var(--bg-section); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ── Search Modal ── */
.search-modal-content {
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.search-box-wrap {
  position: relative;
  margin-bottom: 20px;
}
.search-input {
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  color: var(--text-color);
  border-radius: 12px;
  padding: 16px 20px 16px 50px;
  font-size: 16px;
  width: 100%;
  transition: var(--transition);
}
.search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-light); outline: none; }
.search-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}
.search-results { max-height: 360px; overflow-y: auto; }
.search-hint, .search-no-results {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 15px;
}
.search-no-results i { display: block; font-size: 40px; margin-bottom: 12px; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-color);
  margin-bottom: 6px;
}
.search-result-item:hover { background: var(--blue-light); color: var(--blue); }
.search-result-item i { font-size: 22px; color: var(--yellow); flex-shrink: 0; }
.search-result-item div { display: flex; flex-direction: column; }
.search-result-item strong { font-size: 14px; }
.search-result-item span { font-size: 13px; color: var(--text-muted); }

/* ── WhatsApp ── */
.whatsapp-btn {
  position: fixed;
  bottom: 160px;
  left: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 9995;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-btn.show { opacity: 1; visibility: visible; }
.whatsapp-btn:hover { transform: scale(1.1); color: var(--white); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
@keyframes whatsappPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.whatsapp-btn.show { animation: whatsappPulse 2s infinite; }

/* ── Welcome Popup ── */
.welcome-popup .modal-content {
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.welcome-popup-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  padding: 8px;
  opacity: 1;
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.welcome-popup-img {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.welcome-popup-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  visibility: hidden;
}
.welcome-popup-text {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.welcome-popup-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue-dark);
  padding: 4px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  align-self: flex-start;
}
.welcome-popup-text h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
[data-theme="dark"] .welcome-popup-text h3 { color: var(--white); }
.welcome-popup-text h3 span { color: var(--yellow); }
.welcome-popup-text p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.welcome-popup-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.welcome-popup-actions .btn-fidaa { font-size: 14px; padding: 12px 24px; }
.welcome-popup-actions .btn-fidaa-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.welcome-popup-actions .btn-fidaa-outline:hover { background: var(--blue); color: var(--white); }
.welcome-popup-dontshow {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.welcome-popup-dontshow input { width: 16px; height: 16px; cursor: pointer; }

/* ── Counter animations ── */
.counter { display: inline-block; }
.counter-suffix { font-size: 0.7em; }

/* ── Responsive additions ── */
@media (max-width: 991px) {
  #testimonialCarousel .carousel-control-prev { right: 10px; }
  #testimonialCarousel .carousel-control-next { left: 10px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .hero-btns { flex-direction: column; }
  .btn-fidaa { justify-content: center; }
  .about-features { grid-template-columns: 1fr; }
  .stat-item .stat-number { font-size: 2rem; }
  .navbar-fidaa .navbar-brand img { height: 38px; }
  .contact-form-wrap { padding: 24px; }
  .footer-fidaa { padding-top: 40px; }
  .footer-fidaa h4 { margin-top: 24px; }
  .access-trigger { width: 36px; height: 36px; font-size: 16px; }
  .access-panel { width: 280px; left: -290px; }
  .survey-trigger { padding: 10px 18px; font-size: 13px; bottom: 80px; left: 16px; }
  .survey-trigger span { display: none; }
  .back-to-top { width: 40px; height: 40px; font-size: 16px; left: 16px; bottom: 16px; }
  .whatsapp-btn { width: 44px; height: 44px; font-size: 22px; left: 16px; bottom: 130px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-text { font-size: 15px; }
  .gallery-item { aspect-ratio: auto; height: 160px; }
  #testimonialCarousel .carousel-control-prev,
  #testimonialCarousel .carousel-control-next { display: none; }
}
