:root {
  /* Primary Brand Colors - More Vibrant HSL */
  --primary-hsl: 265, 85%, 45%;
  --primary: hsla(var(--primary-hsl), 1);
  --primary-dark: #3a0ca3;
  --primary-light: hsla(var(--primary-hsl), 0.1);
  --secondary: #0f172a;
  --accent: #4cc9f0;

  /* Haraka Integration */
  --haraka-blue: #2563eb;

  /* Neutral Palette */
  --light: #f8fafc;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --dark: #020617;

  /* Glassmorphism & UI Tokens */
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-indigo: 0 10px 30px -10px hsla(var(--primary-hsl), 0.3);

  /* Animation & Layout */
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--secondary);
  background-color: var(--light);
  overflow-x: hidden;
  padding-top: 80px;
  /* Prevent content copying */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Re-enable selection for inputs, textareas and editable elements */
input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Mobile adjustment for body padding */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 65px;
  }
}

h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.8rem;
  color: var(--secondary);
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 5px;
}

.section-title p {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 700px;
  margin: 1.5rem auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 16px 40px;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  gap: 12px;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-indigo);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px -5px hsla(var(--primary-hsl), 0.4);
}

.btn-secondary {
  background: white;
  border: 1px solid var(--light-gray);
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--light);
  border-color: var(--primary);
  color: var(--primary);
}

/* HEADER MARKETPLACE STYLE */
.top-bar {
  background: linear-gradient(90deg, var(--haraka-blue), #1e40af);
  color: white;
  padding: 12px 0;
  font-size: 0.9rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1003;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.haraka-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.haraka-badge i {
  font-size: 1.1rem;
}

.partner-label {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Navigation principale */
.main-header {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1002;
  transition: var(--transition);
}

.main-header.scrolled {
  top: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.vendor-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.vendor-logo i {
  font-size: 1.6rem;
}

.haraka-powered {
  font-size: 0.85rem;
  color: var(--gray);
  border-left: 1px solid var(--light-gray);
  padding-left: 20px;
}

.haraka-powered span {
  color: var(--haraka-blue);
  font-weight: 700;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.6rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
  background: var(--light-gray);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 35px;
  position: relative;
}

.nav-links a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  padding: 8px 0;
  position: relative;
  font-size: 1.05rem;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 4px;
  background: var(--primary);
  border-radius: 4px;
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover:after {
  width: 20px;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at top right, hsla(var(--primary-hsl), 0.8), transparent),
    radial-gradient(circle at bottom left, var(--secondary), transparent),
    url('images/hero.jpeg') center/cover no-repeat;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.hero:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--light), transparent);
}

.hero-content {
  max-width: 900px;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 2rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* Stats Section */
.stats-section {
  background: white;
  padding: 60px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 30px;
  background: var(--light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-10px);
  background: white;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-text {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 600;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 15px;
}

.about-text h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.vision-mission {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--primary-light), white);
  border-radius: var(--border-radius);
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow);
}

.vision-mission h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.value-card {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.value-icon {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.value-card h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* Programs Section */
.programs-section {
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.programs-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="%23ffffff" opacity="0.2" d="M0,0 L100,0 L100,100 Z"/></svg>');
  background-size: cover;
  pointer-events: none;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.program-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--light-gray);
}

.program-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg), var(--shadow-indigo);
  border-color: var(--primary-light);
}

.program-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.program-card:hover .program-img {
  transform: scale(1.05);
}

.program-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.program-content h3 {
  color: var(--secondary);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.program-list {
  list-style: none;
  margin-top: 20px;
  flex-grow: 1;
}

.program-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
  position: relative;
  padding-left: 30px;
  display: flex;
  align-items: center;
}

.program-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.program-price {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed var(--light-gray);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.3rem;
  text-align: center;
}

/* Diplomas Section */
.diplomas-section {
  background: white;
  position: relative;
}

