/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  background: #fdfdfd;
  color: #1a1a2e;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; }
img { max-width: 100%; display: block; }

/* ===== TOP STRIPE ===== */
.top-stripe {
  height: 4px;
  background: linear-gradient(90deg, #6d28d9, #f97316);
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 60px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: #6d28d9;
  border-radius: 12px;
  padding: 8px;
}

.logo-text h1 { font-size: 17px; font-weight: 700; color: #111; }
.logo-text span { font-size: 11px; letter-spacing: 1px; color: #888; }

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: #6d28d9; }

/*.get-started-btn {
  background: #f97316;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s;
}
.get-started-btn:hover { background: #ea580c; }*/

.menu-toggle {
  display: none;
  background: none;
  font-size: 26px;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 70px 60px;
  gap: 50px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 50%, #eff6ff 100%);
}

.hero-left { flex: 1; min-width: 320px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ede9fe;
  color: #6d28d9;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #8b5cf6;
}

.hero-title {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.15;
  color: #111827;
  margin-bottom: 24px;
}
.hero-title .highlight { color: #7c3aed; }

.hero-desc {
  font-size: 17px;
  color: #4b5563;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn-primary {
  background: #f97316; color: #fff;
  padding: 16px 28px; border-radius: 30px;
  font-weight: 600; font-size: 15px;
}
.btn-secondary {
  background: #fff; border: 1.5px solid #d1d5db;
  color: #111; padding: 16px 28px;
  border-radius: 30px; font-weight: 600; font-size: 15px;
}
.btn-tertiary {
  background: #ede9fe; color: #6d28d9;
  padding: 16px 28px; border-radius: 30px;
  font-weight: 600; font-size: 15px;
}
.btn-primary:hover { background: #ea580c; }
.btn-secondary:hover { background: #f3f4f6; }
.btn-tertiary:hover { background: #ddd6fe; }

.stats {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}
.stat-item h2 { font-size: 32px; font-weight: 800; color: #111; }
.stat-item p { font-size: 13px; color: #6b7280; margin-top: 4px; }

/* HERO IMAGE */
.hero-right {
  flex: 1;
  min-width: 320px;
  display: flex;
  justify-content: center;
}

.image-card {
  position: relative;
  max-width: 700px;
  width: 100%;
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
  filter: blur(0.3px);
}

.live-session-card {
  position: absolute;
  bottom: -30px;
  left: 20px;
  right: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.session-icon {
  width: 44px; height: 44px;
  background: #ffedd5;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.session-icon img { width: 22px; height: 22px; }

.session-text h4 { font-size: 15px; color: #111; }
.session-text p { font-size: 13px; color: #6b7280; }

.live-dot {
  width: 12px; height: 12px;
  background: #10b981; border-radius: 50%;
  margin-left: auto;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ===== SECTION COMMON ===== */
.section-tag {
  display: inline-block;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.section-tag.light { background: rgba(255,255,255,0.15); color: #fff; }

.section-title {
  font-size: 38px;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
}
.section-title.white { color: #fff; }
.section-title.left { text-align: left; margin-bottom: 12px; }

.section-desc {
  font-size: 16px;
  color: #6b7280;
  max-width: 650px;
  margin: 0 auto 50px;
  line-height: 1.6;
}
.section-desc.light { color: rgba(255,255,255,0.75); }
.section-desc.left { text-align: left; margin: 0; max-width: 500px; }

/* ===== WHY CHOOSE US ===== */
.why-choose {
  text-align: center;
  padding: 90px 60px;
}

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

.why-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: left;
  transition: box-shadow .2s, transform .2s;
}
.why-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.06); transform: translateY(-4px); }

.why-icon {
  width: 52px; height: 52px;
  background: #ede9fe;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.why-icon img { width: 24px; height: 24px; }

.why-card h3 { font-size: 18px; margin-bottom: 10px; color: #111; }
.why-card p { font-size: 14.5px; color: #6b7280; line-height: 1.6; }

/* ===== LEARNING TRACKS ===== */
.learning-tracks {
  background: #f8f7fc;
  text-align: center;
  padding: 90px 60px;
}

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

.track-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: left;
  transition: box-shadow .2s, transform .2s;
}
.track-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-4px); }

.track-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.track-icon img { width: 26px; height: 26px; }

.track-card h3 { font-size: 18px; margin-bottom: 10px; color: #111; }
.track-card p { font-size: 14.5px; color: #6b7280; line-height: 1.6; }

/* ===== FEATURED PROJECTS ===== */
.featured-projects {
  padding: 90px 60px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto 50px;
}

.view-all-btn {
  background: #fff;
  border: 1.5px solid #d1d5db;
  padding: 14px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.view-all-btn:hover { background: #f3f4f6; }

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

.project-card {
  border: 1px solid #eee;
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.project-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.1); transform: translateY(-5px); }

.project-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.project-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.project-category {
  position: absolute;
  top: 16px; left: 16px;
  background: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.project-info { padding: 24px; }

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.level {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.level.beginner { background: #d1fae5; color: #059669; }
.level.intermediate { background: #fef3c7; color: #d97706; }

.duration {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}
.duration img { width: 14px; height: 14px; }

.project-info h3 { font-size: 19px; margin-bottom: 10px; color: #111; }
.project-info p { font-size: 14.5px; color: #6b7280; line-height: 1.6; margin-bottom: 16px; }

.view-project-link {
  color: #6d28d9;
  font-weight: 600;
  font-size: 14.5px;
}
.view-project-link:hover { text-decoration: underline; }

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: linear-gradient(135deg, #4c1d95, #7c3aed, #6d28d9);
  text-align: center;
  padding: 90px 60px;
}

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

.step-card {
  background: rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 36px 28px;
  text-align: left;
}

.step-number {
  font-size: 40px;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.step-card h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.step-card p { color: rgba(255,255,255,0.8); font-size: 14.5px; line-height: 1.6; }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 60px;
}

.cta-box {
  background: #0f172a;
  border-radius: 24px;
  text-align: center;
  padding: 70px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.cta-box h2 {
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-box p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  max-width: 550px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 16px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); }

/* ===== FOOTER ===== */
.footer {
  background: #0a0e1a;
  padding: 70px 60px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo-icon {
  width: 42px; height: 42px;
  background: #6d28d9;
  border-radius: 12px;
  padding: 8px;
}

.footer-logo h3 { color: #fff; font-size: 17px; }
.footer-logo span { color: #888; font-size: 11px; letter-spacing: 1px; }

.footer-desc {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.social-icons {
  display: flex;
  gap: 12px;
}
.social-icons a {
  width: 38px; height: 38px;
  background: #1a2035;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.social-icons a:hover { background: #6d28d9; }
.social-icons img { width: 16px; height: 16px; }

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.footer-col a {
  display: block;
  color: #9ca3af;
  font-size: 14.5px;
  margin-bottom: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: #a855f7; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.contact-item img { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid #1a2035;
  margin-top: 50px;
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p { color: #6b7280; font-size: 13.5px; }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1100px) {
  .why-grid, .tracks-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(1, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 40px;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  .nav-links.show-mobile { display: flex; }
  .menu-toggle { display: block; }
  .hero-title { font-size: 36px; }
  .section-title { font-size: 30px; }
}

@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .hero { padding: 40px 20px; }
  .why-choose, .learning-tracks, .featured-projects, .how-it-works { padding: 60px 20px; }
  .cta-section { padding: 40px 20px; }
  .footer { padding: 50px 20px 20px; }

  .why-grid, .tracks-grid, .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-title { font-size: 30px; }
  .hero-img { height: 320px; }
  .stats { gap: 28px; }

  .projects-header { flex-direction: column; align-items: flex-start; }
  .section-title.left { text-align: left; }

  .cta-box h2 { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .badge { font-size: 12px; padding: 6px 14px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons button { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); display: grid; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .cta-buttons button { width: 100%; }
}

/* ===================================================
   PROJECT DETAIL PAGE STYLES
=================================================== */

/* BACK BUTTON */
.back-bar {
  padding: 24px 60px 0;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6d28d9;
  font-weight: 600;
  font-size: 14.5px;
}
.back-btn img { width: 16px; height: 16px; }
.back-btn:hover { text-decoration: underline; }

/* PROJECT HERO */
.project-hero {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 30px 60px 60px;
  flex-wrap: wrap;
}

.project-hero-content {
  flex: 1;
  min-width: 300px;
}

.project-category-tag {
  display: inline-block;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.project-hero-content h1 {
  font-size: 40px;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
  line-height: 1.2;
}

.project-subtitle {
  font-size: 17px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 500px;
}

.project-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.project-hero-image {
  flex: 1;
  min-width: 300px;
}

.project-hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
}

/* PROJECT CONTENT */
.project-content {
  padding: 20px 60px 80px;
}

.project-content-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 50px;
  max-width: 1300px;
  margin: 0 auto;
}

.content-heading {
  font-size: 24px;
  font-weight: 800;
  color: #111;
  margin: 36px 0 16px;
}
.content-heading:first-child { margin-top: 0; }

.content-text {
  font-size: 15.5px;
  color: #4b5563;
  line-height: 1.8;
}

.content-list {
  padding-left: 20px;
}
.content-list li {
  font-size: 15.5px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* CODE BOX */
.code-box {
  background: #1e1e2e;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 10px;
}

.code-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2a2a3d;
  padding: 14px 20px;
}

.code-box-header span {
  color: #d1d5db;
  font-size: 14px;
  font-family: monospace;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #6d28d9;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
}
.copy-btn:hover { background: #5b21b6; }
.copy-btn img { width: 14px; height: 14px; }

.code-box pre {
  padding: 24px;
  overflow-x: auto;
  max-height: 500px;
}

.code-box code {
  color: #a5f3fc;
  font-family: 'Courier New', monospace;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre;
}

.download-btn {
  margin-top: 20px;
  display: inline-flex;
}

/* SIDEBAR */
.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: #f8f7fc;
  border-radius: 16px;
  padding: 26px;
  border: 1px solid #eee;
  position: sticky;
  top: 100px;
}

.sidebar-card h3 {
  font-size: 17px;
  color: #111;
  margin-bottom: 18px;
}

.sidebar-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14.5px;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item span { color: #6b7280; }
.sidebar-item strong { color: #111; }

.sidebar-cta {
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  border: none;
}
.sidebar-cta h3, .sidebar-cta p { color: #fff; }
.sidebar-cta p { font-size: 14px; margin-bottom: 18px; opacity: 0.9; }

/* RELATED PROJECTS */
.related-projects {
  padding: 40px 60px 90px;
  max-width: 1300px;
  margin: 0 auto;
}

/* RESPONSIVE FOR PROJECT PAGE */
@media (max-width: 992px) {
  .project-content-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

@media (max-width: 768px) {
  .back-bar, .project-hero, .project-content, .related-projects {
    padding-left: 20px;
    padding-right: 20px;
  }
  .project-hero-content h1 { font-size: 28px; }
  .project-hero-image img { height: 220px; }
  .code-box pre { padding: 16px; }
  .code-box code { font-size: 12px; }
}

/* ===================================================
   PROJECT DETAIL PAGE STYLES
=================================================== */

/* BACK BUTTON */
.back-bar {
  padding: 24px 60px 0;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6d28d9;
  font-weight: 600;
  font-size: 14.5px;
}
.back-btn img { width: 16px; height: 16px; }
.back-btn:hover { text-decoration: underline; }

/* PROJECT HERO */
.project-hero {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 30px 60px 60px;
  flex-wrap: wrap;
}

.project-hero-content {
  flex: 1;
  min-width: 300px;
}

.project-category-tag {
  display: inline-block;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.project-hero-content h1 {
  font-size: 40px;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
  line-height: 1.2;
}

.project-subtitle {
  font-size: 17px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 500px;
}

.project-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.project-hero-image {
  flex: 1;
  min-width: 300px;
}

.project-hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
}

/* PROJECT CONTENT */
.project-content {
  padding: 20px 60px 80px;
}

.project-content-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 50px;
  max-width: 1300px;
  margin: 0 auto;
}

.content-heading {
  font-size: 24px;
  font-weight: 800;
  color: #111;
  margin: 36px 0 16px;
}
.content-heading:first-child { margin-top: 0; }

.content-text {
  font-size: 15.5px;
  color: #4b5563;
  line-height: 1.8;
}

.content-list {
  padding-left: 20px;
}
.content-list li {
  font-size: 15.5px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* CODE BOX */
.code-box {
  background: #1e1e2e;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 10px;
}

.code-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2a2a3d;
  padding: 14px 20px;
}

.code-box-header span {
  color: #d1d5db;
  font-size: 14px;
  font-family: monospace;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #6d28d9;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
}
.copy-btn:hover { background: #5b21b6; }
.copy-btn img { width: 14px; height: 14px; }

.code-box pre {
  padding: 24px;
  overflow-x: auto;
  max-height: 500px;
}

.code-box code {
  color: #a5f3fc;
  font-family: 'Courier New', monospace;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre;
}

.download-btn {
  margin-top: 20px;
  display: inline-flex;
}

/* SIDEBAR */
.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: #f8f7fc;
  border-radius: 16px;
  padding: 26px;
  border: 1px solid #eee;
  position: sticky;
  top: 100px;
}

.sidebar-card h3 {
  font-size: 17px;
  color: #111;
  margin-bottom: 18px;
}

.sidebar-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14.5px;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item span { color: #6b7280; }
.sidebar-item strong { color: #111; }

.sidebar-cta {
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  border: none;
}
.sidebar-cta h3, .sidebar-cta p { color: #fff; }
.sidebar-cta p { font-size: 14px; margin-bottom: 18px; opacity: 0.9; }

/* RELATED PROJECTS */
.related-projects {
  padding: 40px 60px 90px;
  max-width: 1300px;
  margin: 0 auto;
}

/* RESPONSIVE FOR PROJECT PAGE */
@media (max-width: 992px) {
  .project-content-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

@media (max-width: 768px) {
  .back-bar, .project-hero, .project-content, .related-projects {
    padding-left: 20px;
    padding-right: 20px;
  }
  .project-hero-content h1 { font-size: 28px; }
  .project-hero-image img { height: 220px; }
  .code-box pre { padding: 16px; }
  .code-box code { font-size: 12px; }
}

/* ===================================================
   TESTIMONIALS / STUDENT FEEDBACK SECTION
=================================================== */
.testimonials {
  padding: 90px 60px;
  text-align: center;
  background: #f8f7fc;
}

.testimonial-slider {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.testimonial-track-wrap {
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.testimonial-track-wrap::-webkit-scrollbar { display: none; }

.testimonial-track {
  display: flex;
  gap: 24px;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 18px;
  padding: 30px 26px;
  text-align: left;
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform .2s, box-shadow .2s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 24px;
  min-height: 110px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-user img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-user h4 {
  font-size: 15px;
  color: #111;
  margin-bottom: 2px;
}

.testimonial-user span {
  font-size: 13px;
  color: #6b7280;
}

/* SLIDER ARROWS */
.slider-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.slider-arrow:hover {
  background: #ede9fe;
  transform: scale(1.08);
}
.slider-arrow img { width: 20px; height: 20px; }

/* DOTS */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: background .2s, width .2s;
}

.slider-dot.active {
  background: #6d28d9;
  width: 24px;
  border-radius: 6px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .testimonial-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 768px) {
  .testimonials { padding: 60px 20px; }
  .testimonial-card { flex: 0 0 100%; }
  .slider-arrow { width: 40px; height: 40px; }
  .testimonial-text { min-height: unset; }
}

/* ===================================================
   ALL PROJECTS PAGE
=================================================== */
.page-header {
  text-align: center;
  padding: 70px 60px 30px;
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 42px;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 60px 40px;
}

.filter-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-tag {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  color: #4b5563;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}

.filter-tag:hover {
  border-color: #a855f7;
  color: #6d28d9;
}

.filter-tag.active {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #fff;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 30px;
  padding: 10px 18px;
  min-width: 240px;
}

.search-box img { width: 18px; height: 18px; flex-shrink: 0; }

.search-box input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
}

/* ALL PROJECTS GRID */
.all-projects-section {
  padding: 0 60px 90px;
  max-width: 1300px;
  margin: 0 auto;
}

.no-results {
  text-align: center;
  color: #6b7280;
  font-size: 16px;
  padding: 60px 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .page-header { padding: 50px 20px 20px; }
  .page-title { font-size: 28px; }
  .filter-bar { padding: 20px 20px 30px; flex-direction: column; align-items: stretch; }
  .search-box { min-width: unset; }
  .all-projects-section { padding: 0 20px 60px; }
}



/* ===================================================
   REQUIRED LIBRARIES SECTION
=================================================== */
.libraries-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.library-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8f7fc;
  border: 1px solid #e5e7eb;
  padding: 14px 18px;
  border-radius: 12px;
  transition: all .2s;
}

.library-chip:hover {
  background: #ede9fe;
  border-color: #a855f7;
  transform: translateX(4px);
}

.library-chip img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.library-chip span {
  flex: 1;
  font-size: 14.5px;
  font-weight: 600;
  color: #111;
}

.library-chip .external-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

@media (max-width: 480px) {
  .library-chip { padding: 12px 14px; }
  .library-chip span { font-size: 13.5px; }
}

/* ===================================================
   CIRCUIT DIAGRAM SECTION
=================================================== */
.circuit-diagram-wrap {
  position: relative;
  background: #fdfdfd;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  margin-top: 10px;
  text-align: center;
}

.circuit-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  cursor: zoom-in;
  transition: opacity .2s;
}

.circuit-image:hover {
  opacity: 0.9;
}

.zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #6d28d9;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 16px;
  transition: background .2s;
}

.zoom-btn:hover {
  background: #5b21b6;
}

.zoom-btn img {
  width: 16px;
  height: 16px;
}

/* ===================================================
   LIGHTBOX MODAL
=================================================== */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
  z-index: 1000;
  padding: 40px;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
  .circuit-diagram-wrap { padding: 14px; }
  .lightbox-overlay { padding: 20px; }
  .lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 18px; }
}


/* ===================================================
   WIRING GUIDE TABLE (Compact & Clean)
=================================================== */
.wiring-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-top: 14px;
  background: #fff;
  max-width: 480px;
}

.wiring-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.wiring-table thead {
  background: #6d28d9;
}

.wiring-table thead th {
  color: #fff;
  text-align: left;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
}

.wiring-table thead th:first-child {
  border-top-left-radius: 12px;
}

.wiring-table thead th:last-child {
  border-top-right-radius: 12px;
}

.wiring-table tbody tr {
  border-bottom: 1px solid #f0f0f3;
  transition: background .15s;
}

.wiring-table tbody tr:last-child {
  border-bottom: none;
}

.wiring-table tbody tr:nth-child(even) {
  background: #faf9fd;
}

.wiring-table tbody tr:hover {
  background: #f3f0fc;
}

.wiring-table tbody td {
  padding: 8px 16px;
  color: #374151;
  line-height: 1.4;
}

.wiring-table tbody td:first-child {
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.wiring-table tbody td:last-child {
  font-family: 'Courier New', monospace;
  color: #6d28d9;
  font-weight: 600;
  font-size: 13px;
}

@media (max-width: 480px) {
  .wiring-table-wrap { max-width: 100%; }
  .wiring-table { font-size: 12.5px; }
  .wiring-table thead th,
  .wiring-table tbody td { padding: 8px 12px; }
}

/* ===================================================
   FORCE FIX: Prevent ANY content from overflowing
   (Handles long words, URLs, unbroken strings, etc.)
=================================================== */

.project-content-grid,
.project-main,
.project-sidebar,
.sidebar-card,
.sidebar-item,
.sidebar-item strong,
.sidebar-item span,
.content-text,
.content-list li,
.code-box,
.code-box-header span,
.wiring-table td,
.library-chip span,
.project-hero-content,
.project-subtitle,
.project-hero-content h1 {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.sidebar-item {
  flex-wrap: wrap !important;
}

.sidebar-item strong {
  max-width: 100% !important;
  text-align: right;
}

.project-content-grid {
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) !important;
}

.project-sidebar,
.sidebar-card {
  min-width: 0 !important;
  width: 100% !important;
}

/* Extra safety: force ALL images to never exceed container */
.project-content img,
.project-hero img {
  max-width: 100% !important;
  height: auto !important;
}

/* Extra safety: force code blocks to scroll internally, never expand page */
.code-box pre {
  overflow-x: auto !important;
  max-width: 100% !important;
}
.code-box code {
  white-space: pre !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}