﻿/* Root Variables */
:root {
  --font-size: 14px;
  --primary-color: #1261a0;
  --primary-hover: #0f4f7f;
  --secondary-color: #3895d3;
  --accent-color: #58CCED;
  --dark-blue: #072f5f;
  --light-blue: #f2faff;
  --yellow: #F2AF2A;
  --red: #DA1A32;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --border-radius: 0.625rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --transition: all 0.3s ease;
}

@font-face {
  font-HCFA: 'qabas-bold';
  src: url('../fonts/ArbFONTS-19304-alqabas-bold.ttf') format('truetype');
}

@font-face {
  font-HCFA: 'qabas-reg';
  src: url('../fonts/ArbFONTS-19307-alqabas-regular.ttf') format('truetype');
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
    font-HCFA: 'qabas-reg';
    line-height: 1.6;
    color: var(--gray-900);
    direction: rtl;
    text-align: right;
}
/*
html {
    font-size: var(--font-size);
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    font-HCFA: 'qabas-reg';
    line-height: 1.6;
    color: var(--gray-900);
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1 0 auto;
    width: 100%;
}*/

/* High Contrast Mode */
.high-contrast {
  --primary-color: #ffff00;
  --secondary-color: #ffff00;
  --gray-900: #ffffff;
  background: #000000 !important;
  color: #ffffff !important;
}

.high-contrast * {
  border-color: #ffffff !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}

.high-contrast a,
.high-contrast button {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffffff !important;
}

.high-contrast a:hover,
.high-contrast button:hover,
.high-contrast a:focus,
.high-contrast button:focus {
  background-color: #ffff00 !important;
  color: #000000 !important;
}

/* Loader Container */
#loader-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Logo Animation */
#loader-logo {
  width: 162px;
  height: 102px;
  background-image: url('../img/Logo.png');
  /* Replace with your logo image */
  background-size: cover;
  background-position: center;
  animation: scaleLogo 3s ease-out forwards;
}

/* Animation for scaling the logo */
@keyframes scaleLogo {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

/* Background Animation - Slide Up */
#loader-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/loading-bg.jpg');
  /* Replace with your background image */
  background-size: cover;
  background-position: bottom;
  height: 100vh;
  animation: slideUp 3s ease-out forwards;
}

/* Slide up animation for background */
@keyframes slideUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

/* Hide the loader after animation */
#main-content-loader {
  display: none;
}

/* Skip Navigation */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 16px;
  background: #3b82f6;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  z-index: 100;
  transition: top 0.3s;
}

.skip-nav:focus {
  top: 16px;
  color: white;
  text-decoration: none;
}

/* Home Popup Styles */
.home-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 28, 58, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: var(--transition);
}

.home-popup-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.popup-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.popup-decoration {
  position: absolute;
  opacity: 0.6;
}

.decoration-top-right {
  top: 0;
  right: 0;
  width: 312px;
  height: 207px;
  background: linear-gradient(135deg, rgba(243, 255, 253, 0.2) 0%, transparent 70%);
  border-radius: 0 0 0 50%;
}

.decoration-left {
  top: 50%;
  left: 0;
  width: 133px;
  height: 527px;
  background: linear-gradient(90deg, rgba(33, 157, 128, 0.3) 0%, transparent 50%);
  transform: translateY(-50%);
  border-radius: 0 20px 20px 0;
}

.decoration-bottom-right {
  bottom: 0;
  right: 30%;
  width: 530px;
  height: 394px;
  background: linear-gradient(45deg, rgba(243, 255, 253, 0.15) 0%, transparent 60%);
  border-radius: 50% 0 0 0;
  transform: scaleY(-1);
}

.home-popup-container {
  position: relative;
  background: linear-gradient(135deg, #122359 0%, #1e3a8a 50%, #1261a0 100%);
  border-radius: 31px;
  padding: 60px 40px 50px;
  max-width: 832px;
  width: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  animation: popupSlideIn 0.6s ease-out;
}

@keyframes popupSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
  z-index: 10;
}

.popup-close-btn:hover,
.popup-close-btn:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.popup-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
}

.popup-small-icon {
  margin-bottom: 20px;
  opacity: 0.7;
}

.popup-small-icon i {
  font-size: 24px;
  color: var(--accent-color);
}

