/* ================================================
   LataxrAcademy - Enhanced Design with Original Colors & Perfect Alignment
   Restored vibrant color scheme with advanced features
   ================================================ */

/* ------------------------------------------------
   Global Variables - Original Vibrant Color Scheme
------------------------------------------------ */
:root {
  --bg-gradient-start: #1d1e30;
  --bg-gradient-end: #03bbdf;
  --primary-text: #ffffff;
  --secondary-text: #e0e0e0;
  --highlight-color: #ff4081;
  --footer-bg: #0a0a1a;
  --card-bg: #1a1a2e;
  --input-bg: #1a1a2e;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.3);
  --shadow-heavy: 0 15px 30px rgba(3, 187, 223, 0.3);
  --border-radius: 15px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Additional vibrant colors */
  --neon-blue: #00d4ff;
  --neon-pink: #ff0080;
  --neon-purple: #8000ff;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ------------------------------------------------
   Reset and Base Styles
------------------------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--primary-text);
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  padding-top: 70px;
  min-height: 100vh;
}

/* ------------------------------------------------
   Perfect Typography and Alignment System
------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  display: block;
  padding: 0 20px;
  color: var(--primary-text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
  background: linear-gradient(45deg, var(--highlight-color), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--primary-text);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
  color: var(--secondary-text);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
  color: var(--secondary-text);
}

h5 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
  color: var(--secondary-text);
}

h6 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 0.5rem;
  color: var(--secondary-text);
}

p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  margin: 0 auto 1.5rem auto;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  color: var(--secondary-text);
}

/* ================================================
   FIXED MOBILE TEXT VISIBILITY
   ================================================ */
@media (max-width: 768px) {
  body {
    padding-top: 70px !important;
  }

  .hero-slider {
    min-height: 100vh;
    height: 100vh;
    margin-top: 0 !important;
  }

  .carousel-inner {
    height: 100vh;
  }

  .carousel-item {
    height: 100vh;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
  }

  .hero-overlay-content {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 10 !important;
    padding: 0 15px !important;
  }

  /* SIMPLIFIED TEXT BOX */
  .hero-text-box {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    padding: 30px 25px !important;
    text-align: center !important;
    width: 95% !important;
    max-width: 95vw !important;
    margin: 0 auto !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    position: relative !important;
    z-index: 100 !important;
    animation: none !important;
    transform: none !important;
  }

  /* CLEAN TITLE */
  .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
    color: #ffffff !important;
    text-align: center !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    animation: none !important;
    border-right: none !important;
    white-space: normal !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #8B5CF6, #06B6D4) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  /* CLEAN DESCRIPTION */
  .hero-description {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: center !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
    animation: none !important;
    border-right: none !important;
    white-space: normal !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* SIMPLIFIED BUTTONS */
  .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 20px !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hero-buttons .btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto 8px auto !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    text-align: center !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    position: relative !important;
    z-index: 1000 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Mobile text wrapping and size fixes to prevent cut-offs */
@media (max-width: 768px) {
  body {
    padding-top: 70px !important;
  }

  /* Fit hero slider below header height */
  .hero-slider,
  .hero-slider .carousel-inner,
  .hero-slider .carousel-item {
    min-height: calc(100svh - var(--nav-height, 70px)) !important;
    height: calc(100svh - var(--nav-height, 70px)) !important;
  }

  /* Extra clearance below fixed header */
   .hero-slider {
    min-height: 100vh;
    height: 100vh;
    margin-top: 0 !important;
  }
  .hero-slider .carousel-item { padding-top: calc(var(--nav-height, 70px) + 8px) !important; }

  h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
  .hero-text h1,
  .hero-text p {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
  .typewriter {
    white-space: normal !important;
    animation: none !important;
    border-right: none !important;
  }
  /* Ensure carousel slide text always shows on phones */
  #heroCarousel .hero-text-box {
    gap: 6px !important;
  }
  #heroCarousel .hero-text-box .hero-title,
  #heroCarousel .hero-text-box .hero-description {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 4px 0 !important;
  }
  #heroCarousel .hero-text-box .hero-title {
    color: #ffffff !important;
  }
  #heroCarousel .hero-text-box .hero-description {
    color: rgba(255,255,255,0.95) !important;
  }
}

