/* Start Global Rules */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
:root {
  --main-color: #FF0000;
  --main-color-alt: #9b9494;
  --main-transition: 0.3s;
  --main-padding-top: 100px;
  --main-padding-bottom: 100px;
  --section-background: #7dabcb57;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
[id] {
  scroll-margin-top: 82px;
}
@media (max-width: 767px) {
  html {
    scroll-padding-top: 100px;
  }
  [id] {
    scroll-margin-top: 100px;
  }
}
body {
  font-family: "Cairo", sans-serif;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}
/* Small */
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
/* Medium */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
/* Large */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
.main-title {
  text-transform: uppercase;
  margin: 0 auto 80px;
  border: 2px solid black;
  padding: 10px 20px;
  font-size: 30px;
  width: fit-content;
  position: relative;
  z-index: 1;
  transition: var(--main-transition);
}
.main-title::before,
.main-title::after {
  content: "";
  width: 12px;
  height: 12px;
  background-color: var(--main-color);
  position: absolute;
  border-radius: 6px;
  top: 50%;
  transform: translateY(-50%);
}
.main-title::before {
  left: -30px;
}
.main-title::after {
  right: -30px;
}
.main-title:hover::before {
  z-index: -1;
  animation: left-move 0.5s linear forwards;
}
.main-title:hover::after {
  z-index: -1;
  animation: right-move 0.5s linear forwards;
}
.main-title:hover {
  color: white;
  border: 2px solid white;
  transition-delay: 0.5s;
}
.spikes {
  position: relative;
}
.spikes::after {
  content: "";
  position: absolute;
  right: 0;
  width: 100%;
  height: 30px;
  z-index: 1;
  background-image: linear-gradient(135deg, white 25%, transparent 25%),
    linear-gradient(225deg, white 25%, transparent 25%);
  background-size: 30px 30px;
}
.dots {
  background-image: url("../imgs/dots.png");
  height: 186px;
  width: 204px;
  background-repeat: no-repeat;
  position: absolute;
}
.dots-up {
  top: 200px;
  right: 0;
}
.dots-down {
  bottom: 200px;
  left: 0;
}
/* End Global Rules */
/* Start Header */
body {
  padding-top: 72px;
}
.header {
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  -moz-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border-bottom: 3px solid var(--main-color);
  transition: box-shadow var(--main-transition), background-color var(--main-transition);
}
.header.scrolled {
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(6px);
  -webkit-backdrop-filter: saturate(180%) blur(6px);
}
@media (max-width: 767px) {
  body {
    padding-top: 90px;
  }
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}
.header .logo {
  height: 72px;
  width: 145px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.header .logo img {
  display: block;
  width: 100%;
  max-height: 68px;
  object-fit: contain;
}
@media (max-width: 767px) {
  .header .logo {
    width: 100%;
    height: 50px;
  }
  .header .logo img {
    width: 120px;
    max-height: 48px;
  }
}
html[dir="rtl"] .header .container {
  flex-direction: row-reverse;
}
.header .main-nav {
  display: flex;
}
.language-toggle {
  border: 2px solid var(--main-color);
  background-color: white;
  color: var(--main-color);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font: inherit;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--main-transition);
}
.language-toggle:hover,
.language-toggle:focus-visible {
  background-color: var(--main-color);
  color: white;
}
@media (max-width: 767px) {
  .header .main-nav {
    margin: auto;
  }
  .language-toggle {
    margin: 5px auto 10px;
  }
}
.header .main-nav > li.has-mega-menu:hover .mega-menu {
  opacity: 1;
  z-index: 100;
  top: calc(100% + 1px);
  pointer-events: auto;
}
.header .main-nav > li > a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 72px;
  position: relative;
  color: black;
  padding: 0 30px;
  overflow: hidden;
  font-size: 18px;
  transition: var(--main-transition);
}
@media (max-width: 767px) {
  .header .main-nav > li > a {
    padding: 10px;
    font-size: 14px;
    height: 40px;
  }
}
.header .main-nav > li > a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: var(--main-color);
  top: 0;
  left: -100%;
  transition: var(--main-transition);
}
.header .main-nav > li > a:hover {
  color: var(--main-color);
  background-color: #fafafa;
}
.header .main-nav > li > a:hover::before {
  left: 0;
}
.header .mega-menu {
  position: absolute;
  width: 100%;
  left: 0;
  padding: 30px;
  background-color: white;
  border-bottom: 3px solid var(--main-color);
  z-index: -1;
  display: flex;
  gap: 40px;
  top: calc(100% + 50px);
  opacity: 0;
  pointer-events: none;
  transition: top var(--main-transition), opacity var(--main-transition);
}
@media (max-width: 767px) {
  .header .mega-menu {
    flex-direction: column;
    gap: 0;
    padding: 5px;
  }
}
.header .mega-menu .image img {
  max-width: 100%;
}
@media (max-width: 991px) {
  .header .mega-menu .image {
    display: none;
  }
}
.header .mega-menu .links {
  min-width: 250px;
  flex: 1;
}
.header .mega-menu .links li {
  position: relative;
}
.header .mega-menu .links li:not(:last-child) {
  border-bottom: 1px solid #e9e6e6;
}
@media (max-width: 767px) {
  .header .mega-menu .links:first-of-type li:last-child {
    border-bottom: 1px solid #e9e6e6;
  }
}
.header .mega-menu .links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background-color: #fafafa;
  z-index: -1;
  transition: var(--main-transition);
}
.header .mega-menu .links li:hover::before {
  width: 100%;
}
.header .mega-menu .links li a {
  color: var(--main-color);
  padding: 15px;
  display: block;
  font-size: 18px;
  font-weight: bold;
}
.header .mega-menu .links li a i {
  margin-right: 10px;
}
/* End Header */
/* Start Landing */
.landing {
  position: relative;
}
.landing::before {
  content: "";
  position: absolute;
  left: 0;
  top: -40px;
  width: 100%;
  height: 100%;
  background-color: #1786e057 ;
  z-index: -1;
  transform: skewY(-6deg);
  transform-origin: top left;
}
.landing .container {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding-bottom: 120px;
}
.landing .text {
  flex: 1;
}
@media (max-width: 991px) {
  .landing .text {
    text-align: center;
  }
}
.landing .text h1 {
  font-size: 40px;
  margin: 0;
  letter-spacing: -2px;
}
.landing .text h1 span {
  color: var(--main-color);
}
@media (max-width: 767px) {
  .landing .text h1 {
    font-size: 28px;
  }
}
.landing .text p {
  font-size: 23px;
  line-height: 1.7;
  margin: 5px 0 0;
  color: #666666;
  max-width: 500px;
}
@media (max-width: 991px) {
  .landing .text p {
    margin: 10px auto;
  }
}
@media (max-width: 767px) {
  .landing .text p {
    font-size: 18px;
  }
}
.landing .image img {
  position: relative;
  width: 600px;
  animation: up-and-down 5s linear infinite;
}
@media (max-width: 991px) {
  .landing .image {
    display: none;
  }
}
.landing .go-down {
  color: var(--main-color);
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--main-transition);
}
.landing .go-down:hover {
  color: var(--main-color-alt);
}
.landing .go-down i {
  animation: bouncing 1.5s infinite;
}
/* End Landing */
/* Start Articles */
.articles {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
}
.articles .container {

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
}
.articles .box {
  box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--main-transition), box-shadow var(--main-transition);
}
.articles .box:hover {
  transform: translateY(-10px);
  box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
}
.articles .box img {
  width: 100%;
  max-width: 100%;
}
.articles .box .content {
  padding: 20px;
  flex: 1;
}
.articles .box .content h3 {
  margin: 0;
}
.articles .box .content p {
  margin: 10px 0 0;
  line-height: 1.5;
  color: #777;
}
.articles .box .info {
  padding: 20px;
  border-top: 1px solid #e6e6e7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.articles .box .info a {
  color: var(--main-color);
  font-weight: bold;
  white-space: nowrap;
}
.articles .box .info i {
  color: var(--main-color);
}
.articles .box:hover .info i {
  animation: moving-arrow 0.6s linear infinite;
}
/* End Articles */
/* Start Gallery */
.gallery {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: var(--section-background);
}
.gallery .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}
.gallery .box {
  padding: 15px;
  background-color: white;
  box-shadow: 0px 12px 20px 0px rgb(0 0 0 / 13%), 0px 2px 4px 0px rgb(0 0 0 / 12%);
}
.gallery .box .image {
  position: relative;
  overflow: hidden;
}
.gallery .box .image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(255 255 255 / 20%);
  width: 0;
  height: 0;
  opacity: 0;
  z-index: 2;
}
.gallery .box .image:hover::before {
  animation: flashing 0.7s;
}
.gallery .box img {
  max-width: 100%;
  transition: var(--main-transition);
}
.gallery .box .image:hover img {
  transform: rotate(5deg) scale(1.1);
}
/* End Gallery */
/* Start Features */
.features {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: white;
}
.features .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}
.features .box {
  text-align: center;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
}
.features .box .img-holder {
  position: relative;
  overflow: hidden;
}
.features .box .img-holder::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 100%;
}
.features .box .img-holder::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-style: solid;
  border-width: 0px 0px 170px 500px;
  border-color: transparent transparent white transparent;
  transition: var(--main-transition);
}
.features .box .img-holder img {
  max-width: 100%;
}
.features .box:hover .img-holder::after {
  border-width: 170px 500px 170px 0;
}
.features .box h2 {
  position: relative;
  font-size: 40px;
  margin: auto;
  width: fit-content;
}
.features .box h2::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 15px;
  height: 5px;
  width: calc(100% - 30px);
}
.features .box p {
  line-height: 2;
  font-size: 20px;
  margin: 30px 0;
  padding: 25px;
  color: #777;
  flex: 1;
}
.features .box a {
  display: block;
  border: 3px solid transparent;
  width: fit-content;
  margin: 0 auto 30px;
  font-weight: bold;
  font-size: 22px;
  padding: 10px 30px;
  border-radius: 6px;
  transition: var(--main-transition);
}
.features .quality .img-holder::before {
  background-color: rgb(244 64 54 / 60%);
}
.features .quality h2::after {
  background-color: #f44036;
}
.features .quality a {
  color: #f44036;
  border-color: #f44036;
  background: linear-gradient(to right, #f44036 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}
.features .time .img-holder::before {
  background-color: rgb(0 150 136 / 60%);
}
.features .time h2::after {
  background-color: #009688;
}
.features .time a {
  color: #009688;
  border-color: #009688;
  background: linear-gradient(to right, #009688 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}
.features .passion .img-holder::before {
  background-color: rgb(3 169 244 / 60%);
}
.features .passion h2::after {
  background-color: #03a9f4;
}
.features .passion a {
  color: #03a9f4;
  border-color: #03a9f4;
  background: linear-gradient(to right, #03a9f4 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}
.features .box:hover a {
  background-position: left bottom;
  color: white;
}
/* End Features */
/* Start Testimonials */
.testimonials {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: var(--section-background);
}
.testimonials .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}
.testimonials .box {
  padding: 20px;
  background-color: white;
  box-shadow: 0 2px 4px rgb(0 0 0 / 7%);
  border-radius: 6px;
  position: relative;
}
.testimonials .box img {
  position: absolute;
  right: -10px;
  top: -50px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 10px solid var(--section-background);
}
.testimonials .box h3 {
  margin: 0 0 10px;
}
.testimonials .box .title {
  color: #777;
  margin-bottom: 10px;
  display: block;
}
.testimonials .box .rate .filled {
  color: #ffc107;
}
.testimonials .box p {
  line-height: 1.5;
  color: #777;
  margin-top: 10px;
  margin-bottom: 0;
}
/* End Testimonials */
/* Start Team */
.team {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
}
.team .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.team .box {
  position: relative;
}
.team .box::before,
.team .box::after {
  content: "";
  background-color: #f3f3f3;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border-radius: 10px;
  transition: var(--main-transition);
}
.team .box::before {
  width: calc(100% - 60px);
  z-index: -2;
}
.team .box::after {
  z-index: -1;
  background-color: #e4e4e4;
  width: 0;
}
.team .box:hover::after {
  width: calc(100% - 60px);
}
.team .box .data {
  display: flex;
  align-items: center;
  padding-top: 60px;
}
.team .box .data img {
  width: calc(100% - 60px);
  transition: var(--main-transition);
  border-radius: 10px;
}
.team .box:hover img {
  filter: grayscale(100%);
}
.team .box .data .social {
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.team .box .data .social a {
  width: 60px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.team .box .data .social a:hover i {
  color: var(--main-color);
}
.team .box .data .social i {
  color: #777;
  transition: var(--main-transition);
}
.team .box .info {
  padding-left: 80px;
}
.team .box .info h3 {
  margin-bottom: 0;
  color: var(--main-color);
  font-size: 22px;
  transition: var(--main-transition);
}
.team .box .info p {
  margin-top: 10px;
  margin-bottom: 25px;
}
.team .box:hover .info h3 {
  color: #777;
}
/* End Team */
/* Start Services */
.services {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: var(--section-background);
}
.services .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}
.services .box {
  background-color: white;
  box-shadow: 0 12px 20px 0 rgb(0 0 0 / 13%), 0 2px 4px 0 rgb(0 0 0 / 12%);
  counter-increment: services;
  transition: var(--main-transition);
  position: relative;
}
.services .box::before {
  content: "";
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  top: -3px;
  background-color: var(--main-color);
  position: absolute;
  width: 0;
  transition: var(--main-transition);
}
.services .box:hover {
  transform: translateY(-10px);
}
.services .box:hover::before {
  width: 100%;
}
.services .box > i {
  margin: 30px auto 20px;
  display: block;
  text-align: center;
  color: #d5d5d5;
}
.services .box > h3 {
  text-align: center;
  margin: 20px 0 40px;
  font-size: 25px;
  color: var(--main-color);
}
.services .box .info {
  padding: 15px;
  position: relative;
  background-color: #f9f9f9;
  text-align: right;
}
.services .box .info::before {
  content: "0" counter(services);
  position: absolute;
  background-color: var(--main-color);
  color: white;
  left: 0;
  top: 0;
  height: 100%;
  width: 80px;
  font-size: 30px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 15px;
}
.services .box .info::after {
  content: "";
  position: absolute;
  background-color: #d5d5d5;
  top: 0;
  left: 80px;
  width: 50px;
  height: calc(100% + 0.4px);
  transform: skewX(-30deg);
}
.services .box .info a {
  color: var(--main-color);
}
/* End Services */
/* Start Skills */
.our-skills {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
}
.our-skills .container {
  display: flex;
  align-items: center;
}
@media (max-width: 991px) {
  .our-skills img {
    display: none;
  }
}
.our-skills .skills {
  flex: 1;
}
.our-skills .skill h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.our-skills .skill h3 span {
  font-size: 12px;
  border: 1px solid #ccc;
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--main-color);
}
.our-skills .skill .the-progress {
  height: 30px;
  background-color: #eee;
  position: relative;
}
.our-skills .skill .the-progress span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: var(--main-color);
  transition: width 0.5s linear;
}
/* End Skills */
/* Start Work Steps */
.work-steps {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: var(--section-background);
}
.work-steps .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 991px) {
  .work-steps .container {
    flex-direction: column;
  }
}
.work-steps .image {
  max-width: 100%;
  margin-right: 100px;
}
@media (max-width: 991px) {
  .work-steps .image {
    margin: 0 0 50px;
  }
}
.work-steps .info .box {
  background-color: #f6f5f5;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  border: 2px solid white;
  position: relative;
  z-index: 1;
}
@media (max-width: 767px) {
  .work-steps .info .box {
    flex-direction: column;
    text-align: center;
  }
}
.work-steps .info .box::before {
  content: "";
  left: 50%;
  top: 50%;
  position: absolute;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  background-color: #ededed;
  z-index: -1;
  transition: var(--main-transition);
}
.work-steps .info .box:hover::before {
  width: 100%;
  height: 100%;
}
.work-steps .info .box img {
  width: 64px;
  margin-right: 30px;
}
@media (max-width: 767px) {
  .work-steps .info .box img {
    margin: 0 0 30px;
  }
}
.work-steps .info .box h3 {
  margin: 0;
  font-size: 22px;
}
.work-steps .info .box p {
  color: #777;
  line-height: 1.7;
  margin: 10px 0 0;
  font-size: 18px;
}
/* End Work Steps */
/* Start Events */
.events {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
}
.events .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.events img {
  max-width: 450px;
}
@media (max-width: 991px) {
  .events img {
    display: none;
  }
}
.events .info {
  flex: 1;
}
.events .info .time {
  display: flex;
  align-items: center;
  margin: 20px auto;
  gap: 10px;
  justify-content: center;
}
.events .info .time .unit {
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  text-align: center;
  width: 75px;
  transition: var(--main-transition);
}
.events .info .time .unit span {
  display: block;
  transition: var(--main-transition);
}
.events .info .time .unit span:first-child {
  font-size: 35px;
  padding: 15px;
  color: var(--main-color);
  font-weight: bold;
}
.events .info .time .unit span:last-child {
  padding: 8px 10px;
  font-size: 13px;
  border-top: 1px solid #d4d4d4;
}
.events .info .time .unit:hover,
.events .info .time .unit:hover span:last-child {
  border-color: var(--main-color);
}
.events .title {
  text-align: center;
  margin: 40px 0 0;
  font-size: 30px;
}
.events .description {
  text-align: center;
  line-height: 1.7;
  font-size: 19px;
  color: #777;
}
.events .subscribe {
  width: 100%;
  margin-top: 50px;
}
.events .subscribe form {
  width: 600px;
  margin: 20px auto;
  padding: 30px 40px;
  background-color: #f6f5f5;
  border-radius: 50px;
  display: flex;
  gap: 20px;
}
@media (max-width: 767px) {
  .events .subscribe form {
    max-width: 100%;
    padding: 20px;
    flex-direction: column;
    border-radius: 0;
  }
}
.events .subscribe form input[type="email"] {
  padding: 20px;
  border-radius: 50px;
  border: none;
  flex: 1;
  caret-color: var(--main-color);
}
@media (max-width: 767px) {
  .events .subscribe form input[type="email"] {
    border-radius: 0;
  }
}
.events .subscribe form input[type="email"]:focus {
  outline: none;
}
.events .subscribe form input[type="email"]::placeholder {
  transition: opacity var(--main-transition);
}
.events .subscribe form input[type="email"]:focus::placeholder {
  opacity: 0;
}
.events .subscribe form input[type="submit"] {
  border-radius: 50px;
  border: none;
  background-color: var(--main-color);
  color: white;
  font-weight: bold;
  padding: 20px;
  cursor: pointer;
  transition: var(--main-transition);
}
@media (max-width: 767px) {
  .events .subscribe form input[type="submit"] {
    border-radius: 0;
  }
}
.events .subscribe form input[type="submit"]:hover {
  background-color: var(--main-color-alt);
}
/* End Events */
/* Start Pricing */
.pricing {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  /* background-color: var(--section-background); */
}
.pricing .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.pricing .box {
  position: relative;
  box-shadow: 0 12px 20px 0 rgb(0 0 0 / 13%), 0 2px 4px 0 rgb(0 0 0 / 12%);
  transition: var(--main-transition);
  background: white;
  text-align: center;
  z-index: 1;
}
.pricing .box::before,
.pricing .box::after {
  content: "";
  width: 0;
  height: 50%;
  background-color: #f6f6f6;
  position: absolute;
  z-index: -1;
  transition: var(--main-transition);
}
.pricing .box::before {
  left: 0;
  top: 0;
}
.pricing .box::after {
  right: 0;
  bottom: 0;
}
.pricing .box:hover::before,
.pricing .box:hover::after {
  width: 100%;
}
@media (min-width: 1200px) {
  .pricing .box.popular {
    top: -20px;
  }
}
.pricing .box.popular .label {
  position: absolute;
  writing-mode: vertical-rl;
  background-color: var(--main-color);
  color: white;
  font-weight: bold;
  padding: 10px 10px 35px 10px;
  font-size: 18px;
  right: 20px;
  width: 40px;
}
.pricing .box.popular .label::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-style: solid;
  border-color: transparent transparent white;
  border-width: 20px;
}
.pricing .box .title {
  font-weight: bold;
  margin: 30px 0;
  font-size: 25px;
  letter-spacing: -1px;
}
.pricing .box img {
  width: 80px;
  margin-bottom: 30px;
}
.pricing .box .price {
  margin-bottom: 20px;
}
.pricing .box .amount {
  display: block;
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--main-color);
}
.pricing .box .time {
  color: #777;
}
.pricing .box ul {
  text-align: left;
}
.pricing .box ul li {
  padding: 20px;
  border-top: 1px solid #eee;
}
.pricing .box ul li::before {
  font-family: "Font Awesome 5 Free";
  content: "\f00c";
  margin-right: 10px;
  font-weight: 900;
  color: var(--main-color);
}
.pricing .box a {
  display: block;
  width: fit-content;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  margin: 30px auto 40px;
  padding: 15px 20px;
  border-radius: 6px;
  font-weight: bold;
  transition: var(--main-transition);
}
.pricing .box a:hover {
  background-color: var(--main-color-alt);
  border-color: var(--main-color-alt);
  color: white;
}
/* End Pricing */
/* Start Videos */
.videos {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
}
.videos .holder {
  display: flex;
  justify-content: center;
  background-color: var(--section-background);
  border: 1px solid #ddd;
}
@media (max-width: 991px) {
  .videos .holder {
    flex-direction: column;
  }
}
.videos .holder .list {
  min-width: 300px;
  background-color: white;
}
.videos .holder .list .name {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background-color: #f4f4f4;
  font-weight: bold;
  /* color: var(--main-color);*/
}
.videos .holder .list ul li {
  padding: 20px;
  border-top: 1px solid var(--section-background);
  cursor: pointer;
  transition: var(--main-transition);
}
.videos .holder .list ul li:hover {
  background-color: #fafafa;
  color: var(--main-color);
}
.videos .holder .list ul li span {
  display: block;
  margin-top: 10px;
  color: #777;
}
.videos .holder .preview {
  background-color: #e2e2e2;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.videos .holder .preview img {
  max-width: 100%;
}
.videos .holder .preview .info {
  padding: 20px;
  background-color: white;
  margin-top: 10px;
}
/* End Videos */
/* Start Stats */
.stats {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-image: url("../imgs/stats.jpg");
  background-size: cover;
  min-height: 300px;
}
.stats::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255 255 255 / 95%);
}
.stats h2 {
  font-weight: bold;
  font-size: 40px;
  width: fit-content;
  margin: 0 auto 50px;
  position: relative;
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 991px) {
  .stats .container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .stats .container {
    grid-template-columns: 1fr;
  }
}
.stats .box {
  background-color: white;
  padding: 30px 15px;
  text-align: center;
  position: relative;
  opacity: 0.8;
  transition: var(--main-transition);
}
.stats .box::before,
.stats .box::after {
  content: "";
  position: absolute;
  width: 2px;
  background-color: var(--main-color);
  transition: 1s;
  height: 0;
}
.stats .box::before {
  top: 0;
  right: 0;
}
.stats .box::after {
  left: 0;
  bottom: 0;
}
.stats .box:hover {
  opacity: 1;
}
.stats .box:hover::before,
.stats .box:hover::after {
  height: 100%;
}
.stats .box .number {
  display: block;
  font-size: 50px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 10px;
}
.stats .box .text {
  color: var(--main-color);
  font-style: italic;
  font-size: 20px;
  font-weight: bold;
}
/* End Stats */
/* Start Discount */
.discount {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}
.discount .image {
  background-image: url(../imgs/discount-background1.jpg);
  background-size: cover;
  color: white;
  flex-basis: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: change-background 10s linear infinite;
}
.discount .image::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(23 135 224 / 97%);
  z-index: -1;
}
@media (max-width: 991px) {
  .discount .image {
    flex-basis: 100%;
  }
}
.discount .form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 50%;
  padding-bottom: 50px;
}
@media (max-width: 991px) {
  .discount .form {
    flex-basis: 100%;
  }
}
.discount .form .input {
  display: block;
  width: 100%;
  margin-bottom: 25px;
  padding: 15px;
  border: none;
  border-bottom: 1px solid #ccc;
  background-color: #f9f9f9;
  caret-color: var(--main-color);
}
.discount .form textarea.input {
  resize: none;
  height: 200px;
}
.discount .form .input:focus {
  outline: none;
}
.discount .form [type="submit"] {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: var(--main-color);
  color: white;
  font-weight: bold;
  font-size: 20px;
  border: none;
  cursor: pointer;
  transition: var(--main-transition);
}
.discount .form [type="submit"]:hover {
  background-color: var(--main-color-alt);
}
.discount .content {
  text-align: center;
  padding: 0 20px;
}
.discount .content h2 {
  font-size: 40px;
  letter-spacing: -2px;
}
.discount .content p {
  line-height: 1.6;
  font-size: 18px;
  max-width: 500px;
}
.discount .content img {
  width: 300px;
  max-width: 100%;
}
/* End Discount */
/* Start Footer */
.footer {
  background-color: #191919;
  padding: 70px 0 0;
}
@media (max-width: 767px) {
  .footer {
    text-align: center;
  }
}
.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
}
.footer .box h3 {
  color: white;
  font-size: 50px;
  margin: 0 0 20px;
}
.footer .box .social {
  display: flex;
}
@media (max-width: 767px) {
  .footer .box .social {
    justify-content: center;
  }
}
.footer .box .social li {
  margin-right: 10px;
}
.footer .box .social li a {
  background-color: #313131;
  color: #b9b9b9;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  font-size: 20px;
  transition: var(--main-transition);
}
.footer .box .social .facebook:hover {
  background-color: #1877f2;
}
.footer .box .social .linkedin:hover {
  background-color: #1da1f2;
}
.footer .box .social .instagram:hover {
  background-color: #ff0000;
}
.footer .box .text {
  line-height: 2;
  color: #b9b9b9;
}
.footer .box .links li {
  padding: 15px 0;
  transition: var(--main-transition);
}
.footer .box .links li:not(:last-child) {
  border-bottom: 1px solid #444;
}
.footer .box .links li:hover {
  padding-left: 10px;
}
.footer .box .links li:hover a {
  color: white;
}
.footer .box .links li a {
  color: #b9b9b9;
  transition: var(--main-transition);
}
.footer .box .links li a::before {
  font-family: "Font Awesome 5 Free";
  content: "\F101";
  font-weight: 900;
  margin-right: 10px;
  color: var(--main-color);
}
.footer .box .line {
  display: flex;
  align-items: center;
  color: #b9b9b9;
  margin-bottom: 30px;
}
@media (max-width: 767px) {
  .footer .box .line {
    flex-direction: column;
  }
}
.footer .box .line i {
  font-size: 25px;
  color: var(--main-color);
  margin-right: 10px;
}
@media (max-width: 767px) {
  .footer .box .line i {
    margin-right: 0;
    margin-bottom: 15px;
  }
}
.footer .box .line .info {
  line-height: 1.7;
  flex: 1;
}
.footer .box .line .info span {
  display: block;
}
.footer .footer-gallery img {
  width: 78px;
  border: 3px solid white;
  margin: 2px;
}
.footer-email {
  color: #b9b9b9;
  transition: color var(--main-transition);
  word-break: break-all;
}
.footer-email:hover {
  color: var(--main-color);
}
.footer .copyright {
  padding: 25px 0;
  text-align: center;
  color: white;
  margin: 50px 0 0;
  border-top: 1px solid #444;
}
/* End Footer */

