:root {
  --primary-blue: #0850b7;
  --primary-teal: #02A2B3;
  --dark-charcoal: #414042;
  --dark-slate: #0f172a;
  --light-slate: #f8fafc;
  --text-muted: #64748b;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--light-slate);
  color: var(--dark-charcoal);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-slate);
  font-weight: 800;
}

/* Custom buttons */
.button-primary-fill {
  background-color: var(--primary-blue) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary-blue) !important;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 28px;
  transition: var(--transition-base);
}

.button-primary-fill:hover {
  background-color: #064095 !important;
  border-color: #064095 !important;
  transform: translateY(-2.5px);
  box-shadow: 0 10px 20px rgba(8, 80, 183, 0.25);
}

.button-primary-strok {
  border: 2px solid var(--primary-blue) !important;
  background: transparent !important;
  color: var(--dark-charcoal) !important;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 26px;
  transition: var(--transition-base);
}

.button-primary-strok:hover {
  background-color: rgba(8, 80, 183, 0.05) !important;
  color: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
  transform: translateY(-2px);
}

.button-teal-fill {
  background-color: var(--primary-teal) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary-teal) !important;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 28px;
  transition: var(--transition-base);
}

.button-teal-fill:hover {
  background-color: #028e9d !important;
  border-color: #028e9d !important;
  transform: translateY(-2.5px);
  box-shadow: 0 10px 20px rgba(2, 162, 179, 0.25);
}

/* Layout Decorators */
.hero-gradient {
  background: radial-gradient(circle at 10% 20%, rgba(2, 162, 179, 0.07) 0%, rgba(8, 80, 183, 0.03) 50%, #ffffff 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.section-accent-bg {
  background: linear-gradient(180deg, #ffffff 0%, rgba(2, 162, 179, 0.03) 100%);
}

.section-blue-bg {
  background: linear-gradient(135deg, rgba(8, 80, 183, 0.02) 0%, rgba(15, 23, 42, 0.01) 100%);
}

.accent-line {
  width: 70px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-teal) 0%, var(--primary-blue) 100%);
  border-radius: 3px;
}
.navbar-toggler:focus{
  box-shadow: none;
}

@media screen and (max-width:767px){
  #mainNavbar .nav-item{
    width: 100%;
    text-align: center;
  }
  .nav-link-custom{
    width: 100%;
  }

}

/* Navigation Custom links */
 .nav-link-custom{
  color: var(--dark-charcoal) !important;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 10px;
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none !important;
  display: inline-block;
}

.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--primary-blue) !important;
  background-color: rgba(8, 80, 183, 0.05);
}



/* In-place Video Container */
.hero-video-box {
  background: #0f172a;
  border-radius: 24px;
  border: 4px solid #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  transition: var(--transition-base);
}

.hero-video-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 55px rgba(2, 162, 179, 0.25);
  border-color: rgba(2, 162, 179, 0.5);
}

.video-overlay {
  position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.15) 0%,
            rgba(15, 23, 42, 0.45) 100%
        ),
        url("https://www.gheyas.com/img/Campaign/comeback/comeback-cover.png");

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

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    z-index: 2;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
}

.play-btn-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.play-btn {
  width: 84px;
  height: 84px;
  background: #ffffff;
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
}
@media screen and (max-width:767px){
  .play-btn{
    width: 70px;
    height: 70px;
  }
}

.play-btn:hover {
  transform: scale(1.15);
  background: var(--primary-teal);
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(2, 162, 179, 0.5);
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: pulse-animation 2s infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes pulse-animation {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/* User Path selection Cards */
.path-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-base);
  cursor: pointer;
  padding: 32px 24px;
  position: relative;
}

.path-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(8, 80, 183, 0.08);
  border-color: var(--primary-blue);
}

/* Course Grid and Card - Heavy layout fixes for smaller desktops */
.course-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.06);
  border-color: var(--primary-teal);
}