/* FINAL MOBILE SAFETY OVERRIDE FOR CAROUSEL VISIBILITY */
@media (max-width: 768px) {
  /* Layout and stacking */
  #heroCarousel .carousel-item,
  #heroCarousel .hero-overlay-content,
  #heroCarousel .hero-text-box {
    position: relative !important;
    z-index: 20 !important;
  }
  #heroCarousel .hero-tech-pattern { opacity: 0.45 !important; z-index: 2 !important; }
  #heroCarousel .hero-slide-bg { filter: brightness(0.55) !important; }

  /* Remove any animations that could hide text */
  #heroCarousel .hero-title,
  #heroCarousel .hero-description,
  #heroCarousel .hero-text-box {
    animation: none !important;
    transform: none !important;
  }

  /* Ensure text is readable and wrapped */
  #heroCarousel .hero-title {
    font-size: clamp(1.1rem, 3.6vw, 1.6rem) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8) !important;
  }
  #heroCarousel .hero-description {
    font-size: clamp(0.8rem, 2.4vw, 1rem) !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8) !important;
  }

  /* Buttons always visible and tappable */
  #heroCarousel .hero-buttons { gap: 10px !important; }
  #heroCarousel .hero-buttons .btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 92% !important;
    max-width: 300px !important;
    margin: 0 auto 8px auto !important;
  }
}

/* ------------------------------------------------
   Particle Effects and Background Animations
------------------------------------------------ */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  background: linear-gradient(45deg, var(--highlight-color), var(--neon-blue));
  border-radius: 50%;
  animation: float-particle 20s infinite linear;
  opacity: 0.7;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float-shapes 15s infinite ease-in-out;
}

.shape.circle {
  border-radius: 50%;
  background: var(--gradient-accent);
}

.shape.triangle {
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 43px solid var(--neon-blue);
}

.shape.square {
  background: var(--gradient-secondary);
  transform: rotate(45deg);
}

@keyframes float-shapes {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Perfect Centering for All Content */
.content-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: 80px 0;
}

/* ------------------------------------------------
   Enhanced Navbar with Original Design
------------------------------------------------ */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(15px);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-light);
}

#mainNav.shrink {
  padding: 8px 0;
  background: rgba(0, 0, 0, 0.95) !important;
}

#mainNav .navbar-brand img {
  height: 60px;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 0 10px rgba(3, 187, 223, 0.5));
}

#mainNav .navbar-brand img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(255, 64, 129, 0.7));
}

#mainNav .navbar-nav .nav-link {
  color: var(--primary-text) !important;
  padding: 10px 20px;
  margin: 0 5px;
  font-weight: 500;
  position: relative;
  transition: var(--transition-smooth);
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#mainNav .navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

#mainNav .navbar-nav .nav-link:hover::before,
#mainNav .navbar-nav .nav-link.active::before {
  width: 80%;
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
  color: var(--highlight-color) !important;
  background: rgba(255, 64, 129, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 64, 129, 0.3);
}

/* Registration button in navbar */
.navbar .nav-register-btn {
  background: var(--gradient-primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  line-height: 1;
  border: 2px solid var(--highlight-color);
  box-shadow: 0 8px 20px rgba(255, 64, 129, 0.4);
  transition: var(--transition-bounce);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar .nav-register-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 64, 129, 0.6);
  background: var(--gradient-secondary);
}

/* Social Icons in Navbar */
.social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icons a {
  color: var(--primary-text);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
  color: var(--highlight-color);
  background: rgba(255, 64, 129, 0.2);
  transform: translateY(-2px) scale(1.1);
}

/* Mobile Navbar Styles */
@media (max-width: 991.98px) {
  #mainNav {
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.95) !important;
  }
  
  #mainNav .navbar-brand img {
    height: 50px;
  }
  
  #mainNav .navbar-toggler {
    border: 2px solid rgba(255, 64, 129, 0.5) !important;
    padding: 6px 10px;
    background: rgba(255, 64, 129, 0.2) !important;
    border-radius: 8px;
    outline: none !important;
    box-shadow: none !important;
  }
  
  #mainNav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 64, 129, 0.25) !important;
    border-color: rgba(255, 64, 129, 0.8) !important;
  }
  
  #mainNav .navbar-toggler:hover {
    background: rgba(255, 64, 129, 0.3) !important;
    border-color: rgba(255, 64, 129, 0.7) !important;
  }
  
  #mainNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 22px;
    height: 22px;
  }
  
  #mainNav .navbar-collapse {
    background: rgba(0, 0, 0, 0.98) !important;
    border-radius: 15px;
    margin-top: 15px;
    padding: 25px;
    border: 2px solid rgba(255, 64, 129, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
  }
  
  #mainNav .navbar-nav {
    text-align: center;
  }
  
  #mainNav .navbar-nav .nav-link {
    padding: 15px 20px;
    margin: 8px 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 64, 129, 0.2);
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  #mainNav .navbar-nav .nav-link:hover,
  #mainNav .navbar-nav .nav-link.active {
    background: rgba(255, 64, 129, 0.2) !important;
    border-color: rgba(255, 64, 129, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.3);
  }
  
  .navbar .nav-register-btn {
    margin: 15px 0 10px 0;
    display: inline-block;
    text-align: center;
    padding: 12px 25px !important;
    background: var(--gradient-primary) !important;
    border: 2px solid var(--highlight-color) !important;
  }
  
  .navbar .nav-register-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(255, 64, 129, 0.5) !important;
  }
  
  .social-icons {
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 64, 129, 0.3);
    gap: 20px;
  }
  
  .social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 64, 129, 0.15);
    border: 1px solid rgba(255, 64, 129, 0.3);
    font-size: 1.2rem;
  }
  
  .social-icons a:hover {
    background: rgba(255, 64, 129, 0.3) !important;
    border-color: rgba(255, 64, 129, 0.6) !important;
    transform: translateY(-3px) scale(1.1) !important;
  }
}

