/* ═══════════════════════════════════════════════════════
   PERSONAL PAGE — Clean, spacious redesign
   Hero: Course highlight → Projects → Designs → Video → Blogs
   ═══════════════════════════════════════════════════════ */

/* ── HERO — split: text left + course card right ── */
.personal-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
}

@media (min-width: 820px) {
  .personal-hero {
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
  }
}

.hero-left .section-eyebrow {
  margin-bottom: 1rem;
}

.hero-left .section-heading {
  margin-bottom: 1.25rem;
  line-height: 1.12;
}

.hero-left .section-intro {
  max-width: 460px;
}

/* ── COURSE CARD ── */
.course-card {
  background: #1c1c1c;
  color: #f5f4f1;
  border-radius: 22px;
  padding: 1.8rem 1.6rem;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #e07b2a);
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.course-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1c1c1c;
  background: #e07b2a;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.course-duration {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  letter-spacing: 0.06em;
}

.course-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.4rem;
}

.course-subtitle {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin: 0 0 1.2rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* ── Progress bar ── */
.course-progress {
  margin-bottom: 1.2rem;
}

.progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #e07b2a);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.progress-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}

/* ── Module list ── */
.course-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.module-tag {
  font-size: 0.7rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.module-tag.done {
  color: #f5f4f1;
  border-color: rgba(181, 52, 28, 0.5);
  background: rgba(181, 52, 28, 0.2);
}

.module-tag.current {
  color: #1c1c1c;
  border-color: #e07b2a;
  background: #e07b2a;
  font-weight: 500;
}

.module-tag.upcoming {
  color: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.06);
}

/* ── SECTION ROW HEADER ── */
.section-row-header {
  margin-bottom: 2.5rem;
}

.section-row-header .section-heading {
  margin-bottom: 0.75rem;
}

/* ── PROJECT SHOWCASE — video + description pair ── */
.project-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.project-showcase:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .project-showcase {
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
  }
  .project-showcase:nth-child(even) {
    grid-template-columns: 1fr 1.15fr;
  }
  .project-showcase:nth-child(even) .project-showcase-media {
    order: 2;
  }
}

.project-showcase-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  background: #000;
}

.project-showcase-media video {
  width: 100%;
  min-height: 280px;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.project-showcase-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}

.project-showcase-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-showcase-info .summary-label {
  margin-bottom: 0;
}

.project-showcase-info h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.project-showcase-info p {
  color: #4a4a4a;
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0;
}

.showcase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.showcase-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}

.showcase-links a:hover {
  transform: translateY(-1px);
  background: rgba(181, 52, 28, 0.08);
  text-decoration: none;
}

/* ── DESIGN GALLERY — 3-col grid ── */
.gallery-header {
  margin-bottom: 2.5rem;
}

.gallery-header .section-heading {
  margin-bottom: 0.75rem;
}

.design-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

@media (max-width: 768px) {
  .design-gallery {
    grid-template-columns: repeat(1, 1fr);
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .design-gallery {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.20);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: #f5f4f1;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.14);
}

.gallery-item img {
  width: 100%;
  /* aspect-ratio: 10 / 5; */
  object-fit:fill;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* ── YOUTUBE FEATURED — split layout ── */
.yt-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .yt-featured {
    grid-template-columns: 1.2fr 1fr;
  }
}

.yt-featured-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  background: #111;
  display: block;
  text-decoration: none;
}

.yt-featured-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.yt-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(181, 52, 28, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(181, 52, 28, 0.4);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.yt-featured:hover .yt-play-badge {
  transform: translate(-50%, -50%) scale(1.1);
}

.yt-featured-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.yt-featured-info .section-eyebrow {
  margin-bottom: 0;
}

.yt-featured-info h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.yt-featured-info p {
  color: #4a4a4a;
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0;
}

.yt-featured-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 500;
  font-size: 0.88rem;
  transition: transform 0.2s ease, background 0.2s ease;
  width: fit-content;
}

.yt-featured-info a:hover {
  transform: translateY(-1px);
  background: rgba(181, 52, 28, 0.08);
  text-decoration: none;
}

/* ── SECTION ROW HEADER ── */
.section-row-header {
  margin-bottom: 2.5rem;
}

.section-row-header .section-eyebrow {
  margin-bottom: 0.8rem;
}

.section-row-header .section-heading {
  margin-bottom: 0.75rem;
}

/* ── BLOG GRID — compact modern cards ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

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

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.2s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  text-decoration: none;
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: rgba(181, 52, 28, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  width: fit-content;
}

.blog-card-title {
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-summary {
  font-size: 0.82rem;
  color: #6b6b6b;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── EXPLORING — tag cloud ── */
.exploring-section {
  text-align: center;
  padding: 3rem 0 2rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.tag-cloud .tag {
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 400;
  transition: all 0.25s ease;
}

.tag-cloud .tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(181, 52, 28, 0.1);
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .personal-hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 0 1.5rem;
  }

  .course-card {
    padding: 1.5rem 1.3rem;
  }

  .course-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .project-showcase,
  .project-showcase:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project-showcase:nth-child(even) .project-showcase-media {
    order: 0;
  }

  .yt-featured {
    grid-template-columns: 1fr;
  }

  .project-showcase-media video {
    min-height: 220px;
  }
}