/* ---- Arabic typography ------------------------------------------------- */
html {
  direction: rtl;
}
* {
  scroll-behavior: smooth;
}
body,
.btn,
.form-control,
.navbar,
.dropdown-menu,
p,
span,
a,
li,
input,
textarea {
  font-family:
    "Cairo",
    "Tajawal",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.heading {
  font-family: "Cairo", "Tajawal", sans-serif !important;
  font-weight: 700 !important;
}

/* Base text direction (Bootstrap reboot hardcodes text-align:left on body) */
body {
  text-align: right;
}
html {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  position: relative;
}

.slider-item .badge-pill {
  white-space: normal !important;
  max-width: 90%;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .about-stats {
    flex-wrap: wrap;
    gap: 1.2rem;
  }
}
header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  background: rgba(10, 10, 10, 0.981) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

header .navbar .nav-link {
  padding: 1.1rem 1rem !important;
}

@media (max-width: 1199.98px) {
  header .navbar {
    background: rgba(10, 10, 10, 0.981) !important;
  }
}

/* ---- Dropdown menus ------------------------------------------------------ */
.dropdown-menu {
  left: auto;
  right: 0;
  text-align: right;
}

.dropdown-menu-right {
  left: 0;
  right: auto;
}

header .navbar .dropdown-menu:before {
  left: auto;
  right: 10%;
}

.dropdown-toggle::after {
  margin-left: 0;
  margin-right: 0.255em;
}

/* ---- Forms ---------------------------------------------------------------- */
.custom-control {
  padding-left: 0;
  padding-right: 1.5rem;
}

.custom-control-label::before,
.custom-control-label::after {
  left: auto;
  right: -1.5rem;
}

.custom-select {
  background-position: left 0.75rem center;
  padding: 0.375rem 0.75rem 0.375rem 1.75rem;
}

/* ---- Buttons / close icons -------------------------------------------- */
.close {
  float: left;
}

.alert-dismissible .close {
  right: auto;
  left: 0;
}

.modal-header .close {
  margin: -1rem auto -1rem -1rem;
}

/* ---- Owl Carousel nav arrows (mirrored) -------------------------------- */
.owl-carousel {
  direction: rtl;
}

.home-slider .owl-nav .owl-prev {
  right: 30px !important;
  left: auto !important;
}

.home-slider .owl-nav .owl-next {
  left: 30px !important;
  right: auto !important;
}

.home-slider.major-caousel .owl-nav .owl-prev {
  right: -60px !important;
  left: auto !important;
}

.home-slider.major-caousel .owl-nav .owl-next {
  left: -60px !important;
  right: auto !important;
}

/* ---- About / decorative absolute-positioned elements -------------------- */
.img-dotted-bg:after {
  left: auto;
  right: -50px;
}

.img-dotted-bg .img-absolute {
  right: auto;
  left: -20px;
}

.img-1 {
  left: auto;
  right: 0;
}

.img-2 {
  right: auto;
  left: 0 !important;
}

/* ---- Footer --------------------------------------------------------------- */
.footer-social a {
  margin: 0 0 5px 5px;
}

.site-footer .footer-link a {
  padding-right: 0;
}

/* ---- Breadcrumbs / misc small utilities kept for future pages ----------- */
.breadcrumb-item + .breadcrumb-item {
  padding-right: 0.5rem;
  padding-left: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  padding-left: 0.5rem;
  padding-right: 0;
  float: right;
}

/* ---- Floating contact button (Telegram) --------------------------------- */
.floating-contact-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #29a9e0;
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-decoration: none !important;
}

.floating-contact-btn:hover {
  background: #1c8cc0;
  color: #fff !important;
}

.floating-contact-btn svg {
  flex-shrink: 0;
}
@media (max-width: 767.98px) {
  .floating-contact-btn {
    bottom: 20px;
    right: 20px;
    left: auto;
    width: 52px;
    height: 52px;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 0;
  }

  .floating-contact-btn .fa,
  .floating-contact-btn svg {
    font-size: 1.3rem;
    margin: 0;
  }
}
/* Footer social icons - remove underline, bigger, aesthetic */
.footer-social {
  gap: 0.6rem;
}
.footer-social a .fa-telegram {
  color: #29a9e0;
}

