/* =========================================================
   STUDENT LIFE CENTER & CLUBS STYLESHEET
   Guru Nanak Institute of Pharmaceutical Science & Technology
   (Life Sciences Department)
   Loaded by campus-life.php & student-clubs.php
   ========================================================= */

/* ---- Section Scaffolding ---- */
.cl-section {
  padding: 64px 0;
}
.cl-section--tint {
  background: #f7faf7;
}
.cl-section--white {
  background: #ffffff;
}

.cl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lsc-leaf, #1e7e34);
  margin-bottom: 10px;
}
.cl-kicker::before {
  content: '';
  width: 20px;
  height: 2.5px;
  background: var(--lsc-amber, #f59e0b);
  border-radius: 2px;
}

.cl-heading {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: var(--lsc-navy, #0f2a4a);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.cl-lede {
  max-width: 780px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #4b5563;
  margin: 0 0 36px;
}

/* =========================================================
   METRICS BAR (Top Ribbon)
   ========================================================= */
.cl-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -36px;
  margin-bottom: 44px;
  position: relative;
  z-index: 10;
}
.cl-metric-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(15, 42, 74, 0.08);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cl-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -6px rgba(0, 0, 0, 0.1);
}
.cl-metric-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cl-metric-icon.icon-amber {
  background: #fef3c7;
  color: #d97706;
}
.cl-metric-icon.icon-green {
  background: #e8f5e9;
  color: #1e7e34;
}
.cl-metric-icon.icon-blue {
  background: #e0f2fe;
  color: #0284c7;
}
.cl-metric-icon.icon-purple {
  background: #f3e8ff;
  color: #7e22ce;
}
.cl-metric-icon svg {
  width: 24px;
  height: 24px;
}
.cl-metric-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--lsc-navy, #0f2a4a);
  line-height: 1.1;
}
.cl-metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .cl-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .cl-metrics-bar {
    grid-template-columns: 1fr;
    margin-top: -24px;
    margin-bottom: 28px;
  }
}

/* =========================================================
   STUDENT LIFE CENTER OVERVIEW BANNER
   ========================================================= */
.slc-hero-box {
  background: linear-gradient(135deg, #0b2239 0%, #153e6b 100%);
  border-radius: 16px;
  padding: 36px 40px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
  box-shadow: 0 12px 32px rgba(11, 34, 57, 0.16);
  position: relative;
  overflow: hidden;
}
.slc-hero-box::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.slc-hero-text h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}
.slc-hero-text p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 16px;
  max-width: 720px;
}
.slc-hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.slc-pillar-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fbd38d;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 860px) {
  .slc-hero-box {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* =========================================================
   CLUBS INTERACTIVE TABS & CARDS
   ========================================================= */
.cl-controls-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.cl-filter-btn {
  background: #f1f5f9;
  border: 1px solid transparent;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cl-filter-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.cl-filter-btn.is-active {
  background: #eef8ee;
  border-color: #cbe9cf;
  color: var(--lsc-leaf, #1e7e34);
  font-weight: 700;
}

.clubs-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.club-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  scroll-margin-top: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.club-card:hover {
  box-shadow: 0 12px 28px rgba(15, 42, 74, 0.08);
}
.club-card-head {
  background: linear-gradient(135deg, #0b2239 0%, #153e6b 100%);
  color: #ffffff;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.club-card-title-group h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.club-card-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.club-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbd38d;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.club-card-body {
  padding: 28px;
}
.club-card-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.club-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 20px;
}

.club-events-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.club-events-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--lsc-navy, #0f2a4a);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.club-events-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.club-events-list li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.club-events-list li svg {
  width: 16px;
  height: 16px;
  color: var(--lsc-leaf, #1e7e34);
  flex-shrink: 0;
  margin-top: 3px;
}

.club-meta-box {
  background: #f1f8f3;
  border: 1px solid #cbe9cf;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.club-meta-item span.meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lsc-leaf, #1e7e34);
  display: block;
  margin-bottom: 3px;
}
.club-meta-item span.meta-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--lsc-navy, #0f2a4a);
  line-height: 1.4;
  display: block;
}

.club-photos-preview {
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
}
.club-photos-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lsc-navy, #0f2a4a);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.club-photos-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
.club-photo-thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background: #f1f5f9;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.club-photo-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 42, 74, 0.12);
}
.club-photo-thumb a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.club-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.club-photo-thumb:hover img {
  transform: scale(1.08);
}

@media (max-width: 900px) {
  .club-card-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ANNUAL CAMPUS TRADITIONS
   ========================================================= */
.traditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}
.tradition-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tradition-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 42, 74, 0.08);
}
.tradition-month {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lsc-amber, #f59e0b);
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 12px;
}
.tradition-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--lsc-navy, #0f2a4a);
  margin: 0 0 8px;
  line-height: 1.35;
}
.tradition-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* =========================================================
   MEMBERSHIP & ETHICS GUIDELINES
   ========================================================= */
.slc-guidelines-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.slc-guideline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.slc-guideline-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eef8ee;
  color: var(--lsc-leaf, #1e7e34);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.slc-guideline-icon svg {
  width: 22px;
  height: 22px;
}
.slc-guideline-text h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--lsc-navy, #0f2a4a);
  margin: 0 0 4px;
}
.slc-guideline-text p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

@media (max-width: 768px) {
  .slc-guidelines-box {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* =========================================================
   CAMPUS LIFE & CLUBS PHOTO GALLERY & LIGHTBOX
   ========================================================= */
.gal-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

.gal-item {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: zoom-in;
}

.gal-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 42, 74, 0.14);
}

.gal-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.gal-item:hover img {
  transform: scale(1.06);
}

@media (max-width: 1100px) {
  .gal-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 780px) {
  .gal-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .gal-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Lightbox */
.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 18, 13, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gal-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gal-lightbox-img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  transform: scale(0.97);
  transition: transform 0.25s ease;
}

.gal-lightbox.is-open .gal-lightbox-img {
  transform: scale(1);
}

.gal-lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.gal-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gal-lightbox-btn svg {
  width: 22px;
  height: 22px;
}

.gal-lightbox-close {
  top: 24px;
  right: 24px;
}

.gal-lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.gal-lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.gal-lightbox-prev:hover,
.gal-lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.gal-lightbox-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 14px;
}

@media (max-width: 640px) {
  .gal-lightbox-btn {
    width: 40px;
    height: 40px;
  }
  .gal-lightbox-btn svg {
    width: 19px;
    height: 19px;
  }
  .gal-lightbox-close {
    top: 14px;
    right: 14px;
  }
  .gal-lightbox-prev {
    left: 8px;
  }
  .gal-lightbox-next {
    right: 8px;
  }
}
