/* Modern Professional Hero CTA Button - Premium Design */
.hero-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 42px;
  background: linear-gradient(135deg, #00C6FB 0%, #005BEA 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 91, 234, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  z-index: 10;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Shine Animation Layer */
.hero-cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}

/* Hover Shine Effect */
.hero-cta-button:hover::after {
  animation: buttonShine 0.75s ease-in-out;
}

@keyframes buttonShine {
  from {
    left: -100%;
  }

  to {
    left: 200%;
  }
}

/* Hover State */
.hero-cta-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 91, 234, 0.5),
    0 0 0 2px rgba(255, 255, 255, 0.3) inset;
  background: linear-gradient(135deg, #21D4FD 0%, #005BEA 100%);
}

.hero-cta-button:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 5px 15px rgba(0, 91, 234, 0.4);
}

.hero-cta-button .icon {
  font-size: 1.25rem;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-cta-button:hover .icon {
  transform: rotate(45deg) scale(1.1);
}

.hero-cta-text {
  position: relative;
  z-index: 2;
  font-family: 'Tajawal', sans-serif;
  /* Ensure font consistency */
  border-bottom: 2px solid transparent;
  /* Prepare for text underline effect if needed */
}

/* Hero Section Styling */
.hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 80px 40px;
  max-width: 1100px;
  margin: auto;
  position: relative;
}

/* خلفية متوهجة لأسفل قسم Hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(0, 188, 212, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(15px);
}

.hero-content {
  flex: 1;
  min-width: 55%;
  max-width: 65%;
  text-align: right;
  padding-right: 0;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-main-light);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px var(--shadow-strong);
  letter-spacing: -0.8px;
}

.hero-content h1 .gradient-text {
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-weight: 900;
}

.hero-content h1 .highlight-bold {
  color: var(--primary-color);
  animation: textGlow 2s infinite alternate;
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 5px var(--primary-color);
  }

  to {
    text-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--secondary-color);
  }
}

.hero-content h1 .highlight-italic {
  color: var(--accent-color);
  font-style: italic;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary-light);
  margin-bottom: 25px;
  line-height: 1.5;
  text-shadow: 1px 1px 2px var(--shadow-light);
  letter-spacing: 0.05px;
}

.hero-actions .button {
  background: var(--primary-color);
  color: var(--bg-dark-primary);
  padding: 12px 30px;
  border-radius: 35px;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 2px solid var(--primary-color);
}

.hero-actions .button:hover {
  background: var(--bg-dark-primary);
  color: var(--primary-color);
  box-shadow: 0 12px 25px rgba(0, 188, 212, 0.4);
  transform: translateY(-3px);
  border-color: var(--accent-color);
}

.hero-actions .button:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 188, 212, 0.3);
}

/* Video Container Styling */
.hero-video-container {
  display: block;
  flex: 1;
  min-width: 35%;
  max-width: 45%;
  text-align: left;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
  background-image: var(--gradient-hero-video-border);
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
  visibility: visible;
  opacity: 1;
}

.hero-video-container:hover {
  transform: scale(1.003);
  box-shadow: 0 0 30px rgba(0, 188, 212, 0.5);
}

/* Ensure video container is visible on desktop */
@media (min-width: 992px) {
  .hero-video-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hero-video-container .video-responsive {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Responsive Video Embed Container for aspect ratio */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio (height/width * 100) */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: var(--bg-dark-primary);
  /* Fallback background */
  border-radius: 18px;
  display: block;
  visibility: visible;
  opacity: 1;
}

.video-responsive iframe,
.video-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video Play Button Overlay */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: all 0.3s ease;
  border-radius: 18px;
  backdrop-filter: blur(2px);
}

.video-play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Video Play Button Styles - From Uiverse.io by MuhammadHasann */
.toggle-cont {
  width: 100px;
  height: 50px;
  border-radius: 9999px;
  animation: buttonPulse 2s infinite ease-in-out;
}

.toggle-cont .toggle-input {
  display: none;
}

.toggle-cont .toggle-label {
  cursor: pointer;
  position: relative;
  display: inline-block;
  padding: 6px;
  width: 100%;
  height: 100%;
  background: #272727;
  border-radius: 9999px;
  box-sizing: content-box;
  box-shadow: 0px 0px 16px -8px #fefefe;
  transition: all 0.3s ease;
}

.toggle-cont .toggle-label:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 20px -5px #fefefe;
}

.toggle-cont .toggle-label .cont-label-play {
  position: relative;
  width: 50px;
  aspect-ratio: 1 / 1;
  background: #5e5e5e;
  border-radius: 9999px;
  transition: all 0.5s cubic-bezier(1, 0, 0, 1);
}

.toggle-cont .toggle-input:checked+.toggle-label .cont-label-play {
  background: #f43f5e;
  transform: translateX(50px);
}

.toggle-cont .toggle-label .label-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  width: 24px;
  aspect-ratio: 1 / 1;
  background: #fefefe;
  border-radius: 4px;
  clip-path: polygon(25% 0, 75% 50%, 25% 100%, 25% 51%);
  transition: all 0.5s cubic-bezier(1, 0, 0, 1);
  animation: playIconPulse 1.5s infinite ease-in-out;
}

.toggle-cont .toggle-input:checked+.toggle-label .label-play {
  width: 20px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  animation: none;
}

/* Animation for button click */
.toggle-cont.animating {
  animation: buttonClickAnimation 0.8s ease-out;
}

.toggle-cont.animating .toggle-label .cont-label-play {
  animation: buttonSlideAnimation 0.8s ease-out;
}

.toggle-cont.animating .toggle-label .label-play {
  animation: playIconTransform 0.8s ease-out;
}

/* Keyframe animations */
@keyframes buttonPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0px 0px 16px -8px #fefefe;
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0px 0px 20px -5px #fefefe;
  }
}

@keyframes playIconPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

@keyframes buttonClickAnimation {
  0% {
    transform: scale(1);
  }

  20% {
    transform: scale(0.95);
  }

  40% {
    transform: scale(1.05);
  }

  60% {
    transform: scale(0.98);
  }

  80% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes buttonSlideAnimation {
  0% {
    transform: translateX(0);
    background: #5e5e5e;
  }

  50% {
    transform: translateX(25px);
    background: #f43f5e;
  }

  100% {
    transform: translateX(50px);
    background: #f43f5e;
  }
}

@keyframes playIconTransform {
  0% {
    width: 24px;
    clip-path: polygon(25% 0, 75% 50%, 25% 100%, 25% 51%);
  }

  50% {
    width: 22px;
    clip-path: polygon(30% 0, 70% 50%, 30% 100%, 30% 51%);
  }

  100% {
    width: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* Responsive adjustments for video play button */
@media (max-width: 991px) {
  .toggle-cont {
    width: 80px;
    height: 40px;
  }

  .toggle-cont .toggle-label .cont-label-play {
    width: 40px;
  }

  .toggle-cont .toggle-input:checked+.toggle-label .cont-label-play {
    transform: translateX(40px);
  }

  .toggle-cont .toggle-label .label-play {
    width: 20px;
  }
}

@media (max-width: 767px) {
  .toggle-cont {
    width: 70px;
    height: 35px;
  }

  .toggle-cont .toggle-label .cont-label-play {
    width: 35px;
  }

  .toggle-cont .toggle-input:checked+.toggle-label .cont-label-play {
    transform: translateX(35px);
  }

  .toggle-cont .toggle-label .label-play {
    width: 18px;
  }
}

/* Video Controls Styling */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 15px 20px 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 15;
  border-radius: 0 0 18px 18px;
  display: none;
  /* Hidden by default */
}

.video-controls.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

.video-responsive:hover .video-controls.show {
  opacity: 1;
  visibility: visible;
}

.video-controls-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.video-control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.video-control-btn:hover {
  background: rgba(0, 188, 212, 0.3);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.video-control-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.2);
}

.video-control-btn i {
  font-size: 16px;
  transition: all 0.3s ease;
}

.video-control-btn:hover i {
  color: var(--primary-color);
  transform: scale(1.1);
}

.control-text {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* Play/Pause Button Special Styling */
.play-pause-btn {
  background: var(--primary-color);
  border-color: var(--primary-color);
  padding: 10px 15px;
  font-size: 16px;
}

.play-pause-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* Volume Control */
.volume-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider-container {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  padding: 12px 18px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.volume-control:hover .volume-slider-container {
  opacity: 1;
  visibility: visible;
}

/* Add arrow pointing down to volume slider */
.volume-slider-container::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.9);
}

.volume-slider {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  background: var(--accent-color);
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
  background: var(--accent-color);
  transform: scale(1.2);
}

/* Progress Bar */
.video-progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-progress-bar:hover {
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
}

.video-progress-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
}

.video-progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-progress-bar:hover .video-progress-handle {
  opacity: 1;
}

.video-time-display {
  color: white;
  font-size: 12px;
  font-weight: 600;
  min-width: 80px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(5px);
}

/* Responsive Video Controls */
@media (max-width: 991px) {
  .video-controls {
    padding: 12px 15px 8px;
  }

  .video-controls-container {
    gap: 10px;
  }

  .video-control-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .video-control-btn i {
    font-size: 14px;
  }

  .control-text {
    font-size: 10px;
  }

  .volume-slider-container {
    padding: 10px 15px;
    margin-bottom: 8px;
  }

  .volume-slider {
    width: 60px;
  }
}

@media (max-width: 767px) {
  .video-controls {
    padding: 10px 12px 6px;
  }

  .video-controls-container {
    gap: 8px;
    flex-wrap: wrap;
  }

  .video-control-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .video-control-btn i {
    font-size: 12px;
  }

  .control-text {
    font-size: 9px;
  }

  .volume-slider-container {
    padding: 8px 12px;
    margin-bottom: 6px;
  }

  .volume-slider {
    width: 50px;
  }

  .video-time-display {
    font-size: 10px;
    min-width: 60px;
    padding: 3px 6px;
  }
}

/* Filter Section */
.filter-section {
  padding: 40px 40px 60px;
  max-width: 1100px;
  margin: auto;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.02) 0%, rgba(30, 136, 229, 0.01) 100%);
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 188, 212, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.filter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 188, 212, 0.03) 0%, transparent 50%),
    radial-gradient(circle at bottom left, rgba(30, 136, 229, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: backgroundShift 15s infinite alternate ease-in-out;
}

.filter-container {
  position: relative;
  z-index: 2;
}

.filter-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

.filter-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-main-button);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.filter-buttons::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 188, 212, 0.2) 50%, transparent 100%);
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: lineGlow 3s infinite ease-in-out;
}

@keyframes lineGlow {

  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scaleX(0.8);
  }

  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scaleX(1);
  }
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(145deg, var(--card-bg-dark) 0%, rgba(33, 38, 45, 0.9) 100%);
  border: 2px solid rgba(0, 188, 212, 0.2);
  border-radius: 50px;
  color: var(--text-secondary-light);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 120px;
  justify-content: center;
  z-index: 1;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-main-button);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 50px;
  z-index: 0;
}

.filter-btn i {
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.filter-btn span {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3), 0 0 20px rgba(0, 188, 212, 0.2);
  color: var(--text-main-light);
}

.filter-btn:hover::before {
  opacity: 0.1;
}

.filter-btn:hover i {
  color: var(--primary-color);
  transform: scale(1.1) rotate(5deg);
  text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.filter-btn:hover span {
  color: var(--text-main-light);
  text-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
}

.filter-btn.active {
  background: var(--gradient-main-button);
  border-color: var(--primary-color);
  color: var(--bg-dark-primary);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4), 0 0 25px rgba(0, 188, 212, 0.3);
  transform: translateY(-2px);
}

.filter-btn.active::before {
  opacity: 0;
}

.filter-btn.active i {
  color: var(--bg-dark-primary);
  transform: scale(1.1);
  text-shadow: none;
}

.filter-btn.active span {
  color: var(--bg-dark-primary);
  font-weight: 800;
  text-shadow: none;
}

.filter-btn:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

/* Filter button ripple effect */
.filter-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
}

.filter-btn:active::after {
  width: 300px;
  height: 300px;
}

/* Filter button pulse animation for active state */
.filter-btn.active {
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4), 0 0 25px rgba(0, 188, 212, 0.3);
  }

  50% {
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.5), 0 0 35px rgba(0, 188, 212, 0.4);
  }
}

/* Courses Section */
/* Courses Section - Enhanced Professional Design */
.courses-section {
  padding: 100px 40px;
  max-width: 1400px;
  /* Wider container */
  margin: auto;
  text-align: center;
  /* Subtle mesh gradient background */
  background-image:
    radial-gradient(at 0% 0%, rgba(0, 188, 212, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(30, 41, 59, 0.05) 0px, transparent 50%);
  position: relative;
}

.courses-section h2 {
  font-size: 3.5rem;
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  display: inline-block;
}

.courses-section .section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary-light);
  margin-bottom: 70px;
  font-weight: 400;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.courses-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.courses-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.courses-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 8px;
}

.kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.18), rgba(0, 212, 188, 0.08));
  color: var(--primary-color);
  font-size: 1.2rem;
}

.kpi-label {
  color: var(--text-secondary-light);
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

.kpi-value {
  color: #fff;
  font-weight: 700;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 400px));
  /* Fixed max width for cards */
  gap: 40px;
  justify-content: center;
  padding: 10px;
  /* Space for hover effects */
}

/* Card Design */
.course {
  background: rgba(17, 24, 39, 0.7);
  /* Deep dark blue-grey */
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  backdrop-filter: blur(20px);
}

.course:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.2),
    0 10px 10px -5px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 188, 212, 0.3);
  /* Subtle glow border */
  background: rgba(30, 41, 59, 0.8);
}

.course-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.course img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.course:hover img {
  transform: scale(1.1);
}

/* Category Badge */
.category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.course-content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course h3 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.course:hover h3 {
  color: var(--primary-color);
}