@media (max-width: 576px) {
  #mainNav .container {
    padding: 0 15px;
  }
  
  #mainNav .navbar-brand img {
    height: 40px;
  }
  
  #mainNav .navbar-collapse {
    margin-top: 10px;
    padding: 15px;
  }
  
  #mainNav .navbar-nav .nav-link {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  .navbar-toggler {
    padding: 6px 10px;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
  }
  
  .social-icons a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Mobile Responsiveness for Testimonials */
@media (max-width: 768px) {
  .container-custom {
    padding: 0 15px !important;
    max-width: 100% !important;
  }
  
  .student-video-card {
    margin: 0 auto 20px !important;
    max-width: 320px !important;
    min-width: 280px !important;
  }
  
  .video-container {
    margin: 0 5px !important;
    border-radius: 12px !important;
  }
  
  .student-testimonial-info {
    padding: 0 10px !important;
  }
  
  .student-testimonial-info h5 {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .student-testimonial-info p {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .play-button {
    width: 70px !important;
    height: 70px !important;
    font-size: 24px !important;
  }
  
  .row {
    margin: 0 -5px !important;
  }
  
  .col-12 {
    padding: 0 5px !important;
  }
  
  .page-header h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  .page-header p {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 480px) {
  .student-video-card {
    max-width: 300px !important;
    min-width: 260px !important;
  }
  
  .video-container {
    margin: 0 2px !important;
  }
  
  .student-testimonial-info h5 {
    font-size: 0.9rem !important;
  }
  
  .student-testimonial-info p {
    font-size: 0.8rem !important;
  }
  
  .play-button {
    width: 60px !important;
    height: 60px !important;
    font-size: 20px !important;
  }
}

/* ------------------------------------------------
   Enhanced Hero Section with Advanced Slider
------------------------------------------------ */
.hero-section {
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-text);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>') no-repeat bottom;
  background-size: 100% 100px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  color: var(--primary-text);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  color: var(--secondary-text);
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-image {
  flex: 1;
  text-align: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-heavy);
  filter: drop-shadow(0 10px 30px rgba(3, 187, 223, 0.4));
  transition: var(--transition-smooth);
}

.hero-image img:hover {
  transform: scale(1.05) rotateY(5deg);
  filter: drop-shadow(0 20px 50px rgba(255, 64, 129, 0.6));
}

/* ------------------------------------------------
   Enhanced Page Headers with Original Style
------------------------------------------------ */
.page-header {
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  color: var(--primary-text);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 64, 129, 0.2) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.page-header h1 {
  color: var(--primary-text);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-header p {
  color: var(--secondary-text);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  opacity: 0.95;
}

/* ------------------------------------------------
   Advanced Animation Classes with Delays
------------------------------------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Enhanced staggered animations */
.fade-in-delay-1 { 
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.2s; 
}
.fade-in-delay-2 { 
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.4s; 
}
.fade-in-delay-3 { 
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.6s; 
}
.fade-in-delay-4 { 
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.8s; 
}
.fade-in-delay-5 { 
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 1.0s; 
}

.fade-in-delay-1.visible,
.fade-in-delay-2.visible,
.fade-in-delay-3.visible,
.fade-in-delay-4.visible,
.fade-in-delay-5.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Advanced effects */
.float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* REMOVED: Problematic typewriter class that was hiding mobile text */

/* ------------------------------------------------
   Enhanced Card Design with Original Colors
------------------------------------------------ */
.card-clean {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  border: 2px solid var(--border-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card-clean::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.card-clean:hover::before {
  left: 100%;
}

.card-clean:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: var(--shadow-heavy);
  border-color: var(--highlight-color);
  background: rgba(26, 26, 46, 0.9);
}

.card-clean h3 {
  color: var(--primary-text);
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.card-clean p {
  color: var(--secondary-text);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.card-clean i {
  color: var(--highlight-color);
  text-shadow: 0 0 20px rgba(255, 64, 129, 0.5);
  transition: var(--transition-smooth);
}

.card-clean:hover i {
  transform: scale(1.2) rotateY(360deg);
  text-shadow: 0 0 30px rgba(255, 64, 129, 0.8);
}

/* ------------------------------------------------
   Course Grid with Enhanced Visual Effects
------------------------------------------------ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.course-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  border: 2px solid var(--border-color);
  position: relative;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 64, 129, 0.1), rgba(3, 187, 223, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.course-card:hover::before {
  opacity: 1;
}

.course-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 64, 129, 0.4);
  border-color: var(--highlight-color);
}

.course-card-image {
  width: 100%;
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-text);
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.course-card:hover .course-card-image img {
  transform: scale(1.1);
}

.course-card-content {
  padding: 25px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.course-card-content h3 {
  color: var(--primary-text);
  margin-bottom: 15px;
  font-size: 1.4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.course-card-content p {
  color: var(--secondary-text);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.course-details {
  font-size: 0.9rem;
  color: var(--secondary-text);
}

.course-price {
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ------------------------------------------------
   Enhanced Button Styles with Original Design
------------------------------------------------ */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-text);
  border: none;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-bounce);
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--gradient-secondary);
  transform: translateY(-3px) scale(1.05);
  color: var(--primary-text);
  text-decoration: none;
  box-shadow: 0 15px 30px rgba(245, 87, 108, 0.6);
}

/* CTA Section Button Specific Styling */
.btn-primary.me-3:hover {
  background: linear-gradient(135deg, #7C3AED, #0EA5E9) !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6) !important;
}

.btn-secondary {
  background: transparent;
  color: var(--highlight-color);
  border: 2px solid var(--highlight-color);
  padding: 13px 33px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-bounce);
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:hover {
  color: var(--primary-text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 64, 129, 0.4);
}

/* Special neon button */
.btn-neon {
  background: transparent;
  color: var(--neon-blue);
  border: 2px solid var(--neon-blue);
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  position: relative;
}

.btn-neon:hover {
  background: var(--neon-blue);
  color: var(--bg-gradient-start);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 212, 255, 0.4);
  transform: translateY(-3px);
}

/* ------------------------------------------------
   Enhanced Contact Form with Original Design
------------------------------------------------ */
.contact-form {
  background: var(--card-bg);
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  max-width: 800px;
  margin: 0 auto;
  border: 2px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 64, 129, 0.05) 0%, transparent 70%);
  animation: form-glow 8s ease-in-out infinite;
}