.footer-social a .fa-youtube {
  color: #ff0000;
}

.footer-social a .fa-instagram {
  color: #e1306c;
}

.footer-social a .fa-tiktok {
  color: #010101;
}
.footer-social a {
  font-size: 1.6rem !important;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: 0.25s all ease;
}
.footer-social a {
  background: #fff !important;
}
.footer-social a,
.footer-social a:hover,
.footer-social a:focus,
.footer-social a:active {
  text-decoration: none !important;
}

.footer-social a:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Quick links as buttons - stronger selector to win over defaults */
.site-footer ul.footer-link.quick-links {
  display: flex !important;
  flex-direction: column;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
}

.site-footer ul.footer-link.quick-links li a {
  display: block !important;
  text-align: center;
  padding: 0.7rem 1.4rem !important;
  border: none !important;
  border-radius: 8px !important;
  background: rgba(0, 0, 0, 0.89);
  color: #ffc107 !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: 0.25s all ease;
}

.site-footer ul.footer-link.quick-links li a:hover {
  background: #fff;
  color: black !important;
  transform: translateY(-2px);
}
/* ---- Course cards (repurposed .work-thumb) ------------------------------ */
.course-card {
  display: block;
  position: relative;
  background: #16171a;
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 6px;
  padding: 2.2rem 1.8rem;
  height: 100%;
  transition: 0.3s all ease;
}

.course-card.is-soon {
  border-color: rgba(255, 255, 255, 0.1);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.course-card h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.course-card p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.6rem;
}

/* ---- Stats row in the About section -------------------------------------- */
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin: 1.8rem 0 2rem;
}

.about-stats .stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: #ffc107;
  display: block;
  line-height: 1.2;
}

.about-stats .stat-label {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.55);
}

.slider-item {
  background-size: cover !important;
  background-position: center center !important;
  width: 100%;
}
.badge-telegram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #229ed9; /* Telegram brand blue */
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 20px;
}

.badge-telegram i {
  font-size: 0.9rem;
}
/* Tighten space between community and courses, add "ثم" connector */
#community {
  padding-bottom: 10px;
}

#courses {
  padding-top: 0;
}

.section-connector {
  padding: 10px 0;
}

.connector-text {
  color: #ffc107;
  font-weight: 700;
  font-size: 1.5rem;
}

.slider-item .slider-text h1 {
  font-size: 2.4rem !important;
  line-height: 1.3;
}

.slider-item .slider-text p.sub-text {
  font-size: 1rem !important;
}

.slider-item .badge-pill {
  font-size: 0.95rem !important;
}
/* responsive */
@media (min-width: 768px) {
  .slider-item {
    background-attachment: scroll !important;
    height: 100vh !important;
    height: calc(var(--vh, 1vh) * 100) !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: calc(var(--vh, 1vh) * 100) !important;
    min-height: 100dvh !important;
    width: 100%;
    padding: 1rem 4rem;
  }

  .slider-item .slider-text {
    height: auto !important;
    min-height: 100vh !important;
    min-height: calc(var(--vh, 1vh) * 100) !important;
    min-height: 100dvh !important;
    display: flex;
    align-items: center;
  }

  .slider-item .slider-text h1 {
    font-size: 3.6rem !important;
  }

  .slider-item .slider-text p.sub-text {
    font-size: 1.15rem !important;
  }
}

@media (min-width: 768px) {
  .slider-item .badge-pill {
    font-size: 0.9rem !important;
    padding: 0.5rem 1.5rem !important;
  }

  .slider-item .slider-text h1 {
    font-size: 3.6rem !important;
  }

  .slider-item .slider-text p.sub-text {
    font-size: 1.15rem !important;
  }
}

.slider-item .btn-outline-white,
.slider-item .btn-primary {
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem !important;
}

