#courses > h3 { 
  text-align:center; 
  font-size:1.7rem; 
  margin-bottom:16px; 
  color: #000;
  font-weight: 700;
}
.course-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:18px; }
.course-card { 
  position:relative; 
  border:1px solid #e5e7eb; 
  border-radius:14px; 
  background: #ffffff;
  overflow:hidden; 
  min-height:160px; 
  transition: all 0.3s ease;
}
.course-card:hover {
  transform: translateY(-5px);
  background: #f0f9ff;
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
}
.course-card:hover::after {
  background: #06b6d4;
}
.course-card.testdaf:hover::after {
  background: #dc2626;
}
.course-card.testdaf:hover {
  background: #fef2f2;
  border-color: #dc2626;
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.2);
}
.course-card::before { content:""; position:absolute; inset:0; background:transparent; }
.course-body { 
  position:relative; 
  z-index:1; 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  justify-content:center; 
  gap:12px; 
  padding:32px 20px; 
  text-align:center; 
}
.course-body h4 { 
  margin:0; 
  font-size:1.4rem; 
  font-weight:700; 
  color:#1f2937; 
  letter-spacing:-0.02em;
  line-height:1.3;
}
.course-body p { 
  margin:0; 
  color:#6b7280; 
  font-size:0.95rem; 
  font-weight:500;
  line-height:1.5;
}
.course-hover { position:absolute; left:0; right:0; bottom:-56px; display:flex; align-items:center; justify-content:center; padding:10px; transition:bottom .22s ease; background:linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.95)); }
.course-card:hover .course-hover { bottom:0; }
.learn-more { display:inline-block; background:#000000; color:#fff; padding:8px 12px; border-radius:999px; text-decoration:none; transition: all 0.3s ease; }
.learn-more:hover { background:#333333; }

/* German flag color accents per level */
.course-card.a1::after { content:""; position:absolute; top:0; left:0; right:0; height:4px; background:#000000; transition: all 0.3s ease; }
.course-card.a2::after { content:""; position:absolute; top:0; left:0; right:0; height:4px; background:#dd0000; transition: all 0.3s ease; }
.course-card.b1::after { content:""; position:absolute; top:0; left:0; right:0; height:4px; background:#ffce00; transition: all 0.3s ease; }
.course-card.b2::after { content:""; position:absolute; top:0; left:0; right:0; height:4px; background:#000000; transition: all 0.3s ease; }
.course-card.c1::after { content:""; position:absolute; top:0; left:0; right:0; height:4px; background:#dd0000; transition: all 0.3s ease; }
.course-card.testdaf::after { content:""; position:absolute; top:0; left:0; right:0; height:4px; background:#ffce00; transition: all 0.3s ease; }
#featured-courses > h3, #reviews > h3 { 
  text-align:center; 
  font-size:1.6rem; 
  margin-bottom:22px; 
  color: #000;
  font-weight: 700;
}
.reviews-viewport { overflow:hidden; }
.reviews-track { display:flex; gap:16px; will-change:transform; }
.review { 
  flex:0 0 300px; 
  border:1px solid #e5e7eb; 
  border-radius:14px; 
  background: #ffffff;
  padding:16px; 
  box-shadow:0 4px 20px rgba(0, 0, 0, 0.08); 
  transition: all 0.3s ease;
}
.review:hover {
  transform: translateY(-5px);
  background: #fef3c7;
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
}
.review-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.avatar { width:36px; height:36px; border-radius:50%; background:rgba(37,99,235,0.12); color:#0b1a3a; display:flex; align-items:center; justify-content:center; font-weight:700; }
.review .meta { display:flex; flex-direction:column; line-height:1.2; }
.review .stars span { color:#f59e0b; letter-spacing:1px; }
.review p { margin:0; color:var(--text); }
.hscroll { display:grid; grid-auto-flow:column; grid-auto-columns: minmax(240px, 1fr); gap:16px; overflow-x:auto; padding:6px 2px; scroll-snap-type:x mandatory; }
.hscroll::-webkit-scrollbar { height: 10px; }
.hcard { border:1px solid #e6e6e6; border-radius:12px; padding:16px; background:#fff; scroll-snap-align:start; box-shadow:0 2px 10px rgba(0,0,0,0.04); }
.hcard h4 { margin:4px 0 6px; }
.hcard p { margin:0 0 10px; color:var(--muted); }
.hcard.quote { background:linear-gradient(180deg, #fff, #f8fbff); }

/* Simple, clean, responsive layout */
:root { --bg:linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%); --text:#111827; --muted:#6b7280; --brand:#2563eb; --gold:#06b6d4; --dark:#0b1a3a; --accent:#eaf2ff; --german-black:#000000; --german-red:#dd0000; --german-gold:#ffce00; }
* { box-sizing: border-box; }
body { 
  margin:0; 
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; 
  color:var(--text); 
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.08) 0%, 
    rgba(0, 0, 0, 0.08) 33%, 
    rgba(221, 0, 0, 0.08) 33%, 
    rgba(221, 0, 0, 0.08) 66%, 
    rgba(255, 206, 0, 0.08) 66%, 
    rgba(255, 206, 0, 0.08) 100%);
  background-attachment: fixed;
  line-height:1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
header { 
  position: sticky; 
  top: 0; 
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(10px); 
  border-bottom: 1px solid rgba(0, 0, 0, 0.08); 
  z-index: 1000; 
}
.scrolled header, header.scrolled { 
  background: rgba(255, 255, 255, 0.98); 
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); 
  border-bottom-color: rgba(0, 0, 0, 0.12); 
}
.flagbar { height:4px; background:linear-gradient(90deg, var(--german-black) 33.33%, var(--german-red) 33.33% 66.66%, var(--german-gold) 66.66%); }
/* Container styles */
.container { 
  width: min(1400px, 100%); 
  margin: 0 auto; 
  padding: 0 1.5rem;
  max-width: 100vw;
  overflow-x: hidden;
}
.topbar { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 20px; 
  padding: 16px 2rem; 
  position: relative; 
}
.top-actions { display:flex; align-items:center; gap:16px; margin-left:auto; }
.brand { display:flex; align-items:center; gap:12px; }
.brand img { display:block; width:56px; height:56px; border-radius:50%; object-fit:cover; }
.brand h1 { margin:0; font-size:1.25rem; font-weight:700; letter-spacing:0.2px; color:#1f2937; }
.lang { display:flex; align-items:center; gap:8px; font-size:0.95rem; }

/* Custom Select Styles */
.custom-select {
  position: relative;
  min-width: 140px;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  min-width: 140px;
  height: 40px;
}

.select-trigger:hover {
  border-color: #dd0000;
  box-shadow: 0 6px 20px rgba(221, 0, 0, 0.15);
  transform: translateY(-1px);
}

.select-arrow {
  color: #dd0000;
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
}

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.custom-select.open .select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-option {
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}


.select-option:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.select-option:hover {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dd0000;
  transform: translateX(3px);
}


.select-option.active {
  background: linear-gradient(135deg, #dd0000, #b80000);
  color: #fff;
  font-weight: 700;
}
.flag-img { display:none; }
.menu { display:none; background:transparent; border:0; padding:6px; cursor:pointer; }
.menu span { display:block; width:22px; height:2px; background:#1f2937; margin:5px 0; border-radius:2px; }
.nav-links { 
  display: flex; 
  gap: 8px; 
  padding: 12px 0; 
  align-items: center;
  justify-content: flex-start;
}
.nav-links a { 
  position: relative; 
  text-decoration: none; 
  color: #374151; 
  padding: 10px 16px; 
  border-radius: 8px; 
  font-weight: 500; 
  font-size: 0.95rem;
  background: transparent; 
  transition: all 0.3s ease;
  white-space: nowrap;
}
.nav-links a:hover { 
  background: rgba(221, 0, 0, 0.1); 
  color: #dd0000; 
  transform: translateY(-1px);
}
.nav-links a.active { 
  background: #dd0000; 
  color: white; 
  box-shadow: 0 2px 8px rgba(221, 0, 0, 0.3);
}

.hero { 
  position:relative; 
  padding:72px 0; 
  min-height:90vh; 
  color:#ffffff; 
  background: linear-gradient(135deg, 
    #000000 0%, 
    #dd0000 33%, 
    #ffce00 66%, 
    #000000 100%);
  background-size: 400% 400%;
  animation: germanFlagShift 8s ease infinite;
  overflow:hidden; 
}
.hero::before { 
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}
.hero::after { 
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
  z-index: 1;
}
.hero .container { position:relative; z-index:3; }

/* Course Background Section */
.course-background {
  display: none;
}

.course-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.course-info {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeInScale 1.2s ease 0.5s both;
}

.course-info h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  background: linear-gradient(45deg, #fff, #f0f4ff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInUp 1s ease 0.7s both;
}

.course-info p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0 0 2.5rem;
  color: #f0f4ff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  animation: slideInUp 1s ease 0.9s both;
}

.course-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 0 0 2.5rem;
  animation: slideInUp 1s ease 1.1s both;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: #e0e7ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.course-info .actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 1s ease 1.3s both;
}

.course-info .cta {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.course-info .cta::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;
}

.course-info .cta:hover::before {
  left: 100%;
}

.course-info .cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.course-info .cta.secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}

.course-info .cta.secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}

/* Floating Elements */
.hero .floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero .floating-shapes::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero .floating-shapes::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 15%;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border-radius: 20%;
  animation: float 8s ease-in-out infinite reverse;
}

/* Additional floating shapes using box-shadow */
.hero .floating-shapes {
  box-shadow: 
    15% 60% 0 0 rgba(255,255,255,0.06),
    85% 30% 0 0 rgba(255,255,255,0.04),
    20% 80% 0 0 rgba(255,255,255,0.05),
    80% 70% 0 0 rgba(255,255,255,0.03);
  animation: float 10s ease-in-out infinite;
}
.hero h2 { margin:0 0 10px; font-size:2.4rem; line-height:1.2; color:#ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero p { margin:0 0 22px; color:rgba(255,255,255,0.9); font-size:1.1rem; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.hero .actions { display:flex; gap:12px; flex-wrap:wrap; }

/* Keyframe Animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes germanFlagWave {
  0% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes slideInUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* New Carousel */
.new-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* New Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.4) 0%, 
    rgba(0, 0, 0, 0.2) 50%, 
    rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.slide-content {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 1000px;
  width: 95%;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.slide-badge {
  display: inline-block;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.slide-content h2 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.slide-content h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 3px 15px rgba(0,0,0,0.8);
  line-height: 1.2;
  color: #f8fafc;
  letter-spacing: -0.3px;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  line-height: 1.5;
  color: #e2e8f0;
  font-weight: 400;
}

.slide-btn {
  display: inline-block;
  background: #000;
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.slide-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

/* Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: 30px !important;
  right: auto !important;
}

.carousel-nav.next {
  right: 30px !important;
  left: auto !important;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  transform: scale(1.3);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* Responsive Design for Carousel */
@media (max-width: 768px) {
  .carousel-nav {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
  
  .carousel-nav.prev {
    left: 15px !important;
    right: auto !important;
  }
  
  .carousel-nav.next {
    right: 15px !important;
    left: auto !important;
  }
  
  .slide-content {
    bottom: 30px;
    padding: 2rem;
    max-width: 95%;
    width: 98%;
  }
  
  .slide-badge {
    font-size: 0.8rem;
    padding: 6px 16px;
  }
  
  .slide-content h2 {
    font-size: 2.3rem;
  }
  
  .slide-content h3 {
    font-size: 1.8rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .slide-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  
  .carousel-nav.prev {
    left: 10px !important;
    right: auto !important;
  }
  
  .carousel-nav.next {
    right: 10px !important;
    left: auto !important;
  }
  
  .slide-content {
    bottom: 20px;
    padding: 1.5rem;
    max-width: 98%;
    width: 99%;
  }
  
  .slide-badge {
    font-size: 0.7rem;
    padding: 5px 12px;
  }
  
  .slide-content h2 {
    font-size: 1.8rem;
  }
  
  .slide-content h3 {
    font-size: 1.4rem;
  }
  
  .slide-content p {
    font-size: 0.9rem;
  }
  
  .carousel-dots {
    bottom: 20px;
  }
}

/* Old Carousel - Hidden */
.carousel { 
  display: none;
}
.slides { 
  position: relative; 
  height: 100%; 
  width: 100%; 
  overflow: hidden; 
}
.slide { 
  position: absolute; 
  inset: 0; 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat;
  opacity: 0; 
  transform: scale(1.05) rotate(1deg); 
  filter: blur(3px) brightness(0.8); 
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
.slide.active { 
  opacity:1; 
  transform:scale(1) rotate(0deg); 
  filter:blur(0) brightness(1); 
}
.slide::after { 
  content:""; 
  position:absolute; 
  inset:0; 
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.4) 0%, 
    rgba(0, 0, 0, 0.2) 50%, 
    rgba(0, 0, 0, 0.4) 100%);
  transition: opacity 1s ease;
}
.slide.active::after { opacity: 0.8; }
.slide .content { 
  position:absolute; 
  inset:0; 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  justify-content:center; 
  text-align:center; 
  padding:0 6%; 
  color:#fff; 
  z-index:2; 
  transform: translateY(3rem) scale(0.9); 
  opacity:0; 
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s; 
}
.slide.active .content { 
  opacity:1; 
  transform: translateY(0) scale(1); 
  animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}
.slide .content h2 { 
  color:#fff; 
  text-shadow:0 4px 20px rgba(0,0,0,0.5); 
  animation: fadeInScale 1s ease 0.5s both;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 3.5rem;
}
.slide .content p { 
  color:#f0f4ff; 
  text-shadow:0 2px 10px rgba(0,0,0,0.4); 
  animation: fadeInScale 1s ease 0.7s both;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 1.3rem;
}
.slide .content .actions { 
  animation: fadeInScale 1s ease 0.9s both;
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.slide .content .cta { 
  box-shadow:0 8px 25px rgba(0,0,0,0.3); 
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 50px;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.slide .content .cta::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;
}
.slide .content .cta:hover::before {
  left: 100%;
}
.slide .content .cta:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:0 12px 35px rgba(0,0,0,0.4);
}
.slide .content .cta.secondary { 
  color:#fff; 
  border: 2px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}
.slide .content .cta.secondary:hover { 
  background:rgba(255,255,255,0.2); 
  border-color: rgba(255,255,255,1);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.carousel-nav { 
  position:absolute; 
  left:0; 
  right:0; 
  bottom:24px; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  gap:12px; 
  z-index:3; 
}
.dot { 
  width:12px; 
  height:12px; 
  border-radius:50%; 
  background:rgba(255,255,255,0.4); 
  border:2px solid rgba(255,255,255,0.6); 
  cursor:pointer; 
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}
.dot:hover {
  transform: scale(1.2);
  background: rgba(255,255,255,0.7);
  box-shadow: 0 0 15px rgba(255,255,255,0.5);
}
.dot:hover::before {
  width: 100%;
  height: 100%;
}
.dot.active { 
  background:rgba(255,255,255,0.9); 
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(255,255,255,0.8);
  animation: pulse 2s infinite;
}
.dot.active::before {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,1);
}

/* arrows removed for auto-rotate only */
.cta { display:inline-block; background:#000000; color:#fff; padding:10px 14px; border-radius:999px; text-decoration:none; box-shadow:0 2px 0 rgba(0,0,0,0.2); transition:background-color .2s ease, transform .06s ease; }
.cta:hover { background:#333333; }
.cta:active { transform:translateY(1px); }
.cta.secondary { background:transparent; color:#000000; border:2px solid #000000; }
.cta.secondary:hover { background:rgba(0,0,0,0.08); }
section { 
  padding:40px 0; 
  border-top:1px solid rgba(255, 255, 255, 0.1); 
  min-height:33vh; 
  background: transparent;
}
#features { padding:52px 0; }
/* Footer Styles */
footer {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  color: #ffffff;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  border-top: 3px solid var(--german-red);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-left {
  flex: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-logo h3 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-contact p {
  color: #e0e0e0;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-contact span {
  color: #b0b0b0;
  font-weight: 500;
}

.footer-contact a {
  color: var(--german-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #ff6b6b;
}

.footer-right {
  flex: 1;
  text-align: center;
}

.footer-right h5 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.3rem 0;
}

.footer-nav a:hover {
  color: var(--german-red);
  transform: translateX(-3px);
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--german-red);
  transition: width 0.3s ease;
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #333333;
  color: #b0b0b0;
  font-size: 0.9rem;
}

.footer-bottom strong {
  color: #ffffff;
  font-weight: 600;
}

/* Responsive Footer */
@media (max-width: 768px) {
  footer {
    padding: 2rem 0 1rem;
  }
  
  footer .container {
    padding: 0 1rem;
    width: min(1400px, 100%);
    margin: 0 auto;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-right {
    text-align: center;
  }
  
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .footer-nav a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
  }
  
  .footer-nav a:hover {
    background: var(--german-red);
    color: #fff;
    transform: translateY(-2px);
  }
  
  .footer-nav a::after {
    display: none;
  }
}

/* Metrics section */
#metrics { 
  position:relative; 
  padding:0; 
  min-height:46vh; 
  background: linear-gradient(135deg,
    #dd0000 0%,
    #ffce00 50%,
    #dd0000 100%);
  background-size: 400% 400%;
  animation: redYellowShift 8s ease infinite;
  color:#fff; 
  display:flex; 
  align-items:center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.metrics-overlay { 
  position:relative; 
  z-index:1; 
  width:100%; 
  display:flex; 
  align-items:center; 
  justify-content:center;
  padding: 0 2rem;
}
.metrics-list { 
  list-style:none; 
  display:grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap:60px; 
  margin:0; 
  padding:0; 
  width:100%; 
  max-width: 1200px;
}
.metric { 
  text-align:center; 
  padding:24px 20px; 
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px); 
  border-radius:20px; 
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.metric:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.metric-number { 
  display:block; 
  font-size:2.8rem; 
  font-weight:900; 
  letter-spacing:1px; 
  text-shadow:0 4px 15px rgba(0,0,0,0.4);
  line-height: 1.1;
}
.metric-label { 
  display:block; 
  font-size:1.2rem; 
  opacity:0.95; 
  color:#e8eefc;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  #metrics { 
    padding:56px 0; 
    margin-left: 0;
    width: 100%;
  }
  .metrics-list { 
    grid-template-columns: 1fr; 
    gap: 30px; 
    padding: 0 1rem;
  }
  .metric-number { font-size:2.2rem; }
  .metric-label { font-size:1.1rem; }
  .course-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:16px; }
  .page-hero { 
    padding: 40px 0; 
    min-height: 150px;
  }
  .page-hero h2 { 
    font-size: 2rem; 
    margin-bottom: 12px;
  }
  .page-hero p {
    font-size: 1.1rem;
    padding: 0 20px;
  }
  .about-company {
    padding: 40px 0;
  }
  .company-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .company-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .company-description p {
    font-size: 1.1rem;
    text-align: left;
    padding: 0 20px;
  }
  .company-image img {
    max-width: 100%;
    height: 250px;
  }
  .why-choose-us {
    padding: 60px 0;
  }
  .why-choose-us h3 {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  .benefits-list {
    padding: 0 20px;
  }
  .benefit-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .benefit-icon {
    align-self: center;
  }
  .teachers-section {
    padding: 60px 0;
  }
  .teachers-section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  .teachers-logo img {
    width: 100px;
    height: 100px;
  }
  .teachers-motto p {
    font-size: 1.3rem;
  }
}

/* Page headers */
.page-hero {
  padding:60px 0;
  background: linear-gradient(135deg,
    #dd0000 0%,
    #ffce00 50%,
    #dd0000 100%);
  background-size: 400% 400%;
  animation: redYellowShift 8s ease infinite;
  border-bottom:1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  text-align: center;
}
.page-hero::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}
.page-hero h2 { 
  margin:0 0 20px 0; 
  text-align:center;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}
.page-hero p {
  text-align: center;
  color: rgba(255,255,255,0.95);
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* Metrics section for all pages */
.metrics-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.metrics-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.metric {
  text-align: center;
  padding: 20px;
}

.metric-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
  line-height: 1.1;
}

.metric-label {
  display: block;
  font-size: 1.2rem;
  opacity: 0.95;
  color: #e8eefc;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .metrics-section {
    padding: 40px 0;
  }
  .metrics-list {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }
  .metric-number {
    font-size: 2.2rem;
  }
  .metric-label {
    font-size: 1.1rem;
  }
}

/* About page specific styles */
.about-company {
  padding: 60px 0;
  background: transparent;
}

.company-info {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.company-info h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 30px;
  text-align: center;
}

.company-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.company-description p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
  text-align: justify;
}

.company-description p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--brand);
}

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

.company-image img {
  width: 100%;
  max-width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.company-image img:hover {
  transform: scale(1.05);
}

.why-choose-us {
  padding: 80px 0;
  background: transparent;
}

.why-choose-us h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 60px;
}

.benefits-list {
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.benefit-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 5px;
}

.benefit-item p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}


.teachers-section {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}

.teachers-section h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 50px;
}

.teachers-content {
  max-width: 600px;
  margin: 0 auto;
}

.teachers-logo {
  margin-bottom: 30px;
}

.teachers-logo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.teachers-motto p {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand);
  font-style: italic;
  margin: 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes germanFlagShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}

@keyframes redYellowShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}


#features > h3 { 
  text-align:center; 
  font-size:1.75rem; 
  margin-bottom:14px; 
  color: #000;
  font-weight: 700;
}
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:20px; }
.card { 
  border:1px solid #e5e7eb; 
  border-radius:14px; 
  padding:28px; 
  background: #ffffff;
  text-align:center; 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  justify-content:center; 
  gap:14px; 
  box-shadow:0 4px 20px rgba(0, 0, 0, 0.08); 
  position:relative; 
  overflow:hidden; 
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  background: #f8fafc;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
  border-color: #2563eb;
}
.card:hover .icon {
  background: rgba(37, 99, 235, 0.1);
}
.card:hover .icon svg {
  fill: #2563eb;
}
.card .icon { width:46px; height:46px; border-radius:12px; background:rgba(0,0,0,0.05); display:flex; align-items:center; justify-content:center; transition: all 0.3s ease; }
.card .icon svg { width:26px; height:26px; fill:#000000; transition: all 0.3s ease; }
.card h4 { 
  margin:8px 0 4px; 
  font-size:1.3rem; 
  font-weight:700; 
  color:#1f2937; 
  letter-spacing:-0.02em;
  line-height:1.3;
}
.card p { 
  margin:0; 
  color:#6b7280; 
  font-size:0.95rem; 
  font-weight:500;
  line-height:1.6;
}
label[for="lang"] { font-weight:600; }
/* General select styles (for other selects on the page) */
select { padding:6px 8px; border-radius:6px; border:0; background:#fff; outline:none; box-shadow:none; }
select:focus { outline:none; box-shadow:none; }
select:active { outline:none; box-shadow:none; }

/* Custom select responsive styles */
@media (max-width: 1024px) {
  .custom-select {
    min-width: 130px;
  }
  
  .select-trigger {
    min-width: 130px;
    height: 38px;
    padding: 7px 10px;
    font-size: 0.85rem;
  }
  
  .select-option {
    padding: 9px 11px;
    font-size: 0.85rem;
    height: 38px;
  }
}

@media (max-width: 768px) {
  .custom-select {
    min-width: 120px;
  }
  
  .select-trigger {
    min-width: 120px;
    height: 35px;
    padding: 6px 8px;
    font-size: 0.8rem;
  }
  
  .select-option {
    padding: 8px 10px;
    font-size: 0.8rem;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .custom-select {
    min-width: 100px;
  }
  
  .select-trigger {
    min-width: 100px;
    height: 32px;
    padding: 5px 6px;
    font-size: 0.75rem;
  }
  
  .select-option {
    padding: 6px 8px;
    font-size: 0.75rem;
    height: 32px;
  }
}
a.skip { position:absolute; left:-999px; }
a.skip:focus { left:16px; top:10px; background:#000; color:#fff; padding:8px 10px; border-radius:6px; }

/* Mobile nav */
/* Tablet and medium screens */
@media (max-width: 1024px) {
  .nav-links {
    gap: 6px;
    padding: 10px 0;
  }
  .nav-links a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  .topbar {
    padding: 14px 1.5rem;
  }
}

@media (max-width: 760px) {
  .menu { display: block; }
  .top-actions { gap: 12px; }
  .nav-links { 
    display: none; 
    position: absolute; 
    left: 0; 
    right: 0; 
    top: 100%; 
    background: #fff; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); 
    padding: 16px 2rem; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links.open { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
  }
  .nav-links a {
    padding: 12px 16px;
    border-radius: 8px;
    text-align: left;
  }
  
  .lang { margin-left: auto; }
  .lang select {
    min-width: 100px;
    font-size: 0.85rem;
    padding: 6px 10px;
  }
  .hero { padding:56px 0; min-height:46vh; }
  .hero h2 { font-size:1.9rem; }
  .slide .content { padding:0 5.5%; }
  .slide .content h2 { font-size:2.2rem; line-height:1.25; }
  .slide .content p { font-size:1.1rem; }
  
  /* New Carousel responsive */
  .new-carousel {
    width: 100vw;
  }
  
  .slide-content h2 {
    font-size: 2.5rem;
  }
  
  .slide-content p {
    font-size: 1.1rem;
  }
  
  .slide-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
  .cta { padding:9px 12px; }
  /* Center logo, hide company name on small screens */
  .topbar { position:relative; }
  .brand { position:absolute; left:50%; transform:translateX(-50%); z-index:2; }
  .brand h1 { display:none; }
  
  /* Course info responsive */
  .course-info h2 { font-size: 3rem; }
  .course-info p { font-size: 1.2rem; }
  .course-stats { gap: 2.5rem; }
  .stat-number { font-size: 2.2rem; }
  .course-info .cta { padding: 0.9rem 1.8rem; }
}

@media (max-width: 480px) {
  .hero { padding:48px 0; min-height:42vh; }
  .slide .content { padding:0 6%; }
  .slide .content h2 { font-size:1.8rem; }
  .slide .content p { font-size:1.05rem; }
  .hero .actions { gap:10px; }
  .cta { padding:8px 12px; border-width:2px; }
  .cta.secondary { border-width:2px; }
  
  /* Course info responsive */
  .course-info h2 { font-size: 2.5rem; }
  .course-info p { font-size: 1.1rem; }
  .course-stats { gap: 2rem; }
  .stat-number { font-size: 2rem; }
  .course-info .cta { padding: 0.8rem 1.5rem; font-size: 1rem; }
}

/* Success Gallery Section */
#success-gallery {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

/* Gallery Page Specific Styles */
.gallery-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.gallery-intro p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-light);
}

.tab-description {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tab-description h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--brand), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tab-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.gallery-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--brand), #8b5cf6);
  border-radius: 20px;
  color: white;
}

.gallery-cta h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.gallery-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.gallery-cta .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-cta .cta {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.gallery-cta .cta.primary {
  background: white;
  color: var(--brand);
}

.gallery-cta .cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.gallery-cta .cta.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.gallery-cta .cta.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

#success-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.05) 0%, transparent 50%);
  z-index: 1;
}

#success-gallery .container {
  position: relative;
  z-index: 2;
}

#success-gallery h3 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--brand), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#success-gallery p {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Gallery Tabs */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  border: 2px solid var(--brand);
  background: transparent;
  color: var(--brand);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s;
}

.tab-btn:hover::before {
  left: 100%;
}

.tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.tab-btn.active {
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Gallery Content */
.gallery-content {
  position: relative;
  min-height: 500px;
}

.gallery-tab {
  display: none;
  animation: fadeInUp 0.6s ease;
}

.gallery-tab.active {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: white;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  color: white;
  width: 100%;
}

.gallery-info h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.gallery-info p {
  font-size: 1rem;
  margin: 0 0 1rem;
  color: #e0e7ff;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.gallery-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-badge:not(.success):not(.achievement) {
  background: rgba(59, 130, 246, 0.9);
  color: white;
}

.gallery-badge.success {
  background: rgba(34, 197, 94, 0.9);
  color: white;
}

.gallery-badge.achievement {
  background: rgba(168, 85, 247, 0.9);
  color: white;
}


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

/* Fixed WhatsApp Button */
.whatsapp-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: transparent;
  border: none;
  outline: none;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.whatsapp-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-btn:focus {
  outline: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:active {
  outline: none;
  border: none;
  background: #1ea952;
  transform: translateY(0);
}

.whatsapp-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: #ffffff;
  stroke: none;
  background: transparent;
  border: none;
  outline: none;
}

.whatsapp-text {
  white-space: nowrap;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
  .whatsapp-fixed {
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .whatsapp-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .whatsapp-fixed {
    bottom: 10px;
    right: 10px;
  }
  
  .whatsapp-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .whatsapp-text {
    display: none;
  }
  
  .whatsapp-btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    justify-content: center;
    padding: 0;
  }
  
  .whatsapp-btn svg {
    width: 24px;
    height: 24px;
  }
  
  /* Fix horizontal scroll on very small screens */
  body { overflow-x: hidden; }
  .container { padding: 0 0.5rem; }
  .topbar { 
    padding: 12px 0.5rem; 
    gap: 8px;
  }
  .nav-links {
    padding: 8px 0;
    gap: 4px;
  }
  .nav-links a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  /* New Carousel very small screens */
  .new-carousel {
    width: 100vw;
  }
  
  .slide-content h2 {
    font-size: 2rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .slide-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .carousel-navigation {
    bottom: 20px;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  #success-gallery {
    padding: 60px 0;
  }
  
  #success-gallery h3 {
    font-size: 2rem;
  }
  
  .gallery-tabs {
    gap: 0.5rem;
  }
  
  .tab-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
}

@media (max-width: 480px) {
  .gallery-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .tab-btn {
    width: 200px;
  }
  
  .gallery-image {
    height: 250px;
  }
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxFadeIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--brand);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.lightbox-info p {
  font-size: 1rem;
  color: var(--text-light);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.lightbox-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--brand);
  color: white;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-prev {
  margin-left: -25px;
}

.lightbox-next {
  margin-right: -25px;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .lightbox-content img {
    max-height: 60vh;
  }
  
  .lightbox-info {
    padding: 1rem;
    margin-top: 0.5rem;
  }
  
  .lightbox-info h3 {
    font-size: 1.3rem;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .lightbox-prev {
    margin-left: -20px;
  }
  
  .lightbox-next {
    margin-right: -20px;
  }
}

/* Scrollbar - German flag theme */
/* Firefox (limited to two colors): thumb uses red, track transparent */
html { scrollbar-width: thin; scrollbar-color: var(--german-red) transparent; }

/* Chromium/Edge/Safari */
::-webkit-scrollbar { width: 12px; height: 12px; }
/* Keep track subtle so the tricolor thumb stands out */
::-webkit-scrollbar-track { background: rgba(0,0,0,0.06); }
/* Tricolor thumb (black/red/gold) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--german-black) 0% 33.33%,
    var(--german-red) 33.33% 66.66%,
    var(--german-gold) 66.66% 100%
  );
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.6);
}
::-webkit-scrollbar-thumb:hover {
  border-color: rgba(255,255,255,0.9);
}
/* Ensure applied on root scrollbars explicitly */
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 12px; height: 12px; }
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track { background: rgba(0,0,0,0.06); }
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--german-black) 0% 33.33%, var(--german-red) 33.33% 66.66%, var(--german-gold) 66.66% 100%);
  border-radius: 999px; border: 2px solid rgba(255,255,255,0.6);
}
html, body { scrollbar-gutter: stable; }

/* Language Course Page Styles */
.course-overview { padding: 60px 0; background: transparent; }
.course-overview h3 { text-align: center; font-size: 2rem; margin-bottom: 20px; color: var(--text); }
.course-overview p { text-align: center; font-size: 1.1rem; color: var(--muted); max-width: 800px; margin: 0 auto 40px; }

.course-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.level-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 2px solid transparent; transition: all 0.3s ease; }
.level-card:hover { border-color: var(--brand); transform: translateY(-4px); }
.level-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.level-header h4 { margin: 0; font-size: 1.3rem; color: var(--text); }
.level-badge { background: var(--brand); color: #fff; padding: 6px 12px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; }
.level-card p { color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.level-features { list-style: none; padding: 0; margin: 0 0 20px; }
.level-features li { padding: 8px 0; color: var(--text); position: relative; padding-left: 24px; }
.level-features li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: bold; }
.level-duration { background: #f1f5f9; padding: 12px; border-radius: 8px; margin-top: 16px; }
.level-duration strong { color: var(--text); }

/* Level-specific colors */
.level-card.a1 .level-badge { background: #10b981; }
.level-card.a2 .level-badge { background: #06b6d4; }
.level-card.b1 .level-badge { background: #f59e0b; }
.level-card.b2 .level-badge { background: #8b5cf6; }

/* Feature cards */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.feature-card { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); border: 1px solid #e2e8f0; transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.feature-icon { width: 48px; height: 48px; background: var(--brand); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { 
  width: 24px; 
  height: 24px; 
  fill: white !important; 
  color: white !important;
  stroke: white !important;
}
.feature-card h3 { color: var(--text); margin: 0 0 12px; font-size: 1.25rem; }
.feature-card p { color: var(--text-light); margin: 0; line-height: 1.6; }

/* What You'll Get section - enhanced design */
.course-features { 
  padding: 60px 0; 
  background: transparent;
}
.course-features h3 { 
  text-align: center; 
  font-size: 2.5rem; 
  margin-bottom: 20px; 
  color: #1a1a1a; 
  font-weight: 700; 
}
.features-grid-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px; margin-top: 50px; }
.feature-card { 
  background: white; 
  border-radius: 20px; 
  padding: 40px; 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); 
  border: 1px solid rgba(0, 0, 0, 0.05); 
  transition: all 0.3s ease; 
  position: relative; 
  overflow: hidden; 
}
.feature-card::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 4px; 
  background: linear-gradient(90deg, #1a1a1a, #e60000, #ffd700); 
}
.feature-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); 
  border-color: rgba(0, 0, 0, 0.1);
}
.feature-icon-large { 
  width: 64px; 
  height: 64px; 
  background: #1a1a1a; 
  border-radius: 16px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 24px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
}
.feature-icon-large svg { 
  width: 32px; 
  height: 32px; 
  fill: white !important; 
  color: white !important;
  stroke: white !important;
}
.feature-card h4 { color: var(--text); margin: 0 0 16px; font-size: 1.5rem; font-weight: 600; }
.feature-card p { color: var(--text-light); margin: 0; line-height: 1.7; font-size: 1.1rem; }
.level-card.c1 .level-badge { background: #ef4444; }

.course-methodology { padding: 60px 0; }
.course-methodology h3 { text-align: center; font-size: 2rem; margin-bottom: 40px; color: var(--text); }
.methodology-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.methodology-item { text-align: center; }
.methodology-icon { 
  width: 64px; 
  height: 64px; 
  background: #1a1a1a; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin: 0 auto 16px; 
  color: white !important; 
}
.methodology-icon svg { 
  fill: white !important; 
  color: white !important;
  stroke: white !important;
}
.methodology-item h4 { margin: 0 0 12px; font-size: 1.2rem; color: var(--text); }
.methodology-item p { color: var(--muted); line-height: 1.6; }

.course-schedule { padding: 60px 0; background: transparent; }
.course-schedule h3 { text-align: center; font-size: 2rem; margin-bottom: 40px; color: var(--text); }
.schedule-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.schedule-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.schedule-card h4 { margin: 0 0 20px; font-size: 1.3rem; color: var(--text); }
.schedule-details p { margin: 8px 0; color: var(--text); }
.schedule-details strong { color: var(--text); font-weight: 600; }
.schedule-desc { color: var(--muted); margin-top: 16px; line-height: 1.6; }

.course-features { padding: 60px 0; }
.course-features h3 { text-align: center; font-size: 2rem; margin-bottom: 40px; color: var(--text); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-item { display: flex; align-items: flex-start; gap: 16px; }
.feature-icon { width: 48px; height: 48px; background: rgba(37,99,235,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--brand); flex-shrink: 0; }
.feature-item h4 { margin: 0 0 8px; font-size: 1.1rem; color: var(--text); }
.feature-item p { color: var(--muted); line-height: 1.6; margin: 0; }


.course-cta { 
  padding: 60px 0; 
  background: linear-gradient(135deg, 
    #1a1a1a 0%, 
    #e60000 50%, 
    #ffd700 100%);
  background-size: 400% 400%;
  animation: germanFlagShift 8s ease infinite;
  color: #fff; 
  text-align: center; 
}
.course-cta h3 { margin: 0 0 16px; font-size: 2.2rem; }
.course-cta p { margin: 0 0 32px; font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta.primary { 
  background: #ffffff; 
  color: #1a1a1a; 
  border: 2px solid #ffffff;
  font-weight: 600;
}
.cta.primary:hover { 
  background: #f8fafc; 
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}
.cta.secondary { 
  background: transparent; 
  color: #ffffff; 
  border: 2px solid #ffffff; 
  font-weight: 600;
}
.cta.secondary:hover { 
  background: rgba(255,255,255,0.2); 
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

/* Programs Section */
#programs {
  padding: 80px 0;
}

#programs h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #000;
  font-weight: 700;
}

#programs p {
  text-align: center;
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.program-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.program-card:hover {
  transform: translateY(-8px);
  background: #f3e8ff;
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
}
.program-card:hover::before {
  background: #8b5cf6;
}
.program-card:hover .program-icon {
  transform: scale(1.1) rotate(5deg);
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #000000;
  border-radius: 20px 20px 0 0;
  transition: all 0.3s ease;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.program-icon {
  width: 80px;
  height: 80px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.program-card:hover .program-icon {
  transform: scale(1.1) rotate(5deg);
}

.program-content h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.program-content p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 28px;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
}

.program-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.program-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
}

.program-features li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: #000000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.program-cta {
  display: inline-block;
  background: #000000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.program-cta:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* German flag colors for program cards */
.program-card.ausbildung::before {
  background: #000000;
}

.program-card.work-8months::before {
  background: #dd0000;
}

.program-card.permanent-job::before {
  background: #ffce00;
}

/* Program specific hover colors */
.program-card.ausbildung:hover .program-icon {
  background: #000000;
  color: #ffffff;
}

.program-card.ausbildung:hover::before {
  background: #000000;
}

.program-card.ausbildung:hover .program-features li::before {
  background: #000000;
}

.program-card.work-8months:hover .program-icon {
  background: #dd0000;
  color: #ffffff;
}

.program-card.work-8months:hover::before {
  background: #dd0000;
}

.program-card.work-8months:hover .program-features li::before {
  background: #dd0000;
}

.program-card.permanent-job:hover .program-icon {
  background: #ffce00;
  color: #000000;
}

.program-card.permanent-job:hover::before {
  background: #ffce00;
}

.program-card.permanent-job:hover .program-features li::before {
  background: #ffce00;
}

@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .course-levels { grid-template-columns: 1fr; }
  .methodology-grid { grid-template-columns: 1fr; }
  .schedule-options { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta { width: 100%; max-width: 300px; }
  
  .programs-grid { grid-template-columns: 1fr; }
  .program-card { padding: 20px; }
  #programs h3 { font-size: 2rem; }
  #programs p { font-size: 1.1rem; }
  
  .container { width: min(1400px, 100%); padding: 0 1rem; }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--brand);
}

.modal-header {
  background: linear-gradient(135deg, var(--brand), #1d4ed8);
  color: white;
  padding: 30px;
  border-radius: 20px 20px 0 0;
  text-align: center;
}

.modal-header h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 700;
}

.modal-header p {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

.modal-body {
  padding: 30px;
}

.modal-section {
  margin-bottom: 25px;
}

.modal-section h3 {
  color: var(--brand);
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid #f0f4ff;
  padding-bottom: 8px;
}

.modal-section p {
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

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

.modal-section li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 500;
}

.modal-section li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.modal-footer {
  padding: 20px 30px 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-cta {
  background: #000000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.modal-cta:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.modal-close-btn {
  background: transparent;
  color: #000000;
  border: 2px solid #000000;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.modal-close-btn:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    max-height: 85vh;
  }
  
  .modal-header {
    padding: 20px;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 15px 20px 20px;
    flex-direction: column;
    align-items: center;
  }
  
  .modal-cta,
  .modal-close-btn {
    width: 100%;
    max-width: 200px;
  }
}

