* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: Arial, sans-serif;
    color: #333;
    padding: 1rem;
}
.container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-width: 360px;
    width: 100%;
    text-align: center;
    padding: 2rem;
    position: relative;
}
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto 1rem;
}
h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    color: #1a202c;
}
p.bio {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}
.links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.links a {
    display: block;
    padding: 0.75rem;
    background: #667eea;
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
}
.links a:hover {
    background: #5a67d8;
}
.social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #edf2f7;
    border-radius: 50%;
    text-decoration: none;
    color: #4a5568;
    font-size: 1.2rem;
    transition: background 0.3s, transform 0.3s;
}
.social a:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}
.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #4a5568;
    font-size: 1.5rem;
    transition: color 0.3s;
}
.theme-toggle:hover {
    color: #2d3748;
}
body.dark {
    background: #1a202c;
    color: #e2e8f0;
}
body.dark .container {
    background: #2d3748;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
body.dark .links a {
    background: #4c51bf;
}
body.dark .links a:hover {
    background: #434190;
}
body.dark .social a {
    background: #4a5568;
    color: #e2e8f0;
}

.course-section {
  text-align: left;
  margin-top: 1rem;
}

.course-section h3 {
  margin-bottom: 0.5rem;
}

.course-section ul {
  padding-left: 1.2rem;
}

.course-section li {
  margin-bottom: 0.3rem;
}

.cta-btn {
  display: block;
  margin-top: 1.5rem;
  padding: 0.8rem;
  background: #48bb78;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.cta-btn:hover {
  background: #38a169;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.blog-item {
  padding: 0.9rem;
  border-radius: 10px;
  background: #edf2f7;
  text-align: left;
  transition: 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-item:hover {
  transform: translateY(-2px);
  background: #e2e8f0;
}


body.dark .blog-item {
  background: #4a5568;
  color: #e2e8f0;
}

body.dark .blog-item:hover {
  background: #2d3748;
}

.blog-item h3 {
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.blog-item p {
  font-size: 0.9rem;
}

.detail-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 2rem;
  padding: 2rem 1rem;
}

.detail-container .breadcrumb {
  width: 100%;
}

.detail-main {
  flex: 2;
}

.detail-main h1 {
  color: white;
}

.detail-main h3 {
  color: #f7fafc;
}

.detail-side {
  flex: 1;
}

.tags {
  margin: 1rem 0;
}

.tags span {
  background: #edf2f7;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-right: 5px;
}

.detail-section {
  margin-top: 1.5rem;
}

.detail-section h3 {
  margin-bottom: 0.5rem;
}

.review {
  background: #edf2f7;
  padding: 0.8rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.mentor-card {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
}

.mentor-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.mentor-info {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
}

body.dark .mentor-card {
  background: #2d3748;
}

body.dark .review,
body.dark .tags span {
  background: #4a5568;
  color: #e2e8f0;
}

.detail-container {
  color: #f7fafc; 
}

.detail-main .bio {
  color: #e2e8f0;
}


.detail-main p {
  color: #e2e8f0;
}

.detail-main li {
  color: #e2e8f0;
}

.tags span {
  background: rgba(255,255,255,0.2);
  color: white;
}

.review {
  background: rgba(255,255,255,0.15);
  color: white;
}

.mentor-card {
  background: white;
  color: #1a202c; 
}

.mentor-card p,
.mentor-card small,
.mentor-card h3 {
  color: #1a202c;
}

.mentor-info p {
  font-weight: bold;
}

body.dark .mentor-card {
  background: #2d3748;
  color: #e2e8f0;
}

body.dark .mentor-card p,
body.dark .mentor-card small,
body.dark .mentor-card h3 {
  color: #e2e8f0;
}

.tarif-box {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,0.15);
  padding: 1.2rem;
  border-radius: 16px;
  margin-top: 0.8rem;
}

.tarif-item {
  flex: 1;
}

.tarif-item strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.tarif-item p {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.9rem;
}

body.dark .tarif-box {
  background: #4a5568;
}

.detail-main {
  color: #f7fafc;
}

.detail-main h1 {
  color: #ffffff;
}

.detail-main .bio {
  color: #e2e8f0;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.detail-section {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}

.detail-section + .detail-section {
  margin-top: 1rem;
}

.detail-section p,
.detail-section li {
  color: #e2e8f0;
}

.review {
  border: 1px solid rgba(255,255,255,0.2);
}

.tarif-item {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.8rem;
  border-radius: 10px;
}

.tags span {
  background: rgba(255,255,255,0.25);
}

.mentor-card {
  background: #ffffff;
  color: #1a202c;
}


body.dark .detail-section {
  background: #4a5568;
  border-color: #4a5568;
}

body.dark .review {
  background: #4a5568;
  border-color: #4a5568;
}

body.dark .tarif-item {
  background: #4a5568;
  border-color: #4a5568;
}

@media (max-width: 768px) {
  .detail-container {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
    .container {
    padding: 1.5rem;
    }
    .avatar {
    width: 100px;
    height: 100px;
    }
}

.portfolio-img {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  animation: zoomIn 0.3s ease;
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

@keyframes zoomIn {
  from {transform: scale(0.7); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}
.breadcrumb {
  font-size: 13px;
  margin-bottom: 10px;
  color: #666;
}

.breadcrumb a {
  text-decoration: none;
  color: #667eea;
}

.breadcrumb a:hover {
  text-decoration: underline;
}


.detail-wrapper {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.detail-wrapper .breadcrumb {
  margin-bottom: 15px;
}