:root {
  --primary: #2ecc71;
  --secondary: #3498db;
  --accent: #e74c3c;
  --dark: #1a1a2e;
  --darker: #16213e;
  --light: #f1f1f1;
  --ethio-green: #078C3F;
  --ethio-yellow: #FCDD09;
  --ethio-red: #DA121A;
  --ethio-black: #474242;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f9fafb;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

h3 {
  font-size: 40px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  position: sticky; /* sticky by default */
  top: 0;
  z-index: 999;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar a {
  color: var(--dark);
  padding: 0.5rem 0.75rem;
}

.navbar a:hover {
  background: var(--primary);
  border-radius: 3px;
  color: #fff;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  min-width: 200px;
  padding: 0.25rem 0;
  z-index: 100;
}

.dropdown-content a {
  padding: 0.6rem 1rem;
  color: #111;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background: #f1f5f9;
}

.dropdown:hover > .dropdown-content {
  display: flex;
}

.nested-dropdown {
  position: relative;
}

.nested-dropdown-content {
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  min-width: 220px;
  padding: 0.25rem 0;
  z-index: 200;
}

.nested-dropdown-content a {
  padding: 0.6rem 1rem;
  white-space: nowrap;
}

.nested-dropdown-content a:hover {
  background: #f1f5f9;
}

.nested-dropdown:hover > .nested-dropdown-content {
  display: flex;
}

.main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem 2rem 2rem;
  gap: 2rem;
  flex-wrap: wrap;
  background-color: white;
  min-height: 60vh;
}

.left {
  flex: 1;
  min-width: 250px;
}

.left-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  color: #111;
  margin-top: 2rem;
}

.left p {
  font-size: 1rem;
  color: #555;
}

.right {
  flex: 1;
  min-width: 250px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.right img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
}

.right img:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: black;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cta-btn:hover {
  background-color: var(--primary);
  box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
  transform: translateY(-3px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-8px); }
}

.bounce-word {
  display: inline-block;
  animation: bounce 2s infinite;
}

.typewriter {
  font-family: 'Share Tech Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  letter-spacing: 1px;
  font-size: 28px;
  border-right: 2px solid black;
  animation: typing 3s steps(40, end) infinite alternate,
             blink-caret 0.5s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  50% { border-color: transparent; }
}

.container-1 {
  display: flex;
  gap: 1rem;
  padding: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  position: relative;
  background-color: #fff;
  width: 220px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  padding-top: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.discount-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFD700;
  color: #111;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 2;
}

.img-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 0 0 10px 10px;
}

.card h4 {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #111;
}

.slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slides {
  width: 100%;
  height: 100%;
}

.slide {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.slide.active {
  display: block;
  animation: fade 1s ease-in-out;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  padding: 3rem 5%;
  flex-wrap: wrap;
  gap: 2rem;
  border-radius: 10px 10px 0 0;
}

.footer-left {
  flex: 1 1 300px;
}

.footer-left h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.footer-left p {
  font-size: 1rem;
  line-height: 1.6;
  color: #d1d5db;
}

.footer-right {
  flex: 1 1 200px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: #1e293b;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.social-links a:hover {
  background: var(--primary);
  color: #111;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  background-color: #0f172a;
  color: #d1d5db;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Desktop & tablet */
@media (max-width: 992px) {
  .main {
    flex-direction: column;
    text-align: center;
  }
  .right {
    margin-top: 1.5rem;
  }
  .container-1 {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
    max-width: 350px;
  }
  .navbar {
    flex-wrap: wrap;
  }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-right {
    justify-content: center;
  }
}

/* Mobile fixes */
@media (max-width: 768px) {
  .navbar {
    position: relative; /* navbar scrolls normally on mobile */
    top: auto;
    flex-wrap: wrap;
  }
  .search-container input {
    width: 90%;
  }
  .courses {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .left-title {
    font-size: 2rem;
  }
  .left p {
    font-size: 0.95rem;
  }
  .cta-btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  .card h4 {
    font-size: 1rem;
  }
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}