.popup-title {
  font-size: clamp(28px, 5vw, 41px);
  line-height: 1.4;
  color: var(--accent-color);
  font-HCFA: 'qabas-bold';
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.popup-image-container {
  margin: 40px 0;
  display: flex;
  justify-content: center;
}

.popup-image-placeholder {
  width: 280px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.image-icon {
  margin-bottom: 10px;
  opacity: 0.6;
}

.image-icon i {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.7);
}

.image-placeholder-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.placeholder-shapes .shape-1,
.placeholder-shapes .shape-2,
.placeholder-shapes .shape-3 {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  opacity: 0.4;
}

.placeholder-shapes .shape-1 {
  top: 20%;
  left: 20%;
  width: 60px;
  height: 40px;
  transform: rotate(-15deg);
}

.placeholder-shapes .shape-2 {
  top: 50%;
  right: 25%;
  width: 40px;
  height: 30px;
  border-radius: 50%;
  transform: rotate(20deg);
}

.placeholder-shapes .shape-3 {
  bottom: 25%;
  left: 30%;
  width: 35px;
  height: 35px;
  transform: rotate(45deg);
}

.popup-learn-more-btn {
  background: var(--accent-color);
  color: #122359;
  border: none;
  padding: 16px 48px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  margin-top: 30px;
  min-width: 200px;
}

.popup-learn-more-btn:hover,
.popup-learn-more-btn:focus {
  background: #4dd4f0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl);
}

.popup-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.bg-element {
  position: absolute;
  opacity: 0.1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.element-1 {
  top: 10%;
  left: 10%;
  width: 120px;
  height: 120px;
  animation: float 6s ease-in-out infinite;
}

.element-2 {
  bottom: 15%;
  right: 15%;
  width: 80px;
  height: 80px;
  animation: float 8s ease-in-out infinite reverse;
}

.element-3 {
  top: 60%;
  left: 5%;
  width: 60px;
  height: 60px;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* News Banner */
.news-banner {
  background: var(--dark-blue);
  color: white;
  padding: 12px 0;
  overflow: hidden;
}

.news-scroll {
  display: flex;
  gap: 48px;
  animation: scroll 50s linear infinite;
  white-space: nowrap;
}

.news-item {
  font-size: 0.875rem;
  white-space: nowrap;
}

@keyframes scroll {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* -----------------------------------------------NewsAnimation------------------- */
.ticker-wrapper {
    background: var(--dark-blue);
    overflow: hidden;
    font-family: inherit;
    direction: rtl;
}

.ticker-inner {
    display: flex;
    align-items: stretch;
    height: 44px;
}

.ticker-label {
    background: #e63946;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 0 16px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 6px;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.ticker-scroll {
     display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    
}

/* ① Reduced speed via animation-duration (22s instead of ~8s) */
.ticker-scroll {
    animation: ticker-rtl 45s linear infinite;
}

@keyframes ticker-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

/* ⑤ Pause on hover */
.ticker-track:hover .ticker-scroll {
    animation-play-state: paused;
}

/* ③ Clickable items */
.news-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e8eaf0;
    font-size: 14px;
    padding: 0 28px;
    cursor: pointer;
    border-right: 1px solid rgba(255,255,255,0.1);
    height: 100%;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s;
}

    .news-item:hover {
        color: #7dd3fc;
    }

/* ② Important badge */
.badge-important {
    background: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ② Featured star */
.badge-star {
    color: #fbbf24;
    font-size: 14px;
    flex-shrink: 0;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  padding: 16px 0;
}

.logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.navbar-nav .nav-link {
  color: var(--gray-600) !important;
  font-weight: 500;
  padding: 8px 7px !important;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
}

.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  font-weight: 700;
}

.navbar-nav .dropdown-menu {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  padding: 8px 0;
  margin-top: 8px;
  min-width: 280px;
}

.navbar-nav .dropdown-item {
  color: var(--gray-600);
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.navbar-nav .dropdown-item:last-child {
  border-bottom: none;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item.active {
  color: var(--secondary-color);
  background: var(--gray-50);
}

.search-container {
  position: relative;
}

.search-container input {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  padding-right: 40px;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}

/* Accessibility Controls (Compact) */
.accessibility-controls {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.btn-font-size {
  width: 24px;
  height: 24px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 1px;
  transition: var(--transition);
  cursor: pointer;
  font-size: 12px;
}

.btn-font-size-2 {
  font-size: 10px;
}

.btn-font-size-3 {
  font-size: 14px;
}

.btn-font-size:hover {
  border-color: var(--secondary-color);
}

.btn-font-size.active {
  border-color: var(--primary-color);
  /* background: var(--primary-color); */
  color: var(--primary-color);
}

.btn-contrast {
  padding: 4px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: white;
  font-size: 10px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-contrast:hover {
  border-color: #F2AF2A;
}

.btn-contrast.active {
  border-color: #F2AF2A;
  background: #F2AF2A;
  color: black;
}

.accessibility-divider {
  width: 1px;
  height: 16px;
  background: var(--gray-300);
  margin: 0 4px;
}

.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline-primary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  border-width: 2px;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section-inners {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /*background-image: url('../img/MainPanner.jpg');*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-inners {
  position: absolute;
  inset: 0;
  background-image: url('../img/bannerInners.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 270px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 80px 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--secondary-color);
  font-HCFA: "qabas-bold";
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-title-wrap,
.hero-title-wrap * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.main-heading-wrap,
.main-heading-wrap * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.main-description-wrap,
.main-description-wrap * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-700);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 576px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .hero-buttons {
    justify-content: start;
  }
}

.hero-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-2xl);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: translateY(-8px);
}

/* Statistics Section */
.statistics-section {
  /* background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); */
  padding: 80px 0;
}


.stats-section {
  text-align: right;
  direction: rtl;
  font-HCFA: 'qabas-bold';
  color: var(--dark-blue);
  padding: 20px;
}

.subheading {
  /* font-size: 14px; */
  color: var(--secondary-color);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  padding-right: 0 !important;
}

.subheading::after {
  content: "";
  display: inline-block;
  width: 50px;
  /* adjust as needed */
  height: 2px;
  background-color: var(--secondary-color);
  margin-right: 10px;

}

.main-heading {
  font-size: clamp(2.5rem, 5vw, 2.5rem);
  font-HCFA: 'qabas-bold';
  margin: 0;
  color: var(--dark-blue);
  transition: var(--transition);
}


.stat-card {
  background: #57caed21;
  backdrop-filter: blur(8px);
  border-radius: 40px;
  padding: 36px 32px;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.stat-icon {
  width: 128px;
  height: 128px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: var(--shadow-lg);
  border: 8px solid rgba(140, 217, 255, 0.2);
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  border-color: rgba(56, 149, 211, 0.4);
}

.stat-icon img {
  width: 66px;
  color: var(--secondary-color);
}

.stat-number {
  font-size: clamp(3rem, 5vw, 4rem);
  color: var(--dark-blue);
  font-HCFA: 'qabas-bold';
  margin-bottom: 0px;
  transition: var(--transition);
}

.stat-card:hover .stat-number {
  transform: scale(1.1);
}

.stat-label {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--secondary-color);
  line-height: 1.4;
  margin: 0;
  font-HCFA: 'qabas-bold';
}

.stat-label,
.stat-label * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.branch-title,
.branch-title * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}
.branch-description,
.branch-description * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

/* Map Section with Decorative Squares */
.map-section {
  padding: 80px 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.map-decorative-squares {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.decorative-square {
  position: absolute;
  border-radius: 12px;
  opacity: 0.6;
}

.square-1 {
  top: -40px;
  left: -40px;
  width: 128px;
  height: 128px;
  background: linear-gradient(135deg, rgba(56, 149, 211, 0.1) 0%, rgba(88, 204, 237, 0.05) 100%);
  transform: rotate(12deg);
}

.square-2 {
  bottom: -64px;
  right: -64px;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, rgba(242, 175, 42, 0.1) 0%, rgba(56, 149, 211, 0.05) 100%);
  transform: rotate(-12deg);
  border-radius: 20px;
}

.square-3 {
  top: 33%;
  left: 25%;
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, rgba(88, 204, 237, 0.08) 0%, rgba(7, 47, 95, 0.05) 100%);
  transform: rotate(45deg);
}

.map-container {
  position: relative;
  background: #cad2d3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  padding-bottom: 60%;
  z-index: 10;
}

.map-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.map-marker:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.map-marker span {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.map-marker::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  opacity: 0.6;
  animation: pulse 2s infinite;
}

.marker-blue span {
  background: var(--dark-blue);
}

.marker-blue::before {
  background: var(--dark-blue);
}

.marker-green span {
  background: var(--accent-color);
}

.marker-green::before {
  background: var(--accent-color);
}

.marker-yellow span {
  background: var(--yellow);
}

.marker-yellow::before {
  background: var(--yellow);
}

.map-legend {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.bg-blue {
  background: var(--dark-blue);
}

.bg-green {
  background: var(--accent-color);
}

.bg-yellow {
  background: var(--yellow);
}

.location-details {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 24px;
  border: 1px solid var(--gray-100);
  min-height: 300px;
}

.placeholder-content i {
  color: var(--gray-400);
  margin-bottom: 16px;
}

.location-item {
  width: 100%;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: right;
  transition: var(--transition);
  cursor: pointer;
}

.location-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(56, 149, 211, 0.2);
}

.location-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}




/* Contact Section */
.contact-section {
  background: var(--light-blue);
  padding: 80px 0;
}

.contact-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark-blue);
  margin-bottom: 48px;
}

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}


.form-control {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  /* padding: 12px 16px; */
  width: 100%;
  transition: var(--transition);
  text-align: right;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(18, 97, 160, 0.25);
}

#contact-form .form-control {
  padding: 12px 16px;
}

/* Custom Dropdown */
.dropdown-custom {
  position: relative;
}

.dropdown-toggle-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  text-align: right;
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-toggle-custom:hover {
  border-color: var(--primary-color);
}

.dropdown-text {
  color: var(--gray-500);
}

.dropdown-text.selected {
  color: var(--gray-900);
}

.dropdown-arrow {
  transition: transform 0.3s;
}

.dropdown-toggle-custom[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #e4f4ff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
  margin-top: 4px;
  padding: 8px 0;
}

.dropdown-menu-custom.show {
  display: block;
}

.dropdown-item-custom {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 16px;
  text-align: right;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-700);
}

.dropdown-item-custom:hover {
  background: #dbeafe;
}

.contact-images .contact-image {
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.contact-images .contact-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.contact-images img {
  border-radius: 35px;
}

/* ---------legal--------- */

.legal-documents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
  direction: rtl;
  font-HCFA: 'Tajawal', sans-serif;
  padding: 40px;
  background-color: #fff;
}

.document {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--dark-blue);
  margin-bottom: 65px;
}