.course p {
  font-size: 1rem;
  color: var(--text-secondary-light);
  margin-bottom: 24px;
  line-height: 1.6;
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta Data */
.course-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary-light);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 6px;
}

.meta-item i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Rating */
.course-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.course-stars {
  display: flex;
  gap: 2px;
}

.course-stars i {
  color: #fbbf24;
  /* Amber 400 */
  font-size: 0.9rem;
}

.course-rating-text {
  font-size: 0.9rem;
  color: var(--text-secondary-light);
  font-weight: 600;
}

/* Button */
.course .button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--primary-color);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(0, 188, 212, 0.3);
  margin-top: auto;
  transition: all 0.3s ease;
}

.course .button:hover {
  background: var(--primary-color);
  color: #0f172a;
  /* Dark background text color */
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.25);
}

.course .button i {
  transition: transform 0.3s ease;
}

.course .button:hover i {
  transform: translateX(4px);
}

.courses-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  margin: 20px 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(0, 188, 212, 0.35);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
}

.trust-pill i {
  color: var(--primary-color);
}

.courses-grid-pro {
  margin-top: 12px;
}

.course-pro {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.course-thumbnail .course-level {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.course-thumbnail .course-duration {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.course-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .courses-section {
    padding: 60px 16px;
    /* Reduced padding for mobile */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
  }

  .courses-header .section-subtitle {
    margin-bottom: 40px;
    padding: 0 10px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    /* Single column layout */
    gap: 30px;
    padding: 0;
    /* Remove extra padding that might cause overflow */
  }

  .course {
    max-width: 100%;
    /* Ensure card fits container */
    margin: 0 auto;
  }
}

.course-format,
.course-cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.course-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.course-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary-light);
  font-size: 0.95rem;
}

.course-highlights i {
  color: var(--primary-color);
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.course-rating-text {
  font-weight: 700;
}

/* View All Courses Button */
/* View All Courses Button - Professional Design */
.view-all-courses-btn {
  display: inline-block;
  text-decoration: none;
}

.view-all-courses-btn--pro {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: #fff;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  z-index: 1;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 20px rgba(0, 188, 212, 0.3);
}

/* Gradient Overlay for Hover */
.view-all-courses-btn--pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

/* Shine Effect */
.view-all-courses-btn--pro::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
  z-index: 2;
}

/* Icon Styles */
.view-all-courses-btn--pro .arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  z-index: 3;
}

.view-all-courses-btn--pro i {
  font-size: 0.9rem;
  color: #fff;
  transition: transform 0.4s ease, color 0.4s ease;
}

/* HOVER EFFECTS */
.view-all-courses-btn--pro:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 188, 212, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.view-all-courses-btn--pro:hover::before {
  opacity: 1;
}

.view-all-courses-btn--pro:hover::after {
  left: 150%;
  transition: left 0.7s ease-in-out;
}

/* Icon Hover */
.view-all-courses-btn--pro:hover .arrow-icon {
  background: #fff;
  transform: translateX(6px) scale(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.view-all-courses-btn--pro:hover i {
  color: var(--primary-color);
  transform: translateX(1px);
}

/* Ensure text is above background elements */
.view-all-courses-btn--pro span:not(.arrow-icon) {
  position: relative;
  z-index: 3;
}

/* Active State */
.view-all-courses-btn--pro:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}


/* Contributors Section Styling - Modern Design */
.contributors-section {
  padding: 96px 24px;
  background: radial-gradient(140% 120% at 10% 20%, rgba(0, 188, 212, 0.06), transparent 46%),
    radial-gradient(120% 120% at 88% 0%, rgba(30, 136, 229, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-dark-primary), #0b1727 40%, #0a1523 100%);
  color: var(--text-main-light);
  position: relative;
  overflow: visible;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  isolation: isolate;
}

.contributors-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 50% 10%, rgba(0, 188, 212, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.contributors-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 120%, rgba(30, 136, 229, 0.04), transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.contributors-surface {
  max-width: 1260px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(13, 20, 33, 0.96), rgba(8, 14, 26, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 40px 36px 48px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 188, 212, 0.03);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contributors-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(65% 65% at 20% 15%, rgba(0, 188, 212, 0.08), transparent 60%),
    radial-gradient(65% 65% at 80% 15%, rgba(255, 255, 255, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.contributors-surface::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}

/* Decorative Dots */
.decorative-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.decorative-dots .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.15;
  animation: floatDot 8s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.decorative-dots .dot:nth-child(1) {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.decorative-dots .dot:nth-child(2) {
  top: 25%;
  right: 20%;
  animation-delay: 1s;
}

.decorative-dots .dot:nth-child(3) {
  bottom: 30%;
  left: 10%;
  animation-delay: 2s;
}

.decorative-dots .dot:nth-child(4) {
  bottom: 15%;
  right: 15%;
  animation-delay: 3s;
}

.decorative-dots .dot:nth-child(5) {
  top: 50%;
  left: 5%;
  animation-delay: 4s;
}

.decorative-dots .dot:nth-child(6) {
  top: 60%;
  right: 8%;
  animation-delay: 5s;
}

@keyframes floatDot {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.15;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
  }

  50% {
    transform: translateY(-25px) scale(1.3);
    opacity: 0.35;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
  }
}

.contributors-section h2 {
  font-size: 3rem;
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px;
  font-weight: 900;
  text-shadow: none;
  letter-spacing: -0.8px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  display: inline-block;
}

.contributors-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 120px;
  height: 3px;
  background: var(--gradient-main-button);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.45);
  animation: underlinePulse 3.5s ease-in-out infinite;
}

@keyframes underlinePulse {

  0%,
  100% {
    filter: blur(0px);
    opacity: 1;
  }

  50% {
    filter: blur(1px);
    opacity: 0.85;
  }
}

.contributors-section .section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary-light);
  margin: 6px 0 12px;
  font-weight: 500;
  opacity: 0.9;
  max-width: 640px;
  line-height: 1.6;
}

.instructors-header {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
  align-items: stretch;
  gap: 32px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.instructors-lead {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.instructors-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.instructors-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 188, 212, 0.12);
  color: var(--primary-color);
  border: 1px solid rgba(0, 188, 212, 0.35);
  box-shadow: 0 6px 18px rgba(0, 188, 212, 0.12);
  flex-shrink: 0;
}

.stat-icon i {
  color: inherit;
}

.stat-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  display: block;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main-light);
  line-height: 1.2;
}

.stat-label {
  color: var(--text-secondary-light);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--gradient-main-button);
  color: var(--bg-dark-primary);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 188, 212, 0.25);
  justify-content: center;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.stat-pill--ghost {
  background: transparent;
  color: var(--primary-color);
  border-color: rgba(0, 188, 212, 0.35);
  box-shadow: 0 12px 30px rgba(0, 188, 212, 0.15);
}

.stat-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 188, 212, 0.35);
}

.stat-pill--ghost:hover {
  background: rgba(0, 188, 212, 0.12);
  color: var(--text-main-light);
}

.stat-pill i {
  color: inherit;
}

.instructors-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.instructors-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 188, 212, 0.12);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 18px rgba(0, 188, 212, 0.18);
}

.instructors-kicker::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-main-button);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.instructors-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main-light);
  border: 1px solid rgba(0, 188, 212, 0.18);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  text-decoration: none;
}

.meta-pill i {
  color: var(--primary-color);
  font-size: 0.95rem;
}

.meta-pill:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 28px rgba(0, 188, 212, 0.25);
}

.meta-pill--cta {
  background: var(--gradient-main-button);
  color: var(--bg-dark-primary);
  border-color: transparent;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.meta-pill--cta:hover {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
}

/* Modern Instructors Grid */
/* Modern Instructors Grid - Professional Redesign */
/* Modern Instructors Grid - Professional Redesign */
.contributors-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 2;
  padding: 0;
}

/* Individual Instructor Card */
.instructor-modern {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(26, 31, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.instructor-modern:hover {
  transform: translateY(-8px);
  background: rgba(30, 36, 48, 0.85);
  border-color: rgba(0, 188, 212, 0.4);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 188, 212, 0.2);
}

/* Header & Image */
.instructor-image-wrapper {
  padding: 32px 24px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

/* Add a subtle background accent behind image */
.instructor-image-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  transition: all 0.5s ease;
  opacity: 0.6;
}

.instructor-modern:hover .instructor-image-wrapper::before {
  width: 180px;
  height: 180px;
  opacity: 1;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.15) 0%, transparent 70%);
}

.instructor-image {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Bouncy pop */
  z-index: 1;
  position: relative;
}

.instructor-modern:hover .instructor-image {
  border-color: var(--primary-color);
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.instructor-image i {
  font-size: 3rem;
  color: var(--text-secondary-light);
  transition: all 0.3s ease;
  opacity: 0.8;
}

.instructor-modern:hover .instructor-image i {
  color: var(--primary-color);
  opacity: 1;
  transform: scale(1.1);
}

/* Info Section */
.instructor-info-card {
  padding: 16px 28px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.instructor-card-head {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.instructor-badge {
  order: -1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  transition: all 0.3s ease;
  align-self: center;
  text-align: center;
}

.instructor-modern:hover .instructor-badge {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
}

.instructor-modern h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main-light);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.instructor-title {
  font-size: 0.95rem;
  color: var(--primary-color);
  font-weight: 500;
  margin: 2px 0 0;
  opacity: 0.9;
}

.instructor-bio {
  font-size: 0.95rem;
  color: var(--text-secondary-light);
  line-height: 1.65;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
  text-align: center;
}

/* Unified Chip Styles */
.instructor-meta-chips,
.instructor-expertise {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.instructor-meta-chips {
  margin-bottom: 12px;
}

.instructor-expertise {
  margin-bottom: auto;
  /* Pushes footer down */
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-chip,
.expertise-chip {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  cursor: default;
}

.meta-chip i {
  color: var(--primary-color);
  opacity: 0.8;
  font-size: 0.85rem;
}

.instructor-modern:hover .meta-chip,
.instructor-modern:hover .expertise-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main-light);
}

/* Actions Footer */
.instructor-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.availability-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 0.8rem;
  font-weight: 500;
  color: #81c784;
  background: rgba(129, 199, 132, 0.08);
  /* More subtle */
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(129, 199, 132, 0.2);
}

.view-portfolio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid rgba(0, 188, 212, 0.3);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.view-portfolio-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
  z-index: -1;
}

.instructor-modern:hover .view-portfolio-btn {
  border-color: transparent;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(0, 188, 212, 0.25);
}

.instructor-modern:hover .view-portfolio-btn::before {
  transform: scaleX(1);
  transform-origin: left;
}

.view-portfolio-btn i {
  transition: transform 0.3s ease;
}

.instructor-modern:hover .view-portfolio-btn i {
  transform: translateX(4px);
  color: #0f172a;
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
  .contributors-section {
    padding: 84px 20px;
  }

  .contributors-surface {
    padding: 32px 28px 40px;
  }

  .contributors-section h2 {
    font-size: 2.6rem;
  }

  .instructors-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contributors-modern-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .contributors-section {
    padding: 72px 16px;
  }

  .contributors-surface {
    padding: 26px 18px 32px;
    border-radius: 18px;
  }

  .instructors-stats {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .stat-card {
    padding: 12px 14px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
  }

  .contributors-modern-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    padding: 10px;
    gap: 24px;
  }

  .instructor-modern {
    box-shadow: none;
    /* Lighter on mobile */
    background: rgba(26, 31, 40, 0.8);
  }

  .instructor-image {
    width: 100px;
    height: 100px;
  }

  .instructor-image i {
    font-size: 2.5rem;
  }
}

/* Badge variants - Refined Colors */
.instructor-badge--security {
  color: #fdd835;
  border-color: rgba(253, 216, 53, 0.3);
  background: rgba(253, 216, 53, 0.05);
}

.instructor-badge--engineering {
  color: #81c784;
  border-color: rgba(129, 199, 132, 0.3);
  background: rgba(129, 199, 132, 0.05);
}

.instructor-badge--experience {
  color: #64b5f6;
  border-color: rgba(100, 181, 246, 0.3);
  background: rgba(100, 181, 246, 0.05);
}

.instructor-badge--education {
  color: #ba68c8;
  border-color: rgba(186, 104, 200, 0.3);
  background: rgba(186, 104, 200, 0.05);
}

.instructor-badge--design {
  color: #f06292;
  border-color: rgba(240, 98, 146, 0.3);
  background: rgba(240, 98, 146, 0.05);
}

/* Old Contributors List - Keep for backwards compatibility */
.instructors-header {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
  align-items: stretch;
  gap: 26px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.instructors-header .eyebrow {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary-color);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contributors-section h2 {
  font-size: 3rem;
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  display: inline-block;
}

.contributors-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 120px;
  height: 3px;
  background: var(--gradient-main-button);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.45);
}



.contributor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-card-hover);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
  border-radius: 20px;
}