.course-cover {
  height: 180px;
  background: linear-gradient(135deg, rgba(8, 80, 183, 0.08) 0%, rgba(2, 162, 179, 0.08) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.course-card:hover .course-cover {
  background: linear-gradient(135deg, rgba(8, 80, 183, 0.15) 0%, rgba(2, 162, 179, 0.15) 100%);
}

.course-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Robust text control to prevent squishing */
.course-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-slate);
  line-height: 1.5;
  margin-bottom: 12px;
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.course-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.course-desc {
  font-size: 13px;
  color: #556275;
  line-height: 1.6;
  margin-bottom: 18px;
  height: 62px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Customer Logos — Swiper Slider */
.clientsSwiper {
  padding: 20px 0;
  overflow: hidden;
}
.clientsSwiper .swiper-wrapper {
  align-items: center;
  justify-content: flex-start;
}
.clientsSwiper .swiper-slide {
  width: auto;
  height: auto;
}

.client-logo-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  border: 1.5px solid rgba(226, 232, 240, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  cursor: pointer;
}

.client-logo-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(2, 162, 179, 0.12);
  border-color: var(--primary-teal);
}

.client-logo-img {
  max-width: 90%;
  transition: var(--transition-base);
}
@media screen and (max-width:767px){
  .client-logo-img {
    max-width: 70%;
  }
  .countdown-box {
    min-width: 70px !important;
  }
  .countdown-row-ltr{
    gap: 4px !important;
  }
}

/* LTR Timer countdown layout specifically from Left-to-Right as requested */
.countdown-row-ltr {
  display: flex;
  flex-direction: row !important;
  direction: ltr !important;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.countdown-box {
  min-width: 80px;
  flex: 0 1 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 8px;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: var(--transition-base);
  text-align: center;
}

.countdown-box:hover {
  border-color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 162, 179, 0.1);
}

.countdown-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1.1;
  display: block;
}

.countdown-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* Premium Footer */
.footer-premium {
  background-color: #1a2230;
  color: #e2e8f0;
  border-top: 4px solid var(--primary-teal);
}

.footer-link-group h5 {
  color: #ffffff;
  font-weight: 800;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.footer-link-group h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-teal);
  border-radius: 2px;
}

.footer-link-item {
  color: #b4c6ef !important; /* beautifully matched text */
  text-decoration: none !important;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition-fast);
  display: inline-block;
  padding: 6px 0;
}

.footer-link-item:hover {
  color: var(--primary-teal) !important;
  transform: translateX(-4px);
}

.footer-popular-link {
  color: #ffffff !important; /* Keep popular course links white as requested */
  text-decoration: none !important;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition-fast);
  display: inline-block;
  padding: 6px 0;
}

.footer-popular-link:hover {
  color: var(--primary-teal) !important;
  transform: translateX(-4px);
}


/* Custom logo & paths helper classes */
.logo-icon-bg {
  background-color: rgba(8, 80, 183, 0.08);
  transition: var(--transition-base);
}
.logo-icon-bg:hover {
  background-color: rgba(8, 80, 183, 0.15);
}
.text-logo-sub {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: -0.2px;
  margin-top: -3px;
}
.path-icon-bg {
  background-color: rgba(8, 80, 183, 0.06);
  width: 70px;
  height: 70px;
  transition: var(--transition-base);
}
.path-card:hover .path-icon-bg {
  background-color: rgba(2, 162, 179, 0.1);
  transform: scale(1.05);
}

/* Specific custom button overrides for premium touch */
.button-primary-fill.blue {
  background-color: #0850b7 !important;
  color: #ffffff !important;
  border: 1px solid #0850b7 !important;
}
.button-primary-fill.blue:hover {
  background-color: #064095 !important;
  border-color: #064095 !important;
}
.button-primary-strok.blue {
  border-color: #0850b7 !important;
  background: transparent !important;
  color: #333333 !important;
}
.button-primary-strok.blue:hover {
  background-color: rgba(8, 80, 183, 0.05) !important;
  color: #0850b7 !important;
}

/* Responsive Fixes & Visibility for Navbar */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
}

/* Animation utilities */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.text-justify-rtl {
  text-align: justify;
  text-justify: inter-word;
}

/* ===== Inline-to-CSS utility classes ===== */

/* Hero decorative blur circles */
.hero-blob-top {
  position: absolute; top: -50px; left: -50px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(2, 162, 179, 0.04);
  filter: blur(50px); pointer-events: none;
}
.hero-blob-bottom {
  position: absolute; bottom: -100px; right: 10%; width: 450px; height: 450px;
  border-radius: 50%; background: rgba(8, 80, 183, 0.03);
  filter: blur(80px); pointer-events: none;
}

/* Hero badge teal bg */
.badge-teal-bg { background-color: rgba(2, 162, 179, 0.1) !important; color: var(--primary-teal) !important; }

/* Hero title weight */
.hero-title-fw { font-weight: 900; letter-spacing: -0.5px; }

/* Video poster background */
.video-poster-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8)),
    url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1200&q=80');
  background-size: cover; background-position: center; z-index: 1;
}

/* Badge primary bg (stats, paths, clients) */
.badge-primary-bg { background-color: rgba(8, 80, 183, 0.08); color: var(--primary-blue); font-weight: 700; font-size: 13px; }
.badge-teal-soft { background-color: rgba(2, 162, 179, 0.1); color: var(--primary-teal); font-weight: 700; }
.badge-teal-soft2 { background-color: rgba(2, 162, 179, 0.08); color: var(--primary-teal); font-weight: 700; }