.document img {
  width: auto;
  height: 115px;
  margin-bottom: 15px;
}

.document p {
  font-size: 1.2rem;
  line-height: 1.4;
  font-HCFA: 'qabas-bold';
  height: 47px;
}

/* ----------------------------FAQ----------------- */
.faq-section {
  direction: rtl;
  background-color: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: auto;
  margin-top: 50px;
  margin-bottom: 50px;
}

.accordion-item {
  border-bottom: 1px solid #eee;
}

.accordion-item.active .accordion-header {
  color: var(--primary-color);
}

.accordion-header {
  background: none;
  border: none;
  width: 100%;
  text-align: right;
  font-size: 1.1rem;
  padding: 15px;
  cursor: pointer;
  font-HCFA: 'qabas-bold';
  color: var(--dark-blue);
  position: relative;
}



.accordion-header::after {
  content: url('../img/elevated.png');
  position: absolute;
  left: 20px;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 15px;
  color: #333;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin: 0 15px 15px;
}


.accordion-item.active .accordion-body {
  display: block;
}

.faq-footer {
  text-align: center;
  margin-top: 30px;
}

.faq-message {
  font-size: 16px;
  font-weight: bold;
}

.faq-sub {
  font-size: 14px;
  margin-bottom: 10px;
  color: #555;
}

