

:root {
  --main-color: #0075ff;
  --main-color-alt: #0659bb;
}

body {
  font-family: "Cairo", sans-serif;
  background-color: #eee;
}
::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar-track {
  background-color: #eee;
}
::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--main-color-alt);
}
input:focus {
  outline: none;
}
input {
  caret-color: var(--main-color);
}
/* Start Headings Collection */
.title-box {
  text-align: center;
}
.title-box h2 {
  letter-spacing: 1px;
}
.title-box p {
  font-size: 14px;
  color: #555;
  word-spacing: 1px;
  letter-spacing: 1px;
  position: relative;
}
.title-one + .description {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  grid-template-rows: 30px 0;
  grid-gap: 15px;
  align-items: center;
}
.title-one + .description::before,
.title-one + .description::after {
  content: "";
  display: block;
  border-bottom: 1px solid var(--main-color);
  border-top: 1px solid var(--main-color);
  height: 5px;
}
.title-two + .description {
  margin-bottom: 40px;
}
.title-two + .description::before {
  content: "";
  background-color: var(--main-color);
  position: absolute;
  bottom: -20px;
  left: 50%;
  width: 30px;
  height: 5px;
  transform: translateX(-50%);
}
.title-two + .description::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--main-color);
  width: 100px;
  height: 1px;
}
.title-three + .description {
  width: fit-content;
  margin: 0 auto 20px;
  padding-bottom: 15px;
}
.title-three + .description::before {
  content: "";
  background-color: #111;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 55px;
  height: 5px;
}
.title-three + .description::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  background-color: #333;
  width: 95%;
  height: 1px;
  max-width: 255px;
}
.title-four + .description {
  padding-bottom: 20px;
}
.title-four + .description::before,
.title-four + .description::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45px;
  height: 4px;
  content: "";
  right: 45px;
  margin: auto;
  background-color: #ccc;
}
.title-four + .description::before {
  background-color: var(--main-color);
  left: 45px;
  width: 90px;
}