.slider-item .btn-play-wrap p {
  font-size: 0.9rem;
}
@media (min-width: 992px) {
  .slider-item .slider-text h1 {
    font-size: 4.2rem !important;
  }
}

.btn-play-wrap {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.btn-play {
  border: 2px solid #000;
}
.hero-index {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("../images/hero_1.jpg");
}

.hero-about {
  background-image: url("../images/about.jpg");
}

.hero-pricing {
  background-image: url("../images/whoami.jpg");
}
.course-card-featured {
  border: 2px solid #ffc107;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.25);
  position: relative;
}

.badge-featured {
  display: inline-block;
  background-color: #ffc107;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}
@media (max-width: 767.98px) {
  .section {
    padding: 3rem 0;
  }

  .section.portfolio-section {
    padding-top: 2.5rem;
  }
}

/* ---- Pricing cards (pricing.html, replaces the old portfolio grid) ------ */
.pricing-card {
  display: block;
  position: relative;
  background: #16171a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2.4rem 1.8rem 2rem;
  height: 100%;
  transition: 0.3s all ease;
}

.pricing-card.featured {
  border-color: #ffc107;
  box-shadow: 0 0 0 1px #ffc107;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.pricing-card .badge-featured {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: #ffc107;
  color: #212529;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.pricing-card .plan-name {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.pricing-card ul li {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pricing-card ul li:last-child {
  border-bottom: 0;
}

.pricing-card .price-old {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: line-through;
  font-size: 1rem;
  display: block;
}

.pricing-card .price-new {
  color: #ffc107;
  font-size: 2.4rem;
  font-weight: 900;
  display: block;
  margin: 0.2rem 0 1rem;
}

.pricing-card .price-currency {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.pricing-card .plan-note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}
/* Results carousel - full images, no letterboxing, bigger, dots below */
#resultsCarousel {
  padding-bottom: 45px;
}

#resultsCarousel .carousel-inner {
  max-width: 850px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

#resultsCarousel .carousel-item img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}
/* Arrows: closer together on desktop, wider apart on mobile */
#resultsCarousel .carousel-control-prev,
#resultsCarousel .carousel-control-next {
  direction: ltr !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: #ffce3a;
  border-radius: 50%;
  opacity: 1;
}

#resultsCarousel .carousel-control-prev {
  left: 10px;
}

#resultsCarousel .carousel-control-next {
  right: 10px;
}

#resultsCarousel .carousel-control-prev-icon,
#resultsCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}
#resultsCarousel .carousel-item-next:not(.carousel-item-left),
#resultsCarousel .active.carousel-item-right {
  transform: translateX(-100%);
}

#resultsCarousel .carousel-item-prev:not(.carousel-item-right),
#resultsCarousel .active.carousel-item-left {
  transform: translateX(100%);
}
/* responsive */
@media (max-width: 600px) {
  #resultsCarousel .carousel-control-prev {
    left: -10px;
  }
  #resultsCarousel .carousel-control-next {
    right: -10px;
  }
}

#resultsCarousel .carousel-indicators {
  position: static;
  margin-top: 20px;
  margin-bottom: 0;
}

#resultsCarousel .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(77, 63, 22, 0.7);
  border: none;
  margin-top: 15px;
}
#resultsCarousel .carousel-indicators li.active {
  background-color: #ffce3a;
}
@media (min-width: 600px) and (max-width: 768px) {
  #resultsCarousel .carousel-control-prev {
    left: -30px;
  }
  #resultsCarousel .carousel-control-next {
    right: -30px;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  #resultsCarousel .carousel-control-prev {
    left: -15px;
  }
  #resultsCarousel .carousel-control-next {
    right: -15px;
  }
}
.responsive-cta-btn {
  display: inline-block;
  width: auto;
  max-width: 90%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.7;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  color: #ffc107;
  background-color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.responsive-cta-btn:hover {
  color: #e0a800;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
  .responsive-cta-btn {
    max-width: 88%;
    font-size: 0.88rem;
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .responsive-cta-btn {
    max-width: 92%;
    font-size: 0.8rem;
    padding: 0.7rem 1.1rem;
  }
}