.contributor-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Mouse-follow radial glow + subtle gradient overlay */
  background: radial-gradient(400px 400px at var(--mx) var(--my), rgba(0, 188, 212, 0.10), rgba(0, 188, 212, 0.0) 45%), linear-gradient(135deg, rgba(0, 188, 212, 0.08) 0%, rgba(30, 136, 229, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.35s ease, background-position 0.2s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: 20px;
}

.contributor-card:hover::before {
  opacity: 0.05;
}

.contributor-card:hover::after {
  opacity: 1;
}

.contributor-card:hover {
  --lift: -10px;
  box-shadow: 0 25px 50px rgba(0, 188, 212, 0.18), 0 0 0 1px rgba(0, 188, 212, 0.28);
  border-color: var(--primary-color);
}

.contributor-card p {
  font-size: 0.9rem;
  color: var(--text-secondary-light);
  margin-top: 8px;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

.contributor-card i {
  font-size: 3.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
  text-shadow: 0 0 15px rgba(253, 216, 53, 0.3);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.4s ease, text-shadow 0.4s ease;
  position: relative;
  z-index: 2;
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {

  .contributor-card,
  .contributor-card i,
  .contributor-card::before,
  .contributor-card::after {
    transition: none !important;
  }
}

.contributor-card:hover i {
  color: var(--primary-color);
  transform: scale(1.1) rotate(5deg);
  text-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
}

.contributor-card h3 {
  font-size: 1.4rem;
  background: var(--gradient-main-button);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 2;
  line-height: 1.3;
}

.instructor-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.instructor-experience,
.instructor-specialty {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-secondary-light);
  background: rgba(0, 188, 212, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 188, 212, 0.2);
}

.instructor-experience i,
.instructor-specialty i {
  color: var(--primary-color);
  font-size: 0.7rem;
  margin: 0;
  text-shadow: none;
  transform: none;
}

.instructor-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.instructor-stars {
  display: flex;
  gap: 2px;
}

.instructor-stars i {
  color: var(--accent-color);
  font-size: 0.8rem;
  margin: 0;
  text-shadow: none;
  transform: none;
}

.instructor-rating-text {
  font-size: 0.8rem;
  color: var(--text-secondary-light);
  margin-right: 5px;
}


/* Testimonials Section */
.testimonials-section {
  padding: 80px 40px;
  text-align: center;
  background-color: var(--bg-dark-secondary);
  /* خلفية مثل ثيم الموقع */
  color: var(--text-main-light);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-dark);
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom right, rgba(253, 216, 53, 0.02) 0%, transparent 50%),
    radial-gradient(circle at top left, rgba(0, 188, 212, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: backgroundShift 20s infinite alternate ease-in-out;
}

@keyframes backgroundShift {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 100% 100%;
  }
}

.testimonials-section h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  /* لون من متغيرات الثيم */
  margin-bottom: 50px;
  font-weight: 900;
  text-shadow: 0 0 20px var(--shadow-glow);
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  max-width: 1000px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background-color: var(--card-bg-dark);
  /* لون بطاقات مثل ثيم الموقع */
  padding: 25px 20px;
  border-radius: 15px;
  width: 300px;
  text-align: right;
  /* محاذاة للنص العربي */
  box-shadow: 0 8px 25px var(--shadow-medium);
  border: 1px solid var(--border-dark);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 3.5rem;
  /* تم التصغير */
  color: rgba(253, 216, 53, 0.03);
  z-index: 0;
  line-height: 1;
  transform: rotate(5deg);
  text-shadow: 1px 1px 2px var(--shadow-light);
}

.testimonial-card::after {
  content: '\201D';
  position: absolute;
  bottom: -6px;
  left: -6px;
  font-size: 3.5rem;
  /* تم التصغير */
  color: rgba(253, 216, 53, 0.03);
  z-index: 0;
  line-height: 1;
  transform: rotate(-5deg);
  text-shadow: 1px 1px 2px var(--shadow-light);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px var(--shadow-glow);
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.05), rgba(0, 188, 212, 0.02)), var(--card-bg-dark);
}

.testimonial-card strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary-color);
  /* لون من متغيرات الثيم */
  margin-bottom: 8px;
  font-weight: 900;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px var(--shadow-glow);
}

.testimonial-card span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary-light);
  /* لون من متغيرات الثيم */
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.testimonial-card p {
  font-size: 1rem;
  color: var(--text-main-light);
  /* لون من متغيرات الثيم */
  margin: 0;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

/* About Page Specific Styles moved to about-section.css */

/* Footer Styling */
footer {
  background-color: var(--bg-dark-tertiary);
  color: var(--text-main-light);
  padding: 40px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-top: 1px solid var(--border-dark);
  margin-top: 70px;
  direction: rtl;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
  text-align: right;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 7px;
  font-weight: 900;
  line-height: 1.3;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 45px;
  height: 2.5px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--text-secondary-light);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: 0.95rem;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
  transform: translateX(-2px);
}

/* Social Icons - تم نقل التنسيقات إلى social-icons-pro.css */

.footer-bottom {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid #4a4a4a;
  font-size: 0.85rem;
  color: var(--text-secondary-light);
}

/* User Profile Dropdown Styles */
.user-profile-dropdown {
  position: relative;
  display: none;
  /* Hidden by default, shown when logged in */
  margin-right: 15px;
}

.user-profile-dropdown .dropdown-toggle {
  background-color: var(--bg-dark-secondary);
  border: 1px solid var(--border-dark);
  color: var(--text-main-light);
  padding: 8px 15px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.user-profile-dropdown .dropdown-toggle:hover {
  background-color: var(--bg-dark-primary);
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.2);
}

.user-profile-dropdown.active .dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.user-profile-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-dark-secondary);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  list-style: none;
  padding: 5px 0;
  margin-top: 10px;
  min-width: 180px;
  box-shadow: 0 8px 20px var(--shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 10;
}

.user-profile-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-profile-dropdown .dropdown-menu li button,
.user-profile-dropdown .dropdown-menu li a {
  background: none;
  border: none;
  color: var(--text-secondary-light);
  padding: 10px 15px;
  width: 100%;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  /* For anchor tags */
}

.user-profile-dropdown .dropdown-menu li button:hover,
.user-profile-dropdown .dropdown-menu li a:hover {
  background-color: var(--bg-dark-primary);
  color: var(--primary-color);
}

.user-profile-dropdown .dropdown-menu li:last-child button,
.user-profile-dropdown .dropdown-menu li:last-child a {
  border-top: 1px solid var(--border-dark);
  /* Separator for logout */
  margin-top: 5px;
  padding-top: 10px;
  color: #f44336;
  /* Red color for logout */
}

.user-profile-dropdown .dropdown-menu li:last-child button:hover,
.user-profile-dropdown .dropdown-menu li:last-child a:hover {
  background-color: rgba(244, 67, 54, 0.1);
  color: #ff7961;
}

/* Mobile profile dropdown */
.mobile-profile-dropdown {
  display: none;
  /* Hidden by default */
  position: relative;
  width: 90%;
  margin-top: 15px;
  /* Space from nav links */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 15px;
}

.mobile-profile-dropdown .dropdown-toggle {
  background-color: var(--bg-dark-primary);
  border: 1px solid var(--border-dark);
  color: var(--text-main-light);
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mobile-profile-dropdown .dropdown-toggle:hover {
  background-color: var(--bg-dark-primary);
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.2);
}

.mobile-profile-dropdown.active .dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.mobile-profile-dropdown .dropdown-menu {
  position: static;
  background-color: var(--bg-dark-secondary);
  border: none;
  border-top: 1px solid var(--border-dark);
  border-radius: 8px;
  list-style: none;
  padding: 0;
  margin-top: 10px;
  width: 100%;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.4s ease-out;
}

.mobile-profile-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  max-height: 200px;
}

.mobile-profile-dropdown .dropdown-menu li button,
.mobile-profile-dropdown .dropdown-menu li a {
  background: none;
  border: none;
  color: var(--text-secondary-light);
  padding: 10px 15px;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.mobile-profile-dropdown .dropdown-menu li:last-child button,
.mobile-profile-dropdown .dropdown-menu li:last-child a {
  border-bottom: none;
  color: #f44336;
}

/* Error Message Styles */
.error-message {
  color: #ff5722;
  margin-top: 15px;
  font-weight: 700;
}

/* Auth Pages Styles */
.auth-main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.auth-container {
  width: 100%;
}

/* Courses Button Container */
.courses-btn-container {
  text-align: center;
}

/* Hidden Elements */
.hidden {
  display: none;
}

/* Course Detail Styles */
.enrolled-status {
  color: var(--primary-color);
  text-align: center;
}

.login-to-view-video {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-color: #000;
  color: #fff;
  font-size: 1.2rem;
  border-radius: 15px;
}

/* Admin Dashboard Styles */
.admin-username {
  color: var(--accent-color);
}

/* Instructor Dashboard Styles */
.free-badge {
  background: linear-gradient(135deg, #fdd835 0%, #ffc107 100%);
  color: var(--bg-dark-primary);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  box-shadow: 0 2px 8px rgba(253, 216, 53, 0.3);
  border: 1px solid rgba(255, 193, 7, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  animation: freeBadgePulse 2s infinite;
}

.free-badge::before {
  content: "✨";
  font-size: 0.9em;
  margin-right: 2px;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: scale(1.1) rotate(10deg);
    opacity: 0.8;
  }
}

.free-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(253, 216, 53, 0.4);
  background: linear-gradient(135deg, #ffc107 0%, #fdd835 100%);
}

@keyframes freeBadgePulse {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(253, 216, 53, 0.3);
  }

  50% {
    box-shadow: 0 2px 12px rgba(253, 216, 53, 0.5);
  }
}

/* تحسينات إضافية للعلامة المجانية في الكورسات */
.course h3 .free-badge {
  position: relative;
  z-index: 2;
}

.course h3 .free-badge::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #fdd835, #ffc107, #fdd835);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.3;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.02);
  }
}

/* Test Pages Styles */
.test-link {
  color: #00bcd4;
}

.explore-courses-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  transition: background 0.4s, box-shadow 0.4s;
}

.explore-courses-btn .arrow-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.4, 1, 0.4, 1), color 0.3s;
  font-size: 1.2em;
  margin-right: 0.2em;
}

.explore-courses-btn:hover .arrow-icon {
  transform: translateX(-7px) scale(1.15) rotate(-8deg);
  color: var(--accent-color);
  text-shadow: 0 0 8px var(--primary-color), 0 0 16px var(--accent-color);
}

.explore-courses-btn:hover {
  box-shadow: 0 0 18px 0 var(--primary-color), 0 0 8px 0 var(--accent-color);
  background: linear-gradient(90deg, var(--primary-color) 60%, var(--accent-color) 100%);
  color: #fff;
}

.explore-courses-btn--pro {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid var(--primary-color);
  background: var(--bg-dark-primary);
  color: var(--text-main-light);
}

.explore-courses-btn--pro .arrow-icon {
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  font-size: 1.2em;
  margin-right: 0.2em;
  color: var(--primary-color);
}

.explore-courses-btn--pro:hover .arrow-icon {
  transform: translateX(-5px);
  color: var(--accent-color);
}

.explore-courses-btn--pro:hover {
  background: var(--primary-color);
  color: var(--bg-dark-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
  border-color: var(--accent-color);
}

.explore-courses-btn--pro:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 188, 212, 0.2);
}

/* Filter Section Responsive */
@media (max-width: 1200px) {
  .filter-section {
    padding: 35px 30px 50px;
    margin-bottom: 15px;
  }

  .filter-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

  .filter-buttons {
    gap: 12px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 110px;
  }
}