/* ================= RTL (Arabic) Support ================= */
html[dir="rtl"] body {
  text-align: right;
}
html[dir="rtl"] .main-title::before {
  left: auto;
  right: -30px;
}
html[dir="rtl"] .main-title::after {
  right: auto;
  left: -30px;
}
html[dir="rtl"] .main-title:hover::before {
  animation: right-move 0.5s linear forwards;
}
html[dir="rtl"] .main-title:hover::after {
  animation: left-move 0.5s linear forwards;
}
html[dir="rtl"] .dots-up {
  right: auto;
  left: 0;
}
html[dir="rtl"] .dots-down {
  left: auto;
  right: 0;
}
html[dir="rtl"] .header .logo {
  order: 2;
}
html[dir="rtl"] .header .main-nav {
  order: 1;
  flex-direction: row-reverse;
  direction: ltr;
}
html[dir="rtl"] .language-toggle {
  order: 0;
  margin-left: 0;
  margin-right: auto;
}
html[dir="rtl"] .header .main-nav > li > a::before {
  left: auto;
  right: -100%;
}
html[dir="rtl"] .header .main-nav > li > a:hover::before {
  right: 0;
}
html[dir="rtl"] .header .mega-menu .links li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .header .mega-menu .links li a i {
  margin-right: 0;
  margin-left: 10px;
}
html[dir="rtl"] .articles .box .info i {
  transform: scaleX(-1);
}
html[dir="rtl"] .articles .box:hover .info i {
  animation: moving-arrow-rtl 0.6s linear infinite;
}
@keyframes moving-arrow-rtl {
  100% {
    transform: translateX(-10px) scaleX(-1);
  }
}
html[dir="rtl"] .landing .text {
  text-align: right;
}
@media (max-width: 991px) {
  html[dir="rtl"] .landing .text {
    text-align: center;
  }
}
html[dir="rtl"] .our-skills .skill h3 {
  flex-direction: row-reverse;
}
html[dir="rtl"] .work-steps .info .box img {
  margin-right: 0;
  margin-left: 30px;
}
@media (max-width: 767px) {
  html[dir="rtl"] .work-steps .info .box img {
    margin-left: 0;
    margin-bottom: 30px;
  }
}
html[dir="rtl"] .pricing .box.popular .label {
  right: auto;
  left: 20px;
  writing-mode: vertical-lr;
  transform: scaleX(-1);
}
html[dir="rtl"] .pricing .box.popular .label::before {
  right: auto;
  left: 0;
  border-color: transparent transparent white;
}
html[dir="rtl"] .pricing .box ul li::before {
  margin-right: 0;
  margin-left: 10px;
}
html[dir="rtl"] .stats .box::before {
  right: auto;
  left: 0;
}
html[dir="rtl"] .stats .box::after {
  left: auto;
  right: 0;
}
html[dir="rtl"] .footer .box .social li {
  margin-right: 0;
  margin-left: 10px;
}
html[dir="rtl"] .footer .box .links li:hover {
  padding-left: 0;
  padding-right: 10px;
}
html[dir="rtl"] .footer .box .links li a::before {
  margin-right: 0;
  margin-left: 10px;
  content: "\F100";
}
html[dir="rtl"] .footer .box .line i {
  margin-right: 0;
  margin-left: 10px;
}
@media (max-width: 767px) {
  html[dir="rtl"] .footer .box .line i {
    margin-left: 0;
    margin-bottom: 15px;
  }
}
html[dir="rtl"] .events .subscribe form input[type="email"] {
  text-align: right;
}
html[dir="rtl"] .discount .content p,
html[dir="rtl"] .discount .content h2 {
  text-align: right;
}
@media (max-width: 991px) {
  html[dir="rtl"] .discount .content p,
  html[dir="rtl"] .discount .content h2 {
    text-align: center;
  }
}
html[dir="rtl"] .team .box::before,
html[dir="rtl"] .team .box::after {
  right: auto;
  left: 0;
}
html[dir="rtl"] .team .box::before {
  width: calc(100% - 60px);
}
html[dir="rtl"] .team .box:hover::after {
  width: calc(100% - 60px);
}
html[dir="rtl"] .team .box .data {
  flex-direction: row-reverse;
}
html[dir="rtl"] .team .box .info {
  padding-left: 0;
  padding-right: 80px;
}
html[dir="rtl"] .features .quality .img-holder::before,
html[dir="rtl"] .features .time .img-holder::before,
html[dir="rtl"] .features .passion .img-holder::before {
  right: auto;
  left: 0;
}
html[dir="rtl"] .services .box::before {
  content: "";
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  height: 3px;
  top: -3px;
  background-color: var(--main-color);
  position: absolute;
  width: 0;
  transition: var(--main-transition);
}
html[dir="rtl"] .services .box .info {
  text-align: left;
}
html[dir="rtl"] .services .box .info::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .services .box .info::after {
  left: 80px;
  right: auto;
  transform: skewX(30deg);
}
html[dir="rtl"] .services .counter {
  direction: ltr;
}
html[dir="rtl"] .work-steps .image {
  margin-right: 0;
  margin-left: 100px;
}
@media (max-width: 991px) {
  html[dir="rtl"] .work-steps .image {
    margin-left: 0;
    margin: 0 0 50px;
  }
}
html[dir="rtl"] .team .box .data img {
  width: calc(100% - 60px);
}
html[dir="rtl"] .header .mega-menu .image {
  order: 2;
}
@media (max-width: 991px) {
  html[dir="rtl"] .header .mega-menu .image {
    display: none;
  }
}
html[dir="rtl"] .testimonials .box img {
  right: auto;
  left: -10px;
}
/* End RTL */
/* Start Animation */
@keyframes up-and-down {
  0%,
  100% {
    top: 0;
  }
  50% {
    top: -50px;
  }
}
@keyframes bouncing {
  0%,
  10%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40%,
  60% {
    transform: translateY(-15px);
  }
}
@keyframes left-move {
  50% {
    left: 0;
    width: 12px;
    height: 12px;
  }
  100% {
    left: 0;
    border-radius: 0;
    width: 50%;
    height: 100%;
  }
}
@keyframes right-move {
  50% {
    right: 0;
    width: 12px;
    height: 12px;
  }
  100% {
    right: 0;
    border-radius: 0;
    width: 50%;
    height: 100%;
  }
}
@keyframes moving-arrow {
  100% {
    transform: translateX(10px);
  }
}
@keyframes flashing {
  0%,
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    width: 200%;
    height: 200%;
  }
}
@keyframes change-background {
  0%,
  100% {
    background-image: url("../imgs/discount-background1.jpg");
  }
  50% {
    background-image: url("../imgs/discount-background2.jpg");
  }
}
/* End Animation */

