* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap");

body {
  background-color: #f8fafc;
  position: relative;
}

/* ========== HEADER (fixed, light with green accent) ========== */
header {
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  background-color: #ffffff;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid #e9ecef;
}

header > .logo {
  height: 60px;
  background: green;
}

.logo img {
  height: 100%;
}

/* logo image placeholder (using a styled div + icon, since no actual assets) */
.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1e9628, #166b1d);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: bold;
}

.logo > p {
  color: #1e9628;
  font-size: 26px;
  font-weight: 800;
}

.logo span {
  color: #1e2a3a;
  font-weight: 500;
  font-size: 14px;
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 30px;
  margin-left: 6px;
}

.search {
  height: 42px;
  width: 320px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 40px;
  background-color: #f8fafc;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}

.search:focus {
  border-color: #1e9628;
  background: white;
  box-shadow: 0 0 0 3px rgba(30, 150, 40, 0.1);
}

.navigation > ul {
  display: flex;
  flex-direction: row;
  column-gap: 24px;
  align-items: center;
}

.navigation > ul > li {
  list-style: none;
  color: #1e2a3a;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 600;
  font-size: 15px;
}

.navigation > ul > li:hover {
  color: #1e9628;
}

.navigation > ul > button {
  background-color: #1e9628;
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 40px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.navigation > ul > button:hover {
  background-color: #166b1d;
  transform: scale(0.97);
}

/* ========== SIDEBAR (light green, modern) ========== */
.sidebar {
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  width: 260px;
  position: fixed;
  top: 70px;
  left: 0;
  bottom: 0;
  padding: 24px 16px;
  z-index: 90;
  border-right: 1px solid #e9ecef;
  box-shadow: 1px 0 8px rgba(0, 0, 0, 0.02);
}

.side-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-bottom {
  margin-top: 24px;
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
}

.menu-link {
  background-color: #f8fafc;
  padding: 12px 16px;
  border-radius: 12px;
  color: #1e2a3a;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-link i {
  width: 22px;
  color: #1e9628;
  font-size: 18px;
}

.menu-link:hover {
  background-color: #eaf5ec;
  color: #1e9628;
  transform: translateX(4px);
}

hr {
  margin: 16px 0;
  border-color: #e9ecef;
}

/* ========== MAIN CONTENT AREA ========== */
.main {
  margin-top: 70px;
  margin-left: 260px;
  padding: 28px 32px;
  background: #f8fafc;
  min-height: calc(100vh - 70px);
}

/* ========== HERO SECTION (completed with overlay, content) ========== */
.hero {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.hero > div {
  height: 340px;
  border-radius: 5px;
}

.hero1 {
  background-image: url("images/hero.jpg");
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  border-radius: 5px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.hero-content {
  position: absolute;
  color: white;
  left: 0;
  bottom: 0;
  padding: 40px;
  flex-direction: column;
  z-index: 10;
  max-width: 65%;
  align-items: flex-start;
  gap: 14px;
  display: flex;
}

.hero-content h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.92;
}

.start-btn {
  background-color: #1e9628;
  color: white;
  padding: 10px 28px;
  border: none;
  border-radius: 40px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 6px;
}

.start-btn:hover {
  background-color: #166b1d;
  transform: scale(0.97);
}

.hero2 {
  background: linear-gradient(145deg, #1e9628, #146b1a);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.hero2 h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero2 p {
  font-size: 14px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero2 .small-btn {
  background: white;
  color: #1e9628;
  padding: 8px 24px;
  border-radius: 40px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* ========== POPULAR COURSES SECTION (complete grid & hover) ========== */
.popular {
  margin-top: 16px;
}

.popular > h3 {
  padding: 8px 0 16px 0;
  color: #1e2a3a;
  font-size: 26px;
  font-weight: 700;
  border-left: 5px solid #1e9628;
  padding-left: 18px;
  margin-bottom: 8px;
}

.courses-grid {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

.course {
  background: #ffffff;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid #edf2f7;
}

.course:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.course-image-container {
  width: 100%;
  height: 170px;
  overflow: hidden;
}

.course-image-container > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.course:hover .course-image-container img {
  transform: scale(1.03);
}

.course-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
}

.author {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef2ff;
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.author > img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.course-description {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.course-description p {
  font-size: 13px;
  color: #5b6e8c;
  margin-bottom: 8px;
}

.learn-link {
  color: #1e9628;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: 0.2s;
  margin-top: 6px;
}

.learn-link:hover {
  color: #c2410c;
  gap: 10px;
}

/* ========== EXTRA SECTION: UPCOMING EVENTS & TESTIMONIAL ========== */
.extra-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 56px 0 32px;
}

.info-card {
  background: white;
  border-radius: 10px;
  padding: 24px;
  border: 1px solid #edf2f7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid #1e9628;
  padding-left: 16px;
}

.event-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: center;
}

.event-date {
  background: #eef2ff;
  padding: 10px 14px;
  border-radius: 5px;
  text-align: center;
  min-width: 65px;
}

.event-date .day {
  font-weight: 800;
  font-size: 20px;
  color: #1e9628;
}

.event-date .month {
  font-size: 11px;
  color: #334155;
}

.event-desc p {
  font-weight: 600;
  font-size: 15px;
}

.event-desc small {
  font-size: 12px;
  color: #64748b;
}

.testimonial-text {
  font-style: normal;
  font-size: 15px;
  line-height: 1.5;
  color: #1e293b;
  background: #f8fafc;
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
}

/* ========== FOOTER ========== */
footer {
  background: white;
  border-top: 1px solid #e9ecef;
  margin-top: 48px;
  padding: 40px 32px 24px;
  border-radius: 10px 10px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  color: #1e2a3a;
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  text-decoration: none;
  color: #5b6e8c;
  font-size: 14px;
  transition: 0.2s;
}

.footer-col a:hover {
  color: #1e9628;
}

.copyright {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
  font-size: 13px;
  color: #7e8b9e;
}

/* Responsive */
@media (max-width: 900px) {
  .sidebar {
    width: 80px;
    padding: 16px 8px;
  }
  .menu-link span {
    display: none;
  }
  .menu-link i {
    margin: 0 auto;
  }
  .main {
    margin-left: 80px;
  }
  .hero-content h1 {
    font-size: 22px;
  }
  .hero-content {
    max-width: 85%;
    padding: 20px;
  }
  .extra-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  header {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
    gap: 12px;
  }
  .search {
    width: 200px;
  }
  .main {
    margin-left: 80px;
    padding: 20px 16px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero > div {
    height: 280px;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 550px) {
  .sidebar {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .navigation > ul {
    gap: 12px;
  }
}

/* Additional polish */
i.fa,
i.far,
i.fas {
  font-family: "Font Awesome 6 Free";
}