@media (max-width: 991px) {
  .filter-section {
    padding: 30px 20px 40px;
    margin-bottom: 10px;
  }

  .filter-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .filter-buttons {
    gap: 10px;
    flex-wrap: wrap;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 100px;
  }

  .filter-btn i {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .filter-section {
    padding: 25px 15px 35px;
    margin-bottom: 5px;
  }

  .filter-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .filter-title::after {
    width: 40px;
    height: 2px;
  }

  .filter-buttons {
    gap: 8px;
    justify-content: center;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-width: 85px;
    gap: 6px;
  }

  .filter-btn i {
    font-size: 0.9rem;
  }

  .filter-btn span {
    font-size: 0.8rem;
  }
}

/* Responsive Adjustments for Homepage */
@media (min-width: 992px) {

  .nav-links,
  .header-actions .btn {
    display: flex;
  }

  .search-button {
    display: block;
  }

  .hamburger-menu {
    display: none;
  }

  .language-dropdown {
    display: inline-block;
  }

  .mobile-language-dropdown {
    display: none;
  }
}

@media (max-width: 1200px) {
  .hero {
    gap: 30px;
    padding: 70px 30px;
    max-width: 1000px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-actions .button {
    padding: 10px 25px;
    font-size: 1rem;
  }

  .hero-video-container {
    max-width: 50%;
    min-width: 40%;
    border-radius: 18px;
    border-width: 1.5px;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.25);
  }

  .video-responsive {
    border-radius: 15px;
  }

  .courses-section,
  .testimonials-section,
  .contributors-section,
  .about-section {
    padding: 70px 30px;
  }

  .courses-section h2,
  .testimonials-section h2,
  .contributors-section h2,
  .about-section h1.main-title,
  .about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }

  .about-section h2 {
    font-size: 2rem;
  }

  .course {
    min-width: 240px;
    border-radius: 16px;
  }

  .course img {
    height: 150px;
  }

  .course-content {
    padding: 15px;
  }

  .course h3 {
    font-size: 1.2rem;
  }

  .course p {
    font-size: 0.85rem;
  }

  .course .button {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .testimonial-card {
    width: 260px;
    padding: 18px;
    border-radius: 16px;
  }

  .testimonial-card strong {
    font-size: 1rem;
  }

  .testimonial-card span {
    font-size: 0.85rem;
  }

  .testimonial-card p {
    font-size: 0.9rem;
  }

  .contributor-card {
    width: 180px;
    padding: 18px;
    border-radius: 14px;
  }

  .contributor-card i {
    font-size: 2.8rem;
  }

  .contributor-card h3 {
    font-size: 1.2rem;
  }

  .about-intro p,
  .what-we-offer p,
  .our-mission-vision p,
  .what-we-offer ul li span {
    font-size: 0.9rem;
  }

  .what-we-offer ul li strong {
    font-size: 1.05rem;
  }

  .our-mission-vision h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 991px) {
  header {
    padding: 8px 15px;
  }

  header.scrolled {
    padding: 5px 15px;
  }

  .nav-links,
  .header-actions .btn,
  .search-button,
  .language-dropdown,
  .user-profile-dropdown {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 50px 20px;
    gap: 30px;
  }

  .hero-content {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding-right: 0;
    order: 2;
  }

  .hero-content h1,
  .hero-content p {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-actions .button {
    font-size: 0.9rem;
    padding: 10px 22px;
  }

  .hero-video-container {
    display: block;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    order: -1;
    text-align: center;
    border-width: 1.5px;
    border-radius: 15px;
    margin: 0;
    padding: 0;
  }

  .video-responsive {
    display: block;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    position: relative;
  }

  .courses-section,
  .testimonials-section,
  .contributors-section,
  .about-section {
    padding: 60px 20px;
  }

  .courses-section h2,
  .testimonials-section h2,
  .contributors-section h2,
  .about-section h1.main-title,
  .about-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .about-section h2 {
    font-size: 1.8rem;
    text-align: center;
    width: 100%;
  }

  .about-section h2::after {
    right: 50%;
    transform: translateX(50%);
  }

  .courses-grid,
  .testimonials-list,
  .contributors-list {
    gap: 15px;
  }

  .course,
  .testimonial-card,
  .contributor-card {
    max-width: 48%;
    flex-basis: auto;
    border-radius: 12px;
    padding: 12px;
  }

  .testimonial-card {
    width: auto;
  }

  .contributor-card {
    width: auto;
    min-width: 140px;
  }

  .course img {
    height: 120px;
  }

  .course h3 {
    font-size: 1.1rem;
  }

  .course p {
    font-size: 0.8rem;
  }

  .course .button,
  .view-all-courses-btn {
    font-size: 0.8rem;
    padding: 8px 15px;
  }

  .view-all-courses-btn {
    margin-top: 30px;
  }

  .contributor-card i {
    font-size: 2.2rem;
    margin-bottom: 6px;
  }

  .contributor-card h3 {
    font-size: 1rem;
  }

  .testimonials-section h2 {
    font-size: 2rem;
  }

  .testimonial-card {
    width: 280px;
    padding: 20px 15px;
  }

  .testimonial-card strong {
    font-size: 1.1rem;
  }

  .testimonial-card span {
    font-size: 0.85rem;
  }

  .testimonial-card p {
    font-size: 0.9rem;
  }

  .testimonial-card::before,
  .testimonial-card::after {
    font-size: 3rem;
  }

  .about-intro,
  .what-we-offer,
  .our-mission-vision {
    padding: 15px;
    border-radius: 10px;
  }

  .about-intro p,
  .what-we-offer p,
  .our-mission-vision p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .what-we-offer ul li {
    padding: 8px 12px;
    border-radius: 6px;
  }

  .what-we-offer ul li i {
    font-size: 1.1rem;
  }

  .what-we-offer ul li strong {
    font-size: 0.95rem;
  }

  .what-we-offer ul li span {
    font-size: 0.75rem;
  }

  .our-mission-vision h3 {
    font-size: 1.3rem;
  }

  .our-mission-vision h3 i {
    font-size: 1.2rem;
  }

  footer {
    padding: 30px 20px;
  }
}

@media (max-width: 767px) {
  header {
    padding: 6px 8px;
  }

  header.scrolled {
    padding: 4px 8px;
  }

  .logo {
    font-size: 1.2rem;
    gap: 8px;
  }

  .logo-cap {
    font-size: 1rem;
  }

  .hamburger-menu {
    width: 22px;
    height: 18px;
  }

  .hamburger-menu span {
    height: 1.5px;
  }

  .mobile-nav {
    width: 100%;
    border-radius: 0;
    padding-top: 40px;
    gap: 15px;
  }

  .mobile-nav a {
    font-size: 0.9rem;
    padding: 4px 0;
    gap: 8px;
  }

  .mobile-nav a i {
    font-size: 0.85rem;
  }

  .mobile-auth-buttons .btn {
    font-size: 0.88rem;
    padding: 8px 16px;
  }

  .mobile-auth-buttons .btn i {
    font-size: 0.82rem;
  }

  .mobile-language-dropdown {
    display: block;
  }

  .search-bar {
    width: 90%;
    padding: 10px 15px;
  }

  .search-bar input {
    font-size: 1rem;
    margin-right: 10px;
  }

  .search-bar .close-search {
    font-size: 1.2rem;
  }

  .hero {
    padding: 30px 10px;
    gap: 15px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.8rem;
  }

  .hero-actions .button {
    font-size: 0.75rem;
    padding: 7px 15px;
  }

  .hero-video-container {
    min-width: 100%;
    max-width: 100%;
    border-width: 1px;
    border-radius: 10px;
  }

  .video-responsive {
    border-radius: 8px;
  }

  .courses-section,
  .testimonials-section,
  .contributors-section,
  .about-section {
    padding: 30px 10px;
  }

  .courses-section h2,
  .testimonials-section h2,
  .contributors-section h2,
  .about-section h1.main-title,
  .about-section h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .about-section h2 {
    font-size: 1.2rem;
    padding-bottom: 4px;
  }

  .about-section h2::after {
    height: 2.5px;
    width: 40px;
  }

  .course,
  .testimonial-card,
  .contributor-card {
    width: 100%;
    max-width: none;
    border-radius: 8px;
    padding: 8px;
  }

  .course img {
    height: 100px;
  }

  .course h3 {
    font-size: 0.9rem;
  }

  .course p {
    font-size: 0.65rem;
  }

  .course .button,
  .view-all-courses-btn {
    font-size: 0.7rem;
    padding: 6px 12px;
  }

  .view-all-courses-btn {
    margin-top: 20px;
  }

  .contributors-section h2 {
    font-size: 1.6rem;
  }

  .contributor-card i {
    font-size: 2rem;
    margin-bottom: 5px;
  }

  .contributor-card h3 {
    font-size: 0.9rem;
  }

  .testimonials-section h2 {
    font-size: 1.6rem;
  }

  .testimonial-card {
    width: 100%;
    max-width: 350px;
    padding: 18px 15px;
  }

  .testimonial-card strong {
    font-size: 1rem;
  }

  .testimonial-card span {
    font-size: 0.8rem;
  }

  .testimonial-card p {
    font-size: 0.85rem;
  }

  .testimonial-card::before,
  .testimonial-card::after {
    font-size: 2rem;
  }

  .about-intro,
  .what-we-offer,
  .our-mission-vision {
    padding: 12px;
    border-radius: 8px;
  }

  .about-intro p,
  .what-we-offer p,
  .our-mission-vision p {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .what-we-offer ul li {
    padding: 6px 10px;
    border-radius: 4px;
  }

  .what-we-offer ul li i {
    font-size: 0.9rem;
  }

  .what-we-offer ul li strong {
    font-size: 0.85rem;
  }

  .what-we-offer ul li span {
    font-size: 0.65rem;
  }

  .our-mission-vision h3 {
    font-size: 1.1rem;
  }

  .our-mission-vision h3 i {
    font-size: 1rem;
  }

  footer {
    padding: 15px 10px;
    gap: 12px;
  }

  .footer-section {
    flex-basis: 100%;
    text-align: center;
  }

  .footer-section h4::after {
    right: 50%;
    transform: translateX(50%);
  }
}

/* Responsive Design for Courses Section */
@media (max-width: 991px) {
  .courses-section {
    padding: 60px 30px;
  }

  .courses-section h2 {
    font-size: 2.8rem;
  }

  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .courses-section {
    padding: 50px 20px;
  }

  .courses-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .courses-section .section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .course {
    max-width: 400px;
    margin: 0 auto;
  }

  .course-content {
    padding: 20px;
  }

  .course h3 {
    font-size: 1.3rem;
  }

  .course-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .course-duration,
  .course-level {
    font-size: 0.8rem;
    padding: 3px 6px;
  }

  .course .button {
    padding: 10px 18px;
    font-size: 0.9rem;
    width: 85%;
    margin: 0 auto;
    border-radius: 20px;
  }
}

/* Responsive Design for Modern Instructors Section */
@media (max-width: 1400px) {
  .contributors-modern-grid {
    gap: 60px;
  }

  .instructor-image {
    width: 130px;
    height: 130px;
    border-width: 3px;
  }

  .instructor-image i {
    font-size: 3.5rem;
  }

  .instructor-info-card {
    min-width: 220px;
    max-width: 260px;
    padding: 18px 22px;
  }

  .instructor-info-card h3 {
    font-size: 1.3rem;
  }

  .instructor-title {
    font-size: 0.8rem;
  }
}

@media (max-width: 1200px) {
  .contributors-section {
    padding: 80px 60px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 40px);
    padding-right: calc(50vw - 50% + 40px);
  }

  .contributors-modern-grid {
    gap: 80px;
  }

  .instructor-modern {
    flex-direction: column !important;
    text-align: center;
    gap: 25px;
  }

  .instructor-modern:nth-child(2) .instructor-info-card,
  .instructor-modern:nth-child(4) .instructor-info-card,
  .instructor-info-card {
    text-align: center !important;
  }

  .instructor-modern:nth-child(2):hover .instructor-info-card,
  .instructor-modern:nth-child(4):hover .instructor-info-card,
  .instructor-modern:hover .instructor-info-card {
    transform: translateY(-5px) !important;
  }

  .detail-item {
    justify-content: center;
  }

  .instructor-modern:nth-child(2) .detail-item:hover,
  .instructor-modern:nth-child(4) .detail-item:hover,
  .detail-item:hover {
    transform: translateY(-2px) !important;
  }
}

@media (max-width: 991px) {
  .contributors-section {
    padding: 60px 30px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 30px);
    padding-right: calc(50vw - 50% + 30px);
  }

  .contributors-section h2 {
    font-size: 2.5rem;
  }

  .contributors-section .section-subtitle {
    margin-bottom: 60px;
  }

  .contributors-modern-grid {
    gap: 50px;
    padding: 20px 10px;
  }

  .instructor-image {
    width: 120px;
    height: 120px;
    border-width: 3px;
  }

  .instructor-image i {
    font-size: 3rem;
  }

  .instructor-info-card {
    min-width: 220px;
    max-width: 260px;
    padding: 18px 22px;
  }

  .instructor-info-card h3 {
    font-size: 1.3rem;
  }

  .instructor-title {
    font-size: 0.8rem;
  }

  .detail-item {
    padding: 7px 10px;
  }

  .detail-item i {
    font-size: 0.85rem;
  }

  .detail-item span {
    font-size: 0.8rem;
  }

  .decorative-dots .dot {
    width: 5px;
    height: 5px;
  }
}

@media (max-width: 767px) {
  .contributors-section {
    padding: 50px 20px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 20px);
    padding-right: calc(50vw - 50% + 20px);
  }

  .contributors-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .contributors-section .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  .contributors-modern-grid {
    gap: 40px;
    padding: 10px 5px;
  }

  .instructor-image {
    width: 110px;
    height: 110px;
    border-width: 3px;
    box-shadow: 0 15px 45px rgba(0, 188, 212, 0.25),
      0 0 0 10px rgba(255, 255, 255, 0.02),
      0 5px 15px rgba(0, 0, 0, 0.3);
  }

  .instructor-image i {
    font-size: 2.8rem;
  }

  .instructor-info-card {
    min-width: 100%;
    max-width: 100%;
    padding: 16px 18px;
  }

  .instructor-info-card h3 {
    font-size: 1.2rem;
  }

  .instructor-title {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .instructor-details {
    gap: 8px;
  }

  .detail-item {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .detail-item i {
    font-size: 0.8rem;
  }

  .detail-item span {
    font-size: 0.75rem;
  }

  .decorative-dots .dot {
    width: 4px;
    height: 4px;
  }
}

@media (max-width: 480px) {
  .contributors-section {
    padding: 40px 15px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 15px);
    padding-right: calc(50vw - 50% + 15px);
  }

  .contributors-modern-grid {
    gap: 35px;
  }

  .instructor-image {
    width: 95px;
    height: 95px;
    border-width: 3px;
    box-shadow: 0 12px 35px rgba(0, 188, 212, 0.2),
      0 0 0 8px rgba(255, 255, 255, 0.02),
      0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .instructor-image i {
    font-size: 2.3rem;
  }

  .instructor-info-card {
    padding: 14px 16px;
  }

  .instructor-info-card h3 {
    font-size: 1.1rem;
  }

  .instructor-title {
    font-size: 0.75rem;
  }

  .detail-item {
    padding: 6px 8px;
  }

  .decorative-dots {
    display: none;
  }
}

/* شاشات صغيرة جداً */
@media (max-width: 480px) {
  .logo {
    font-size: 1rem;
    gap: 6px;
  }

  .logo-cap {
    font-size: 0.9rem;
  }
}

/* ====================================
   تحسينات التجاوبية الشاملة
   ==================================== */

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1400px) {

  .container,
  .hero-content,
  .courses-section,
  .contributors-section {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Large Devices (Desktops) - 1200px to 1399px */
@media (min-width: 1200px) and (max-width: 1399px) {
  .hero {
    padding: 120px 40px 80px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
}

/* Medium-Large Devices (Tablets Landscape) - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero {
    padding: 100px 30px 70px;
    gap: 25px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .view-all-courses-btn--pro {
    font-size: 1rem;
    padding: 14px 28px;
  }
}

/* Medium Devices (Tablets Portrait) - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
  html {
    font-size: 15px;
  }

  .hero {
    padding: 80px 25px 60px;
    gap: 20px;
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 0.95rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .courses-section {
    padding: 60px 25px;
  }

  .courses-section h2 {
    font-size: 1.8rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 500px;
    margin: 0 auto;
  }

  .course {
    max-width: 100%;
  }

  .view-all-courses-btn--pro {
    font-size: 0.95rem;
    padding: 12px 24px;
  }

  .contributors-modern-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .instructor-image {
    width: 130px;
    height: 130px;
  }

  .instructor-info-card {
    min-width: 200px;
    max-width: 240px;
  }
}

/* Medium Small Devices (480px to 575px) */
@media (min-width: 480px) and (max-width: 575px) {
  header {
    padding: 12px 20px;
    height: 60px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo i {
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
  }

  .hamburger-menu {
    width: 40px;
    height: 40px;
  }

  .search-button {
    width: 44px;
    height: 44px;
  }

  .courses-grid {
    max-width: 450px;
  }

  .course img {
    height: 220px;
  }

  .course .button,
  .course .button-primary {
    padding: 14px 24px;
    font-size: 1rem;
    min-height: 50px;
  }

  .contributors-modern-grid {
    max-width: 420px;
  }

  .instructor-image {
    width: 145px;
    height: 145px;
  }

  .instructor-image i {
    font-size: 3.5rem;
    width: 60px;
    height: 60px;
  }

  .view-portfolio-btn {
    padding: 14px 24px;
    font-size: 1rem;
    min-height: 50px;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    min-height: 52px;
  }

  .courses-section h2,
  .contributors-section h2 {
    font-size: 1.8rem;
  }

  .view-all-courses-btn--pro {
    min-height: 54px;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .btn.login,
  #loginBtn {
    padding: 8px 18px;
    font-size: 0.88rem;
    border-radius: 8px;
    min-height: 40px;
  }
}

/* Small Devices (Large Phones) - 576px to 767px */
@media (min-width: 576px) and (max-width: 767px) {
  html {
    font-size: 14px;
  }

  body {
    padding-top: 60px;
  }

  header {
    padding: 10px 20px;
    box-shadow: 0 2px 15px rgba(0, 188, 212, 0.15);
  }

  .logo {
    font-size: 1.15rem;
  }

  .hero {
    padding: 60px 20px 50px;
    gap: 20px;
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .courses-section {
    padding: 50px 20px;
  }

  .courses-section h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .courses-section>p {
    font-size: 0.85rem;
    margin-bottom: 30px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .course {
    padding: 15px;
  }

  .course h3 {
    font-size: 1.3rem;
  }

  .course p {
    font-size: 0.85rem;
  }

  .course .button-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .view-all-courses-btn--pro {
    font-size: 0.9rem;
    padding: 11px 22px;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .courses-btn-container {
    display: flex;
    justify-content: center;
  }

  .contributors-section {
    padding: 50px 25px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 25px);
    padding-right: calc(50vw - 50% + 25px);
  }

  .contributors-section h2 {
    font-size: 1.6rem;
  }

  .contributors-modern-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 350px;
    margin: 0 auto;
  }

  .instructor-modern {
    justify-content: center;
  }

  .instructor-image {
    width: 140px;
    height: 140px;
  }

  .instructor-info-card {
    min-width: 220px;
    max-width: 260px;
  }

  /* Hide search button */
  .search-button {
    display: none;
  }

  /* Smaller login button */
  .btn.login,
  #loginBtn {
    padding: 9px 18px;
    font-size: 0.88rem;
    border-radius: 8px;
    min-height: 40px;
  }

  /* View all courses button - more professional */
  .view-all-courses-btn--pro {
    border-radius: 12px;
    font-size: 1rem;
    padding: 13px 26px;
    min-height: 52px;
  }

  /* Smaller portfolio button */
  .view-portfolio-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    min-height: 42px;
  }

  /* Smaller course buttons */
  .course .button,
  .course .button-primary {
    padding: 11px 20px;
    font-size: 0.95rem;
    min-height: 44px;
  }
}

/* Extra Small Devices (Small Phones) - 320px to 575px */
@media (max-width: 575px) {
  html {
    font-size: 14px;
  }

  body {
    padding-top: 60px;
    overflow-x: hidden;
  }

  /* =================== HEADER =================== */
  header {
    padding: 12px 20px;
    box-shadow: 0 3px 20px rgba(0, 188, 212, 0.25);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
  }

  .logo {
    font-size: 1.2rem;
    gap: 8px;
    font-weight: 900;
    display: flex;
    align-items: center;
  }

  .logo i {
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-cap {
    font-size: 0.95rem;
    padding: 4px 8px;
    border-radius: 6px;
  }

  .logo-text {
    letter-spacing: 0.5px;
    font-size: 1.2rem;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hamburger-menu {
    width: 40px;
    height: 40px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .hamburger-menu:active {
    background: rgba(0, 188, 212, 0.1);
    transform: scale(0.95);
  }

  .hamburger-menu span {
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Hide search button on mobile */
  .search-button {
    display: none;
  }

  /* Login button - smaller and more professional */
  .btn.login,
  #loginBtn {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    min-height: 38px;
    letter-spacing: 0.3px;
  }

  .btn.login i,
  #loginBtn i {
    font-size: 0.9rem;
    width: 16px;
    height: 16px;
  }

  /* =================== HERO SECTION =================== */
  .hero {
    padding: 60px 20px 50px;
    gap: 25px;
    flex-direction: column-reverse;
    text-align: center;
    background-size: cover;
    background-position: center;
  }

  /* Hero Video Container - Mobile Responsive */
  .hero-video-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex: none !important;
    margin: 0 auto 20px;
    border-radius: 12px;
    order: 2;
  }

  .hero-video-container .video-responsive {
    display: block !important;
    visibility: visible !important;
    border-radius: 12px;
    padding-bottom: 56.25%;
    height: 0;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 10px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.4;
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 900;
  }

  .hero-content h1 br {
    display: none;
  }

  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    justify-content: center;
    border-radius: 30px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hero-buttons .btn i {
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* =================== COURSES SECTION =================== */
  .courses-section {
    padding: 50px 20px;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.5) 0%, rgba(10, 14, 26, 1) 100%);
  }

  .courses-section h2 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .courses-section>p,
  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 35px;
    line-height: 1.6;
    text-align: center;
    opacity: 0.9;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 400px;
    margin: 0 auto 30px;
  }

  .course {
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.15);
    transition: all 0.3s ease;
    background: var(--bg-dark-secondary);
  }

  .course:active {
    transform: scale(0.98);
  }

  .course img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
  }

  .course-content {
    padding: 18px;
  }

  .course h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--text-main-light);
  }

  .course-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .course-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
  }

  .course-duration i {
    font-size: 1rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .course-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .course-stars {
    display: flex;
    gap: 4px;
    color: #ffd700;
    font-size: 0.95rem;
  }

  .course-stars i {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .course-rating-text {
    font-size: 0.9rem;
    color: var(--text-secondary-light);
    font-weight: 700;
    min-width: 40px;
  }

  .course p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 18px;
    color: var(--text-secondary-light);
  }

  .course .button,
  .course .button-primary {
    padding: 10px 18px;
    font-size: 0.9rem;
    width: 85%;
    text-align: center;
    border-radius: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    background: var(--gradient-main-button);
    color: var(--bg-dark-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    border: none;
    letter-spacing: 0.3px;
    min-height: 44px;
  }

  .course .button i,
  .course .button-primary i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .course .button:active,
  .course .button-primary:active {
    transform: scale(0.96);
    box-shadow: 0 2px 10px rgba(0, 188, 212, 0.3);
  }

  .free-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 20px;
    font-weight: 700;
    margin-right: 8px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
  }

  /* View All Courses Button - More Professional */
  .view-all-courses-btn--pro {
    font-size: 1.05rem;
    padding: 15px 30px;
    width: calc(100% - 40px);
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
    min-height: 54px;
  }

  .view-all-courses-btn--pro .arrow-icon {
    font-size: 1.15rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .view-all-courses-btn--pro .arrow-icon i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .courses-btn-container {
    display: flex;
    justify-content: center;
    padding: 10px 20px;
  }

  /* =================== INSTRUCTORS SECTION =================== */
  .contributors-section {
    padding: 50px 25px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 25px);
    padding-right: calc(50vw - 50% + 25px);
    background: transparent;
  }

  .contributors-section h2 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .contributors-section>p,
  .contributors-section .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: center;
    opacity: 0.9;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .contributors-modern-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    max-width: 380px;
    margin: 0 auto;
  }

  .instructor-modern,
  .instructor-link {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 20px;
    background: linear-gradient(145deg, rgba(0, 188, 212, 0.05), rgba(0, 188, 212, 0.02));
    border-radius: 20px;
    border: 2px solid rgba(0, 188, 212, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
  }

  .instructor-modern:active,
  .instructor-link:active {
    transform: scale(0.97);
    border-color: var(--primary-color);
  }

  .instructor-image-wrapper {
    margin-bottom: 0;
  }

  .instructor-image {
    width: 140px;
    height: 140px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(0, 188, 212, 0.1), rgba(0, 188, 212, 0.05));
  }

  .instructor-image i {
    font-size: 3.5rem;
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .instructor-info-card {
    min-width: 100%;
    max-width: 100%;
    padding: 20px;
    background: rgba(0, 188, 212, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(0, 188, 212, 0.15);
  }

  .instructor-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--text-main-light);
    text-align: center;
  }

  .instructor-title {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
  }

  .instructor-details {
    gap: 10px;
    margin-bottom: 15px;
  }

  .detail-item {
    padding: 10px 14px;
    font-size: 0.88rem;
    background: rgba(0, 188, 212, 0.08);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
  }

  .detail-item i {
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .view-portfolio-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    width: 85%;
    border-radius: 20px;
    font-weight: 700;
    background: var(--gradient-main-button);
    color: var(--bg-dark-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 0;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    border: none;
    letter-spacing: 0.3px;
    min-height: 42px;
  }

  .view-portfolio-btn i {
    font-size: 1rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .view-portfolio-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 10px rgba(0, 188, 212, 0.3);
  }

  .decorative-dots {
    display: none;
  }
}

