:root {
  --primary: #2ecc71;
  --dark: #1a1a2e;
  --light: #f1f1f1;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f9fafb;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.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;
  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);
  color: #fff;
  border-radius: 3px;
}

.dropdown,
.nested-dropdown {
  position: relative;
}

.dropdown-content,
.nested-dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  flex-direction: column;
  min-width: 200px;
  padding: 0.25rem 0;
  z-index: 100;
}

.dropdown:hover > .dropdown-content,
.nested-dropdown:hover > .nested-dropdown-content {
  display: flex;
}

.search-container {
  text-align: center;
  margin: 20px auto;
}

.search-container input {
  width: 60%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #333;
  border-radius: 8px;
  outline: none;
}

.section-title {
  margin: 20px 0;
  font-size: 1.5rem;
  color: var(--dark);
  text-align: center;
}

.courses {
  padding: 15px 0;
  max-width: 1100px;
  margin: auto;
}

.course-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
  height: 350px;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-content {
  padding: 10px;
  font-size: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ================== BUTTONS ================== */
.course-content .btn,
.next-page-btn {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.next-page-btn:hover,
.course-content .btn:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

/* Tablet */
@media (min-width: 768px) {
  .course-content .btn,
  .next-page-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .course-content .btn,
  .next-page-btn {
    padding: 6px 14px;
    font-size: 13px;
  }
}
/* ================== END BUTTONS ================== */

.swiper-button-next,
.swiper-button-prev {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 2px 5px black;
  color: black;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px;
}

.swiper-pagination-bullet {
  background: #333;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background: #000;
  opacity: 1;
}

.next-page-container {
  text-align: center;
  margin: 40px 0;
}

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);
}