/* Start RedSoc Assistant */
.redsoc-assistant-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1002;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--main-color);
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  max-width: calc(100vw - 32px);
  transition: transform var(--main-transition), box-shadow var(--main-transition);
}
.redsoc-assistant-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
html[dir="rtl"] .redsoc-assistant-toggle {
  right: auto;
  left: 22px;
}
.redsoc-assistant-toggle i {
  font-size: 18px;
  flex-shrink: 0;
}
.redsoc-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}
.redsoc-session-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: session-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes session-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}
.redsoc-assistant {
  position: fixed;
  right: 22px;
  top: 70px;
  bottom: 88px;
  z-index: 1001;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--main-color);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  font-size: 14px;
}
.redsoc-assistant[hidden],
.redsoc-assistant-intake[hidden],
.redsoc-assistant-faqs[hidden],
.redsoc-assistant-ask[hidden] {
  display: none !important;
}
html[dir="rtl"] .redsoc-assistant {
  right: auto;
  left: 22px;
}
.redsoc-assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  background: var(--main-color);
  color: #fff;
  padding: 10px 12px;
  flex-shrink: 0;
}
.redsoc-assistant-header-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.redsoc-assistant-header-main strong {
  font-size: 14px;
}
.redsoc-assistant-header-main span {
  display: block;
  color: #cfcfcf;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
}
.redsoc-assistant-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}
.redsoc-session-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  padding: 8px 12px;
  background: #fff5f5;
  border-bottom: 1px solid #ffe0e0;
  flex-shrink: 0;
}
html[dir="rtl"] .redsoc-session-info {
  background: #fff5f5;
}
.redsoc-session-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  line-height: 1.2;
}
.redsoc-session-info-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7a7a7a;
  font-weight: 600;
  white-space: nowrap;
}
.redsoc-session-info-label i {
  font-size: 9px;
  color: var(--main-color);
}
.redsoc-session-info-value {
  color: #1a1a1a;
  font-weight: 700;
  font-family: "Cairo", monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.redsoc-assistant-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #ffffff;
}
.redsoc-assistant-body::-webkit-scrollbar {
  width: 8px;
}
.redsoc-assistant-body::-webkit-scrollbar-track {
  background: #fafafa;
}
.redsoc-assistant-body::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 4px;
}
.redsoc-assistant-body::-webkit-scrollbar-thumb:hover {
  background: #cc0000;
}
.redsoc-assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 8px;
}
.redsoc-assistant-msg {
  max-width: 92%;
  padding: 8px 11px;
  border-radius: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  font-size: 12px;
  word-break: break-word;
}
.redsoc-assistant-msg.bot {
  background: #f5f5f5;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.redsoc-assistant-msg.user {
  background: var(--main-color);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.redsoc-assistant-intake,
.redsoc-assistant-ask {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px 12px;
}
.redsoc-assistant-intake label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 700;
  font-size: 11px;
  color: #333;
}
.redsoc-assistant-intake fieldset {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 700;
  font-size: 11px;
  color: #333;
}
.redsoc-assistant-intake fieldset legend {
  margin-bottom: 2px;
}
.redsoc-assistant-radios {
  display: flex;
  gap: 18px;
  padding: 2px 0 4px;
}
.redsoc-assistant-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 12px;
  color: #1a1a1a;
}
.redsoc-assistant input,
.redsoc-assistant select,
.redsoc-assistant textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  transition: border-color var(--main-transition), box-shadow var(--main-transition);
  background: #fff;
  color: #1a1a1a;
}
.redsoc-assistant input:focus,
.redsoc-assistant select:focus,
.redsoc-assistant textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.08);
}
.redsoc-assistant-intake button,
.redsoc-assistant-ask button,
.redsoc-assistant-handoff {
  border: 0;
  border-radius: 8px;
  background: var(--main-color);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--main-transition), transform 0.1s ease;
  margin-top: 2px;
}
.redsoc-assistant-intake button:hover,
.redsoc-assistant-ask button:hover {
  background: #cc0000;
}
.redsoc-assistant-intake button:active,
.redsoc-assistant-ask button:active {
  transform: scale(0.98);
}
.redsoc-assistant-faqs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 12px 2px;
}
.redsoc-assistant-faqs button {
  border: 1px solid var(--main-color);
  background: #fff;
  color: var(--main-color);
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--main-transition), color var(--main-transition);
}
.redsoc-assistant-faqs button:hover {
  background: var(--main-color);
  color: #fff;
}
.redsoc-assistant-ask {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 6px;
  padding: 6px 12px 14px;
}
.redsoc-assistant-ask input {
  padding: 9px 12px;
  font-size: 12px;
}
.redsoc-assistant-ask button {
  margin-top: 0;
  padding: 0 16px;
  white-space: nowrap;
}
.redsoc-assistant-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
}
.redsoc-assistant-links a {
  color: var(--main-color);
  font-weight: 700;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.redsoc-assistant-links a:hover {
  color: #cc0000;
}
/* Page scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #cc0000;
}

/* === Responsive: Small laptops / tablets (1025-1366) === */
@media (min-width: 1025px) and (max-width: 1366px) {
  .redsoc-assistant {
    width: min(360px, calc(100vw - 30px));
    max-height: calc(100vh - 160px);
  }
}

/* === Responsive: Tablets (768-1024) === */
@media (min-width: 768px) and (max-width: 1024px) {
  .redsoc-assistant-toggle {
    right: 18px;
    bottom: 18px;
    padding: 12px 16px;
  }
  html[dir="rtl"] .redsoc-assistant-toggle {
    left: 18px;
  }
  .redsoc-session-pill {
    font-size: 9.5px;
    padding: 3px 8px;
  }
  .redsoc-assistant {
    right: 18px;
    width: min(340px, calc(100vw - 36px));
    max-height: calc(100vh - 150px);
    top: 60px;
    bottom: 80px;
  }
  html[dir="rtl"] .redsoc-assistant {
    left: 18px;
  }
}

/* === Responsive: Large phones (576-767) === */
@media (min-width: 576px) and (max-width: 767px) {
  .redsoc-assistant-toggle {
    right: 16px;
    bottom: 16px;
    padding: 12px 16px;
  }
  html[dir="rtl"] .redsoc-assistant-toggle {
    left: 16px;
  }
  .redsoc-session-pill {
    font-size: 9px;
    padding: 3px 7px;
    gap: 4px;
  }
  .redsoc-session-dot {
    width: 5px;
    height: 5px;
  }
  .redsoc-assistant {
    right: 14px;
    left: 14px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 130px);
    top: 16px;
    bottom: 80px;
  }
  html[dir="rtl"] .redsoc-assistant {
    right: 14px;
    left: 14px;
  }
  .redsoc-session-info {
    grid-template-columns: 1fr 1fr;
    padding: 7px 10px;
    gap: 4px 10px;
  }
  .redsoc-session-info-row {
    font-size: 9.5px;
  }
  .redsoc-session-info-value {
    max-width: 100px;
  }
}