/* Ultra Small Devices (Very Small Phones) - Below 375px */
@media (max-width: 374px) {
  html {
    font-size: 13px;
  }

  body {
    padding-top: 55px;
  }

  /* Header adjustments */
  header {
    padding: 10px 15px;
    height: 56px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo i {
    font-size: 1.3rem;
    width: 28px;
    height: 28px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .hamburger-menu {
    width: 38px;
    height: 38px;
  }

  .search-button {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .search-button i {
    font-size: 1rem;
  }

  /* Hero section */
  .hero {
    padding: 50px 15px 40px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .hero-buttons .btn {
    padding: 13px 20px;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .hero-buttons .btn i {
    font-size: 1rem;
    width: 18px;
    height: 18px;
  }

  /* Courses section */
  .courses-section {
    padding: 45px 15px;
  }

  .courses-section h2 {
    font-size: 1.5rem;
  }

  .courses-grid {
    max-width: 350px;
    gap: 20px;
  }

  .course h3 {
    font-size: 1.2rem;
  }

  .course img {
    height: 180px;
  }

  .course-content {
    padding: 15px;
  }

  .course-duration i {
    width: 18px;
    height: 18px;
    font-size: 0.95rem;
  }

  .course-stars i {
    width: 14px;
    height: 14px;
  }

  .course .button,
  .course .button-primary {
    padding: 11px 18px;
    font-size: 0.9rem;
    min-height: 46px;
    width: 85%;
    margin: 0 auto;
    border-radius: 20px;
  }

  .course .button i,
  .course .button-primary i {
    font-size: 1rem;
    width: 18px;
    height: 18px;
  }

  .view-all-courses-btn--pro {
    font-size: 0.95rem;
    padding: 13px 24px;
    min-height: 48px;
  }

  .view-all-courses-btn--pro .arrow-icon {
    font-size: 1.05rem;
    width: 20px;
    height: 20px;
  }

  /* Instructors section */
  .contributors-section {
    padding: 45px 20px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 20px);
    padding-right: calc(50vw - 50% + 20px);
  }

  .contributors-section h2 {
    font-size: 1.5rem;
  }

  .contributors-modern-grid {
    max-width: 340px;
    gap: 30px;
  }

  .instructor-modern,
  .instructor-link {
    padding: 20px 15px;
  }

  .instructor-image {
    width: 120px;
    height: 120px;
    border: 3px solid var(--primary-color);
  }

  .instructor-image i {
    font-size: 3rem;
    width: 50px;
    height: 50px;
  }

  .instructor-info-card {
    padding: 18px;
  }

  .instructor-info-card h3 {
    font-size: 1.15rem;
  }

  .instructor-title {
    font-size: 0.82rem;
  }

  .detail-item {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-height: 36px;
  }

  .detail-item i {
    font-size: 1rem;
    width: 18px;
    height: 18px;
  }

  .view-portfolio-btn {
    padding: 9px 16px;
    font-size: 0.85rem;
    min-height: 40px;
    width: 85%;
    margin: 15px auto 0;
    border-radius: 20px;
  }

  .view-portfolio-btn i {
    font-size: 0.95rem;
    width: 16px;
    height: 16px;
  }

  .view-all-courses-btn--pro {
    border-radius: 12px;
    font-size: 1rem;
  }

  .btn.login,
  #loginBtn {
    padding: 7px 14px;
    font-size: 0.82rem;
    border-radius: 8px;
    min-height: 36px;
  }
}

/* Landscape Orientation Fixes for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 30px 15px;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .hero-content p {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: auto;
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .courses-section {
    padding: 30px 15px;
  }

  .contributors-section {
    padding: 30px 15px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 15px);
    padding-right: calc(50vw - 50% + 15px);
  }
}

/* ====================================
   تحسينات نهائية للأيقونات - Mobile Only
   ==================================== */

@media (max-width: 767px) {

  /* توحيد أحجام جميع الأيقونات */
  i,
  .fa,
  .fas,
  .far,
  .fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* توحيد الأزرار */
  .btn,
  .button,
  .button-primary,
  .view-all-courses-btn--pro {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* تحسين الظلال للأزرار */
  .btn:active,
  .button:active,
  .button-primary:active,
  .view-all-courses-btn--pro:active,
  .view-portfolio-btn:active {
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.25);
  }

  /* تحسين الانتقالات */
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

  /* Increase touch targets */
  .btn,
  .button,
  .button-primary,
  .view-all-courses-btn--pro {
    min-height: 50px;
    min-width: 50px;
  }

  .hamburger-menu {
    min-width: 40px;
    min-height: 40px;
  }

  .search-button {
    min-width: 44px;
    min-height: 44px;
  }

  .view-portfolio-btn {
    min-height: 50px;
  }

  .detail-item {
    min-height: 40px;
  }

  /* Remove hover-only animations on touch devices */
  .view-all-courses-btn--pro:hover {
    transform: translateY(-2px) scale(1.02);
  }

  .course:hover {
    transform: translateY(0);
  }

  .instructor-modern:hover,
  .instructor-link:hover {
    transform: translateY(0);
  }

  /* Better tap feedback */
  .btn:active,
  .button:active,
  .button-primary:active {
    transform: scale(0.96);
    opacity: 0.85;
  }

  .course:active {
    transform: scale(0.98);
  }

  .view-all-courses-btn--pro:active {
    transform: scale(0.96);
  }

  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent text selection on tap */
  .btn,
  .button,
  .button-primary,
  .view-all-courses-btn--pro,
  .hamburger-menu,
  .search-button {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 188, 212, 0.2);
  }
}

/* ====================================
   تحسينات إضافية للهواتف
   ==================================== */

/* Prevent zoom on input focus (iOS Safari) */
@media (max-width: 767px) {

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Improve spacing between sections */
  section {
    margin-bottom: 0;
  }

  /* Better link spacing for touch */
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Optimize images for mobile */
  img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
  }

  /* Better table handling on mobile */
  table {
    width: 100%;
    overflow-x: auto;
    display: block;
  }

  /* Hide elements that shouldn't be on mobile */
  .desktop-only {
    display: none !important;
  }

  /* Full width containers on mobile */
  .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Specific improvements for 320px - 480px range */
@media (max-width: 480px) {

  /* Ensure readable font sizes */
  * {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Better spacing */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Optimize button sizes */
  .btn,
  .button,
  .button-primary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Better card layouts */
  .course,
  .instructor-modern,
  .instructor-link {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Improve navigation */
  .mobile-nav {
    width: 100%;
    max-width: 100%;
  }

  /* Better video handling */
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }
}

/* Orientation change handling */
@media (max-width: 767px) and (orientation: portrait) {
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .contributors-modern-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  body {
    padding-top: 50px;
  }

  header {
    padding: 8px 15px;
  }

  .hero {
    padding: 40px 20px 30px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .courses-section {
    padding: 40px 20px;
  }

  .contributors-section {
    padding: 40px 20px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 20px);
    padding-right: calc(50vw - 50% + 20px);
  }
}

/* Safe area insets for notched devices (iPhone X, etc.) */
@supports (padding: env(safe-area-inset-top)) {
  @media (max-width: 767px) {
    body {
      padding-top: calc(60px + env(safe-area-inset-top));
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
      padding-bottom: env(safe-area-inset-bottom);
    }

    header {
      padding-top: calc(10px + env(safe-area-inset-top));
      padding-left: calc(15px + env(safe-area-inset-left));
      padding-right: calc(15px + env(safe-area-inset-right));
    }
  }
}

/* Print Styles */
@media print {

  header,
  .hero-buttons,
  .hamburger-menu,
  .view-all-courses-btn--pro {
    display: none;
  }

  .hero {
    padding: 20px;
  }

  .courses-section {
    padding: 20px;
  }

  .contributors-section {
    padding: 20px 15px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 15px);
    padding-right: calc(50vw - 50% + 15px);
  }

  .course,
  .instructor-modern {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  * {
    background: white !important;
    color: black !important;
  }
}


/* ====================================
   Course Thumbnails - 16:9 Aspect Ratio
   Force YouTube-like thumbnails (1920x1080 ratio)
   Applies to homepage course cards only
   ==================================== */
.courses-section .course .course-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 188, 212, 0.2);
}

.courses-section .course .course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =================== ABOUT US MODERN REDESIGN (PREMIUM) =================== */
.about-section {
  padding: 120px 0;
  background: radial-gradient(circle at 20% 20%, rgba(0, 188, 212, 0.08), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(30, 136, 229, 0.08), transparent 40%),
    linear-gradient(180deg, #0f172a 0%, #0b1324 55%, #0b1222 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Background elements - Subtle & Professional */
.about-section::before,
.about-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.about-section::before {
  background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 40%) center/420px 420px no-repeat;
  opacity: 0.5;
}

.about-section::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px;
  mix-blend-mode: soft-light;
  opacity: 0.12;
}

.about-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.about-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

/* --- Section 1: Intro Split --- */
.about-intro-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 80px;
  margin-bottom: 70px;
}

