* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul li {
  list-style-type: none;
}

body {
  font-family: "Tajawal", sans-serif;
  direction: rtl;
}

/* الهيدر */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
  background-color: #fff;
}

.header img {
  max-height: 60px;
  margin: 5px;
}

/* الناف بار */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 10px 20px; */
  flex-wrap: wrap;
  border-bottom: 1px solid #2e3353;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  background: rgb(0, 150, 136);
  direction: rtl; /* عشان نفضل ماشيين بالـ RTL */
}

/* تخلي القائمة على اليمين */
.nav-links {
  justify-content: space-between;
  width: 100%;
}
.nav-links,
.main-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  margin-right: 0;
}
.auth-links {
  display: flex;
  gap: 10px;
}

.nav-links > li,
.main-links > li {
  position: relative;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:hover,
.main-links a:hover {
  background: #2e3353;
}

/* القائمة الفرعية */
.dropdown {
  background: rgb(0, 150, 136);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* هنا وسعناها شوية */
  padding: 10px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 100;
}

.nav-links li:hover > .dropdown,
.main-links li:hover > .dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown a:not(.back-btn) {
  display: block;
  padding: 8px 15px;
  color: #ffffff;
}

.dropdown a:hover {
  background: #2e3353;
}

.auth-links a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.auth-links a:first-child {
  background: rgb(0, 150, 136);
}

.auth-links a:first-child:hover {
  background: rgb(0, 150, 136);
}

.auth-links a:last-child {
  background: rgb(0, 150, 136);
}

.auth-links a:last-child:hover {
  background: rgb(0, 150, 136);
}

/* الأيقونات داخل الروابط */
.nav-links a i,
.main-links a i {
  margin-left: 5px;
  font-size: 14px;
}

/* الصور */
.images-container {
  display: flex;
  gap: 50px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
}

.images-container img {
  flex: 1;
  max-width: 30%;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
}

.images-container img:nth-child(2) {
  transform: scale(1.1);
}

/* الهامبرجر */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
}

/* الهامبرجر active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* تأثير فتح القائمة */
.nav-links.active,
.main-links.active {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgb(0, 150, 136);
  padding: 10px 0;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* الموبايل */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .auth-links {
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
  }

  .images-container {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .hamburger {
    display: flex;
  }
}

/* المودال */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.4s ease;
}

.modal.show {
  opacity: 1;
  transform: scale(1);
}

.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: fadeInModal 0.4s ease;
}

.modal-content h2 {
  margin-bottom: 15px;
  text-align: center;
}

.modal-content form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.modal-content form button {
  width: 100%;
  padding: 10px;
  background: rgb(0, 150, 136);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.modal-content form button:hover {
  background: #2e3353;
}

/* زر الإغلاق */
.modal-content .close {
  position: absolute;
  top: 10px;
  left: 10px;
  cursor: pointer;
  font-size: 22px;
  color: #333;
}

/* حركة */
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.images-container img {
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.images-container img:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25); */
}

/* الديسكتوب */
@media (min-width: 769px) {
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  }

  .nav-links,
  .main-links {
    display: flex;
    gap: 15px;
    margin-right: 0;
  }

  .auth-links {
    display: flex;
    gap: 10px;
  }
}

/* الموبايل */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgb(0, 150, 136);
    padding: 10px 0;
  }

  .nav-links.active,
  .main-links.active {
    display: flex;
  }

  .auth-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 10px 0 0 0;
    padding-top: 10px;
    border-top: 1px solid #2e3353;
  }
}