.title-five {
  width: fit-content;
  white-space: nowrap;
  border: 2px solid #222;
  padding: 5px 10px;
  position: relative;
  margin: 0 auto 15px;
}
.title-five::before,
.title-five::after {
  content: "";
  background-color: var(--main-color);
  position: absolute;
  height: 7px;
  width: 7px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.title-five::before {
  left: -20px;
}
.title-five::after {
  right: -20px;
}
.title-five + .description {
  padding-bottom: 20px;
}


/* End Headings Collection */

/* Start Navbar */

.navbar {
  padding: 0;
  background-color: var(--main-color) !important;
}
.navbar-brand img {
  height: 50px;
}
.navbar-nav .nav-link {
  color: white;
  transition: 0.3s;
  padding: 15px 20px !important;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover {
  background-color: var(--main-color-alt) !important;
}
.dropdown-toggle::after {
  position: relative;
  top: 2px;
  left: 3px;
}
.navbar-nav .dropdown-menu {
  min-width: 260px;
  top: calc(100% - 3px);
  border-radius: 0;
  border: none;
  padding: 0;
  background-color: var(--main-color-alt);
}
.navbar-nav .dropdown-menu .dropdown-item {
  padding: 15px;
  border-radius: 0;
  color: white;
  transition: 0.3s;
}
.navbar-nav .dropdown-menu .dropdown-item:focus,
.navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: var(--main-color);
  color: white;
  padding-left: 18px;
}
.navbar-nav li:last-child .dropdown-menu {
  right: 0;
  left: auto;
}


/* End Navbar */



/* Start Homepage */
.homepage {
}
.homepage .section {
  padding-top: 60px;
  padding-bottom: 60px;
}
.homepage .introduction {
  min-height: calc(100vh - 56px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.homepage .introduction .search-form {
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: auto;
}
.homepage .introduction .search-form input[type="search"] {
  width: 100%;
  padding: 10px 15px;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 16px;
  color: #333;
  transition: 0.3s;
}
.homepage .introduction .search-form .search-submit {
  padding: 10px 15px;
  border: none;
  border-radius: 0 5px 5px 0;
  font-size: 16px;
  color: #fff;
  background-color: var(--main-color);
  cursor: pointer;
  transition: 0.3s;
}
.homepage .introduction .search-form .search-submit:hover {
  background-color: var(--main-color-alt);
}
.homepage .movies {
  background-color: white;
}
.homepage .single-post {
  max-width: 850px;
  margin: auto;
  padding-right: 30px;
  padding-left: 30px;
}
.homepage .single-post img {
  max-width: 100%;
  height: auto;
}
.homepage .multiple-posts {
  max-width: 900px;
  margin: auto;
  padding-left: 25px;
  padding-right: 25px;
}
.homepage .multiple-posts .book {
  padding: 15px;
  background-color: white;
  border-radius: 6px;
  margin: 5px;
}
.homepage .multiple-posts .book .img-link {
}
.homepage .multiple-posts .book .img-link:hover img {
  transform: rotate(5deg);
}
.homepage .multiple-posts .book img {
  max-width: 100%;
  height: auto;
  transition: 0.3s;
}
.homepage .multiple-posts .book h3 {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}
.homepage .multiple-posts .book h3 a {
  text-decoration: none;
  color: black;
  transition: 0.3s;
}
.homepage .multiple-posts .book h3 a:hover {
  color: var(--main-color);
}
.homepage .multiple-posts .book .excerpt {
  font-size: 15px;
  color: #777;
  text-align: center;
}



.homepage .random-posts-posts {
  background-color: white;
  /* width: 100%;
  padding: 15px;
  border-radius: 6px;
  margin: 5px; */
  /* display: flex;
  justify-content: space-between;
  align-items: center; */
}
/* .homepage .random-posts .posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 10px;
} */
@media (min-width: 768px) {
  .homepage .random-posts .posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 10px;
  }
}
.homepage .random-posts .post {
  padding: 15px;
  background-color: #fbfbfb;
  border: 1px solid #ddd;
  border-radius: 10px;
}
@media (max-wedth: 767px){
  .homepage .random-posts .post {
    margin-bottom: 10px;
  }
}
.homepage .random-posts .post:hover {
  background-color: #f5f5f5;
  transform: scale(1.01);
  transition: 0.3s;
}
.homepage .random-posts .post h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: bold;
}
.homepage .random-posts .post h3 a {
  text-decoration: none;
  color: black;
  transition: 0.3s; 
}
.homepage .random-posts .post h3 a:hover {
  color: var(--main-color);
}
.homepage .random-posts .post .excerpt {
  color: #777;
  margin-bottom: 5px;
}
.homepage .random-posts .post .info {  
  display: flex;
  flex-direction: column;
  gap: 5px;

} 

.homepage .random-posts .post .info i {  
  color: #777;
  margin-right: 5px;
}
.homepage .random-posts .post .info a {
  color: #555;
  text-decoration: none;
  transition: 0.3s;
  font-weight: bold;
}
.homepage .random-posts .post .info a:hover {
  color: var(--main-color);
}


.homepage .random-posts .post .info .date {
  /* font-size: 15px;
  color: #777;
  /* text-align: center; */
} 
.homepage .random-posts .post .info .author {
  /* font-size: 15px;
  color: #777;
  text-align: center; */
}
.homepage .random-posts .post .info .category {  
  /* font-size: 15px;
  color: #777;
  text-align: center; */
}
.homepage .random-posts .post .info .comments {
  /* font-size: 15px;
  color: #777;
  text-align: center; */
}   
 

/*Games*/
@media (min-width:768px){
.homepage .games .games-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}
}
.homepage .games .game{
  background-color: white;
  position: relative;
}
@media(max-width: 767px) {
  .homepage .games .game{
    text-align: center;
  }
  
}
.homepage .games .game img {
  max-width: 100%;
  height: auto;
  transition: 0.1s;
}

.homepage .games .game .main-link {
    display: block;
    overflow: hidden;
}
.homepage .games .game .main-link img {
 max-width" 100%;
 height: auto; 
 tansition: 0.3s;
}

.homepage .games .game .main-link img:hover {
  transform: scale(1.1) rotate(5deg);
  opacity: 0.8;
}

.homepage .games .game .id {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  background-color: var(--main-color);
  color: white;
  font-weight: bold;
  border-radius: 5px;
}
.homepage .games .game .comments {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  background-color: var(--main-color);
  color: white;
  font-weight: bold;
  border-radius: 5px;
}
.homepage .games .game .author-avatar img {
 border-radius: 50%;
 position: relative;
 top: -32px;
 border: 2px solid white;
}

@media(min-width: 768px) {
  .homepage .games .game .author-avatar img{
   left: 10px;
  }
}

.homepage .games .game .info {
  padding: 20px;
  margin-top: -40px;
  position: relative;
}
.homepage .games .game .info .game-heart {
  position: absolute;
  right: 20px;
  top: 0;
  font-size: 60px;
  opacity: 0.07;
  color: var(--main-color);
}