@keyframes form-glow {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.form-group {
  margin-bottom: 30px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--primary-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: var(--input-bg);
  color: var(--primary-text);
}

.form-control:focus {
  outline: none;
  border-color: var(--highlight-color);
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.2), 0 0 20px rgba(255, 64, 129, 0.3);
  background: rgba(26, 26, 46, 0.8) !important;
  color: #ffffff !important;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-control::placeholder {
  color: var(--secondary-text);
  opacity: 0.7;
}

/* ------------------------------------------------
   Enhanced Footer with Original Design
------------------------------------------------ */
.footer {
  background: linear-gradient(135deg, var(--footer-bg) 0%, var(--bg-gradient-start) 100%);
  color: var(--primary-text);
  padding: 80px 0 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 64, 129, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(3, 187, 223, 0.1) 0%, transparent 50%);
  animation: footer-glow 6s ease-in-out infinite alternate;
}

@keyframes footer-glow {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.footer h3 {
  color: var(--primary-text);
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.footer h4 {
  color: var(--secondary-text);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer p {
  color: var(--secondary-text);
  margin-bottom: 30px;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--secondary-text);
  text-decoration: none;
  transition: var(--transition-smooth);
  padding: 8px 16px;
  border-radius: 20px;
  position: relative;
}

.footer-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-accent);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-links a:hover::before {
  opacity: 0.2;
}

.footer-links a:hover {
  color: var(--primary-text);
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--primary-text);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition-bounce);
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-social a:hover {
  background: var(--gradient-secondary);
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 10px 25px rgba(255, 64, 129, 0.4);
}