.diplomas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.diploma-card {
  background: white;
  padding: 35px 25px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

.diploma-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.diploma-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
  background: var(--primary-light);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.diploma-card:hover i {
  background: var(--primary);
  color: white;
  transform: rotateY(180deg);
}

.diploma-card h3 {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.diploma-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.5rem;
  margin-top: 15px;
}

/* Registration Section */
.registration-section {
  background: linear-gradient(135deg, var(--secondary), #1a2530);
  color: white;
  position: relative;
}

.registration-section .section-title h2 {
  color: white;
}

.registration-section .section-title h2:after {
  background: white;
}

.registration-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
}

.registration-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.registration-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.registration-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.registration-icon {
  background: var(--primary);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.registration-details h3 {
  color: white;
  margin-bottom: 8px;
}

.registration-details p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.registration-form-container {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
}

.registration-form-container h3 {
  color: var(--secondary);
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--secondary);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.dress-code {
  margin-top: 40px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  border-left: 5px solid var(--primary);
}

.dress-code h3 {
  margin-bottom: 15px;
  color: white;
}

/* Testimonials Section */
.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  display: none;
  animation: fadeIn 0.8s ease;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide:before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 6rem;
  color: var(--primary);
  opacity: 0.15;
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 800;
  color: var(--secondary);
  font-size: 1.2rem;
}

.testimonial-role {
  color: var(--gray);
  font-size: 1rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* WhatsApp Share Float */
.whatsapp-share-float {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: #128C7E;
  /* WhatsApp dark green */
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(18, 140, 126, 0.3);
  z-index: 1000;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-share-float:hover {
  transform: scale(1.1) rotate(-15deg);
  box-shadow: 0 8px 25px rgba(18, 140, 126, 0.4);
  background: #075E54;
  /* Darker WhatsApp green on hover */
}

/* Mobile optimizations for FABs */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }

  .whatsapp-share-float {
    bottom: 90px;
    right: 25px;
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }

  .whatsapp-share-float {
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Safe area support for modern mobile devices */
@supports (padding: max(0px)) {

  .whatsapp-float,
  .whatsapp-share-float {
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    right: max(20px, env(safe-area-inset-right, 20px));
  }

  @media (max-width: 768px) {

    .whatsapp-float,
    .whatsapp-share-float {
      bottom: max(15px, env(safe-area-inset-bottom, 15px));
      right: max(15px, env(safe-area-inset-right, 15px));
    }

    .whatsapp-share-float {
      bottom: max(80px, calc(env(safe-area-inset-bottom, 15px) + 65px));
    }
  }
}

/* Footer */
.marketplace-footer {
  background: var(--dark);
  color: white;
  padding: 80px 0 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.4rem;
  position: relative;
  padding-bottom: 15px;
}

.footer-section h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: white;
  padding-left: 10px;
}

.back-to-marketplace {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--haraka-blue);
  text-decoration: none;
  font-weight: 700;
  margin-top: 25px;
  padding: 12px 25px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.back-to-marketplace:hover {
  background: rgba(37, 99, 235, 0.2);
  transform: translateX(10px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Table Styles */
.fees-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.fees-table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: left;
  padding: 20px;
  font-weight: 700;
  font-size: 1.1rem;
}

.fees-table td {
  padding: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.fees-table tr:nth-child(even) {
  background: var(--primary-light);
}

.fees-table tr:hover {
  background: rgba(106, 17, 203, 0.1);
}

.highlight {
  background: rgba(106, 17, 203, 0.1);
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  background: var(--primary);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: white;
}

.contact-details h3 {
  color: var(--secondary);
  margin-bottom: 8px;
}

.contact-details p {
  color: var(--gray);
  margin-bottom: 0;
}

/* Video Presentation Section - Enhanced */
.video-section {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.video-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(106, 17, 203, 0.05)"/></svg>');
  background-size: cover;
  opacity: 0.7;
  z-index: 1;
}

.video-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 0 30px rgba(106, 17, 203, 0.2);
  background: linear-gradient(145deg, #000, #1a1a1a);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 8px solid white;
}

.video-container:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25),
    0 0 0 2px rgba(255, 255, 255, 0.9) inset,
    0 0 40px rgba(106, 17, 203, 0.3);
}

.video-container iframe {
  width: 100%;
  height: 620px;
  display: block;
  border: none;
  border-radius: 12px;
}

/* Style for the video section heading and text */
.video-section>h3 {
  text-align: center;
  font-size: 2.8rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
  width: 100%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.video-section>h3:before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
}

.video-section>h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(106, 17, 203, 0.3);
}

.video-section>h3 i {
  margin-right: 20px;
  color: var(--primary);
  font-size: 2.5rem;
  vertical-align: middle;
  text-shadow: 0 2px 4px rgba(106, 17, 203, 0.2);
}

.video-section>p:not(.video-caption) {
  text-align: center;
  font-size: 1.3rem;
  color: var(--gray);
  max-width: 800px;
  margin: 0 auto 4rem;
  line-height: 1.8;
  font-weight: 500;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.video-caption {
  text-align: center;
  margin-top: 25px;
  font-size: 1.1rem;
  color: var(--gray);
  font-style: italic;
  position: relative;
  z-index: 2;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary);
}

.video-caption i {
  color: var(--primary);
  margin-right: 10px;
}

.video-title {
  text-align: center;
  margin-bottom: 3rem;
}

.video-title h2 {
  font-size: 2.8rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.video-title h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 5px;
}

.video-title p {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.video-player {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: #000;
  transition: var(--transition);
}

.video-player:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.video-player video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--border-radius);
  cursor: pointer;
}

