/* ============================================================
   SKILLFORGE – gallery.css
   Page-specific styles for Gallery page
============================================================ */

/* ---- Page Banner ---- */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 120px 0 80px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1600&auto=format&fit=crop&q=40') center/cover no-repeat;
  opacity: .08;
}
.page-banner h1 { font-size: 3rem; font-weight: 800; color: #fff; margin-bottom: 14px; position: relative; }
.page-banner p  { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 580px; margin: 0 auto 20px; position: relative; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.7); position: relative; }
.breadcrumb a { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }

/* ---- Category Filter ---- */
.gallery-filter { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-btn {
  padding: 9px 24px; background: var(--bg-white); border: 2px solid var(--border);
  border-radius: var(--radius-full); font-size: .9rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(26,60,143,.25); }

/* ---- Gallery Grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: var(--transition);
}
.gallery-item.wide  { grid-column: span 2; }
.gallery-item.tall  { grid-row: span 2; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(26,60,143,.85));
  opacity: 0; transition: var(--transition); display: flex; flex-direction: column;
  justify-content: flex-end; padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h5 { color: #fff; font-size: .95rem; margin-bottom: 4px; }
.gallery-overlay span { color: rgba(255,255,255,.7); font-size: .8rem; }
.gallery-zoom-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0);
  width: 52px; height: 52px; background: rgba(255,255,255,.2); border-radius: 50%;
  color: #fff; font-size: 1.2rem; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.4); transition: var(--transition);
}
.gallery-item:hover .gallery-zoom-btn { transform: translate(-50%,-50%) scale(1); }
.gallery-item[style*="display: none"] { display: none !important; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-inner {
  position: relative; max-width: 1000px; width: 100%; animation: lbPop .3s ease;
}
@keyframes lbPop { from { transform: scale(.88) translateY(16px); } to { transform: scale(1) translateY(0); } }
.lightbox-img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-caption { color: rgba(255,255,255,.8); text-align: center; margin-top: 14px; font-size: .95rem; }
.lb-close {
  position: fixed; top: 20px; right: 24px; width: 44px; height: 44px;
  background: rgba(255,255,255,.12); border-radius: 50%; color: #fff; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition);
}
.lb-close:hover { background: var(--danger); }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; background: rgba(255,255,255,.12); border-radius: 50%;
  color: #fff; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); backdrop-filter: blur(4px);
}
.lb-prev { left: -64px; }
.lb-next { right: -64px; }
.lb-prev:hover, .lb-next:hover { background: var(--primary); }

/* ---- Campus Photos ---- */
.campus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.campus-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; cursor: pointer; }
.campus-card img { width: 100%; height: 240px; object-fit: cover; transition: var(--transition-slow); }
.campus-card:hover img { transform: scale(1.06); }
.campus-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-weight: 600; font-size: .9rem; }

/* ---- Events Section ---- */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card { background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.event-card-img { position: relative; }
.event-card-img img { width: 100%; height: 200px; object-fit: cover; }
.event-date-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--primary); color: #fff; border-radius: var(--radius-sm);
  padding: 8px 12px; text-align: center; font-weight: 700; line-height: 1.2;
}
.event-date-badge .day  { font-size: 1.4rem; display: block; }
.event-date-badge .mon  { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.event-card-body { padding: 20px; }
.event-card-body h4 { font-size: 1rem; margin-bottom: 8px; }
.event-card-body p  { font-size: .85rem; color: var(--text-muted); }

/* ---- Workshops Section ---- */
.workshop-list { display: flex; flex-direction: column; gap: 20px; }
.workshop-item {
  display: grid; grid-template-columns: 280px 1fr;
  background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden; transition: var(--transition);
}
.workshop-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.workshop-item img { width: 100%; height: 180px; object-fit: cover; }
.workshop-body { padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.workshop-body .tag { display: inline-block; background: rgba(26,60,143,.08); color: var(--primary); font-size: .78rem; font-weight: 600; padding: 3px 12px; border-radius: var(--radius-full); margin-bottom: 10px; }
.workshop-body h4 { font-size: 1.1rem; margin-bottom: 8px; }
.workshop-body p  { font-size: .88rem; color: var(--text-muted); margin-bottom: 14px; }
.workshop-meta { display: flex; gap: 16px; }
.workshop-meta span { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.workshop-meta span i { color: var(--primary); }

/* ---- Student Activities ---- */
.activities-masonry {
  columns: 3;
  gap: 16px;
}
.activity-item { break-inside: avoid; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; cursor: pointer; position: relative; }
.activity-item img { width: 100%; display: block; transition: var(--transition-slow); }
.activity-item:hover img { transform: scale(1.04); }
.activity-item .overlay {
  position: absolute; inset: 0; background: rgba(26,60,143,.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition); color: #fff; font-size: 1.5rem;
}
.activity-item:hover .overlay { opacity: 1; }

/* ---- Video Gallery ---- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; cursor: pointer; }
.video-thumb { position: relative; }
.video-thumb img { width: 100%; height: 200px; object-fit: cover; transition: var(--transition-slow); }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 58px; height: 58px; background: rgba(255,255,255,.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary);
  transition: var(--transition);
}
.video-card:hover .play-btn { background: var(--accent); color: #fff; transform: translate(-50%,-50%) scale(1.1); }
.video-body { padding: 16px; background: var(--bg-white); }
.video-body h5 { font-size: .92rem; margin-bottom: 4px; }
.video-body span { font-size: .8rem; color: var(--text-muted); }

/* ---- CTA ---- */
.cta-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); padding: 90px 0; text-align: center; color: #fff; }
.cta-section h2 { font-size: 2.5rem; color: #fff; margin-bottom: 16px; }
.cta-section p  { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 36px; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.75); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .logo-icon { width: auto; height: 48px; background: none; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.footer-brand .logo-text .name { font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer-brand .logo-text .tagline { font-size: .7rem; color: rgba(255,255,255,.5); }
.footer-brand p { font-size: .88rem; line-height: 1.8; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: var(--transition); }
.social-links a:hover { background: var(--primary); color: #fff; }
.footer-col h5 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact-item i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.footer-contact-item span { font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; margin-top: 60px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: .85rem; color: rgba(255,255,255,.45); }
.footer-bottom a { color: var(--accent); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: .82rem; color: rgba(255,255,255,.4); transition: var(--transition); }
.footer-legal a:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .campus-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .page-banner h1 { font-size: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item.wide, .gallery-item.tall, .gallery-item.large { grid-column: span 1; grid-row: span 1; }
  .activities-masonry { columns: 2; }
  .workshop-item { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-prev { left: -48px; }
  .lb-next { right: -48px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .activities-masonry { columns: 1; }
  .video-grid { grid-template-columns: 1fr; }
  .campus-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { display: none; }
}