.about-text-column {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.about-text-column::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(0, 188, 212, 0.08), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(30, 136, 229, 0.08), transparent 45%);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.about-text-column>* {
  position: relative;
  z-index: 1;
}

.about-image-column {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 24px;
  padding: 8px 16px;
  background: rgba(0, 188, 212, 0.08);
  border-radius: 100px;
  border: 1px solid rgba(0, 188, 212, 0.15);
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.05);
}

.about-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-color);
}

.about-headline {
  font-size: 3.2rem;
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 24px;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.about-headline .highlight-text {
  color: var(--primary-color);
  background: linear-gradient(135deg, #00BCD4 0%, #1E88E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-description {
  margin-bottom: 40px;
}

.lead-paragraph p {
  font-size: 1.05rem;
  color: #cfd8e3;
  margin-bottom: 12px;
}

.about-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(0, 188, 212, 0.12), rgba(30, 136, 229, 0.08));
  border: 1px solid rgba(0, 188, 212, 0.2);
  color: #e2edf5;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.about-pill i {
  color: var(--primary-color);
}

.about-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.meta-block {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 25px rgba(0, 0, 0, 0.25);
}

.meta-label {
  display: block;
  font-size: 0.9rem;
  color: #9fb3c8;
  margin-bottom: 6px;
}

.meta-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.about-highlight-card {
  position: relative;
  background: linear-gradient(170deg, rgba(0, 188, 212, 0.12), rgba(10, 16, 32, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.about-highlight-card::before {
  content: '';
  position: absolute;
  inset: -80px 35% auto -120px;
  height: 260px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 188, 212, 0.2), transparent 60%);
  filter: blur(40px);
  opacity: 0.75;
  pointer-events: none;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.3);
  color: #7de4f5;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spotlight-title {
  color: #fff;
  font-size: 1.6rem;
  margin: 18px 0 8px;
  letter-spacing: -0.02em;
}

.spotlight-copy {
  color: #c7d4e2;
  line-height: 1.7;
  margin-bottom: 16px;
}

.spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 10px 0 12px;
}

.spotlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(0, 188, 212, 0.08));
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.spotlight-item i {
  color: #00d9ff;
  background: rgba(0, 188, 212, 0.14);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(0, 188, 212, 0.35);
}

.spotlight-item strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

.spotlight-item span {
  color: #b8c7d8;
  font-size: 0.95rem;
}

.spotlight-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: #d5e5f4;
  border-radius: 10px;
  font-weight: 600;
}

.spotlight-tag i {
  color: var(--primary-color);
}

/* --- Legacy About Section Styles Removed (Consolidated below) --- */


/* --- Section 2: What We Offer --- */
/* --- Section 2: What We Offer - Premium --- */

.what-we-offer {
  margin-bottom: 120px;
  padding: 48px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(0, 188, 212, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.what-we-offer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(0, 188, 212, 0.14), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(30, 136, 229, 0.14), transparent 45%);
  opacity: 0.7;
  pointer-events: none;
}

.section-header-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-header-center .about-headline {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-header-center .about-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.6;
}

.offer-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.offer-card-modern {
  background: linear-gradient(140deg, rgba(18, 27, 42, 0.7), rgba(10, 17, 30, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 28px;
  transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.offer-card-modern::before,
.offer-card-modern::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.offer-card-modern::before {
  background: linear-gradient(120deg, rgba(0, 188, 212, 0.18), transparent 40%);
}

.offer-card-modern::after {
  border: 1px solid rgba(0, 188, 212, 0.2);
  filter: drop-shadow(0 0 18px rgba(0, 188, 212, 0.3));
}

.offer-card-modern:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 188, 212, 0.18);
  border-color: rgba(0, 188, 212, 0.25);
}

.offer-card-modern:hover::before,
.offer-card-modern:hover::after {
  opacity: 1;
}

.offer-icon-modern {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 188, 212, 0.35), rgba(0, 188, 212, 0));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 22px;
  transition: all 0.35s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.offer-card-modern:hover .offer-icon-modern {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 30px rgba(0, 188, 212, 0.35);
}

.offer-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f1f5f9;
}

.offer-content p {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.6;
}

.programs-grid-pro {
  gap: 28px;
}

.program-card-pro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.program-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.program-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.program-pill {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0, 188, 212, 0.12);
  border: 1px solid rgba(0, 188, 212, 0.25);
  color: #d5e5f4;
  font-weight: 700;
  font-size: 0.8rem;
}

.program-pill.ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: #cfd8e3;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
  font-weight: 650;
  color: #9fb3c8;
}

.program-meta>span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.program-meta i {
  color: var(--primary-color);
  margin: 0;
}

.highlight-card {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(30, 136, 229, 0.1) 100%);
  border: 1px solid rgba(0, 188, 212, 0.2);
}

/* --- Section 3: Mission & Vision - Premium Redesign --- */
.mv-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  perspective: 1000px;
  margin-top: 40px;
  align-items: stretch;
}

.mv-card-modern {
  background: radial-gradient(circle at 18% 18%, rgba(0, 188, 212, 0.18), rgba(0, 188, 212, 0) 55%),
    radial-gradient(circle at 82% 0%, rgba(91, 105, 255, 0.16), transparent 60%),
    linear-gradient(150deg, #0f1628 0%, #0a0f1d 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 42px 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 25px 70px -12px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.mv-card-modern::before,
.mv-card-modern::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.mv-card-modern::before {
  background: radial-gradient(circle at 20% 20%, rgba(0, 188, 212, 0.14), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.08), transparent 50%);
  opacity: 0.55;
  z-index: 0;
}

.mv-card-modern::after {
  border: 1px solid rgba(0, 188, 212, 0.28);
  inset: 8px;
  border-radius: 22px;
  opacity: 0;
  filter: drop-shadow(0 0 25px rgba(0, 188, 212, 0.18));
  z-index: 0;
}

.mv-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 188, 212, 0.14);
  border-color: rgba(0, 188, 212, 0.32);
}

.mv-card-modern:hover::after {
  opacity: 1;
}

.mv-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}


.mv-icon-large {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 188, 212, 0.25), rgba(0, 188, 212, 0));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  border: 1px solid rgba(0, 188, 212, 0.25);
  box-shadow: 0 0 28px rgba(0, 188, 212, 0.22), inset 0 0 22px rgba(0, 188, 212, 0.12);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

.mv-card-modern:hover .mv-icon-large {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 0 55px rgba(0, 188, 212, 0.45), inset 0 0 30px rgba(0, 188, 212, 0.22);
  border-color: rgba(0, 188, 212, 0.55);
}

.mv-icon-large i {
  font-size: 2.9rem;
  color: #00bcd4;
  filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.55));
  transition: all 0.3s ease;
}

.mv-card-modern:hover .mv-icon-large i {
  color: #fff;
  filter: drop-shadow(0 0 18px rgba(0, 188, 212, 0.8));
}

.mv-card-modern h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.8px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.mv-card-modern p {
  font-size: 1.08rem;
  color: #d7e2ea;
  margin-bottom: 26px;
  line-height: 1.75;
  max-width: 92%;
}

.mv-icon-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 188, 212, 0.3), rgba(0, 188, 212, 0));
  border: 1px solid rgba(0, 188, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 28px rgba(0, 188, 212, 0.22), inset 0 0 18px rgba(0, 188, 212, 0.12);
}

.mv-icon-ring i {
  font-size: 2.4rem;
  color: #00d9ff;
  filter: drop-shadow(0 0 12px rgba(0, 188, 212, 0.6));
}

.mv-card-modern.vision-modern .mv-icon-ring {
  border-color: rgba(255, 193, 7, 0.35);
  box-shadow: 0 0 28px rgba(255, 193, 7, 0.22), inset 0 0 18px rgba(255, 193, 7, 0.12);
}

.mv-card-modern.vision-modern .mv-icon-ring i {
  color: #ffc107;
  filter: drop-shadow(0 0 14px rgba(255, 193, 7, 0.6));
}

.mv-header {
  text-align: center;
  margin-bottom: 8px;
}

.mv-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.mv-description {
  font-size: 1.05rem;
  color: #d7e2ea;
  margin-bottom: 22px;
  line-height: 1.75;
}

.mv-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
}

.mv-pill-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(0, 188, 212, 0.08));
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e5edf5;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.mv-pill-grid li i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 188, 212, 0.16);
  color: #00e0ff;
  box-shadow: 0 0 12px rgba(0, 188, 212, 0.35);
  flex-shrink: 0;
}

.mv-card-modern.vision-modern .mv-pill-grid li i {
  background: rgba(255, 193, 7, 0.16);
  color: #ffc107;
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.35);
}


.mv-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.mv-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 650;
  color: #e7edf2;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(0, 188, 212, 0.06));
  border-radius: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-align: left;
}

.mv-list li:hover {
  background: linear-gradient(90deg, rgba(0, 188, 212, 0.12), rgba(30, 136, 229, 0.08));
  transform: translateX(6px);
  border-color: rgba(0, 188, 212, 0.35);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.mv-list li i {
  color: #FFC107;
  font-size: 1.3rem;
  filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.5));
  background: rgba(255, 193, 7, 0.12);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
}

/* Vision specific coloring */
.vision-modern .mv-list li i {
  color: #ffca28;
}

/* Mission specific coloring */
.mission-modern .mv-list li i {
  color: #00bcd4;
  /* Blue checks maybe to match theme? Or match image: image had yellow/gold for both */
}