/* موبايل - قائمة رئيسية */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgb(0, 150, 136);
    padding: 10px 0;
    position: relative;
    z-index: 100;
  }

  .nav-links.active {
    display: flex;
  }

  /* القائمة الفرعية كـ "سلايد" */
  .dropdown {
    display: none;
    position: absolute;
    background: rgb(0, 150, 136);
    top: 0;
    right: 100%;
    width: 100%;
    height: 100%;
    padding: 20px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: translateX(100%);
    opacity: 0;
  }

  .dropdown.active {
    display: block;
    transform: translateX(0);
    opacity: 1;
    z-index: 999;
  }

  /* تخلي روابط القائمة تحت بعض */
  .nav-links > li {
    width: 100%;
    padding: 5px 0;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 15px;
  }

  /* تأثير الدخول */
  .dropdown a {
    padding: 10px 15px;
  }
}
/* السلايد القوي للقائمة الفرعية */
@media (max-width: 768px) {
  .dropdown {
    display: none;
    position: absolute;
    background: rgb(0, 150, 136);
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateX(100%);
    opacity: 0;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  }

  .dropdown.active {
    display: block;
    transform: translateX(0);
    opacity: 1;
    z-index: 999;
  }

  /* زر الرجوع */
  .back-btn {
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    background: #2e3353;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
  }

  .back-btn:hover {
    background: #394077;
  }

  /* أيقونة سهم الرجوع */
  .back-btn::before {
    content: "⮐";
    margin-left: 8px;
    font-size: 16px;
  }

  /* الروابط داخل السلايد */
  .dropdown a {
    padding: 12px 20px;
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    transition: background 0.3s ease;
  }

  .dropdown a:hover {
    background: #394077;
  }
}
@media (max-width: 768px) {
  .main-links {
    display: grid;
    width: 100%;
    background: rgb(0, 150, 136);
    padding: 10px 0;
  }

  .main-links > li {
    border-bottom: 1px solid #2e3353;
  }

  .main-links a {
    color: #fff;
    font-size: 16px;
  }

  /* القوائم الفرعية تظهر فوق القائمة الرئيسية */
  .dropdown {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgb(0, 150, 136);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    padding-top: 60px;
    z-index: 999;
  }

  .dropdown.active {
    transform: translateX(0);
  }

  .overlay {
    display: none;
  }
}

/* الخلفية الداكنة لما القائمة الفرعية تفتح */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  transition: all 0.4s ease;
}

.overlay.active {
  display: block;
}

.back-btn::before {
  content: "←";
  margin-left: 8px;
  font-weight: bold;
}
.back-btn {
  cursor: pointer;
  display: none;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
}

@media (max-width: 768px) {
  .back-btn {
    display: block; /* يظهر فقط لما الشاشة تكون صغيرة */
    font-weight: bold;
    padding: 10px;
    color: #333;
  }
}

/* القائمة الرئيسية */
.nav-links.active {
  display: block;
}

/* dropdown داخل li */
.main-links li ul.dropdown {
  display: none;
}

.main-links li.submenu-active ul.dropdown {
  display: block;
}

/* slider*/
swiper-container {
  width: 90%;
  height: 90%;
}

swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

swiper-slide img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 25px;
}

.swiper-content {
  justify-content: center;
  margin: 30px;
  display: flex;
}

/*services */
.services {
  width: 70%;
}

.services .row.myrows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.services-side-content .side-content {
  width: 30%;
  position: relative;
}

.ticker-container {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
  padding: 0;
}