/* === Responsive: Mobile (<=767) shared rules === */
@media (max-width: 767px) {
  .redsoc-assistant-toggle-label {
    display: none;
  }
  .redsoc-assistant-toggle {
    width: auto;
    min-width: 54px;
    height: 54px;
    padding: 0 12px;
    justify-content: center;
    gap: 6px;
  }
  .redsoc-session-pill {
    padding: 3px 7px;
    font-size: 9px;
  }
  .redsoc-assistant {
    right: 10px;
    left: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 100px);
    top: 10px;
    bottom: 70px;
    border-radius: 14px;
  }
  html[dir="rtl"] .redsoc-assistant {
    right: 10px;
    left: 10px;
  }
  .redsoc-assistant-header {
    padding: 10px 12px;
  }
  .redsoc-assistant-header-main strong {
    font-size: 14px;
  }
  .redsoc-assistant-header-main span {
    font-size: 10px;
  }
  .redsoc-session-info {
    padding: 7px 10px;
  }
  .redsoc-session-info-row {
    font-size: 9.5px;
  }
  .redsoc-assistant-messages {
    padding: 10px;
    gap: 8px;
  }
  .redsoc-assistant-msg {
    font-size: 12px;
    padding: 7px 10px;
    max-width: 94%;
  }
  .redsoc-assistant-intake,
  .redsoc-assistant-ask {
    padding: 6px 10px 12px;
    gap: 7px;
  }
  .redsoc-assistant-intake label,
  .redsoc-assistant-intake fieldset {
    font-size: 10.5px;
  }
  .redsoc-assistant input,
  .redsoc-assistant select,
  .redsoc-assistant textarea {
    padding: 9px 10px;
    font-size: 13px;
  }
  .redsoc-assistant-faqs {
    padding: 2px 10px 0;
    gap: 5px;
  }
  .redsoc-assistant-faqs button {
    font-size: 10px;
    padding: 5px 9px;
  }
}