.footer-copyright {
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
  color: var(--secondary-text);
  opacity: 0.8;
  position: relative;
}

.footer-copyright::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--gradient-accent);
}

/* ------------------------------------------------
   Responsive Design
------------------------------------------------ */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .hero-text h1,
  .hero-text p {
    text-align: center;
  }
  
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .page-header {
    padding: 100px 0 60px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .container-custom {
    padding: 0 15px;
  }
  
  h1, h2, h3, h4, h5, h6, p {
    padding: 0 15px;
  }
  
  .card-clean {
    padding: 25px 20px;
  }
  
  .course-card-content {
    padding: 20px 15px;
  }
}

/* ------------------------------------------------
   CONSOLIDATED MOBILE HERO + CAROUSEL OVERRIDES (FINAL)
   - Single, authoritative set of rules to prevent text cut-off,
   - disable typewriter animation on small screens,
   - improve touch behavior and stacking/z-index conflicts.
   ====================================================== */
@media (max-width: 768px) {
  /* general mobile safety */
  html, body {
    -webkit-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  /* Make carousel behave as flexible vertical flow on small screens */
  .hero-slider,
  #heroCarousel,
  .carousel,
  .carousel-inner,
  .carousel-item {
    height: auto !important;
    min-height: calc(100svh - var(--nav-height, 70px)) !important;
    display: block !important;
    position: relative !important;
    overflow: visible !important;
    touch-action: pan-y !important; /* prefer vertical pan for content, allow swipe JS if present */
    -webkit-overflow-scrolling: touch !important;
  }

  /* Ensure slide background doesn't overflow or shift content */
  .hero-slide-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center !important;
    transform: scale(1.02) !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  /* Strong stacking order so overlay content always sits above background patterns */
  .hero-tech-pattern { z-index: 2 !important; opacity: 0.55 !important; pointer-events: none !important; }
  .hero-slide-bg { z-index: 3 !important; }
  .hero-overlay-content { z-index: 30 !important; position: relative !important; left: 0 !important; transform: none !important; top: auto !important; max-width: 100% !important; width: 100% !important; padding: 0 12px !important; display: flex !important; justify-content: center !important; align-items: center !important; }
  .hero-text-box { z-index: 40 !important; position: relative !important; width: 94% !important; max-width: 96vw !important; padding: 18px !important; border-radius: 14px !important; margin: 0 auto !important; box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important; overflow: visible !important; animation: none !important; transform: none !important; }

  /* Title and description - force wrap, smaller sizes, disable animations that clip width */
  .hero-title,
  #heroCarousel .hero-title,
  .hero-text h1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    hyphens: auto !important;
    font-size: clamp(1rem, 4.2vw, 1.6rem) !important;
    line-height: 1.12 !important;
    margin-bottom: 8px !important;
    padding: 0 4px !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8) !important;
    animation: none !important;
    border-right: none !important;
    max-width: 100% !important;
  }

  .hero-description,
  #heroCarousel .hero-description,
  .hero-text p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    font-size: clamp(0.8rem, 3.2vw, 1rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    padding: 0 4px !important;
    animation: none !important;
    border-right: none !important;
    max-width: 100% !important;
  }

  /* Disable typewriter effect on mobile to avoid truncation */
  .typewriter-text,
  .typewriter,
  .typewriter-effect,
  .typewriter-text * {
    animation: none !important;
    -webkit-animation: none !important;
    white-space: normal !important;
    overflow: visible !important;
    border-right: none !important;
    width: auto !important;
    display: inline !important;
  }

  /* Buttons made full-width, tappable and visible */
  .hero-buttons,
  #heroCarousel .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 12px !important;
  }
  .hero-buttons .btn,
  #heroCarousel .btn {
    width: 92% !important;
    max-width: 320px !important;
    padding: 11px 18px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    text-overflow: clip !important;
    border-radius: 22px !important;
    display: block !important;
    overflow: visible !important;
  }

  /* Prevent oversized hero-character from pushing content off-screen */
  .hero-character,
  .hero-character-img,
  .hero-image img {
    max-width: 48vw !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 12px auto !important;
    position: relative !important;
    transform: none !important;
    z-index: 10 !important;
  }

  /* Indicators & nav should remain visible above overlay */
  .carousel-indicators { z-index: 45 !important; bottom: 18px !important; pointer-events: auto !important; }
  .hero-nav-btn { z-index: 46 !important; pointer-events: auto !important; }

  /* fix padding issues that caused horizontal overflow */
  .carousel-item { padding-left: 8px !important; padding-right: 8px !important; box-sizing: border-box !important; }

  /* accessibility & pointer safety */
  .hero-text-box, .hero-buttons .btn { -webkit-tap-highlight-color: rgba(0,0,0,0.05) !important; }

  /* final safety: remove any lingering transforms/animations that could hide content */
  #heroCarousel .hero-text-box,
  #heroCarousel .hero-title,
  #heroCarousel .hero-description,
  .hero-overlay-content {
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Ultra-small phone tweaks */
@media (max-width: 420px) {
  .hero-title { font-size: clamp(0.95rem, 4.5vw, 1.3rem) !important; line-height: 1.08 !important; }
  .hero-description { font-size: clamp(0.72rem, 3.2vw, 0.9rem) !important; line-height: 1.2 !important; }
  .hero-text-box { padding: 14px !important; border-radius: 12px !important; width: 96% !important; }
  .hero-buttons .btn { padding: 10px 14px !important; font-size: 0.95rem !important; max-width: 260px !important; }
}

/* Emergency override for very small devices (iPhone SE etc.) */
@media (max-width: 360px) {
  .hero-title { font-size: 1rem !important; }
  .hero-description { font-size: 0.78rem !important; }
  .hero-character { display: none !important; } /* hide character if it still causes overflow */
}

/* ------------------------------------------------
   Blog Styles - AI and Creativity Blog Post
------------------------------------------------ */
.blog-featured {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.blog-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 64, 129, 0.1), transparent);
  transition: left 0.8s ease;
}

