:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #7c3aed;
  --accent: #ff6b35;
  --dark: #1f2937;
  --light: #f9fafb;
  --gray: #6b7280;
  --text-dark: #111827;
  --text-light: #f8f9fa;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.main-background {
  background-color: var(--light);
  width: 100%;
  min-height: 76vh;
  padding: 20px 0;
}

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

.level-h1 {
  color: #1a237e;
  text-align: center;
  justify-content: center;
  margin-bottom: 40px;
  font-size: 36px;
  font-weight: 500;
}

.levels-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.level-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.level-card:hover {
  transform: translateY(-5px);
}

.level-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 40px;
  display: block;
}

.level1-img {
  background-image: url('assets/Dual-level-1 2.png');
}

.level2-img {
  background-image: url('assets/Dual-level-2 2.png');
}

.level-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-dark);
  margin-left: 60px;
  z-index: 2;
}

#level2 .level-text {
  left: auto;
  right: 0;
  width: 50%;
  margin-left: 500px;
  padding: 30px;
}

.level-h2 {
  color: var(--text-dark);
  padding-top: 5px;
  margin-bottom: 20px;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 10px;
}

.level-h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

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

li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  line-height: 1.5;
  color: var(--text-dark);
}

li::before {
  content: '•';
  color: var(--text-dark);
  font-size: 1.5em;
  position: absolute;
  left: 0;
  top: -7px;
}

/* ✅ MOBILE RESPONSIVE FIXES */
@media (max-width: 768px) {
  #level2 .level-text {
    width: 100%;
    padding: 20px;
    margin-left: 0 !important;
    right: 0;
    left: 0;
    position: relative;
  }
}

@media (max-width: 600px) {
  .levels-container {
    flex-direction: column;
    gap: 20px;
  }

  .level-card {
    flex-direction: column;
    width: 100%;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }

  .level1-img {
    background-image: url('assets/Global-Skill-Olympiads-website-Mobile-version-2-2.png');
  }

  .level2-img {
    background-image: url('assets/Global-Skill-Olympiads-website-Mobile-version-3-2.png');
  }

  .level1-img,
  .level2-img {
    width: 100%;
    min-height: 250px;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    display: block;
  }
  .level-image {
  width: 100%;
  height: 650px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  display: block;
}

  .level-text {
    position: relative;
    width: 100%;
    margin-left: 0 !important;
    margin-top: 240px;
    padding: 20px;
    box-sizing: border-box;
    background-color: transparent;
    color: var(--text-dark);
    z-index: 2;
  }

  #level2 .level-text {
    margin-left: 0 !important;
    width: 100%;
  }

  .level-h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  li {
    font-size: 0.95rem;
    padding-left: 20px;
    line-height: 1.5;
  }

  li::before {
    content: '•';
    color: var(--accent);
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: -3px;
  }
}

@media (max-width: 480px) {
  #level2 .level-text {
    width: 100%;
    margin-top: 270px;
    left: 0;
    right: 0;
    background: transparent;
  }
}