.video-player:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
  transform: scale(0.9);
  -webkit-tap-highlight-color: transparent;
}

.play-button:hover {
  background: white;
  transform: scale(1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-caption {
  text-align: center;
  margin-top: 2rem;
  color: var(--gray);
  font-size: 1rem;
  font-style: italic;
}

/* Video controls for mobile */
.video-player.mobile-play .video-overlay {
  opacity: 1 !important;
}

/* Music Player Styles */
.music-section {
  position: relative;
}

.music-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(106, 17, 203, 0.03)"/></svg>');
  background-size: cover;
  opacity: 0.5;
}

#lyricsContainer {
  scroll-behavior: smooth;
}

.lyrics-line {
  padding: 8px 15px;
  margin: 5px 0;
  border-radius: 6px;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.lyrics-line.active {
  background: rgba(106, 17, 203, 0.1);
  color: var(--primary-dark);
  opacity: 1;
  font-weight: 600;
  border-left: 4px solid var(--primary);
  padding-left: 11px;
}

.lyrics-line.past {
  color: var(--gray);
}

.lyrics-line.future {
  color: var(--dark);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .registration-content {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .video-title h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    /* Adjusted to match body padding-top */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 15px 0;
    display: block;
    width: 100%;
  }

  .hero {
    margin-top: 0;
    min-height: calc(100vh - 80px);
    padding-top: 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
  }

  .hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
    padding: 16px 20px;
    font-size: 1rem;
  }

  .section {
    padding: 70px 0;
  }

  .section-title {
    margin-bottom: 3rem;
  }

  .section-title h2 {
    font-size: 1.9rem;
    padding-bottom: 10px;
  }

  .section-title h2:after {
    width: 80px;
    height: 4px;
  }

  .section-title p {
    font-size: 1.1rem;
    padding: 0 15px;
  }

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

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .program-card {
    margin-bottom: 20px;
  }

  .program-img {
    height: 200px;
  }

  .program-content {
    padding: 25px 20px;
  }

  .program-content h3 {
    font-size: 1.4rem;
  }

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

  .diploma-card {
    padding: 25px 20px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-text h3 {
    font-size: 1.8rem;
  }

  .founder-image {
    text-align: center;
  }

  .founder-photo {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
  }

  /* Fix hero image overflow */
  .hero {
    background-attachment: scroll !important;
    /* Remove fixed background on mobile */
  }

  /* Founder section image fixes */
  .founder-section .about-content {
    display: flex;
    flex-direction: column;
  }

  .founder-image {
    order: 1;
    margin-bottom: 30px;
  }

  .founder-section .about-text {
    order: 2;
  }

  @media (max-width: 768px) {
    .hero {
      background-size: cover !important;
      background-position: center center !important;
      background-attachment: scroll !important;
    }

    .founder-image {
      margin-bottom: 30px;
      text-align: center;
    }

    .founder-photo {
      max-width: 70%;
      margin: 0 auto;
      display: block;
      height: auto;
      border-radius: 12px;
    }

    .photo-caption {
      margin-top: 10px;
      font-size: 0.9rem;
      color: var(--gray);
    }

    /* Fix all section images */
    .program-img,
    .founder-photo,
    .navbar-logo {
      max-width: 100%;
      height: auto;
    }

    /* Ensure images don't overflow containers */
    .program-card,
    .founder-image,
    .vendor-logo {
      overflow: hidden;
    }
  }

  @media (max-width: 576px) {
    .hero {
      padding: 30px 15px !important;
      background-size: cover !important;
      background-position: center center !important;
      min-height: 80vh;
    }

    .founder-photo {
      max-width: 85%;
    }

    /* Fix program images */
    .program-img {
      height: 180px;
      object-fit: cover;
      width: 100%;
    }

    /* Fix all images to prevent overflow */
    img:not(.navbar-logo) {
      max-width: 100%;
      height: auto;
    }

    /* Specific fix for founder section layout */
    .founder-section .about-content {
      gap: 20px;
    }

    .founder-image {
      margin-bottom: 20px;
    }

    .photo-caption {
      font-size: 0.85rem;
    }

    /* Ensure images in about section don't overflow */
    .about-content img {
      max-width: 100%;
      height: auto;
      display: block;
    }
  }

  /* Additional mobile image optimization */
  @media (max-width: 400px) {
    .founder-photo {
      max-width: 95%;
    }

    .hero {
      min-height: 70vh;
      padding: 20px 10px !important;
    }

    .program-img {
      height: 160px;
    }
  }

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

  .stat-card {
    padding: 25px 15px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .registration-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .registration-form-container {
    padding: 25px 20px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-item {
    padding: 20px 15px;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .logo-container {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .haraka-powered {
    display: none;
  }

  .navbar-logo {
    height: 40px;
    max-width: 150px;
  }

  .fees-table {
    display: block;
    overflow-x: auto;
    font-size: 0.9rem;
  }

  .video-section {
    padding: 60px 0;
  }

  .video-container iframe {
    height: 250px;
  }

  .play-button {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .video-player {
    margin: 0 10px;
  }

  .music-player-container {
    margin: 0 15px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: calc(100vh - 80px);
    padding: 40px 15px;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .hero-buttons .btn {
    max-width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  .section-title h2 {
    font-size: 1.7rem;
    padding-bottom: 8px;
  }

  .section-title h2:after {
    width: 60px;
    height: 3px;
  }

  .section-title p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    padding: 20px 15px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-text {
    font-size: 1rem;
  }

  .programs-grid {
    gap: 20px;
  }

  .program-card {
    margin-bottom: 15px;
  }

  .program-img {
    height: 180px;
  }

  .program-content {
    padding: 20px 15px;
  }

  .program-content h3 {
    font-size: 1.3rem;
  }

  .program-list li {
    padding: 10px 0 10px 25px;
    font-size: 0.95rem;
  }

  .diplomas-grid {
    gap: 15px;
  }

  .diploma-card {
    padding: 20px 15px;
  }

  .diploma-card i {
    width: 60px;
    height: 60px;
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

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

  .diploma-price {
    font-size: 1.3rem;
  }

  .about-text h3 {
    font-size: 1.6rem;
  }

  .vision-mission {
    padding: 20px 15px;
    margin-top: 2rem;
  }

  .values-grid {
    gap: 15px;
  }

  .value-card {
    padding: 20px 15px;
  }

  .value-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .value-card h4 {
    font-size: 1.2rem;
  }

  .registration-content {
    gap: 20px;
  }

  .registration-item {
    padding: 20px 15px;
    gap: 15px;
  }

  .registration-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .registration-form-container {
    padding: 20px 15px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-control {
    padding: 12px;
    font-size: 16px;
    /* Prevents iOS zoom on focus */
  }

  textarea.form-control {
    min-height: 100px;
  }

  .contact-item {
    padding: 20px 15px;
  }

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

  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }

  .video-container iframe {
    height: 200px;
  }

  .video-caption {
    font-size: 0.9rem;
    margin-top: 1rem;
  }

  .music-player-container {
    margin: 0 10px;
  }

  .top-bar {
    font-size: 0.75rem;
    padding: 8px 0;
  }

  .nav-container {
    padding: 12px 0;
  }

  .navbar-logo {
    height: 35px;
    max-width: 120px;
  }

  .mobile-menu-btn {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .btn {
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  .container {
    padding: 0 15px;
  }

  /* Fix for very small screens */
  html {
    font-size: 15px;
  }

  body {
    padding-top: 70px;
    /* Reduced for smaller screens */
  }

  .main-header {
    padding: 0 10px;
  }
}

/* Mobile optimization for touch */
@media (hover: none) and (pointer: coarse) {

  .btn,
  .mobile-menu-btn,
  .play-button,
  .whatsapp-float {
    min-height: 44px;
    /* Apple's recommended minimum touch target */
  }

  .nav-links a {
    padding: 15px 0;
    /* Larger touch target for navigation */
    display: block;
    width: 100%;
    text-align: center;
  }

  .form-control,
  select,
  textarea {
    font-size: 16px;
    /* Prevents iOS zoom on focus */
  }

  .program-list li:before {
    font-size: 1.5rem;
    /* Larger checkmarks for mobile */
  }

  .value-card,
  .diploma-card,
  .stat-card {
    padding: 25px 20px;
  }

  .video-player {
    cursor: pointer;
    /* Make video player more touch-friendly */
  }

  .video-player .video-overlay {
    opacity: 1;
    /* Always show overlay on mobile for better UX */
  }
}

/* Global Animations */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.reveal-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Prevent text selection on interactive elements */
.btn,
.mobile-menu-btn,
.play-button,
.whatsapp-float,
.nav-links a {
  user-select: none;
  -webkit-user-select: none;
}