.accordion-question-text {
    
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}


.accordion-answer-text,
.accordion-answer-text * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

/* -----------------aboutus---------------- */
.bg-gray {
  background-color: #f9f9f9;
}

.about-section p {
  padding-right: 20px;
}

.about-img {
  border-radius: 15px;
  width: 100%;
  object-fit: cover;
}

.info-card {
  background-color: #e6f6fd;
  border-radius: 15px;
  padding: 20px;
  height: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.info-card img {
  width: 30px;
  margin-left: 10px;
}

.info-card h5 {
  color: var(--secondary-color);
  font-HCFA: 'qabas-bold';
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.info-card h5 i {
  margin-left: 8px;
}

.info-card ul,
.info-card p {
  padding-right: 20px;
  color: #555555;
  text-align: right;
}

/* ---------------------------------services--------------------- */
.servicesImage img {
  width: 485px;
  margin: 0 auto;
}

.service-box {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  text-align: right;
  transition: .3s;
}

.service-box:hover {
  background-color: #F2FAFF;
}

.service-icon {
    max-width: 80px;
    margin-bottom: 15px;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.service-title {
  color: var(--secondary-color);
  font-HCFA: 'qabas-bold';
  font-size: 1.2rem;
}

.info-card img.service-icon {
    width: 30px;
    height: 29px;
    object-fit: contain;
    flex-shrink: 0;
    min-width: 30px;
    margin-left: 10px;
}

.service-title,
.service-title * {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.service-description {
    margin-top: 10px;
}

.service-description,
.service-description * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.service-description,
.service-box p {
  font-size: 0.95rem;
  color: #555;
}


.service2-box {
  background-color: #F2FAFF;
  color: #555555;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
  text-align: right;
}

.service2-title {
  color: var(--dark-blue);
  font-HCFA: 'qabas-bold';
  margin-bottom: 10px;
  font-size: 1rem;
}

.section-title {
  color: var(--dark-blue);
  font-HCFA: 'qabas-bold';
  font-size: 1.8rem;
  margin-bottom: 40px;
}

.section-title-wrap,
.section-title-wrap * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.service2-box ul {
  padding-right: 1rem;
}

.link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: .3s;
}

.link:hover {
  color: var(--primary-color);

}

.dates {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  color: #8f8b8b;
}

.dates b {
  color: var(--secondary-color);
}

.modal-content {
  border-radius: 10px;
  padding: 20px;
}

.modal-title {
  color: #0c3c71;
  font-weight: bold;
}

.breadcrumb-container {
  background-color: #fff;
  padding: 20px;
}

.breadcrumb-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #007bcd;
  /* Blue like in image */
}

.breadcrumb-nav {
  font-size: 0.95rem;
  color: #888;
}

.breadcrumb-nav a {
  color: #007bcd;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------events------------------ */
.event-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px;
}

.event-info {
  flex: 1;
}

.event-img {
  width: 140px;
  height: 140px;
  background-color: #ccc;
  border-radius: 10px;
  background-image: url('../img/event.png');
  background-size: cover;
  background-position: center;
}

.event-title {
  font-HCFA: 'qabas-bold';
  color: var(--dark-blue);
  font-size: 1.2rem;
}

.event-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
}

.event-desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}


