/* ═══ RESOURCES PAGE ═══ */

/* Resource tabs */
.res-tabs { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: var(--r-lg); margin-bottom: 32px; }
.res-tab {
  flex: 1;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: var(--t);
  text-align: center;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
}
.res-tab:hover { color: var(--ink); }
.res-tab.on { background: var(--white); color: var(--ink); box-shadow: var(--sh-1); color: var(--teal) !important; border-bottom-color: var(--teal) !important; }
.res-tab-content { display: none; }
.res-tab-content:first-of-type,
#res-tab-downloads { display: block; }

/* Resource grid & card */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.res-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 26px;
  transition: var(--t);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.res-card:hover { border-color: var(--teal); box-shadow: 0 8px 32px rgba(16,185,129,.1); transform: translateY(-2px); }
.res-card .res-ico { font-size: 36px; margin-bottom: 14px; display: block; }
.res-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.res-card p  { font-size: 13.5px; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 18px; }
.res-footer  { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.res-type    { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg); padding: 4px 10px; border-radius: 99px; }
.res-cat-badge  { font-size: 11px; font-weight: 700; background: var(--green-lt, #D1FAE5); color: #065F46; padding: 3px 9px; border-radius: 99px; margin-bottom: 8px; display: inline-block; }
.res-file-badge { font-size: 11px; background: #EFF6FF; color: #1E40AF; padding: 3px 8px; border-radius: 6px; font-weight: 600; }

/* Blog grid & card */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: rgba(13,158,117,.3); }
.blog-img     { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-img-ph  { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.blog-cover   { height: 180px; background: linear-gradient(135deg, var(--teal-lt), var(--bg-2)); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-cover-ph { font-size: 48px; opacity: .4; }
.blog-cat-badge { position: absolute; top: 12px; left: 12px; background: var(--white); border-radius: var(--r-pill); padding: 4px 12px; font-size: 11.5px; font-weight: 700; color: var(--teal-xd); box-shadow: var(--sh-1); }
.blog-body  { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-meta  { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 11px; }
.blog-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.blog-cat   { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.blog-date  { font-size: 12px; color: var(--muted); }
.blog-read-time { font-size: 12px; color: var(--muted); }
.blog-body h3 { font-size: 16px; font-weight: 700; line-height: 1.42; margin-bottom: 9px; }
.blog-body p  { font-size: 13.5px; color: var(--body); line-height: 1.75; flex: 1; margin-bottom: 14px; }
.blog-footer  { display: flex; align-items: center; justify-content: space-between; margin-top: auto; border-top: 1px solid var(--bg-2); padding-top: 12px; }
.blog-read-btn { font-size: 13px; font-weight: 700; color: var(--teal); display: flex; align-items: center; gap: 5px; }
.blog-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.blog-read    { font-size: 13px; font-weight: 700; color: var(--teal); display: flex; align-items: center; gap: 5px; }
.blog-read:hover { gap: 8px; }

/* Video grid & card */
.video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.video-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: var(--t);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: rgba(13,158,117,.3); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-thumb video { width: 100%; height: 100%; object-fit: cover; }
.video-thumb-ph {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0B0F1A 0%, #1A3A2C 100%);
  color: rgba(255,255,255,.5);
  font-size: 13px;
}
.video-thumb-ph span { font-size: 42px; opacity: .6; }
.video-play-btn {
  position: absolute;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transition: var(--t);
  color: var(--teal);
}
.video-card:hover .video-play-btn { transform: scale(1.1); background: var(--teal); color: #fff; }
.video-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
}
.video-body   { padding: 18px; }
.video-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 7px; line-height: 1.4; }
.video-body p  { font-size: 13px; color: var(--body); line-height: 1.7; }
.video-meta   { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.video-cat    { font-size: 11.5px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }
.video-date   { font-size: 12px; color: var(--muted); }

/* Video lightbox */
.video-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 900;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.video-overlay.on { display: flex; }
.video-player-wrap {
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
  animation: mIn .3s ease;
}
.video-player-wrap video { width: 100%; border-radius: var(--r-xl); box-shadow: 0 32px 80px rgba(0,0,0,.5); }
.video-close { position: fixed; top: 24px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--t); }
.video-close:hover { background: rgba(255,255,255,.22); }

/* Work collection */
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.work-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--t);
  cursor: pointer;
}
.work-card:hover { border-color: var(--teal); box-shadow: var(--sh-2); transform: translateY(-2px); }
.work-icon-box {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--teal-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(13,158,117,.15);
}
.work-info h4   { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; line-height: 1.35; }
.work-info p    { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.work-footer    { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.work-type      { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .res-grid   { grid-template-columns: repeat(2, 1fr); }
  .blog-grid, .video-grid, .work-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .res-grid   { grid-template-columns: 1fr; }
  .blog-grid, .video-grid, .work-grid { grid-template-columns: 1fr; }
  .res-tabs { flex-direction: column; }
}
