/* Computer Workshop page */

.workshop-page {
  background: #f8faff;
}

.workshop-hero {
  min-height: 670px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 25%, rgba(21,94,239,.13), transparent 26%),
    linear-gradient(145deg, #f7faff 0%, #ffffff 70%);
}

.workshop-hero-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 70px;
  padding: 80px 0;
}

.workshop-hero-copy {
  order: 1;
}

.workshop-hero-copy h1 {
  color: var(--navy);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.35;
  letter-spacing: -1.5px;
  font-weight: 900;
  margin: 15px 0 18px;
}

.workshop-hero-copy h1 span {
  color: var(--primary);
}

.workshop-hero-copy > p {
  color: var(--muted);
  max-width: 580px;
  font-size: 14px;
  line-height: 2.1;
}

.workshop-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 27px;
  flex-wrap: wrap;
}

.workshop-mini-stats {
  display: flex;
  gap: 35px;
  margin-top: 42px;
}

.workshop-mini-stats div {
  display: flex;
  flex-direction: column;
}

.workshop-mini-stats strong {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.1;
}

.workshop-mini-stats span {
  color: var(--muted);
  font-size: 10px;
}

.workshop-hero-photo {
  position: relative;
  order: 2;
}

.photo-frame {
  position: relative;
  background: white;
  border: 10px solid white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(16, 24, 40, .14);
  transform: rotate(1deg);
}

.photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  right: 18px;
  left: 18px;
  bottom: 18px;
  padding: 13px 16px;
  background: rgba(10, 18, 32, .76);
  border: 1px solid rgba(255,255,255,.12);
  color: white;
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.photo-caption span,
.photo-caption small {
  display: block;
}

.photo-caption span {
  font-size: 13px;
  font-weight: 800;
}

.photo-caption small {
  color: rgba(255,255,255,.72);
  font-size: 9px;
  margin-top: 1px;
}

.photo-badge {
  position: absolute;
  right: -28px;
  top: 58px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 18px 35px rgba(16,24,40,.1);
  border-radius: 15px;
  padding: 13px 15px;
}

.photo-badge strong,
.photo-badge span {
  display: block;
}

.photo-badge strong {
  color: var(--navy);
  font-size: 11px;
}

.photo-badge span {
  color: var(--muted);
  font-size: 8px;
  margin-top: 2px;
}

.workshop-intro {
  background: white;
}

.intro-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.intro-content {
  padding-top: 22px;
}

.intro-content p {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  margin-bottom: 13px;
}

.computer-skills {
  background: #f7f9fc;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-top: 48px;
}

.skill-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 19px;
  padding: 25px;
  min-height: 230px;
  position: relative;
  transition: .25s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.skill-card > span {
  position: absolute;
  top: 20px;
  left: 22px;
  color: #98a2b3;
  font-size: 10px;
}

.skill-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
}