.homepage .games .game .info a {
  text-decoration: none;
  color: black;
  transition: 0.3s;
  font-size: 22px;
  font-weight: bold;
}
.homepage .games .game .info a:hover {
  color: var(--main-color);
}
.homepage .games .game .info .excerpt {
  color: #777;
}

/* .homepage .games .game .info .company {
  height: 30px;
  margin-top: 5px;
  color: #777;
}
.homepage .games .game .info .company span {
  font-weight: bold;
} */


.homepage .games .game .info .data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  margin-bottom: 15px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding-top: 10px;
  padding-bottom: 10px;
  color: #666;
}

.homepage .games .game .info .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.homepage .games .game .info .tags a {
  padding: 2px 10px;
  background-color: #eee;
  color: #666;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
  font-size: 14px;
}
.homepage .games .game .info .tags a:hover {
  background-color: var(--main-color);
  color: white;
}



/* Start NewsLetter */

.newsletter {
  padding-top: 100px;
  padding-bottom: 100px;
  background: url("../imgs/newsletter.webp") no-repeat;
  background-size: cover;
  position: relative;
  text-align: center;
}
.newsletter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--main-color);
  opacity: 0.8;
}
.newsletter .container {
  position: relative;
  z-index: 1;
  color: white;
}
.newsletter h2 {
  font-weight: bold;
  font-size: 40px;
}
.newsletter p {
  font-size: 20px;
  letter-spacing: 1px;
}
.newsletter form {
  margin: 20px auto;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.newsletter form input[type="email"] {
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  position: relative;
  left: 20px;
  width: 100%;
}
.newsletter form input[type="submit"] {
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 20px;
  position: relative;
  left: -20px;
  background-color: var(--main-color-alt);
  color: white;
  width: 100px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.newsletter form input[type="submit"]:hover {
  background-color: var(--main-color);
  border-color: white;
}


/* End  NewsLetter */

/* End Homepage */




/* Start Search Page */
.search-page {
  padding-top: 30px;
}
.search-page .search-results {
}
.search-page .search-results .result {
  margin-bottom: 15px;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}
.search-page .search-results .result .link {
  font-size: 20px;
  font-weight: bold;
  color: var(--main-color);
  text-decoration: none;
  transition: 0.3s;
}
.search-page .search-results .result .link:hover {
  color: var(--main-color-alt);
}
.search-page .search-results .result .excerpt {
  margin: 10px 0;
  color: #777;
}
.search-page .search-results .result .time {
  font-size: 14px;
  color: #999;
}
.search-page .search-results .result .categories {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  color: #777;
}
.search-page .search-results .result .categories a {
  color: var(--main-color);
  text-decoration: none;
  transition: 0.3s;
}
.search-page .search-results .result .categories a:hover {
  color: var(--main-color-alt);
}
/* End Search Page */


/* Start Footer */
footer {
  padding: 20px;

}


footer .footer-links {
  padding: 20px 0;
  border-bottom: 1px solid #444;
  margin-bottom: 20px;
}
footer .footer-links .description {
  margin-top: 20px;
  color: #ddd;
  line-height: 1.8;
}
footer .footer-links h4 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
}
footer .footer-links ul li:not(:last-child) {
  margin-bottom: 10px;
  border-bottom: 1px solid #666;
  padding-bottom: 10px;
}
footer .footer-links ul li a {
  color: #777;
  text-decoration: none;
}
footer .footer-links ul li a:hover {
  color: var(--main-color);
}

/* تصغير اللوجو في الفوتر فقط */
footer .col-md-4 img {
  width: 250px;          /* الحجم اللي عايزه - جرب 70px أو 90px لحد ما يعجبك */
  height: auto;         /* عشان يحافظ على النسبة */
  display: block;       /* عشان يبقى في سطر لوحده ومرتب */
  margin-bottom: 15px;  /* مسافة تحت اللوجو قبل الوصف */
}


footer .social-icons {
  display: flex;
  justify-content: flex-end;
}
footer .social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  text-decoration: none;
  transition: 0.3s;
  border-radius: 50%;
}
footer .social-icons a.facebook:hover {
  background-color: #1877f2;
}
footer .social-icons a.twitter:hover {
  background-color: #1da1f2;
}
footer .social-icons a.linkedin:hover {
  background-color: #0a66c2;
}
footer .social-icons a.instagram:hover {
  background-color: #5851db;
}
footer .social-icons a.youtube:hover {
  background-color: #ff0000;
}
footer .social-icons a:hover i {
  color: #fff;
}
footer .social-icons a i {
  font-size: 16px;
  color: #999;
  transition: 0.3s;
}
@media (max-width: 575px) {
  footer {
    text-align: center;
  }
  footer .social-icons {
    margin-top: 10px;
    justify-content: center;
  }
}
/* End Footer */