/* ------------------------videos----------------------- */
.video-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background-color: #f9f9f9;
  transition: transform 0.2s;
}

.video-card:hover {
  transform: scale(1.01);
}

.video-thumb {
  width: 100%;
  height: auto;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /*update*/
  z-index: 10000;
}

.play-button::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 15px solid var(--secondary-color);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* --------------------------------News------------------------- */
.news-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
  height: 100%;
}
/*--------------*/
.image-wrapper {
    /*width: 430px;*/
    width: 100%;
    max-width: 100%;

    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-wrapper::before, .image-wrapper2::before {
        content: "";
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        filter: blur(40px);
        transform: scale(1.2);
        z-index: 1;
         opacity: 0.8; 
        background-image: inherit;
}

    .image-wrapper::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, rgba(267,289,252,.95), rgba(250,249,258,.95) );
        z-index: 1;
    }
/*----------------*/
.news-card:hover {
    transform: translateY(-5px);
}

/*.news-img {*/
    /* height: 220px;
  object-fit: cover; */
    /*position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff9e;
}*/

.news-img {
    /* height: 220px;
  object-fit: cover; */
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    /* background: #ffffff9e;*/
}

.news-card:hover {
  transform: translateY(-5px);
}



.news-title {
  font-HCFA: 'qabas-bold';
  color: var(--dark-blue);
}

.news-meta {
  color: #6c757d;
}

.news-footer a {
  text-decoration: none;
  padding-bottom: 20px;
}

.news-footer a:first-child {
  color: var(--primary-color);
}

.news-footer a:last-child {
  color: var(--secondary-color);
}

.news-icon {
  width: 20px;
}

