/* ═══════════════════════════════════════════════════
   CLUBS IN ACTION — ISSUE 5 STYLESHEET
   Rotary International District 3060 · RY 2026–27
   Theme: Community Economic Development Month
═══════════════════════════════════════════════════ */

:root {
  --navy:         #01236a;
  --navy-deep:    #010f2e;
  --navy-mid:     #0d3885;
  --cobalt:       #1A5EB8;
  --cobalt-lt:    #3575d4;
  --gold:         #C9922A;
  --gold-lt:      #E8B84B;
  --gold-pale:    #FBF4E8;
  --amber:        #f5a623;
  --teal:         #00897b;
  --cream:        #FAF8F4;
  --white:        #FFFFFF;
  --ink:          #0D0E1A;
  --ink-mid:      #3B3C50;
  --ink-soft:     #6B6C80;
  --rule:         rgba(201, 146, 42, 0.18);
  --rule-hard:    #E2DDD5;

  --ff-display:   'DM Sans', system-ui, -apple-system, sans-serif;
  --ff-body:      'DM Sans', system-ui, -apple-system, sans-serif;
  --ff-mono:      'DM Mono', monospace;

  --radius-sm:    6px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    36px;

  --shadow-sm:    0 2px 8px rgba(1, 35, 106, 0.06);
  --shadow-md:    0 8px 24px rgba(1, 35, 106, 0.10);
  --shadow-lg:    0 16px 44px rgba(1, 35, 106, 0.14);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}

/* Header Masthead */
.page-masthead {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 60%, var(--cobalt) 100%);
  padding: 55px 24px 45px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at center, rgba(201, 146, 42, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.page-masthead-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-tagline {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 18px;
  border: 1px solid rgba(201, 146, 42, 0.4);
  border-radius: 30px;
  background: rgba(201, 146, 42, 0.12);
}

.page-masthead h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 14px;
}

.page-masthead p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 780px;
  margin: 0 auto 20px;
}

/* Executive Summary Strip */
.exec-summary-strip {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.summary-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.summary-pill strong {
  color: var(--gold-lt);
}

/* Sticky Quick Jump Filter Bar */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--rule-hard);
  position: sticky;
  top: 76px;
  z-index: 900;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  padding: 12px 20px;
}

.filter-container {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.filter-container::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 30px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  color: #444;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: translateY(-1px);
}

.filter-chip.secondary {
  border-color: rgba(201, 146, 42, 0.4);
  background: var(--gold-pale);
  color: var(--navy-deep);
}

.filter-chip.secondary:hover {
  background: var(--gold);
  color: #fff;
}

.filter-chip.district {
  border-color: rgba(26, 94, 184, 0.4);
  background: #eef4fc;
  color: var(--cobalt);
}

.filter-chip.district:hover {
  background: var(--cobalt);
  color: #fff;
}

/* Content Container Shell */
.shell {
  max-width: 1240px;
  margin: 30px auto;
  padding: 0 24px 80px;
}

/* Section Headings */
.section-head {
  display: flex;
  align-items: center;
  margin: 60px 0 35px;
}

.section-head-line {
  flex: 1;
  height: 2px;
  background: var(--rule-hard);
}