/* Start Slick Slider */
/* Slider */
.slick-slider {
  position: relative;
  display: block;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -khtml-user-select: none;
  -ms-touch-action: pan-y;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.slick-list {
  position: relative;

  display: block;
  overflow: hidden;

  margin: 0;
  padding: 0;
}
.slick-list:focus {
  outline: none;
}
.slick-list.dragging {
  cursor: pointer;
  cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.slick-track {
  position: relative;
  top: 0;
  left: 0;

  display: block;
  margin-left: auto;
  margin-right: auto;
}
.slick-track:before,
.slick-track:after {
  display: table;

  content: "";
}
.slick-track:after {
  clear: both;
}
.slick-loading .slick-track {
  visibility: hidden;
}

.slick-slide {
  display: none;
  float: left;

  height: 100%;
  min-height: 1px;
}
[dir="rtl"] .slick-slide {
  float: right;
}
.slick-slide img {
  display: block;
}
.slick-slide.slick-loading img {
  display: none;
}
.slick-slide.dragging img {
  pointer-events: none;
}
.slick-initialized .slick-slide {
  display: block;
}
.slick-loading .slick-slide {
  visibility: hidden;
}
.slick-vertical .slick-slide {
  display: block;
  height: auto;
  border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
  display: none;
}
/* Slider */
.slick-loading .slick-list {
  background: #fff url("../ajax-loader.gif") center center no-repeat;
}
/* Icons */
@font-face {
  font-family: "slick";
  font-weight: normal;
  font-style: normal;

  src: url("../webfonts/slick.eot");
  src: url("../webfonts/slick.eot?#iefix") format("embedded-opentype"), url("../webfonts/slick.woff") format("woff"),
    url("../webfonts/slick.ttf") format("truetype"), url("../webfonts/slick.svg#slick") format("svg");
}
/* Arrows */
.slick-prev,
.slick-next {
  font-size: 0;
  line-height: 0;
  position: absolute;
  top: 50%;
  z-index: 9999;
  width: 25px;
  height: 100%;
  padding: 0;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);

  cursor: pointer;

  color: transparent;
  border: none;
  outline: none;
  background-color: #eee;
}
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
  color: transparent;
  outline: none;
  background-color: #ededed;
}
.slick-prev:hover:before,
.slick-prev:focus:before,
.slick-next:hover:before,
.slick-next:focus:before {
  opacity: 1;
}
.slick-prev.slick-disabled:before,
.slick-next.slick-disabled:before {
  opacity: 0.25;
}

.slick-prev:before,
.slick-next:before {
  font-family: "slick";
  font-size: 20px;
  line-height: 1;

  opacity: 0.75;
  color: var(--main-color);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.slick-prev {
  left: 0;
}
[dir="rtl"] .slick-prev {
  right: -25px;
  left: auto;
}
.slick-prev:before {
  content: "←";
}
[dir="rtl"] .slick-prev:before {
  content: "→";
}

.slick-next {
  right: 0;
}
[dir="rtl"] .slick-next {
  right: auto;
  left: -25px;
}
.slick-next:before {
  content: "→";
}
[dir="rtl"] .slick-next:before {
  content: "←";
}

/* Dots */
.slick-dotted.slick-slider {
  margin-bottom: 30px;
}

.slick-dots {
  position: absolute;
  bottom: -40px;
  width: calc(100% - 60px);
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}
.slick-dots li {
  position: relative;

  display: inline-block;

  width: 20px;
  height: 20px;
  margin: 0 5px;
  padding: 0;

  cursor: pointer;
}
.slick-dots li button {
  font-size: 0;
  line-height: 0;

  display: block;

  width: 20px;
  height: 20px;
  padding: 5px;

  cursor: pointer;

  color: transparent;
  border: 0;
  outline: none;
  background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
  outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
  opacity: 1;
}
.slick-dots li button:before {
  font-family: "slick";
  font-size: 16px;
  line-height: 20px;

  position: absolute;
  top: 0;
  left: 0;

  width: 20px;
  height: 20px;

  content: "•";
  text-align: center;

  opacity: 0.25;
  color: var(--main-color);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.slick-dots li.slick-active button:before {
  opacity: 0.75;
  color: var(--main-color);
}

/* End Slick Slider */