/* === Responsive: Small phones (<=480) === */
@media (max-width: 480px) {
  .redsoc-assistant-toggle {
    right: 12px;
    bottom: 12px;
    min-width: 50px;
    height: 50px;
    padding: 0 10px;
  }
  html[dir="rtl"] .redsoc-assistant-toggle {
    left: 12px;
  }
  .redsoc-assistant-toggle i {
    font-size: 16px;
  }
  .redsoc-session-pill {
    font-size: 8.5px;
    padding: 2px 6px;
    gap: 3px;
  }
  .redsoc-session-dot {
    width: 5px;
    height: 5px;
  }
  .redsoc-assistant {
    right: 8px;
    left: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 80px);
    top: 8px;
    bottom: 66px;
    border-radius: 12px;
  }
  html[dir="rtl"] .redsoc-assistant {
    right: 8px;
    left: 8px;
  }
  .redsoc-assistant-header {
    padding: 8px 10px;
  }
  .redsoc-assistant-header-main strong {
    font-size: 13px;
  }
  .redsoc-assistant-header-main span {
    font-size: 9px;
  }
  .redsoc-assistant-close {
    font-size: 22px;
  }
  .redsoc-session-info {
    grid-template-columns: 1fr 1fr;
    padding: 6px 8px;
    gap: 3px 8px;
  }
  .redsoc-session-info-row {
    font-size: 8.5px;
    gap: 4px;
  }
  .redsoc-session-info-label {
    gap: 3px;
  }
  .redsoc-session-info-label i {
    font-size: 8px;
  }
  .redsoc-session-info-value {
    max-width: 80px;
    font-size: 9px;
  }
  .redsoc-assistant-messages {
    padding: 8px;
    gap: 7px;
  }
  .redsoc-assistant-msg {
    font-size: 11.5px;
    padding: 6px 9px;
    max-width: 95%;
  }
  .redsoc-assistant-intake,
  .redsoc-assistant-ask {
    padding: 4px 8px 10px;
    gap: 6px;
  }
  .redsoc-assistant-intake label,
  .redsoc-assistant-intake fieldset {
    font-size: 10px;
    gap: 3px;
  }
  .redsoc-assistant input,
  .redsoc-assistant select,
  .redsoc-assistant textarea {
    padding: 8px 9px;
    font-size: 12px;
    border-radius: 7px;
  }
  .redsoc-assistant-faqs {
    padding: 2px 8px 0;
    gap: 4px;
  }
  .redsoc-assistant-faqs button {
    font-size: 9.5px;
    padding: 4px 8px;
  }
  .redsoc-assistant-intake button,
  .redsoc-assistant-ask button {
    padding: 9px 12px;
    font-size: 12px;
  }
}

/* === Responsive: Extra small phones (<=375) === */
@media (max-width: 375px) {
  .redsoc-assistant {
    max-height: calc(100vh - 72px);
    border-radius: 11px;
  }
  .redsoc-session-info {
    grid-template-columns: 1fr 1fr;
    padding: 5px 7px;
    gap: 2px 6px;
  }
  .redsoc-session-info-row {
    font-size: 8px;
  }
  .redsoc-session-info-value {
    max-width: 70px;
    font-size: 8.5px;
  }
  .redsoc-assistant-messages {
    padding: 7px;
  }
  .redsoc-assistant-msg {
    font-size: 11px;
    padding: 6px 8px;
  }
  .redsoc-assistant-intake,
  .redsoc-assistant-ask {
    padding: 4px 7px 9px;
    gap: 5px;
  }
  .redsoc-assistant input,
  .redsoc-assistant select,
  .redsoc-assistant textarea {
    padding: 7px 8px;
    font-size: 11.5px;
  }
  .redsoc-assistant-faqs {
    padding: 1px 7px 0;
    gap: 3px;
  }
  .redsoc-assistant-faqs button {
    font-size: 9px;
    padding: 4px 7px;
  }
}
/* End RedSoc Assistant */