.blog-featured:hover::before {
  left: 100%;
}

.blog-featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 64, 129, 0.2);
  border-color: rgba(255, 64, 129, 0.3);
}

.blog-hero-image {
  width: 100%;
  height: 300px;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.blog-featured:hover .blog-hero-image {
  transform: scale(1.05);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.blog-category {
  background: linear-gradient(135deg, #ff4081, #e91e63);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-section {
  margin-bottom: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border-left: 4px solid #ff4081;
  transition: all 0.3s ease;
}

.blog-section:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(10px);
}

.blog-section h3 {
  color: #ff4081;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.blog-section h3 i {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #ff4081, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-bottom: 40px;
}

.blog-content-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-content-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Enhanced image responsiveness and fitting */
.blog-image {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.blog-hero-image {
  width: 100%;
  height: 300px;
  border-radius: 15px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* Ensure images are properly loaded */
.blog-image, .blog-hero-image {
  max-width: 100%;
  height: auto;
  min-height: 150px;
}

.blog-content-item:hover .blog-image {
  transform: scale(1.1);
}

.blog-subtitle {
  color: #00d4ff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: left;
}

.blog-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  text-align: left;
  margin: 0;
  padding: 0;
}

.blog-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
}

.blog-nav-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-nav-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .blog-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .blog-featured {
    padding: 25px;
  }
  
  .blog-section {
    padding: 20px;
  }
  
  .blog-navigation {
    flex-direction: column;
    gap: 20px;
  }
  
  .blog-hero-image {
    height: 200px;
  }
  
  .blog-image {
    height: 150px;
  }
  
  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .blog-section h3 {
    font-size: 1.3rem;
    text-align: center;
    flex-direction: column;
    gap: 10px;
  }
  
  .blog-subtitle {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .blog-text {
    font-size: 0.95rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .blog-featured {
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .blog-section {
    padding: 15px;
    margin-bottom: 25px;
  }
  
  .blog-content-item {
    padding: 20px;
  }
  
  .blog-hero-image {
    height: 180px;
    border-radius: 10px;
  }
  
  .blog-image {
    height: 120px;
  }
  
  .blog-nav-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Enhanced Mobile Highlighting and Readability */
@media (max-width: 992px) {
  .blog-section h3 {
    background: linear-gradient(135deg, #ff4081, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 64, 129, 0.5);
  }
  
  .blog-subtitle {
    background: linear-gradient(135deg, #00d4ff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
  }
  
  .blog-text {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 400;
  }
}

/* Ultra Mobile Optimization */
@media (max-width: 480px) {
  .blog-featured h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
  }
  
  .blog-section {
    margin-bottom: 20px;
    padding: 12px;
  }
  
  .blog-content-item {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .blog-hero-image {
    height: 160px;
  }
  
  .blog-image {
    height: 100px;
  }
  
  .blog-meta {
    font-size: 0.8rem;
  }
  
  .blog-category {
    padding: 3px 10px;
    font-size: 0.7rem;
  }
}

/* Additional button responsive styles */
@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    margin-bottom: 10px;
  }
}

/* ================================================
   AI Course Modal Styles
   ================================================ */
.ai-modal .modal-content {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ai-modal .modal-header {
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  color: white;
}

.ai-modal .modal-title {
  color: var(--neon-blue);
  font-weight: 600;
}

.tab-buttons {
  display: flex;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 5px;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
  color: white;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.tab-content {
  display: none;
  color: white;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.course-price h3 {
  color: var(--highlight-color);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0;
}

/* ================================================
   Modern Professional Showcase Styles
   ================================================ */
.modern-showcase {
  position: relative;
  overflow: hidden;
}

.modern-video-slider {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 100px rgba(0, 0, 0, 0.3);
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.video-slide {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.slide-video {
  transition: transform 0.3s ease;
  filter: brightness(0.9);
}

.slide-video:hover {
  filter: brightness(1.1);
}

.video-overlay {
  backdrop-filter: blur(5px);
}

.play-button:hover {
  background: rgba(0, 212, 255, 0.8) !important;
  border-color: #00d4ff !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.nav-btn:hover {
  background: rgba(0, 212, 255, 0.3) !important;
  border-color: #00d4ff !important;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.dot {
  transition: all 0.3s ease !important;
}

.dot:hover {
  background: rgba(0, 212, 255, 0.8) !important;
  transform: scale(1.3) !important;
}

/* Enhanced Responsive Design */
@media (max-width: 1400px) {
  .modern-video-slider {
    height: 450px !important;
  }
  
  .video-overlay h3 {
    font-size: 1.6rem !important;
  }
  
  .video-overlay p {
    font-size: 0.95rem !important;
  }
}

@media (max-width: 1200px) {
  .modern-video-slider {
    height: 400px !important;
    border-radius: 20px !important;
  }
  
  .slider-track {
    width: 500% !important; /* 5 videos visible */
  }
  
  .video-slide {
    flex: 0 0 20% !important; /* 100% / 5 */
  }
  
  .video-overlay {
    padding: 30px !important;
  }
  
  .video-overlay h3 {
    font-size: 1.4rem !important;
  }
  
  .play-button {
    width: 70px !important;
    height: 70px !important;
    font-size: 20px !important;
  }
}

@media (max-width: 992px) {
  .modern-video-slider {
    height: 350px !important;
  }
  
  .slider-track {
    width: 400% !important; /* 4 videos visible */
  }
  
  .video-slide {
    flex: 0 0 25% !important; /* 100% / 4 */
  }
  
  .video-overlay {
    padding: 25px !important;
  }
  
  .video-overlay h3 {
    font-size: 1.3rem !important;
  }
  
  .video-overlay p {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 768px) {
  .modern-video-slider {
    height: 300px !important;
    border-radius: 15px !important;
  }
  
  .slider-track {
    width: 300% !important; /* 3 videos visible */
  }
  
  .video-slide {
    flex: 0 0 33.333% !important; /* 100% / 3 */
  }
  
  .video-overlay {
    padding: 20px !important;
  }
  
  .video-overlay h3 {
    font-size: 1.2rem !important;
  }
  
  .video-overlay p {
    font-size: 0.85rem !important;
  }
  
  .play-button {
    width: 60px !important;
    height: 60px !important;
    font-size: 18px !important;
  }
  
  .nav-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 576px) {
  .modern-video-slider {
    height: 250px !important;
    margin: 0 -15px !important;
    border-radius: 10px !important;
  }
  
  .slider-track {
    width: 200% !important; /* 2 videos visible */
  }
  
  .video-slide {
    flex: 0 0 50% !important; /* 100% / 2 */
  }
  
  .video-overlay {
    padding: 15px !important;
  }
  
  .video-overlay h3 {
    font-size: 1.1rem !important;
  }
  
  .video-overlay p {
    font-size: 0.8rem !important;
  }
  
  .play-button {
    width: 50px !important;
    height: 50px !important;
    font-size: 16px !important;
  }
  
  .nav-btn {
    width: 35px !important;
    height: 35px !important;
    font-size: 12px !important;
    left: 10px !important;
    right: 10px !important;
  }
  
  .progress-dots {
    bottom: 10px !important;
  }
  
  .dot {
    width: 8px !important;
    height: 8px !important;
  }
}

/* Animation Classes */
.slide-in {
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-scale {
  animation: fadeScale 0.5s ease-out;
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Smooth Scrolling for Touch Devices */
.modern-video-slider {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Performance Optimizations */
.slider-track {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.slide-video {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Enhanced Course Card Styles */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-icon {
  text-align: center;
}

.course-highlights {
  margin-bottom: 20px;
}

.course-card-content h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 15px;
}

.course-card-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

/* Advanced Typography Effects */
.typewriter-text {
  animation: typewriterEffect 3s steps(40, end), blinkCursor 0.8s infinite;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid transparent;
  animation-fill-mode: forwards;
}

@keyframes typewriterEffect {
  from {
    width: 0;
    border-right-color: #00d4ff;
  }
  to {
    width: 100%;
    border-right-color: transparent;
  }
}

@keyframes blinkCursor {
  from, to {
    border-right-color: transparent;
  }
  50% {
    border-right-color: #00d4ff;
  }
}

/* Staggered entrance effects */
.fade-in {
  animation: fadeInUp 1s ease-out;
  animation-fill-mode: backwards;
}

.fade-in-delay-1 {
  animation: fadeInUp 1s ease-out 0.3s;
  animation-fill-mode: backwards;
}

.fade-in-delay-2 {
  animation: fadeInUp 1s ease-out 0.6s;
  animation-fill-mode: backwards;
}

.fade-in-delay-3 {
  animation: fadeInUp 1s ease-out 0.9s;
  animation-fill-mode: backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Perfect text alignment */
.content-center {
  text-align: center;
}

.text-center {
  text-align: center !important;
}

/* Enhanced button styling */
.btn-secondary, .course-filter {
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-secondary:hover, .course-filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.course-filter.active {
  background: linear-gradient(135deg, #00d4ff, #8B5CF6);
  color: white;
  border: none;
}

/* Mobile Typography Adjustments */
@media (max-width: 768px) {
  .typewriter-text {
    white-space: normal;
    overflow: visible;
    border-right: none;
    animation: fadeInUp 1s ease-out;
    background: linear-gradient(135deg, #00d4ff, #8B5CF6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }
  
  .page-header {
    padding: 120px 0 80px !important;
  }
  
  .page-header h1 {
    background: linear-gradient(135deg, #00d4ff, #8B5CF6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: clamp(2.5rem, 8vw, 4rem) !important;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .content-center h2 {
    background: linear-gradient(135deg, #00d4ff, #8B5CF6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: clamp(2rem, 6vw, 2.8rem) !important;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  }
  
  .fade-in-delay-1 {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: clamp(1rem, 3vw, 1.2rem) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  .course-filter {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    color: #00d4ff !important;
    font-weight: 600 !important;
    text-shadow: none !important;
  }
  
  .course-filter.active {
    background: linear-gradient(135deg, #00d4ff, #8B5CF6) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4) !important;
  }
  
  .course-card-content h3 {
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  }
  
  .skill-tag {
    background: rgba(0, 212, 255, 0.15) !important;
    color: #00d4ff !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    font-weight: 600 !important;
  }
}

/* Mobile responsive fixes for hero / slider text */
.slider-content,
.hero .slider-content,
.slider-text,
.hero,
.hero-section,
.banner,
.slider-item {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  min-height: 60vh !important;
  padding: 25px 18px !important;
}

/* Center all heading and text elements */
.hero h1,
.hero h2,
.hero h3,
.hero .title,
.hero .subtitle,
.hero .hero__title,
.hero .hero__subtitle,
.slider-title,
.slider-desc,
.hero-desc,
.slider-content h1,
.slider-content h2,
.slider-content h3,
.slider-content p {
  text-align: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Center buttons */
.hero .btn,
.slider .btn,
.cta-button,
.start-learning-btn {
  display: inline-block !important;
  margin: 10px auto !important;
  text-align: center !important;
}

/* Center the entire hero content box */
.slider-content,
.hero .slider-content,
.slider-text,
.hero {
  box-sizing: border-box;
  padding: 25px 18px;
  max-width: 92%;
  width: 100%;
  margin-inline: auto;
  
  /* Center the entire box */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white; /* or your content background color */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* If you want to keep the text centered too */
.hero__title,
.hero .title,
.slider .title,
.hero-title,
.slider-title,
.hero__subtitle,
.hero .subtitle,
.slider .subtitle,
.hero-desc,
.slider-desc {
  text-align: center;
  width: 100%;
}

/* Make sure the hero section has relative positioning */
.hero-section,
.hero,
.slider {
  position: relative;
  min-height: 100vh;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .slider-content,
  .hero .slider-content {
    max-width: 85%;
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .slider-content,
  .hero .slider-content {
    max-width: 90%;
    padding: 25px 15px;
  }
}