/* ═══════════════════════════════════════════════════════════════════
   gallery.css — Gallery & News/Articles Styles
   Rishabh Cancer Care · Dr. Rishabh Jain (DM AIIMS New Delhi)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --gl-primary: #7c72ff;
  --gl-primary-dark: #6358e6;
  --gl-primary-light: #ecebff;
  --gl-primary-subtle: #f5f4ff;
  --gl-dark: #0f172a;
  --gl-navy: #1e293b;
  --gl-muted: #64748b;
  --gl-border: #e2e8f0;
  --gl-card-bg: #ffffff;
  --gl-paper: #f8fafc;
  --gl-radius: 16px;
  --gl-radius-sm: 10px;
  --gl-radius-lg: 24px;
  --gl-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --gl-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --gl-shadow-hover: 0 18px 40px rgba(124, 114, 255, 0.16);
}

/* ════════ HERO SECTION ════════ */
.gl-hero {
  background: linear-gradient(135deg, #090e1a 0%, #0f172a 45%, #1e1b4b 100%);
  color: #ffffff;
  padding: 130px 0 60px;
  position: relative;
  overflow: hidden;
}

.gl-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 114, 255, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.gl-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.gl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.gl-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.gl-breadcrumb a:hover {
  color: var(--gl-primary);
}

.gl-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 114, 255, 0.18);
  border: 1px solid rgba(124, 114, 255, 0.35);
  color: #c7d2fe;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.gl-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.gl-hero-title span {
  background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gl-hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 760px;
  margin-bottom: 28px;
}

.gl-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.gl-stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--gl-radius-sm);
  padding: 16px 18px;
  backdrop-filter: blur(8px);
}

.gl-stat-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.gl-stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

/* ════════ MAIN TABS NAVIGATION ════════ */
.gl-section {
  padding: 60px 0 90px;
}

.gl-tabs-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gl-border);
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.gl-tabs-nav {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gl-tab-btn {
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gl-muted);
  padding: 14px 22px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  margin-bottom: -2px;
}

.gl-tab-btn .gl-tab-count {
  background: var(--gl-border);
  color: var(--gl-navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.gl-tab-btn:hover {
  color: var(--gl-primary);
}

.gl-tab-btn.active {
  color: var(--gl-primary);
  border-bottom-color: var(--gl-primary);
}

.gl-tab-btn.active .gl-tab-count {
  background: var(--gl-primary);
  color: #ffffff;
}

.gl-subfilter-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gl-filter-pill {
  background: var(--gl-paper);
  border: 1px solid var(--gl-border);
  color: var(--gl-navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gl-filter-pill:hover,
.gl-filter-pill.active {
  background: var(--gl-primary);
  color: #ffffff;
  border-color: var(--gl-primary);
}

/* ════════ TAB CONTENT PANELS ════════ */
.gl-tab-panel {
  display: none;
}

.gl-tab-panel.active {
  display: block;
  animation: glFadeIn 0.4s ease forwards;
}

@keyframes glFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ════════ GALLERY GRID (PHOTOS & VIDEOS) ════════ */
.gl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Base generic item (shared transitions and container box) */
.gl-item {
  border-radius: var(--gl-radius);
  overflow: hidden;
  box-shadow: var(--gl-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  cursor: pointer;
}

.gl-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--gl-shadow-hover);
  border-color: var(--gl-primary);
}

.gl-media-box {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ════════ 1. IMAGE SPECIFIC STYLES & CLASSES ════════ */
.gl-image-item {
  height: 260px; /* Image Card Height */
  background: #ffffff;
  border: 1px solid var(--gl-border);
}

.gl-image-box {
  background: #ffffff;
  width: 100%;
  height: 100%;
}

.gl-image-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.gl-image-item:hover .gl-image-media {
  transform: scale(1.06);
}

/* ════════ 2. VIDEO SPECIFIC STYLES & CLASSES ════════ */
.gl-video-item {
  height: 260px; /* Video Card Height */
  background: #0f172a;
  border: 1px solid var(--gl-border);
  position: relative;
}

.gl-video-box {
  background: #0f172a;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.gl-video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  background: #000000;
}

.gl-video-item:not(.playing):hover .gl-video-media {
  transform: scale(1.04);
}

.gl-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(124, 114, 255, 0.95);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.3s ease;
  cursor: pointer;
  border: none;
  z-index: 4;
}

.gl-video-item:hover .gl-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: #7c72ff;
}

.gl-video-item.playing .gl-play-btn {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* ════════ NEWS & ARTICLES TAB ════════ */
.gl-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gl-news-card {
  background: #ffffff;
  border-radius: var(--gl-radius);
  border: 1px solid var(--gl-border);
  overflow: hidden;
  box-shadow: var(--gl-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.gl-news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gl-shadow-hover);
  border-color: var(--gl-primary);
}

.gl-news-img-wrap {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.gl-news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  transition: transform 0.4s ease;
}

.gl-news-card:hover .gl-news-img-wrap img {
  transform: scale(1.03);
}

.gl-news-source-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(124, 114, 255, 0.95);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.gl-news-body {
  padding: 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gl-news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--gl-muted);
  margin-bottom: 10px;
}

.gl-news-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gl-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.gl-news-excerpt {
  font-size: 0.88rem;
  color: var(--gl-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.gl-news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gl-border);
  padding-top: 14px;
  margin-top: auto;
}

.gl-read-link {
  color: var(--gl-primary);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.gl-read-link:hover {
  gap: 10px;
  color: var(--gl-primary-dark);
}

.gl-read-time {
  font-size: 0.76rem;
  color: var(--gl-muted);
}

/* ════════ LIGHTBOX MODAL ════════ */
.gl-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.gl-modal.open {
  display: flex;
  animation: glModalFade 0.25s ease forwards;
}

@keyframes glModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gl-modal-content {
  position: relative;
  max-width: 960px;
  width: 95%;
  background: #0f172a;
  border-radius: var(--gl-radius);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gl-modal-media-container {
  width: 100%;
  min-height: 320px;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  padding: 12px;
}

.gl-modal-media-container img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gl-modal-media-container video {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
}

.gl-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.gl-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ════════ BOTTOM CTA BANNER ════════ */
.gl-cta-wrap {
  background: linear-gradient(135deg, #090e1a 0%, #0f172a 50%, #1e1b4b 100%);
  border-radius: var(--gl-radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(124, 114, 255, 0.25);
}

.gl-cta-text h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.gl-cta-text p {
  color: #94a3b8;
  margin: 0;
  font-size: 0.95rem;
}

.gl-cta-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.gl-cta-phone-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.gl-btn-primary {
  background: var(--gl-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--gl-radius-sm);
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(124, 114, 255, 0.35);
}

.gl-btn-primary:hover {
  background: var(--gl-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 114, 255, 0.45);
  color: #ffffff;
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1024px) {
  .gl-gallery-grid,
  .gl-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gl-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gl-hero {
    padding: 100px 0 45px;
  }
  .gl-hero-title {
    font-size: 2.1rem;
  }
  .gl-image-item {
    height: 240px;
  }
  .gl-video-item {
    height: 240px;
  }
  .gl-news-img-wrap {
    height: 340px;
  }
  .gl-cta-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
  .gl-cta-action {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .gl-gallery-grid,
  .gl-news-grid {
    grid-template-columns: 1fr;
  }
  .gl-hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .gl-image-item {
    height: 230px;
  }
  .gl-video-item {
    height: 230px;
  }
  .gl-news-img-wrap {
    height: 380px;
  }
  .gl-tab-btn {
    font-size: 0.92rem;
    padding: 10px 14px;
  }
}