/* If user wants EXACTLY like image (gold for everything), keep as is */
.mv-list li i {
  color: #FFC107;
  filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.5));
  background: rgba(255, 193, 7, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .about-intro-split {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }

  .about-text-column,
  .about-image-column {
    flex: auto;
    width: 100%;
  }

  .about-stats-modern {
    justify-content: center;
    border-top: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
  }

  .stat-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .stat-icon-wrapper {
    margin-bottom: 10px;
  }

  .about-headline {
    font-size: 2.2rem;
  }
}

@media (max-width: 767px) {
  .about-container {
    padding: 0 20px;
  }

  .about-intro-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-section {
    padding: 60px 0;
  }

  .about-headline {
    font-size: 1.8rem;
  }

  .about-stats-modern {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .stat-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 10px;
  }

  .stat-icon-wrapper {
    margin-bottom: 0;
  }

  .mv-card-modern {
    padding: 30px;
  }

  .founder-img {
    max-width: 100%;
  }
}

/* Contributors section - final theme alignment */
.contributors-section {
  padding: 100px 24px;
  background: radial-gradient(circle at 10% 20%, rgba(0, 188, 212, 0.08), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(30, 136, 229, 0.08), transparent 40%),
    linear-gradient(180deg, var(--bg-dark-primary), #0b1120 100%);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contributors-section::after {
  content: none;
}

.contributors-surface {
  max-width: 1260px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(13, 20, 33, 0.96), rgba(8, 14, 26, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 40px 36px 48px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 188, 212, 0.03);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contributors-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(65% 65% at 20% 15%, rgba(0, 188, 212, 0.08), transparent 60%),
    radial-gradient(65% 65% at 80% 15%, rgba(255, 255, 255, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.contributors-surface::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}

.instructors-header {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
  align-items: stretch;
  gap: 26px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.instructors-lead {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.instructors-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.contributors-section h2 {
  font-size: 3rem;
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  display: inline-block;
}

.contributors-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 120px;
  height: 3px;
  background: var(--gradient-main-button);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.45);
}

.contributors-section .section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary-light);
  margin: 6px 0 12px;
  font-weight: 500;
  opacity: 0.9;
  max-width: 640px;
  line-height: 1.6;
}

.instructors-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 188, 212, 0.12);
  color: var(--primary-color);
  border: 1px solid rgba(0, 188, 212, 0.35);
  box-shadow: 0 6px 18px rgba(0, 188, 212, 0.12);
  flex-shrink: 0;
}

.stat-icon i {
  color: inherit;
}

.stat-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  display: block;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main-light);
  line-height: 1.2;
}

.stat-label {
  color: var(--text-secondary-light);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--gradient-main-button);
  color: var(--bg-dark-primary);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 188, 212, 0.25);
  justify-content: center;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.stat-pill--ghost {
  background: transparent;
  color: var(--primary-color);
  border-color: rgba(0, 188, 212, 0.35);
  box-shadow: 0 12px 30px rgba(0, 188, 212, 0.15);
}

.stat-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 188, 212, 0.35);
}

.stat-pill--ghost:hover {
  background: rgba(0, 188, 212, 0.12);
  color: var(--text-main-light);
}

.stat-pill i {
  color: inherit;
}

@media (max-width: 1200px) {
  .contributors-section {
    padding: 84px 20px;
  }

  .contributors-surface {
    padding: 32px 28px 40px;
  }

  .contributors-section h2 {
    font-size: 2.6rem;
  }

  .instructors-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .contributors-section {
    padding: 72px 16px;
  }

  .contributors-surface {
    padding: 26px 18px 32px;
    border-radius: 18px;
  }

  .instructors-stats {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .stat-card {
    padding: 12px 14px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
  }
}

/* Improved About Section Styling - Professional & Modern */
.about-section {
  padding: 120px 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-dark-primary), #0b1120);
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.about-intro-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.about-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.about-eyebrow::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
}

.about-headline {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 32px;
  color: var(--text-main-light);
  letter-spacing: -1px;
}

.about-headline .gradient-text {
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-description p {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 24px;
  color: var(--text-secondary-light);
  max-width: 95%;
}

.about-description strong {
  color: var(--text-main-light);
  font-weight: 700;
}

.highlight-text {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(0, 188, 212, 0.15);
  z-index: -1;
  transform: skewX(-12deg) translateY(-2px);
}


/* Stats Grid (Glassmorphism) */
.about-stats-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 188, 212, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-item:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 188, 212, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary-light);
  font-size: 1.4rem;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:hover .stat-icon-wrapper {
  background: var(--primary-color);
  color: var(--bg-dark-primary);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
  border-color: transparent;
}

.stat-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main-light);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary-light);
  font-weight: 500;
}

/* Founder Image Section */
.about-image-column {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.founder-image-card {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 440px;
  transition: transform 0.5s ease;
  background: var(--bg-dark-secondary);
}

.founder-image-card:hover {
  transform: translateY(-5px);
}

.founder-img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  /* Stylish filter */
  transition: all 0.5s ease;
}

.founder-image-card:hover .founder-img {
  filter: grayscale(0%) contrast(1.1);
  transform: scale(1.03);
}

.founder-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.95), rgba(10, 14, 26, 0.6));
  backdrop-filter: blur(8px);
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.founder-name {
  display: block;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main-light);
  letter-spacing: -0.5px;
}