.skill-icon.blue { background: #eaf2ff; color: #155eef; }
.skill-icon.purple { background: #f0ecff; color: #7654e8; }
.skill-icon.orange { background: #fff1e4; color: #ed8b2f; }
.skill-icon.green { background: #e8f9f1; color: #13a36b; }
.skill-icon.red { background: #ffedf0; color: #e64b5f; }
.skill-icon.dark { background: #edf0f4; color: #111827; }

.skill-card h3 {
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 6px;
}

.skill-card p {
  color: var(--muted);
  font-size: 10px;
  line-height: 2;
}

.workshop-process {
  background: white;
}

.process {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 65px 1fr 65px 1fr;
  align-items: center;
}

.process-item {
  background: #f8faff;
  border: 1px solid #e7edf7;
  border-radius: 18px;
  min-height: 160px;
  padding: 24px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.process-number {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 15px;
}

.process-item h3 {
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 5px;
}

.process-item p {
  color: var(--muted);
  font-size: 10px;
  line-height: 2;
}

.process-line {
  height: 2px;
  background: #dfe6f1;
  position: relative;
}

.process-line::after {
  content: "←";
  color: var(--primary);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0 8px;
  font-size: 14px;
}

.workshop-quote {
  background: var(--navy);
  color: white;
  padding: 65px 0;
}

.quote-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 90px;
  line-height: 1;
  color: #4c83ef;
  margin-top: -15px;
}

.quote-inner p {
  color: white;
  font-size: 23px;
  font-weight: 800;
}

.quote-inner span {
  display: block;
  color: #98a2b3;
  font-size: 10px;
  margin-top: 8px;
}

.contact-section {
  background: #f7f9fc;
}

.contact-card {
  padding: 45px 50px;
  border-radius: 25px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(16,24,40,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.contact-card h2 {
  color: var(--navy);
  font-size: 28px;
  margin: 12px 0 7px;
}

.contact-card p {
  color: var(--muted);
  font-size: 11px;
  max-width: 580px;
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.workshop-footer-bottom {
  border-top: 0;
}

.workshop-footer-bottom a {
  color: #98a2b3;
}

.workshop-footer-bottom a:hover {
  color: white;
}

@media (max-width: 980px) {
  .workshop-hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
    text-align: center;
  }

  .workshop-hero-copy > p {
    margin-inline: auto;
  }

  .workshop-hero-actions,
  .workshop-mini-stats {
    justify-content: center;
  }

  .workshop-hero-photo {
    max-width: 650px;
    width: 100%;
    margin: auto;
  }

  .photo-badge {
    right: -8px;
  }

  .student-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tutorial-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-line {
    width: 2px;
    height: 28px;
    margin-inline: auto;
  }

  .process-line::after {
    content: "↓";
    top: 4px;
    left: -6px;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .student-project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-video-grid { grid-template-columns: 1fr; }

  .project-preview {
    height: 210px;
  }

  .workshop-hero-grid {
    padding: 55px 0 65px;
  }

  .workshop-hero-copy h1 {
    font-size: 38px;
  }

  .workshop-mini-stats {
    gap: 22px;
  }

  .photo-badge {
    position: relative;
    right: auto;
    top: auto;
    display: inline-block;
    margin-top: 14px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .quote-inner {
    display: block;
  }

  .quote-mark {
    font-size: 65px;
  }

  .quote-inner p {
    font-size: 18px;
  }

  .contact-card {
    padding: 30px 24px;
  }

  .contact-card h2 {
    font-size: 23px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .btn {
    flex: 1;
  }
}

@media (max-width: 430px) {
  .workshop-hero-copy h1 {
    font-size: 33px;
  }

  .workshop-hero-actions .btn {
    width: 100%;
  }

  .photo-frame {
    border-width: 7px;
    border-radius: 20px;
  }
}


/* Real-photo equipment gallery */
.equipment-gallery {
  background: #fff;
}

.student-projects { background: #f7f9fc; }
.tutorial-videos { background: #fff; }
.tutorial-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.tutorial-video-error,
.tutorial-video-empty { grid-column: 1 / -1; margin: 0; padding: 16px 20px; border-radius: 12px; line-height: 1.9; }
.tutorial-video-error { color: #8b1e1e; background: #fff0f0; border: 1px solid #f3b8b8; direction: rtl; overflow-wrap: anywhere; }
.tutorial-video-empty { color: var(--muted); background: #f7f9fc; border: 1px solid var(--border); text-align: center; }
.tutorial-video-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 12px 30px rgba(16,24,40,.05); }
.tutorial-video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #111827; object-fit: contain; }
.tutorial-video-card h3 { margin: 0; padding: 15px 18px 17px; color: var(--navy); font-size: 14px; }
.student-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.student-project-card { min-width: 0; overflow: hidden; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 12px 30px rgba(16,24,40,.05); transition: transform .25s ease, box-shadow .25s ease; }
.student-project-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(16,24,40,.11); }
.project-preview { height: 190px; overflow: hidden; background: var(--preview-color, #edf2f8); border-bottom: 1px solid var(--border); }
.project-preview iframe { display: block; width: 1280px; height: 720px; border: 0; transform: scale(.32); transform-origin: top right; pointer-events: none; background: white; }
.project-card-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.project-card-info h3 { margin: 0 0 4px; color: var(--navy); font-size: 15px; }
.project-card-info span:not(.project-arrow) { display: block; direction: ltr; text-align: right; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.project-arrow { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; color: var(--primary); background: #edf3ff; font-size: 18px; transition: transform .2s ease; }
.student-project-card:hover .project-arrow { transform: translate(2px, -2px); }

@media (max-width: 700px) {
  .student-project-grid,
  .tutorial-video-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.equipment-photo {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 20px;
  background: #e8edf5;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}

.equipment-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform .45s ease;
}

.equipment-photo:hover img {
  transform: scale(1.045);
}

.equipment-photo .gallery-image {
  cursor: zoom-in;
}

.equipment-photo::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(180deg, transparent, rgba(8, 15, 28, .82));
  pointer-events: none;
}

.equipment-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  left: 18px;
  bottom: 17px;
  color: white;
}

.equipment-photo figcaption strong,
.equipment-photo figcaption span {
  display: block;
}

.equipment-photo figcaption strong {
  font-size: 14px;
}

.equipment-photo figcaption span {
  font-size: 9px;
  color: rgba(255,255,255,.78);
  margin-top: 3px;
}

.gallery-note {
  color: var(--muted);
  font-size: 10px;
  margin-top: 14px;
}

.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 34px); padding: 64px 24px 40px; background: rgba(6, 12, 24, .94); }
.lightbox-content { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(82vw, 1200px); max-height: 100%; margin: 0; }
.lightbox-content img { display: block; max-width: 100%; max-height: calc(100vh - 145px); object-fit: contain; border-radius: 10px; box-shadow: 0 20px 65px rgba(0,0,0,.4); }
.lightbox-content figcaption { color: rgba(255,255,255,.82); font-size: 13px; }
.lightbox-close, .lightbox-nav { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); color: white; background: rgba(255,255,255,.1); cursor: pointer; transition: background .2s ease; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; font-size: 30px; line-height: 1; }
.lightbox-nav { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; font-size: 34px; line-height: 1; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 600px) {
  .gallery-lightbox { gap: 8px; padding: 68px 10px 28px; }
  .lightbox-content { max-width: calc(100vw - 92px); }
  .lightbox-content img { max-height: calc(100vh - 130px); }
  .lightbox-nav { width: 36px; height: 36px; flex-basis: 36px; font-size: 27px; }
}

@media (max-width: 900px) {
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  }

@media (max-width: 600px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }

    .equipment-photo {
    min-height: 240px;
  }

  .equipment-photo img {
    min-height: 0;
  }
}
