/* ===== PROJECTS PAGE ===== */

.page-header {
  padding-top: var(--nav-h);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, #ede8e1 0%, #e4ddd4 100%);
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}
.page-header-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px 64px;
  position: relative;
  z-index: 1;
}
.page-header-back a {
  font-size: 0.85rem;
  color: var(--light);
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.page-header-back a:hover { color: var(--dark); }
.page-header-content h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.page-header-content > p {
  font-size: 0.975rem;
  color: var(--mid);
  line-height: 1.7;
}

/* ===== ALL PROJECTS LAYOUT ===== */
.all-projects {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 40px 100px;
}

.project-full {
  padding-bottom: 72px;
}

.project-full-header {
  margin-bottom: 40px;
}
.project-full-meta h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 12px 0 16px;
}
.project-full-desc {
  font-size: 0.975rem;
  color: var(--mid);
  line-height: 1.85;
  max-width: 700px;
  margin-bottom: 20px;
}
.project-full-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-full-tags span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mid);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
}

.project-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0 72px;
}

/* ===== BEFORE / AFTER ===== */
.before-after-section {
  background: var(--bg);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--border);
}
.ba-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: center;
}
.ba-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ba-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  width: fit-content;
}
.before-label {
  background: #fef2f2;
  color: #e05a5a;
  border: 1px solid #fecaca;
}
.after-label {
  background: #f0fdf4;
  color: #22a05a;
  border: 1px solid #bbf7d0;
}
/* Slider */
.ba-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 500px;
  background: #f0f0f0;
}
.ba-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.35s ease;
  display: block;
}
.ba-slide.active { opacity: 1; }

.ba-arrow-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s, transform 0.2s;
  color: var(--dark);
  z-index: 2;
}
.ba-arrow-btn:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-50%) scale(1.05);
}

.ba-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.ba-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.ba-dot.active { background: var(--white); }

/* After image */
.ba-col:last-child .ba-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 500px;
  background: #f0f0f0;
}
.ba-col:last-child .ba-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.ba-caption {
  font-size: 0.78rem;
  color: var(--light);
  line-height: 1.5;
  text-align: center;
}
.ba-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.2rem;
}
.ba-arrow {
  width: 32px;
  height: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--mid);
}

/* ===== PDF SECTION ===== */
.pdf-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pdf-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.pdf-icon {
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  flex-shrink: 0;
}
.pdf-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pdf-info strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
}
.pdf-info span {
  font-size: 0.8rem;
  color: var(--light);
}
.pdf-btn {
  flex-shrink: 0;
  font-size: 0.85rem;
  padding: 10px 20px;
}

.pdf-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  color: var(--mid);
}
.highlight-item svg {
  flex-shrink: 0;
  color: var(--dark);
}
.highlight-item span {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ===== OOG TV ===== */
.oog-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.oog-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.oog-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  aspect-ratio: 9/16;
}
.oog-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.oog-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.oog-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== DESK RESEARCH BOOKLET ===== */
.booklet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.booklet-img {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}
.booklet-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.booklet-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== STUD SOCIETY ===== */
.stud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.stud-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.stud-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .all-projects { padding: 48px 20px 80px; }
  .page-header-content { padding: 48px 20px 56px; }
  .page-header-bg { display: none; }
  .before-after-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ba-divider { transform: rotate(90deg); padding-top: 0; }
  .ba-img-wrap, .ba-col:last-child .ba-img-wrap { height: 320px; }
  .pdf-card { flex-wrap: wrap; }
  .pdf-highlights { grid-template-columns: 1fr; }
  .before-after-section { padding: 24px 20px; }
  .oog-videos { grid-template-columns: 1fr; }
  .booklet-grid { grid-template-columns: 1fr 1fr; }
  .stud-grid { grid-template-columns: 1fr; }
}