.founder-title {
  display: block;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Decorative Elements */
.decorative-blob {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-color), transparent 60%);
  opacity: 0.08;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.decorative-dots {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 160px;
  height: 160px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 991px) {
  .about-intro-split {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .about-eyebrow {
    justify-content: center;
  }

  .about-description p {
    max-width: 100%;
  }

  .about-headline {
    font-size: 2.5rem;
  }

  .founder-image-card {
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .about-stats-modern {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }

  .stat-item {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 20px;
    padding: 16px;
  }

  .stat-icon-wrapper {
    margin: 0;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .stat-text {
    align-items: flex-start;
  }

  .about-section {
    padding: 80px 0;
  }

  .about-headline {
    font-size: 2rem;
  }
}

/* Instructor Buttons Update */
.availability-badge--code-review {
  background: rgba(16, 26, 35, 0.95) !important;
  border: 1px solid rgba(74, 222, 128, 0.15) !important;
  color: #4ade80 !important;
  font-weight: 500;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  width: 100%;
}

.availability-badge--code-review i {
  color: #4ade80 !important;
  margin-left: 8px;
  font-size: 1.1em;
  font-weight: bold;
}

.view-portfolio-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 0.95rem;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  margin-top: 8px;
}

.view-portfolio-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.view-portfolio-btn i {
  color: #94a3b8;
  font-size: 0.9em;
  order: 1;
  /* Ensure icon is on the right visually if using flex gap, but DOM order is already swapped */
}

.view-portfolio-btn span {
  order: 0;
}

.view-portfolio-btn:hover i {
  color: white;
}

/* Mobile polish for consistent phone layout */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .hero {
    padding: 52px 18px 32px;
    gap: 22px;
    max-width: 100%;
  }

  .hero-content {
    text-align: center;
    padding: 0;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 5vw, 2.5rem);
    line-height: 1.25;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 18px;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
  }

  .hero-cta-button {
    width: min(420px, 100%);
    padding: 14px 18px;
    font-size: 1rem;
  }

  .hero-video-container {
    width: 100%;
    max-width: 100%;
  }

  section.courses-section,
  .free-courses-home,
  .testimonials-section,
  .about-section {
    padding: 52px 18px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .courses-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }

  .courses-header .section-subtitle {
    font-size: 1rem;
    margin-top: 8px;
  }

  .courses-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
  }

  .kpi-card {
    padding: 12px 14px;
  }

  .courses-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .filters {
    width: 100%;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .toolbar-actions {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .trust-pill {
    width: 100%;
    justify-content: center;
  }

  .view-all-courses-btn--pro {
    width: 100%;
    justify-content: center;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .course {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  }

  .course-content {
    padding: 20px;
  }

  .course h3 {
    font-size: 1.25rem;
  }

  .course p {
    font-size: 0.95rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .course-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .course-rating {
    width: 100%;
    justify-content: center;
    margin-bottom: 0;
  }

  .course-footer .button {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    background: var(--gradient-main-button);
    color: var(--card-bg-dark);
    border: none;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.28);
  }

  .course-footer .button i {
    color: inherit;
  }

  .free-card .cta {
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
    min-height: 48px;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.28);
  }

  .free-courses-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .free-card {
    border-radius: 16px;
  }

  .free-card .content {
    padding: 16px;
  }

  .free-card h3 {
    font-size: 1.2rem;
  }

  .free-card p {
    font-size: 0.98rem;
  }

  .free-card .meta-row {
    flex-wrap: wrap;
  }

  .free-card .cta {
    width: 100%;
    justify-content: center;
  }

  .testimonials-slider-container {
    padding: 16px;
  }

  .slider-controls {
    gap: 10px;
  }

  .slider-btn {
    width: 46px;
    height: 46px;
  }

  /* About Ria Academy Section - Mobile Fixes */
  .about-container {
    padding: 0 18px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .about-content-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-intro-split {
    flex-direction: column;
    gap: 24px;
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .about-text-column,
  .about-highlight-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 24px 18px !important;
    margin: 0 auto;
  }

  .about-text-column {
    padding: 24px 18px !important;
  }

  .about-highlight-card {
    padding: 24px 18px !important;
  }

  .about-headline {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .about-description p {
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .about-pill-row {
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .about-pill {
    flex: 1 1 min(240px, 100%);
    min-width: 200px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-stats-modern {
    grid-template-columns: 1fr !important;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-meta-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Our Programs Section - Mobile Fixes */
  .what-we-offer {
    padding: 32px 18px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .section-header-center {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    text-align: center;
  }

  .programs-grid-pro {
    grid-template-columns: 1fr !important;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .program-card-pro {
    padding: 18px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto;
  }

  .program-pill {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 44px 14px 28px;
  }

  .hero-content h1 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-cta-button {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .courses-header h2 {
    font-size: 1.6rem;
  }

  .section-heading h2 {
    font-size: 1.6rem;
  }

  .courses-grid,
  .free-courses-grid {
    gap: 14px;
  }

  .kpi-card {
    padding: 10px 12px;
  }

  .filters {
    gap: 8px;
  }

  .free-card .content {
    padding: 14px;
  }

  .slider-btn {
    width: 42px;
    height: 42px;
  }

  /* About Ria Academy Section - Small Mobile Fixes */
  .about-container {
    padding: 0 14px !important;
  }

  .about-text-column,
  .about-highlight-card {
    padding: 20px 14px !important;
  }

  .about-pill {
    min-width: 100%;
    max-width: 100%;
  }

  .about-stats-modern,
  .about-meta-grid {
    gap: 10px;
  }

  /* Our Programs Section - Small Mobile Fixes */
  .what-we-offer {
    padding: 28px 14px !important;
  }

  .program-card-pro {
    padding: 16px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .programs-grid-pro {
    gap: 12px;
  }
}

/* Disable AOS on mobile to prevent overflow/cut-off issues */
@media (max-width: 768px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================
   Enhanced Mobile Responsiveness - All Phones
   ============================================ */

/* Base Mobile Styles (max-width: 991px) - Tablets and Large Phones */
@media (max-width: 991px) {

  /* Hero Section Mobile Improvements */
  .hero {
    flex-direction: column !important;
    padding: 60px 20px 40px;
    gap: 30px;
    text-align: center;
  }

  .hero-content {
    min-width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    order: 2;
  }

  .hero-video-container {
    min-width: 100% !important;
    max-width: 100% !important;
    order: 1;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  /* Courses Section Mobile */
  .courses-section {
    padding: 60px 16px;
  }

  .courses-header {
    text-align: center;
    padding: 0 8px;
  }

  .courses-header .eyebrow {
    font-size: 0.8rem;
  }

  .courses-kpis {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .kpi-card {
    padding: 14px 16px;
  }

  .courses-toolbar {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .toolbar-actions {
    flex-direction: column;
    gap: 12px;
  }

  .view-all-courses-btn--pro {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .trust-pill {
    justify-content: center;
  }

  /* Courses Grid Mobile */
  .courses-grid-pro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }

  .course-pro {
    max-width: 100%;
  }

  .course-content {
    padding: 20px;
  }

  .course-highlights {
    padding-left: 0;
  }

  .course-highlights li {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .course-footer {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .course-footer .button {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  /* Free Courses Section Mobile */
  .free-courses-home {
    padding: 60px 16px;
  }

  .free-courses-home .section-heading {
    padding: 0 8px;
  }

  .free-courses-home .section-heading h2 {
    font-size: 1.8rem;
  }

  .free-courses-home .section-heading p {
    font-size: 1rem;
    padding: 0 8px;
  }

  .free-courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }

  .free-card {
    max-width: 100%;
  }

  .free-card .content {
    padding: 20px;
  }

  .free-card h3 {
    font-size: 1.25rem;
  }

  .free-card .meta-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .free-card .cta {
    width: 100%;
    padding: 14px;
    justify-content: center;
  }

  /* About Section Mobile */
  .about-section {
    padding: 60px 16px;
    overflow-x: hidden;
  }

  .about-container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .about-intro-split {
    grid-template-columns: 1fr !important;
    gap: 32px;
    text-align: center;
  }

  .about-text-column {
    padding: 0 !important;
  }

  .about-eyebrow {
    justify-content: center;
  }

  .about-headline {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .about-description p {
    font-size: 0.95rem;
    max-width: 100%;
    text-align: center;
  }

  .about-pill-row {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .about-pill {
    flex: 1 1 100%;
    min-width: 0;
    padding: 10px 16px;
    font-size: 0.85rem;
    text-align: center;
    justify-content: center;
  }

  .about-stats-modern {
    grid-template-columns: 1fr !important;
    gap: 14px;
    margin-top: 32px;
  }

  .stat-item {
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-meta-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .meta-block {
    padding: 16px;
    text-align: center;
  }

  /* Highlight Card Mobile */
  .about-highlight-card {
    padding: 24px 20px !important;
    margin: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .spotlight-title {
    font-size: 1.4rem;
  }

  .spotlight-copy {
    font-size: 0.95rem;
  }

  .spotlight-list {
    gap: 16px;
  }

  .spotlight-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .spotlight-item i {
    font-size: 1.5rem;
  }

  .spotlight-footer {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .spotlight-tag {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  /* What We Offer Section Mobile */
  .what-we-offer {
    padding: 48px 16px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
  }

  .section-header-center {
    padding: 0 8px;
  }

  .section-header-center h2 {
    font-size: 1.7rem;
  }

  .about-subtitle {
    font-size: 0.95rem;
    padding: 0 8px;
  }

  .programs-grid-pro,
  .offer-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .program-card-pro,
  .offer-card-modern {
    padding: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .program-card-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .program-pill-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .program-pill {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .offer-content h3 {
    font-size: 1.25rem;
  }

  .offer-content p {
    font-size: 0.9rem;
  }

  .program-meta {
    flex-direction: column;
    gap: 8px;
  }

  .program-meta span {
    font-size: 0.85rem;
  }

  /* Mission & Vision Section Mobile */
  .our-mission-vision {
    padding: 32px 0;
  }

  .mv-grid-modern {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .mv-card-modern {
    padding: 24px 20px;
  }

  .mv-content {
    text-align: center;
  }

  .mv-icon-ring {
    margin: 0 auto 16px;
  }

  .mv-header {
    text-align: center;
  }

  .mv-header h3 {
    font-size: 1.4rem;
  }

  .mv-description {
    font-size: 0.95rem;
    text-align: center;
  }

  .mv-pill-grid {
    justify-content: center;
    gap: 10px;
  }

  .mv-pill-grid li {
    font-size: 0.85rem;
    justify-content: center;
  }

  /* Testimonials Section Mobile */
  .testimonials-section {
    padding: 60px 16px;
  }

  .testimonials-inner {
    padding: 0;
  }

  .testimonials-header h2 {
    font-size: 1.7rem;
  }

  .testimonials-subtitle {
    font-size: 0.95rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-slider-shell {
    padding: 20px 16px;
  }

  .slider-controls {
    gap: 12px;
    padding: 16px 0;
  }

  .slider-btn {
    width: 44px;
    height: 44px;
  }

  /* Footer Mobile */
  footer {
    padding: 40px 16px;
    margin-top: 40px;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h4::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .social-icons {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .social-icons a {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .footer-bottom {
    font-size: 0.9rem;
    padding: 16px 0;
  }
}

/* Medium Phones (max-width: 767px) */
@media (max-width: 767px) {

  /* Hero Section */
  .hero {
    padding: 50px 16px 32px;
    gap: 24px;
  }

  .hero-content h1 {
    font-size: clamp(1.6rem, 6vw, 2rem);
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .hero-cta-button {
    padding: 14px 24px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 320px;
  }

  /* Courses Section */
  .courses-section {
    padding: 48px 14px;
  }

  .courses-header h2 {
    font-size: 1.5rem;
  }

  .courses-header .section-subtitle {
    font-size: 0.9rem;
  }

  .kpi-card {
    padding: 12px 14px;
  }

  .kpi-label,
  .kpi-value {
    font-size: 0.85rem;
  }

  .filter-chip {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .course h3 {
    font-size: 1.15rem;
  }

  .course p {
    font-size: 0.9rem;
  }

  .course-top-row {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  /* Free Courses */
  .free-courses-home {
    padding: 48px 14px;
  }

  .free-courses-home .section-heading h2 {
    font-size: 1.5rem;
  }

  .free-card h3 {
    font-size: 1.15rem;
  }

  .free-card p {
    font-size: 0.9rem;
  }

  .free-card .content {
    padding: 16px;
  }

  /* About Section */
  .about-section {
    padding: 48px 14px;
  }

  .about-headline {
    font-size: 1.5rem;
  }

  .about-description p {
    font-size: 0.9rem;
  }

  .about-pill {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .stat-item {
    padding: 16px;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* Highlight Card */
  .about-highlight-card {
    padding: 20px 16px !important;
  }

  .spotlight-title {
    font-size: 1.25rem;
  }

  .spotlight-copy {
    font-size: 0.9rem;
  }

  .spotlight-item strong {
    font-size: 0.95rem;
  }

  .spotlight-item span {
    font-size: 0.85rem;
  }

  /* What We Offer */
  .what-we-offer {
    padding: 40px 14px !important;
  }

  .section-header-center h2 {
    font-size: 1.5rem;
  }

  .about-subtitle {
    font-size: 0.9rem;
  }

  .program-card-pro,
  .offer-card-modern {
    padding: 18px;
  }

  .offer-icon-modern {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .offer-content h3 {
    font-size: 1.15rem;
  }

  .offer-content p {
    font-size: 0.85rem;
  }

  /* Mission & Vision */
  .mv-card-modern {
    padding: 20px 18px;
  }

  .mv-header h3 {
    font-size: 1.25rem;
  }

  .mv-description {
    font-size: 0.9rem;
  }

  .mv-pill-grid li {
    font-size: 0.8rem;
  }

  /* Testimonials */
  .testimonials-section {
    padding: 48px 14px;
  }

  .testimonials-header h2 {
    font-size: 1.5rem;
  }

  .testimonials-slider-shell {
    padding: 16px 14px;
  }

  /* Footer */
  footer {
    padding: 32px 14px;
    gap: 24px;
  }

  .footer-section h4 {
    font-size: 1.1rem;
  }

  .footer-section ul li a {
    font-size: 0.9rem;
  }

  .social-icons a {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {

  /* Hero Section */
  .hero {
    padding: 40px 12px 28px;
    gap: 20px;
  }

  .hero-content h1 {
    font-size: clamp(1.4rem, 7vw, 1.75rem);
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .hero-cta-button {
    padding: 12px 20px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }

  /* Courses Section */
  .courses-section {
    padding: 40px 12px;
  }

  .courses-header h2 {
    font-size: 1.35rem;
  }

  .courses-header .section-subtitle {
    font-size: 0.85rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    padding: 6px 12px;
  }

  .kpi-card {
    padding: 10px 12px;
  }

  .kpi-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .kpi-label {
    font-size: 0.75rem;
  }

  .kpi-value {
    font-size: 0.85rem;
  }

  .filter-chip {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .course h3 {
    font-size: 1.1rem;
  }

  .course p {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .course-content {
    padding: 16px;
  }

  .course-thumbnail .category-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .course-thumbnail .course-level {
    font-size: 0.65rem;
    padding: 3px 6px;
  }

  .course-format,
  .course-cert {
    font-size: 0.75rem;
  }

  .course-highlights li {
    font-size: 0.8rem;
  }

  .course-footer .button {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .course-stars i {
    font-size: 0.8rem;
  }

  .course-rating-text {
    font-size: 0.85rem;
  }

  /* Free Courses */
  .free-courses-home {
    padding: 40px 12px;
  }

  .free-courses-home .section-heading h2 {
    font-size: 1.35rem;
  }

  .free-courses-home .section-heading p {
    font-size: 0.9rem;
  }

  .free-card .content {
    padding: 14px;
  }

  .free-card h3 {
    font-size: 1.1rem;
  }

  .free-card p {
    font-size: 0.85rem;
  }

  .free-chip {
    font-size: 0.65rem;
    padding: 5px 10px;
  }

  .free-card .meta-item {
    font-size: 0.75rem;
  }

  .free-card .cta {
    padding: 12px;
    font-size: 0.9rem;
  }

  /* About Section */
  .about-section {
    padding: 40px 12px;
  }

  .about-headline {
    font-size: 1.35rem;
  }

  .about-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .about-description p {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  .about-pill {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .stat-item {
    padding: 14px;
  }

  .stat-icon-wrapper {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .meta-block {
    padding: 14px;
  }

  .meta-label {
    font-size: 0.75rem;
  }

  .meta-value {
    font-size: 1rem;
  }

  /* Highlight Card */
  .about-highlight-card {
    padding: 18px 14px !important;
  }

  .spotlight-badge {
    font-size: 0.7rem;
    padding: 6px 12px;
  }

  .spotlight-title {
    font-size: 1.15rem;
  }

  .spotlight-copy {
    font-size: 0.85rem;
  }

  .spotlight-item i {
    font-size: 1.3rem;
  }

  .spotlight-item strong {
    font-size: 0.9rem;
  }

  .spotlight-item span {
    font-size: 0.8rem;
  }

  .spotlight-tag {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  /* What We Offer */
  .what-we-offer {
    padding: 36px 12px !important;
  }

  .section-header-center h2 {
    font-size: 1.35rem;
  }

  .about-subtitle {
    font-size: 0.85rem;
  }

  .program-card-pro,
  .offer-card-modern {
    padding: 16px;
  }

  .offer-icon-modern {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .offer-content h3 {
    font-size: 1.1rem;
  }

  .offer-content p {
    font-size: 0.8rem;
  }

  .program-pill {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .program-meta span {
    font-size: 0.8rem;
  }

  .program-meta i {
    font-size: 0.85rem;
  }

  /* Mission & Vision */
  .mv-card-modern {
    padding: 18px 16px;
  }

  .mv-icon-ring {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }

  .mv-eyebrow {
    font-size: 0.7rem;
  }

  .mv-header h3 {
    font-size: 1.15rem;
  }

  .mv-description {
    font-size: 0.85rem;
  }

  .mv-pill-grid li {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  /* Testimonials */
  .testimonials-section {
    padding: 40px 12px;
  }

  .testimonials-header h2 {
    font-size: 1.35rem;
  }

  .testimonials-subtitle {
    font-size: 0.85rem;
  }

  .testimonials-eyebrow {
    font-size: 0.7rem;
  }

  .testimonials-slider-shell {
    padding: 14px 12px;
  }

  .slider-top-row {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .slider-tag,
  .slider-meta {
    font-size: 0.75rem;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .slider-dots {
    gap: 6px;
  }

  /* Footer */
  footer {
    padding: 28px 12px;
    gap: 20px;
    margin-top: 32px;
  }

  .footer-content {
    gap: 24px;
  }

  .footer-section h4 {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .footer-section ul li {
    margin-bottom: 8px;
  }

  .footer-section ul li a {
    font-size: 0.85rem;
  }

  .footer-section p {
    font-size: 0.85rem;
  }

  .social-icons {
    gap: 12px;
    margin-top: 20px;
  }

  .social-icons a {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    border-radius: 14px;
  }

  .footer-bottom {
    font-size: 0.8rem;
    padding: 14px 0;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}

/* Extra Small Phones (max-width: 375px) */
@media (max-width: 375px) {
  .hero {
    padding: 36px 10px 24px;
  }

  .hero-content h1 {
    font-size: 1.3rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .hero-cta-button {
    padding: 11px 18px;
    font-size: 0.85rem;
  }

  .courses-header h2,
  .free-courses-home .section-heading h2,
  .about-headline,
  .section-header-center h2,
  .testimonials-header h2 {
    font-size: 1.25rem;
  }

  .course h3,
  .free-card h3,
  .offer-content h3,
  .mv-header h3,
  .spotlight-title {
    font-size: 1.05rem;
  }

  .course p,
  .free-card p,
  .about-description p,
  .offer-content p,
  .mv-description,
  .spotlight-copy {
    font-size: 0.8rem;
  }

  footer {
    padding: 24px 10px;
  }

  .footer-section h4 {
    font-size: 0.95rem;
  }

  .social-icons a {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border-radius: 12px;
  }
}

/* Landscape Mode Optimizations */
@media (max-width: 991px) and (orientation: landscape) {
  .hero {
    padding: 40px 20px 32px;
    flex-direction: row !important;
    gap: 24px;
  }

  .hero-content {
    min-width: 55% !important;
    max-width: 60% !important;
    text-align: left !important;
    order: 1;
  }

  .hero-video-container {
    min-width: 35% !important;
    max-width: 40% !important;
    order: 2;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .about-intro-split {
    grid-template-columns: 1fr 1fr !important;
  }

  .mv-grid-modern {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ====================================================== */
/* Fix: Courses Toolbar Mobile Display Issues            */
/* Ensures .trust-pill and .view-all-courses-btn--pro    */
/* are fully visible on mobile devices                   */
/* ====================================================== */

@media (max-width: 768px) {
  .courses-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    padding: 16px !important;
    overflow: visible !important;
  }

  .toolbar-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
    overflow: visible !important;
  }

  .trust-pill {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
  }

  .view-all-courses-btn--pro {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 16px 24px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .filters {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 480px) {
  .courses-toolbar {
    padding: 14px !important;
    margin: 16px 0 24px !important;
  }

  .toolbar-actions {
    gap: 10px !important;
  }

  .trust-pill {
    font-size: 0.9rem !important;
    padding: 10px 14px !important;
  }

  .view-all-courses-btn--pro {
    font-size: 0.95rem !important;
    padding: 14px 20px !important;
    gap: 10px !important;
  }

  .view-all-courses-btn--pro .arrow-icon {
    width: 24px !important;
    height: 24px !important;
  }
}

/* ====================================================== */
/* Fix: Login Button Position - Mobile                   */
/* Shift login button slightly to the right              */
/* ====================================================== */

@media (max-width: 991px) {

  .header-actions .btn.login,
  .header-actions #loginBtn {
    margin-right: 8px !important;
  }
}

@media (max-width: 768px) {

  .header-actions .btn.login,
  .header-actions #loginBtn {
    margin-right: 10px !important;
  }
}

@media (max-width: 480px) {

  .header-actions .btn.login,
  .header-actions #loginBtn {
    margin-right: 6px !important;
  }
}