.news-label {
  background-color: rgb(204, 9, 9);
  color: #fff;
  padding: 12px 20px;
  font-size: large;
  font-style: italic;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-wrap {
  overflow: hidden;
  width: 100%;
  background: #fff;
  display: flex;
}

.ticker-move {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker-item {
  padding: 0 50px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.ticker-item .dot {
  height: 8px;
  width: 8px;
  background: red;
  border-radius: 50%;
  display: inline-block;
  margin-left: 5px;
}

/* Animation */
@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Hover effect */
.ticker-wrap:hover .ticker-move {
  animation-play-state: paused;
}

/* زر التشغيل والإيقاف */
.ticker-toggle {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0 10px;
  color: #333;
  flex-shrink: 0;
}

.ticker-toggle:hover {
  color: red;
}

/* الكرت العام */
/* الحاوية العامة للـ Links */
.Links.container {
  margin: 50px auto;
  max-width: 800px;
  background: #ffffff;
}

/* الكروت */
.side-cards {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #ffffff;
  padding: 15px;
  transition: all 0.3s ease;
}

.side-cards:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* العنوان */
.side-headers p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0d6efd;
  margin: 0;
}

/* تفاصيل الطوارئ */
.GovDetails {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
  margin-bottom: 10px;
  border-radius: 5px;
  text-align: center;
}

.GovName {
  font-weight: 500;
  margin-bottom: 5px;
}

.GovNum {
  font-size: 1.5rem;
  color: #dc3545;
  font-weight: bold;
}

/* الاستبيان */
.form-check-input {
  margin-left: 0.5rem;
  accent-color: #0d6efd;
}

.form-check-label {
  font-weight: 500;
  cursor: pointer;
}

.form-check:hover .form-check-label {
  color: #0d6efd;
}

/* textarea */
textarea.form-control {
  resize: none;
  border-radius: 8px;
  border: 1px solid #ced4da;
  transition: border 0.3s ease;
}

textarea.form-control:focus {
  border-color: #0d6efd;
  box-shadow: none;
}

/* الزر */
.opinion-btn {
  border-radius: 25px;
  transition: all 0.3s ease;
}

.opinion-btn:hover:not(:disabled) {
  background: #0d6efd;
  color: #fff;
}

/* تعديل الـ accordion */
.mat-expansion-panel-header {
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.mat-expansion-indicator {
  color: #0d6efd;
}

.mat-expansion-panel-body {
  padding: 15px 0 0 0;
}

.mat-accordion .mat-expansion-panel {
  box-shadow: none !important;
  border: none;
}

/* تخطيط الكروت  */
.row > .col-lg-5 {
  flex: 0 0 50%;
  max-width: 50%;
}

.row > .col-lg-1 {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .row > .col-lg-5 {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .Links.container {
    padding: 0 15px;
  }
}

.Links {
  padding: 50px 0;
  background-color: #f9f9f9;
}

.side-cards {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.side-headers p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.GovName {
  font-weight: 600;
  color: #444;
}

.GovNum {
  font-weight: bold;
  color: #cc0909;
}

.opinion-side-sub-title {
  font-weight: bold;
  color: #333;
}

.RadioLabel {
  margin-right: 10px;
}

.opinion-btn {
  margin: 10px;
  border-radius: 1rem;
  border: none;
  background-color: rgb(0, 150, 136);
  color: #fff;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  bottom: 0;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.btn-content {
  text-align: center;
}

/* Accordion tweaks */
.mat-expansion-panel-header {
  cursor: pointer;
}

.mat-expansion-panel-body {
  padding: 0;
}

@media (max-width: 992px) {
  .Links .col-lg-5 {
    margin-bottom: 20px;
  }
}

/* Container fix */
.Links .row {
  display: flex;
  justify-content: space-between;
}

.Links .col-lg-5 {
  max-width: 50%;
}

.Links .col-lg-1 {
  display: none;
}

/*    */
.main-title {
  text-align: center;
  position: relative;
  margin-bottom: 35px;
}
.main-title::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 50%;
  width: 80%;
  height: 1px;
  background-color: #000;
  z-index: -1;
}
.main-title h2 {
  background-color: white;
  padding: 5px 15px;
  font-size: 22px;
  width: fit-content;
  margin: 0 auto;
}

.card {
  border-radius: 20px;
  background: #f5f5f5;
  position: relative;
  padding: 1.8rem;
  border: 2px solid #c3c6ce;
  transition: 0.5s ease-out;
  overflow: visible;
}

.card-details {
  color: black;
  height: 100%;
  gap: 0.5em;
  display: flex;
  gap: 5px;
  text-align: center;
  place-content: center;
  flex-direction: column;
}
.card-details i {
  font-size: 55px;
}
.card-button {
  transform: translate(-50%, 125%);
  width: 60%;
  border-radius: 1rem;
  border: none;
  background-color: rgb(0, 150, 136);
  color: #fff;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  position: absolute;
  left: 50%;
  bottom: 0;
  opacity: 0;
  transition: 0.3s ease-out;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.text-body {
  color: rgb(134, 134, 134);
}

/*Text*/
.text-title {
  font-size: 1.5em;
  font-weight: bold;
}

/*Hover*/
.card:hover {
  border-color: rgb(0, 150, 136);
  box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}

.card:hover .card-button {
  transform: translate(-50%, 50%);
  opacity: 1;
}

.services-side-content {
  display: flex;
  gap: 35px;
  position: relative;
  padding-inline: 40px;
}
.side-headers p {
  text-align: center;
  padding: 15px;
}
.last-item {
  margin-top: 30px;
}

/* Footer */
footer {
  background: var(--header-footer-bg);
  color: var(--header-footer-text);
  padding: 2rem 0;
  margin-top: 2rem;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  gap: 20px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  padding: 1rem;
  text-align: right;
}

.footer-section h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  text-decoration: none;
  color: var(--header-footer-text);
  transition: color 0.3s;
  display: block;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.footer-social a {
  color: var(--header-footer-text);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-section {
    text-align: center;
  }
}

.footer-link {
  text-transform: capitalize;
  font-size: 17px;
  color: green;
  font-weight: 600;
}