.section-head-label {
  padding: 10px 28px;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 40px;
  margin: 0 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

/* Project Cards */
.project-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(1, 35, 106, 0.08);
  margin-bottom: 50px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Card Header */
.card-top {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  padding: 26px 36px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.card-top.district-theme {
  background: linear-gradient(135deg, #102a45 0%, #1a5eb8 100%);
}

.card-top.msp-theme {
  background: linear-gradient(135deg, #0b224d 0%, #154580 100%);
}

.card-club-meta {
  flex: 1;
  min-width: 280px;
}

.badge-category {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.badge-category.alt {
  background: var(--cobalt-lt);
  color: #fff;
}

.badge-category.msp {
  background: var(--teal);
  color: #fff;
}

.badge-category.district {
  background: #e65100;
  color: #fff;
}

.card-club-name {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.card-project-title {
  font-size: 19px;
  color: var(--gold-lt);
  font-weight: 600;
}

/* Card Body */
.card-body {
  padding: 36px;
}

.card-lead {
  font-size: 16.5px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 20px;
  text-align: justify;
}

/* Sub-projects inside club card */
.subproject-block {
  border-top: 1px dashed var(--rule-hard);
  padding-top: 28px;
  margin-top: 28px;
}

.subproject-block:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.subproject-header {
  margin-bottom: 14px;
}

.subproject-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subproject-tag {
  font-size: 11px;
  background: #eef2fa;
  color: var(--cobalt);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Blockquote & Quotes */
.quote-highlight {
  border-left: 4px solid var(--gold);
  background: var(--gold-pale);
  padding: 16px 22px;
  border-radius: 0 12px 12px 0;
  margin: 22px 0;
  font-size: 17px;
  font-style: italic;
  color: var(--navy-deep);
  line-height: 1.6;
}

/* Highlight Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.highlight-item {
  background: #f8fafd;
  border: 1px solid #e7ecf5;
  border-left: 4px solid var(--cobalt);
  padding: 16px 20px;
  border-radius: 8px;
}

.highlight-item h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlight-item p {
  font-size: 13.5px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Stat Bar */
.stat-strip {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  background: #f4f7fc;
  border: 1px solid #dde5f5;
  border-radius: 12px;
  padding: 18px 24px;
  margin: 24px 0;
}

.stat-box {
  flex: 1;
  min-width: 140px;
  text-align: center;
  border-right: 1px solid #dce4f2;
}

.stat-box:last-child {
  border-right: none;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-mid);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #666;
  font-weight: 600;
}

/* Bullet list custom styled */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
}

.bullet-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15.5px;
  color: #3b3c50;
  line-height: 1.65;
}

.bullet-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
}

/* Testimonial Card */
.testimonial-card {
  background: #fff9ed;
  border: 1px solid #f2e2c4;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 20px 0;
}

.testimonial-card p {
  font-style: italic;
  color: #4a3c26;
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 8px;
}

.testimonial-author {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy);
  text-align: right;
  display: block;
}

/* Video / Media Links Bar */
.media-links-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.btn-media {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.btn-youtube {
  background: #cc181e;
  color: #fff;
}
.btn-youtube:hover {
  background: #aa0f14;
  color: #fff;
  transform: translateY(-2px);
}

.btn-facebook {
  background: #1877f2;
  color: #fff;
}
.btn-facebook:hover {
  background: #0f62cc;
  color: #fff;
  transform: translateY(-2px);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.btn-instagram:hover {
  opacity: 0.92;
  color: #fff;
  transform: translateY(-2px);
}

/* Photo Gallery Grid */
.photo-gallery {
  margin-top: 30px;
  border-top: 1px solid #f0ede8;
  padding-top: 22px;
}

.photo-gallery h4 {
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #f4f6fa;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(1, 35, 106, 0.16);
}

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

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

.gallery-item.tall {
  aspect-ratio: 3 / 4;
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-item.banner {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  color: #fff;
  padding: 10px 14px 6px;
  font-size: 12.5px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-item-caption {
  opacity: 1;
}

/* Lightbox overlay styling */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-modal img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 12px;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: var(--gold);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .gallery-item.wide {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .page-masthead {
    padding: 40px 16px 30px;
  }
  .page-masthead h1 {
    font-size: 28px;
  }
  .card-top {
    padding: 20px;
  }
  .card-club-name {
    font-size: 22px;
  }
  .card-project-title {
    font-size: 16px;
  }
  .card-body {
    padding: 22px;
  }
  .stat-strip {
    flex-direction: column;
    padding: 14px;
    gap: 12px;
  }
  .stat-box {
    border-right: none;
    border-bottom: 1px solid #dce4f2;
    padding-bottom: 10px;
  }
  .stat-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .filter-bar {
    top: 60px;
    padding: 8px 12px;
  }
}