/* --------------------------------contactus----------------- */
.contact-card {
  margin-bottom: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out;
}

.contact-card:hover {
  transform: translateY(-10px);
  background-color: #F2FAFF;
}

.contact-card h5 {
  color: var(--dark-blue);
  font-HCFA: 'qabas-bold';
  font-size: 1.1rem;
}

.contact-card a {
  color: var(--secondary-color);
  text-decoration: none;
}

.contact-card p {
  font-size: 0.9rem;
  color: #555;
}

.contact-card i {
  margin-left: 8px;
}

.leaflet-container {
  border-radius: 10px;
}

#map {
  height: 570px;
}

@media (max-width: 767px) {
  .map-container {
    height: 300px;
    /* Smaller height for smaller screens */
  }
}



/* ------------------------------calendar-------------------- */

/* Calendar Styles */
.calendar-container {
  border: 1px solid var(--gray-200);
}

.calendar-header {
  padding-bottom: 8px;
}

.calendar-nav {
  color: var(--dark-blue);
  border: none;
  background: none;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.calendar-nav:hover,
.calendar-nav:focus {
  background-color: var(--gray-200);
  color: var(--primary-color);
}

.calendar-month {
  color: #19191a;
  font-weight: 400;
}

.calendar-separator {
  height: 1px;
  background-color: var(--gray-200);
  width: 100%;
}

.calendar-days-header .day-header {
  background-color: #ffffff;
  border-radius: 50px;
  color: #161617;
  font-size: 1rem;
  font-weight: 400;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day {
  border: none;
  border-radius: 50px;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  color: #0c0c0d;
  background-color: var(--gray-200);
}

.calendar-day:hover,
.calendar-day:focus {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Calendar Day States */
.calendar-day.day-selected {
  background-color: var(--primary-color);
  color: #ffffff;
}

.calendar-day.day-international {
  background-color: var(--secondary-color);
  color: #ffffff;
}

.calendar-day.day-world {
  background-color: var(--primary-color);
  color: #ffffff;
}

.calendar-day.day-local {
  background-color: var(--gray-medium);
  color: var(--navy);
}

.calendar-day.day-today {
  background-color: #ffffff;
  border: 2px solid #e5e5e6;
  color: #0c0c0d;
}

.calendar-day.day-normal {
  background-color: var(--gray-200);
  color: #0c0c0d;
}

.calendar-day.day-prev-month,
.calendar-day.day-next-month {
  background-color: transparent;
  color: #97979b;
  cursor: default;
}

.calendar-day.day-prev-month:hover,
.calendar-day.day-next-month:hover {
  transform: none;
  box-shadow: none;
}

/* Calendar Legend */
.calendar-legend {
  padding: 0 1rem;
}

.legend-item {
  margin-bottom: 0.75rem;
}

.legend-text {
  color: var(--dark-blue);
  font-size: 1rem;
  font-weight: 400;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.bg-navy {
  background-color: var(--dark-blue) !important;
}

.legend-dot.bg-info {
  background-color: var(--secondary-color) !important;
}

.legend-dot.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Events Section */
.events-nav {
  margin-bottom: 2rem;
}

.btn-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: var(--secondary-color);
  color: #252a34;
  transition: all 0.3s ease;
}

.btn-circle:hover,
.btn-circle:focus {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 149, 211, 0.3);
}

.btn-circle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}


/* Responsive Design */
@media (max-width: 768px) {

  .calendar-container {
    min-height: auto;
  }

  .calendar-day {
    min-height: 30px;
    font-size: 0.9rem;
    height: 30px;
    width: 30px;
  }

  .calendar-days-header .day-header {
    min-height: 35px;
    font-size: 0.9rem;
  }

  .btn-circle {
    width: 48px;
    height: 48px;
  }

  .legend-text {
    font-size: 0.9rem;
  }
 
}

@media (max-width: 576px) {
  .calendar-day {
    min-height: 32px;
    font-size: 0.85rem;
  }

  .calendar-days-header .day-header {
    min-height: 32px;
    font-size: 0.85rem;
  }


}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .calendar-day {
    border: 2px solid;
  }

  .btn-circle {
    border: 2px solid;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

  .calendar-day,
  .btn-circle {
    transition: none;
  }

  .event-card:hover,
  .btn-circle:hover {
    transform: none;
  }
}


/* Ensure minimum touch targets */
@media (pointer: coarse) {

  .calendar-day,
  .calendar-nav,
  .btn-circle {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Animation for calendar transitions */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.calendar-week {
  animation: slideIn 0.3s ease-out;
}

/* Loading state */
.calendar-loading {
  pointer-events: none;
  opacity: 0.7;
}

.calendar-loading .calendar-day {
  background-color: #e0e0e0;
  color: transparent;
}

/* Error state */
.calendar-error .calendar-day {
  background-color: #ffe6e6;
  color: #d32f2f;
  border: 1px solid #d32f2f;
}

/* --------------------------------carousel------------------ */


/* Style for the arrows above the carousel */
.carousel-arrows {
   position: absolute;
    top: -45px;
    left: 0;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px 55px;
}

/* Position arrows side by side */
.carousel-arrows .carousel-control-prev,
.carousel-arrows .carousel-control-next {
    background-color: var(--secondary-color);  /* Blue background for arrows */
    border: none;
    font-size: 24px;
    color: white;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(100%);
}

/* Optional: Add a shadow effect for better visibility */
.carousel-arrows .carousel-control-prev,
.carousel-arrows .carousel-control-next {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Optionally, change the appearance when hovering */
.carousel-arrows .carousel-control-prev:hover,
.carousel-arrows .carousel-control-next:hover {
    background-color: var(--primary-color);  /* Darker blue on hover */
}



/*  Footer */
.site-footer {
  background-color: #d8eaf8;
  /* Light blue background */
  text-align: center;
  direction: rtl;
  padding: 30px 20px;
  color: #333;
}

.footer-links .footer-link-text {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
  font-weight: bold;
}

.footer-links li a {
  text-decoration: none;
  color: var(--dark-blue);
}

.footer-links li a:hover {
  text-decoration: underline;
}

.footer-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 20px auto;
  width: 90%;
}

.footer-bottom {
  color: #666;
}


/* Social Media Panel (Default Open) */
.social-panel {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  transform: translateX(50%);
}

.social-links {
  background: var(--dark-blue);
  box-shadow: var(--shadow-2xl);
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  transform: translateX(100%);
  opacity: 0;
  transition: var(--transition);
}

.social-panel.expanded .social-links {
  transform: translateX(0);
  opacity: 1;
}

.social-panel.expanded {
  transform: translateX(0%);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid rgba(88, 204, 237, 0.3);
}

.social-link:last-child {
  border-bottom: none;
}

.social-link:hover {
  color: white;
  background: rgba(88, 204, 237, 0.2);
}

.social-toggle {
  width: 56px;
  height: 56px;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 28px 0 0 28px;
  box-shadow: var(--shadow-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.social-toggle:hover {
  background: #2980b9;
}

.social-toggle i {
  transition: transform 0.3s;
}

.social-panel.expanded .social-toggle i {
  transform: rotate(180deg);
}

/* ChatBot */
#chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 384px;
  height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.chat-window.show {
  transform: scale(1);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: var(--primary-color);
  color: white;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-title {
  font-size: 0.875rem;
  margin: 0;
}

.chat-status {
  font-size: 0.75rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  padding: 4px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 280px;
}

.bot-message {
  align-items: flex-start;
}

.user-message {
  align-items: flex-end;
  align-self: flex-end;
}

.message-content {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.bot-message .message-content {
  background: var(--gray-100);
  color: var(--gray-800);
  border-bottom-left-radius: 4px;
}

.user-message .message-content {
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 0.75rem;
  margin-top: 4px;
  opacity: 0.7;
}

.chat-quick-replies {
  padding: 0 16px 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-reply-btn {
  font-size: 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.quick-reply-btn:hover {
  background: var(--gray-200);
}

.chat-input {
  padding: 16px;
  border-top: 1px solid var(--gray-200);
}

.chat-input input {
  border-radius: 20px;
  padding: 12px 16px;
  text-align: right;
}

.chat-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle {
  width: 64px;
  height: 64px;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.chat-toggle:hover {
  background: #2980b9;
  transform: scale(1.05);
}

.chat-notification {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

/* Enhanced Focus Styles */
*:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile Touch Targets */
@media (pointer: coarse) {

  button,
  [role="button"],
  input,
  label {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .home-popup-container {
    padding: 40px 30px 40px;
    margin: 20px;
    min-height: 500px;
  }

  .popup-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 30px;
  }

  .popup-image-placeholder {
    width: 240px;
    height: 160px;
  }

  .popup-learn-more-btn {
    padding: 14px 32px;
    font-size: 18px;
    margin-top: 20px;
  }

  .popup-close-btn {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .chat-window {
    width: 320px;
    height: 450px;
  }

  .accessibility-controls {
    flex-direction: column;
    gap: 8px;
  }

  .news-scroll {
    gap: 24px;
  }

  .hero-section {
    min-height: 30vh;
  }

  .hero-bg {

    height: 250px;
  }

  .hero-bg-inners {

    height: 200px;
  }

  .statistics-section,
  .map-section,
  .contact-section {
    padding: 48px 0;
  }

  .stat-card {
    padding: 32px 24px;
  }

  .map-container {
    padding-bottom: 75%;
  }

  .footer-accessibility .accessibility-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .quality-badges {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 576px) {
  .home-popup-container {
    padding: 30px 20px 30px;
    margin: 10px;
    min-height: 400px;
    border-radius: 20px;
  }

  .popup-title {
    font-size: clamp(20px, 7vw, 28px);
    margin-bottom: 25px;
  }

  .popup-image-placeholder {
    width: 200px;
    height: 140px;
  }

  .popup-learn-more-btn {
    padding: 12px 28px;
    font-size: 16px;
    margin-top: 15px;
    min-width: 160px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .footer-legal {
    flex-direction: column;
    gap: 12px;
  }

  #chatbot-container {
    bottom: 16px;
    right: 16px;
  }

  .chat-window {
    width: calc(100vw - 32px);
    max-width: 320px;
  }

  .accessibility-controls {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100%;
    margin-top: 16px;
  }

}
.navbar-nav .dropdown-item.active {
    color: var(--secondary-color) !important;
    background: transparent !important;
    font-weight: 500;
}

.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: 500;
}

.p-20 {
    padding: 20px
}
.contact-section .row {
    margin-left: 0;
    margin-right: 0;
}


/* Scroll Address*/
.contact-container {
    padding-top: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

/* swiper */
.swiper {
    padding-bottom: 50px !important;
    padding-top: 20px !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: #072f5f;
}

.swiper-pagination-bullet {
    background: #ccc;
}

.swiper-pagination-bullet-active {
    background: #072f5f;
}

/* featured-badge  */
.featured-badge {
    background-color: #3895d3;
    color: #fff;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.star-icon {
    color: #FFD700;
    font-size: 12px;
}

/* inner news */
.news-details-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
}

.news-details-image img {
    border-radius: 10px;
    height: 340px;
    object-fit: contain
}


.news-details-title {
    font-size: 26px;
    font-weight: bold;
}

.news-details-content p {
    line-height: 1.9;
    color: #555;
}

.news-details-content,
.news-details-content * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}
.news-details-title,
.news-details-title * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}
.news-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

.news-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media print {
    header,
    nav,
    footer,
    .navbar,
    .news-banner,
    .social-panel,
    #social-panel,
    #chatbot-container,
    .chat-toggle {
        display: none !important;
        visibility: hidden !important;

    }
    body * {
        visibility: hidden !important;
    }

    .news-details-card,
    .news-details-card * {
        visibility: visible !important;
    }

    .news-details-card {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
        box-shadow: none !important;
        border: none !important;
    }

    .news-actions,
    .news-actions * {
        display: none !important;
        visibility: hidden !important;
    }

    .news-details-image img {
        max-height: 350px !important;
        width: 100% !important;
        object-fit: contain !important;
    }

    .news-details-title {
        font-size: 22px !important;
        color: #000 !important;
    }

    .news-details-content {
        color: #000 !important;
        line-height: 1.8 !important;
    }

        .news-details-content * {
            line-height: 1.8 !important;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

    @page {
        size: A4;
        margin: 15mm;
    }
}

/* error page */

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 80px 20px;
}

.error-icon {
    width: 120px;
    height: 120px;
    margin: auto;
    border-radius: 50%;
    background: #eaf4fb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.error-icon i {
    font-size: 50px;
    color: #2f8fd8;
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
}

.error-title {
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.error-description {
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 18px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

