/* Colors : pink: #ff00ea. */
:root {
  --color1-1: #87a5d6;
  --color1-2: #d2def1;
  --color1-3: #bdceea;
  --color1-4: #e7edf7;
  --color1-5: #a3bae1;

  --color2-1: #e9ae6a;
  /* --navbar: #f3d6a9; */
  --navbar: #f3f3f3; /* #f0f0f0; */
  --Bootstrap: #3b71ca; /* Bootstrap blue color #3b71ca  rgb(59, 113, 202) */
  --color2-rgba: rgba(0, 11, 24, 0.75);
  --color3: red; /* color that represents 5% #ff00ea  rgb(255, 0, 234)*/

  --color2-3: #407de6; /* copyrights */
  --color2-4: #7a95c1;

  --color2-5: #ffcd34;
  --color2-dark: #1c0c1e;

  --color1-1-hover: #407de6;
  /* --color2-3-hover: #8d194d; */
  --color2-3-hover: #498bfc;

  --title-1: #000000;
  --title-2: #1f0000;
}

* {
  box-sizing: border-box;
  transition: background-color 300ms ease, color 300ms ease;
}

*:focus {
  outline: none;
}

html,
body {
  /* background-color: var(--navbar); */
  /* background: var(--color1-1); */
  background: linear-gradient(90deg, var(--navbar) 0%, rgb(235, 235, 235) 50%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  color: var(--color2-dark);
  font-family: "Cairo", sans-serif;
  font-size: 18px;
  margin: 0;
  padding: 0;

  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2 {
  color: var(--title-1);
  margin-bottom: 1rem;
}
h3 {
  color: var(--title-1);
  font-size: 22px;
  /* font-weight: bold; */
  margin-bottom: 1rem;
}

p {
  line-height: 38px;
}

/* li {
  margin-bottom: 1rem;
} */

a.active,
a.active:visited,
a.active:link {
  background: var(--color2-3);
  color: white;
}

/********* Bootstrap customization ******************/

/* .bg-custom {
  background-color: var(--navbar);
} */

.nav-link {
  color: black;
}

.navbar {
  border-bottom: 2px solid red;
}

/********* end Bootstrap customization **************/

/*********** Footer *************/

footer {
  background-color: var(--navbar);
  color: var(--color2-4);
  text-align: center;
  margin-top: 10px;
}

/** Table */
table {
  border-collapse: collapse;
  width: 100%;
}

table tr th {
  text-align: right;
  direction: rtl;
}

table td,
table th {
  border: 1px solid #ddd;
  padding: 8px;
}

table tr:nth-child(even) {
  background-color: #f2f2f2;
}

table tr:hover {
  background-color: #ddd;
}

table th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: var(--color1-1);
  color: white;
}

table button {
  border: none;

  color: white;
  padding: 2px 10px;
  border-radius: 5px;
  cursor: pointer;
  width: 70px;
  margin-left: 8px;
}

table tr td img {
  height: 45px;
}

/* From Django 5 by example */

p.date {
  color: var(--title-1);
  font-family: georgia, serif;
  font-size: 14px;
  font-style: italic;
}

.left {
  float: left;
  margin-right: 10px;
}

.pagination {
  margin: 40px 0;
  font-weight: bold;
}

/* subscribe_pdf Form */

form.subscribe_pdf {
  background-color: var(--navbar);
  padding: 15px;
  max-width: 500px;
}

form.subscribe_pdf label {
  width: 120px;
  display: inline-block;
  /* background-color: #f3d5a986; */
}

form.subscribe_pdf input {
  padding: 5px;
  margin: 5px;
}

.card-simple {
  border: 1px solid rgb(163, 163, 163);
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 5px;
}

/* end subscribe_pdf */

/**/
textarea {
  height: 20vh;
  width: 90%;
  resize: none;
  margin-top: 10px;
}

input [type="submit"] {
  padding: 8px;
  background: blue;
}

.mybtn {
  display: inline-block;
  border: 1px solid var(--color3) !important;
  /* padding: 10px 15px 10px; */
  min-width: 100px;
  height: 40px;
  border-radius: 5px;
  background: var(--color3);
  color: white;
  text-decoration: none;
}

.mybtn:hover {
  background: var(--color3);
  color: white;
  font-weight: bold;
}

.mybtn a {
  text-decoration: none;
}

/********** director-section *********/
/* -------------- */

#director-image {
  height: auto;
  border-radius: 15px;
  box-shadow: 20 12px 24px rgba(0, 0, 0, 0.75);
  max-width: 420px;
}

/* Animation for fading and sliding the image in */
.dir-image-animation {
  opacity: 0.2;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When the image is in view */
.dir-image-in-view {
  opacity: 1;
  transform: translateY(0);
}

.dir-image-container {
  position: relative;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  overflow: hidden; /* Ensures rounded corners affect shadow */
  box-shadow: 20px 8px 16px rgba(0, 0, 0, 0.5);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.dir-image-container:hover {
  transform: scale(1.05); /* Slight zoom on hover */
}

.text-animation {
  opacity: 0; /* Start hidden */
  transform: translateX(-20%); /* Start off-screen */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.text-animation.active {
  transform: translateX(0); /* Slide into position */
  opacity: 1;
}

/* animation */

@keyframes slide-in-left {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.text-animation {
  opacity: 0; /* Start hidden */
  animation: slide-in-left 1s ease-out forwards; /* 1s animation from left to right */
}

/********** END director-section *********/

span.fa-search {
  color: var(--color3);
}
span.fa-youtube {
  color: var(--color3);
}

/***********************************************************/
/** @media */
/***********************************************************/

@media (max-width: 768px) {
  /* Services mobile */
  .service-container {
    grid-template-columns: 1fr;
    max-width: 90%;
    margin: auto;
  }
  .service-container .item div b {
    font-size: 14px;
  }
  .service-container .item p {
    font-size: 12px;
  }

  /*** mobile section 1 */
  .home-stat {
    position: relative;
    padding: 40px;
    color: white;
    z-index: 5;
  }
  .home-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;

    opacity: 0.7;
    z-index: -1;
  }
}

/***********************************************************/
/** END @media */
/***********************************************************/