/* Dark charcoal text */
.text-dark-charcoal { color: var(--dark-charcoal); }

/* Stats number */
.stats-number-lg { font-size: 2.2rem; font-weight: 800; line-height: 1.2; }
.stats-number-primary { color: var(--primary-blue); }
.stats-number-teal { color: var(--primary-teal); }
.stats-number-green { color: #198754; }

/* Stats cards — rich tinted cards */
.stats-card {
  border: none;
  border-radius: 24px;
  padding: 40px 28px 32px;
  transition: all 0.35s ease;
}
.stats-card-blue  { background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 60%, #f8fbff 100%); }
.stats-card-teal  { background: linear-gradient(180deg, #ccfbf1 0%, #f0fdfd 60%, #f8fffe 100%); }
.stats-card-green { background: linear-gradient(180deg, #d1fae5 0%, #ecfdf5 60%, #f5fef9 100%); }
.stats-card:hover {
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}
.stats-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin: 16px 0 0;
  letter-spacing: -0.2px;
}

/* Stats icon — soft filled circle */
.stats-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: all 0.35s ease;
}
.stats-card:hover .stats-icon { transform: scale(1.12); }
.stats-icon-blue  { background: #dbeafe; color: #1d4ed8; }
.stats-icon-teal  { background: #ccfbf1; color: #0d9488; }
.stats-icon-green { background: #d1fae5; color: #059669; }

/* Path link arrow */
.path-arrow { color: #0850b7; }

/* Webinar section */
.webinar-label { color: var(--primary-blue); font-size: 14px; }
.webinar-title { font-weight: 900; font-size: 2.2rem; }
.webinar-sim-label { font-size: 11px; font-weight: 600; }
.webinar-sim-live { background-color: #0850b7; border-color: #0850b7; }

/* Toggle pill — premium RTL segmented control */
.toggle-pill {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  padding: 3px;
}

@media screen and (max-width:767px){
  .toggle-pill {
    width: fit-content;
    margin: 0 auto;
  }
}
.toggle-pill-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  padding: 0 14px 0 6px;
  white-space: nowrap;
}
.toggle-pill-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}
.toggle-pill-btn:first-of-type {
  border-radius: 0 100px 100px 0;
}
.toggle-pill-btn:last-of-type {
  border-radius: 100px 0 0 100px;
}

.toggle-pill-btn:not(.active){
  background-color: #fff;
  color: #000;
}
.toggle-pill-btn.active {
  background: #0850b7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.webinar-card-bg { background-color: #f8fafc; border: 1px solid #e2e8f0 !important; }
.webinar-poster { min-height: 360px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border-left: 1px solid rgba(255,255,255,0.05); }
.webinar-desc-color { color: #cbd5e1 !important; }
.webinar-instructor-badge { width: 40px; height: 40px; background-color: #0850b7 !important; }
.webinar-instructor-label { font-size: 11px; }
.webinar-colon { font-size: 24px; font-weight: 900; color: var(--primary-teal); }

/* Webinar status labels */
.status-label { font-size: 15px; }
.status-value { font-size: 18px; }

/* Webinar archive */
.archive-success-bg { background-color: rgba(25, 135, 84, 0.08); border-right: 4px solid #198754; }
.archive-meta-label { font-size: 11px; }

/* Course section */
.course-badge { color: #0850b7; font-weight: 600; }
.course-filter-bg { background-color: var(--light-slate); border: 1.5px solid rgba(226, 232, 240, 0.8); }
.course-search-radius { border-radius: 12px 0 0 12px; }
.course-search-input { border-radius: 0 12px 12px 0; font-size: 14px; }

/* Price label */
.price-label { font-size: 12px; color: var(--text-muted); }
.price-value { font-size: 17px;font-weight: 900; }
.details-btn { font-size: 12.5px; border-radius: 8px; }

/* Client section */
.clients-badge { background-color: rgba(2, 162, 179, 0.08); color: var(--primary-teal); font-weight: 700; }
.clients-title { color: var(--dark-charcoal); letter-spacing: -0.5px; }
.accent-line-sm { width: 50px; }
.client-logo-img-height { max-height: 38px; }

/* Footer about scroll target */
#footer-about { scroll-margin-top: 20px; }

/* Vertical align for inline SVG icons */
.seat-icon { vertical-align: middle; }

/* Video overlay badges */
.badge-blur { backdrop-filter: blur(4px); }

/* Green dot in video */
.green-dot { width: 8px; height: 8px; background-color: var(--primary-teal); display: inline-block; border-radius: 50%; }

