@font-face {
  font-family: "Cairo";
  src: url("../../../../assets/fonts/cairo/Cairo-Regular.ttf")
      format("truetype"),
    url("../../../../assets/fonts/cairo/Cairo-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Cairo";
  src: url("../../../../assets/fonts/cairo/Cairo-Bold.ttf") format("truetype"),
    url("../../../../assets/fonts/cairo/Cairo-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

body {
  margin: 0;
  font-family: "Cairo", "Roboto", sans-serif;
  background-color: #eef1f5;
  color: #333;
  line-height: 1.8;
}

/* Ministry Bar */
.ministry {
  display: flex;
  background-color: #0059048c;
  justify-content: center;
  text-align: center;
}

.ministry h4 {
  color: #860b0b;
  margin: 0 15px;
  font-size: 1.2em;
}

/* Header Grid */
.grdHeader {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(to top left, #e3f2fd, #ffffff);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  gap: 8px;
  padding: 10px;
  margin: 5px;
}

.grdHeader > .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #263238;
  letter-spacing: 0.8px;
  user-select: none;
  backdrop-filter: blur(10px);
  font-weight: 400;
  background: linear-gradient(to top left, #e3f2fd, #ffffff);
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border-radius: 12px;
  animation: fadeIn 0.5s ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease,
    background-color 0.3s ease, color 0.3s ease;
}

.grdHeader > .header:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  filter: brightness(1.2);
  background-color: rgba(255, 255, 255, 0.3);
  color: #000000;
  transform: scale(1.06);
}

.grdHeader > .header:active {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  filter: brightness(0.9);
  transform: scale(0.98);
}

.grdHeader > .header img {
  width: 90px;
  transition: transform 0.25s ease, filter 0.3s ease;
}

.grdHeader > .header img:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.grdHeader > .header h4 {
  color: #263238;
  margin: 0 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.grdHeader > .header:hover h4 {
  color: #000;
}

@media (max-width: 768px) {
  .grdHeader {
    grid-template-columns: 1fr;
  }
  .grdHeader > .header {
    padding: 2rem 1.5rem;
    font-size: 1rem;
  }
}

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Title Section */
.title {
  background: linear-gradient(135deg, #007ea7, #005b82);
  text-align: center;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  margin: 5px 5px 35px;
  animation: fadeInTitle 1s ease-out;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease-in-out, box-shadow 0.35s ease-in-out;
}

.title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15),
    rgba(0, 0, 0, 0.25)
  );
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.title h1 {
  font-size: 2.2em;
  font-weight: 800;
  margin: 0;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease, text-shadow 0.35s ease, color 0.35s ease;
}

.title h1:hover {
  transform: scale(1.08);
  text-shadow: 5px 5px 14px rgba(0, 0, 0, 0.6);
  color: #ffeb3b;
}

.title h2 {
  font-size: 1.6em;
  font-weight: 600;
  margin: 18px auto 0;
  letter-spacing: 1.2px;
  text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, color 0.35s ease, text-shadow 0.35s ease;
  max-width: 80%;
  text-align: center;
}

.title h2:hover {
  transform: scale(1.07);
  color: #ff8a80;
  text-shadow: 4px 4px 9px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInTitle {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title:hover {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}

/* Navigation Bar */
.navBar {
  background: linear-gradient(135deg, #00a8e8, #007ea7);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin: 5px;
}

.navBar a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 500;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
}

.navBar a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.navBar a:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Page Layout Grid */
.page {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 15px;
  padding: 20px;
}

ul ul {
  margin-top: 10px;
  margin-bottom: 8px;
  padding: 15px 25px;
  padding-left: 30px;
  background: linear-gradient(135deg, #f0faff, #e0f0ff);
  box-shadow: 0 4px 12px rgba(0, 126, 167, 0.1);
  position: relative;
  overflow: hidden;
}

.rightBar,
.leftBar,
.content {
  background: linear-gradient(to top left, #e3f2fd, #ffffff);
  padding: 25px;
  padding-bottom: 0px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.rightBar:hover,
.leftBar:hover,
.content:hover {
  transform: scale(1.008);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.content h2 {
  font-size: 1.25em;
  color: #0056b3;
  background-color: #e8f0fe;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.rightBar h2,
.leftBar h2 {
  font-size: 1em;
  color: #0056b3;
  background-color: #e8f0fe;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.leftBar h2 {
  border-radius: 8px;
  margin-bottom: 25px;
}
.rightBar h2 {
  border-radius: 8px;
  margin-bottom: 5px;
}

.rightBar h4,
.leftBar h4 {
  color: #0056b3;
  margin-right: 10px;
}

.content ul li {
  margin-bottom: 8px; /* Adjust value for more/less space */
  font-size: 1.1em;
  letter-spacing: 0.4px;
}
.content p {
  text-align: justify;
  text-indent: 25px;

  font-size: 1.1em;
  margin: 10px 0;
  color: #333333;
  letter-spacing: 0.1px;
  padding: 0px 5px;
}
.content .chapter h4,
.content .chapter p {
  display: inline;
  line-height: 2;
  text-align: justify;
  word-spacing: 0.9px;
  font-size: 1em;
  letter-spacing: 0.4px;
}

.rightBar li,
.leftBar li,
.content li {
  text-align: justify;
  margin: 0;
  padding: 0;
}

h3 {
  margin-top: 0;
  font-size: 1.4em;
}

.leftBar h2,
.rightBar h2 {
  background-color: #007ea7;
  color: white;
}

.leftBar h2 {
  margin-top: 50px;
}

.leftBar ul li {
  margin-bottom: 12px; /* Adjust value for more/less space */
  line-height: 1.9;
}

.rightBar .flexCom {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly; /* لتوزيع العناصر بشكل متساوٍ */
  height: 100%; /* تأكد من أن الحاوية تأخذ مساحة مناسبة */
}

.content .email-contact {
  color: #4a1f1f; /* Deeper, elegant mahogany for improved readability */
  font-size: 1.15em;
  font-weight: 300;
  padding: 10px;

  background: linear-gradient(
    135deg,
    #fdfdfd,
    #f3e7e7
  ); /* Subtle, airy gradient with soft warmth */
  border: 1px solid #6edb74; /* Softer, fresh green to avoid harshness */
  border-radius: 18px;
  max-width: 560px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.8px;
  line-height: 1.9;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
  backdrop-filter: blur(6px);
  margin-top: auto;
  margin-bottom: 15px;
}

.email-contact:hover {
  background: linear-gradient(
    135deg,
    #f9eaea,
    #f4d4d4
  ); /* Smooth, pastel hover effect */
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px) scale(1.02);
}

.email-contact a {
  color: #0077aa; /* Calm, inviting blue */
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease, text-shadow 0.3s ease;
}

.email-contact a:hover {
  color: #005070; /* Deeper teal for hover */
  border-bottom: 2px solid #005070;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.footer {
  background-color: #003459;
  color: #ffffff;
  display: flex;
  justify-content: space-between; /* Space around items */
  align-items: flex-start; /* Align items to the top */
  flex-wrap: wrap; /* Allow wrapping on small screens */
  padding: 20px;
  direction: rtl; /* Arabic-friendly direction */
  font-size: 1em;
}

.footer ul {
  padding: 0;
  margin: 0;
  width: auto;
  list-style-position: inside; /* Ensures bullets appear inside the padding */
}

.footer h3 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1em;
}

.footer li {
  margin-bottom: 8px;

  padding-inline-start: 20px; /* Works well with RTL for indentation */
  position: relative;
}

.footer li::before {
  position: absolute;
  right: 0; /* Align with RTL */
  font-size: 1.1em;
}

.footer a {
  color: #00a8e8;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: #afcad3;
  background-color: #007ea7;
  padding: 5px 10px;
  border-radius: 5px;
}

.footer-email h3 {
  margin-bottom: 12px;
  font-size: 1em;
  color: #00c8ff; /* Bright cyan title */
}

.footer-email ul {
  padding: 0;
  margin: 0;
}

.footer-email li {
  color: #d1e8f2;
  margin-bottom: 8px;
}

/* Email link styling */
.footer-email a {
  color: #00a8e8; /* Light greenish blue */
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-email a:hover {
  color: #002744; /* Dark blue on hover */
  background-color: #003cff; /* Highlight background */
  padding: 3px 6px;
  border-radius: 5px;
}

a.disabled {
  color: #d5d2d2; /* Gray color to indicate disabled */
  pointer-events: none; /* Disable click events */
  cursor: default; /* Change cursor to default arrow */
  text-decoration: none; /* Remove underline */
}

.website-info {
  margin-top: auto;
}
.website-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 88, 5, 0.12);
}

.website-info h2 {
  text-align: right;
  color: #ffffff;
  font-size: 1em;
  margin: 20px 0 10px;
}

.website-info h3 {
  color: #005f73;
  font-size: 1em;
  margin: 20px 0 10px;
  padding-right: 10px;
  font-weight: bold;
}

.website-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.website-info li {
  background-color: #f8f9fa;
  padding: 10px 25px;
  margin-bottom: 15px;
  border-radius: 10px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 94, 5, 0.08);
  font-size: 1em;
  position: relative;
}

.website-info li::before {
  position: absolute;
  right: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background-color: #007ea7;
  transition: width 0.3s ease;
}

.website-info li:hover {
  background-color: #e0f7fa;
  transform: translateX(-8px);
}

.website-info li:hover::before {
  width: 100%;
  background: linear-gradient(90deg, #007ea7 0%, #00b4d8 100%);
  opacity: 0.2;
}

/* Responsive */
@media (max-width: 768px) {
  .website-info {
    padding: 20px;
    margin: 20px 10px;
  }

  .website-info h2 {
    font-size: 24px;
  }

  .website-info h3 {
    font-size: 20px;
  }

  .website-info li {
    padding: 15px 20px;
    font-size: 16px;
  }
}
