/* ============================================================
   ATP — Aristotle Team of Pharmacy | Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ===== Variables ===== */
:root {
  --bg:           #c3a4b2;
  --primary:      #7c1030;
  --primary-dark: #2c0410;
  --white:        #ffffff;
  --text-muted:   #ffffff;
  --glass-bg:     rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-hover:  rgba(255, 255, 255, 0.15);
  --shadow-card:  0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 14px 44px #7c103055;
  --text-shadow-soft: 0 1px 4px rgba(0, 0, 0, 0.55);
  --nav-h:        72px;
  --radius:       8px;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --site-width:   1440px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===== Base ===== */
body {
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  color: var(--white);
  overflow-x: hidden;
  position: relative;
  background: linear-gradient(160deg, #ccb6c2 0%, #bba4b0 55%, #caafbd 100%);
}

/* ===== Soft text-shadow (baked in from the retired Theme Builder) =====
   Applied to intentionally white/near-white public-facing copy — headings
   and body text — for legibility over the variegated background/glass
   panels. Deliberately NOT applied to the top navigation, buttons, pills,
   badges, icons, decorative glyphs, form controls, or non-white text. */
.hero-tagline,
.page-header-eyebrow,
.page-header-title,
.page-header-desc,
.section-heading,
.section-sub,
.about-section-heading,
.about-text,
.stat-item,
.board-section-label,
.board-name,
.board-affil,
.loading-msg,
.accordion-title,
.accordion-subtitle,
.accordion-desc,
.accordion-committee,
.slideshow-caption,
.pesfa-intro,
.event-type-panel-desc,
.event-row-month,
.event-row-day,
.event-row-year,
.event-row-title,
.event-row-location,
.event-row-desc,
.event-card-title,
.event-card-date,
.event-card-desc,
.blog-card-title,
.blog-card-date,
.blog-card-excerpt,
.read-more,
.blog-post-title,
.blog-post-date,
.blog-post-body,
.blog-post-back,
.contact-intro-text,
.contact-intro-label,
.contact-card-platform,
.contact-card-handle,
.join-intro {
  text-shadow: var(--text-shadow-soft);
}

/* Buttons, pills, badges, icons, decorative glyphs, and form controls are
   intentionally excluded — solid/high-contrast fills or non-prose glyphs
   don't need (and shouldn't inherit) the shadow. The top navigation is
   excluded under all states (normal/active/hover/focus/mobile menu). */
.navbar,
.nav-btn,
.nav-toggle span,
.btn-primary,
.btn-outline,
.pill-btn,
.board-role-tag,
.accordion-tag,
.accordion-chevron,
.event-row-label,
.event-card-type,
.event-type-pill,
.event-type-panel-link,
.show-more-btn,
.slideshow-btn,
.contact-card-arrow,
.lightbox-close,
.lightbox-prev,
.lightbox-next,
.lightbox-caption,
.form-label,
.form-input,
.form-select,
.form-select option,
.form-textarea,
.form-section-title,
.form-checkbox-label,
.form-error {
  text-shadow: none;
}

/* ===== Keyframes ===== */
@keyframes circlePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.045); }
}

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes badgePop {
  0%   { opacity: 0; transform: scale(0.88) translateY(10px); }
  70%  { transform: scale(1.03) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== Fixed background decoration ===== */
.page-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.deco-circle-lg {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: var(--primary);
  right: -130px;
  bottom: -70px;
  animation: circlePulse 9s ease-in-out infinite;
  will-change: transform;
}

.deco-circle-sm {
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--primary);
  right: 60px;
  top: 88px;
  animation: circlePulse 7s ease-in-out infinite 1.8s;
  will-change: transform;
}

/* Ghost logo replaces the wave lines — subtle watermark bottom-left */
.page-deco::after {
  content: '';
  position: absolute;
  left: -50px;
  bottom: -50px;
  width: 360px;
  height: 360px;
  background: url('../images/logo.png') no-repeat center / contain;
  opacity: 0.055;
  pointer-events: none;
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 12px 60px;
  gap: 12px;
  min-height: var(--nav-h);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, box-shadow 0.4s var(--ease);
}

.navbar.is-scrolled {
  background: rgba(195, 160, 176, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 24px rgba(124, 16, 48, 0.1);
}

.nav-logo { flex-shrink: 0; margin-right: 8px; }

.nav-logo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-logo:hover img { transform: scale(1.06); }

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.nav-btn {
  display: inline-block;
  padding: 5px 13px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              transform 0.18s var(--ease), box-shadow 0.22s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.nav-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(124, 16, 48, 0.22);
}

.nav-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(124, 16, 48, 0.18);
}


.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Page wrapper — centred, fills the screen properly ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 40px 60px 80px;
  width: 100%;
}

/* ===== Page Header — elegant banner for all content pages ===== */
.page-header {
  padding: 52px 0 44px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 52px;
  animation: fadeUp 0.75s var(--ease) both;
}

.page-header-eyebrow {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.page-header-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.page-header-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
}


/* ===== Hero (Home) — full-width, no artificial left-side constraint ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  gap: 48px;
  padding-bottom: 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  animation: heroEnter 1s var(--ease) forwards;
  text-shadow: var(--text-shadow-soft);
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 440px;
  animation: fadeUp 0.9s var(--ease) 0.25s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s var(--ease) 0.4s both;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 1s var(--ease) 0.15s both;
}

.hero-logo-display {
  width: min(380px, 90%);
  height: min(380px, 90%);
  opacity: 0.18;
  filter: brightness(0) invert(1);
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s var(--ease), transform 0.18s var(--ease), box-shadow 0.22s var(--ease);
  text-align: center;
  box-shadow: 0 4px 16px rgba(124, 16, 48, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 16, 48, 0.36);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 12px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.22s var(--ease), border-color 0.22s, transform 0.18s var(--ease);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.75);
  transform: translateY(-2px);
}

/* ===== Section headings ===== */
.section-heading {
  font-size: 1.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 6px;
}

.section-heading.maroon { color: var(--primary); text-shadow: none; }

.section-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  margin-top: 8px;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-grid > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal-grid.is-visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0s; }
.reveal-grid.is-visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.07s; }
.reveal-grid.is-visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.14s; }
.reveal-grid.is-visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.21s; }
.reveal-grid.is-visible > *:nth-child(n+5) { opacity:1; transform:none; transition-delay:0.21s; }

/* Content fade-in for dynamic sections */
.content-loaded { animation: fadeUp 0.55s var(--ease) both; }

/* ===== About ===== */
.about-section-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-top: 36px;
  margin-bottom: 10px;
}

.about-section-heading:first-child { margin-top: 0; }

.about-text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--white);
  max-width: 860px;
  margin-bottom: 20px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 48px;
  margin: 24px 0;
  align-items: center;
}

.stat-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.stat-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.stat-item a:hover { color: var(--white); }

.pill-btn {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  transition: background 0.22s var(--ease), border-color 0.22s, transform 0.18s var(--ease);
}
.pill-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

/* ===== Board Members ===== */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 20px;
}

.board-section-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.board-section-label:first-child { margin-top: 0; }

.board-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
              background 0.28s var(--ease);
}

.board-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  background: var(--glass-hover);
}

.board-photo {
  width: 100%;
  height: 240px;
  background: rgba(124, 16, 48, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s var(--ease);
}

.board-card:hover .board-photo img { transform: scale(1.04); }

.board-photo-icon { font-size: 4rem; opacity: 0.3; }

.board-card-body {
  padding: 14px 16px 16px;
}

.board-role-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.57rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.board-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}

.board-affil {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== Sponsors ===== */
.sponsors-section { margin-top: 44px; }

.sponsors-heading { margin-top: 0; }

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.sponsor-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease);
}

.sponsor-card.is-linked:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background: var(--glass-hover);
}

.sponsor-card.is-linked:focus-visible {
  outline: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover), 0 0 0 3px rgba(255, 255, 255, 0.45);
  background: var(--glass-hover);
}

.sponsor-card img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sponsor-name {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.sponsor-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.loading-msg { color: var(--text-muted); font-style: italic; padding: 16px 0; font-size: 0.88rem; }

/* ===== Accordion ===== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 860px;
}

.accordion-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.accordion-item.is-open {
  box-shadow: var(--shadow-hover);
  background: var(--glass-hover);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  text-align: left;
}

.accordion-trigger-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.accordion-tag {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--white);
}

.accordion-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.accordion-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.accordion-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.accordion-chevron {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.35s var(--ease), color 0.2s;
  line-height: 1;
}

.accordion-item.is-open .accordion-chevron {
  transform: rotate(90deg);
  color: var(--white);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease);
}

.accordion-body-inner {
  padding: 0 24px 24px;
  border-top: 1px solid var(--glass-border);
}

.accordion-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-muted);
  padding-top: 16px;
}

/* Image placeholder inside accordion */
.accordion-img-placeholder {
  width: 100%;
  max-width: 520px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 0;
}

.accordion-img-placeholder:not(:has(img)) {
  height: 200px;
  background: rgba(124, 16, 48, 0.25);
  font-size: 2.2rem;
  opacity: 0.6;
  border: 1px dashed rgba(255,255,255,0.2);
}

.accordion-img-placeholder img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  opacity: 0.8;
  margin: 0 auto;
}

.subgroup-slideshow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.slideshow-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.slideshow-img {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.slideshow-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.2em;
}

.slideshow-dots {
  display: flex;
  gap: 6px;
}

.slideshow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.2s;
}

.slideshow-dot.is-active {
  background: var(--white);
}

.slideshow-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.slideshow-btn:hover {
  background: rgba(255,255,255,0.2);
}

.accordion-committee {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
  line-height: 1.6;
}

/* PESFA intro section */
.pesfa-intro {
  max-width: 860px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.pesfa-intro-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 8px 0 32px;
  align-items: start;
}

.pesfa-intro-images img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* ===== Event type pills ===== */
.event-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.event-type-pill {
  padding: 6px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 100px;
  background: transparent;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s var(--ease), border-color 0.22s,
              color 0.22s, transform 0.18s var(--ease), box-shadow 0.22s;
}

.event-type-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.event-type-pill.is-active {
  color: var(--white);
}

.event-type-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease), margin-top 0.3s var(--ease);
}

.event-type-panel.is-open { margin-top: 16px; margin-bottom: 4px; }

.event-type-panel-inner {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.event-type-panel-img {
  width: 200px;
  height: 140px;
  flex-shrink: 0;
  background: rgba(124, 16, 48, 0.25);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.65;
  overflow: hidden;
}

.event-type-panel-img img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 8px; opacity: 1;
}

.event-type-slideshow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 280px;
  flex-shrink: 0;
}

.event-type-panel-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-type-panel-desc {
  font-size: 0.86rem;
  line-height: 1.82;
  color: var(--text-muted);
  padding-top: 2px;
}

.event-type-panel-link {
  display: inline-block;
  align-self: flex-start;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.event-type-panel-link:hover { opacity: 0.82; }

/* ===== Events timeline ===== */
.events-timeline {
  display: flex;
  flex-direction: column;
  max-width: 780px;
}

.event-row {
  display: grid;
  grid-template-columns: 72px 3px 1fr;
  column-gap: 22px;
  align-items: stretch;
  padding: 22px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.2s;
}

.event-row:last-child { border-bottom: none; }
.event-row.is-past { opacity: 0.45; }
.event-row.is-hidden { display: none; }

.show-more-btn {
  display: block;
  margin: 20px 0 0;
  padding: 9px 24px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 100px;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.22s var(--ease), border-color 0.22s, transform 0.18s var(--ease);
}

.show-more-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.event-row-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 2px;
  flex-shrink: 0;
}

.event-row-month {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 3px;
}

.event-row-day {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.event-row-year {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.event-row-bar {
  width: 3px;
  border-radius: 3px;
  flex-shrink: 0;
  align-self: stretch;
}

.event-row-body { padding-top: 2px; }

.event-row-label {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 2px 9px;
  border-radius: 3px;
  color: #fff;
  margin-bottom: 8px;
}

.event-row-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}

.event-row-location {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.event-row-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.62;
}

/* ===== Glassmorphism card base (blog only now) ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* ===== Glassmorphism card base ===== */
.event-card,
.blog-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
              background 0.28s var(--ease), border-color 0.28s var(--ease);
}

.event-card:hover,
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.28);
}

.event-card-thumb {
  width: 100%; height: 150px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; opacity: 0.65;
  overflow: hidden;
}

.event-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; opacity: 1;
  transition: transform 0.4s var(--ease);
}

.event-card:hover .event-card-thumb img { transform: scale(1.04); }

.event-card-body { padding: 14px 16px 18px; }

.event-card-type {
  display: inline-block;
  background: rgba(255,255,255,0.88);
  color: var(--primary);
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 3px; margin-bottom: 8px;
}

.event-card-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 5px; line-height: 1.3; }
.event-card-date { font-size: 0.74rem; color: var(--text-muted); margin-bottom: 8px; }
.event-card-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.55; }

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.blog-card-thumb {
  width: 100%; height: 180px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; opacity: 0.55; overflow: hidden;
}

.blog-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; opacity: 1;
  transition: transform 0.4s var(--ease);
}

.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-body { padding: 16px 18px 20px; }
.blog-card-date { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 8px; }
.blog-card-title { font-size: 0.97rem; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.blog-card-excerpt { font-size: 0.79rem; color: var(--text-muted); line-height: 1.55; }
.read-more { display: inline-block; margin-top: 12px; font-size: 0.76rem; font-weight: 700; color: var(--white); text-decoration: underline; cursor: pointer; }
.read-more:hover { opacity: 0.75; }

a.blog-card { text-decoration: none; color: inherit; display: block; }

.blog-card-thumb-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, rgba(255,255,255,0.08) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.blog-card-thumb-title {
  font-size: 1rem; font-weight: 800; text-align: center; line-height: 1.3;
  color: rgba(255,255,255,0.92); letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ===== Blog Post ===== */
.blog-post { max-width: 680px; }
.blog-post-hero { width: 100%; border-radius: 12px; margin-bottom: 24px; overflow: hidden; text-align: center; }
.blog-post-hero img { max-height: 320px; width: auto; max-width: 100%; height: auto; display: inline-block; }
.blog-post-date { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 10px; }
.blog-post-title { font-size: 1.7rem; font-weight: 800; line-height: 1.25; margin-bottom: 28px; }
.blog-post-body { font-size: 0.92rem; line-height: 1.8; color: rgba(255,255,255,0.9); }
.blog-post-body h3 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 10px; color: var(--white); }
.blog-post-body p { margin-bottom: 14px; }
.blog-post-body ul { padding-left: 20px; margin-bottom: 14px; }
.blog-post-body ul li { margin-bottom: 6px; }
.blog-post-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.blog-post-back { display: inline-block; margin-top: 40px; font-size: 0.82rem; font-weight: 700; color: var(--text-muted); text-decoration: none; }
.blog-post-back:hover { color: var(--white); }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative; border-radius: 10px; overflow: hidden;
  aspect-ratio: 1 / 1; cursor: pointer; background: var(--primary);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.gallery-item:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 36px rgba(124,16,48,0.22); }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:3rem; opacity:0.38; }

.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(94, 10, 36, 0.88);
  backdrop-filter: blur(4px);
  padding: 9px 13px;
  font-size: 0.72rem; font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-item { cursor: pointer; }

/* ===== Lightbox ===== */
.lightbox { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }

.lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.88); }

.lightbox-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  max-width: 90vw; max-height: 90vh;
  animation: fadeUp 0.2s var(--ease);
}

.lightbox-img {
  max-width: 90vw; max-height: 78vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.lightbox-caption {
  margin-top: 14px; font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.8); text-align: center; max-width: 560px;
}

.lightbox-close {
  position: absolute; top: -40px; right: 0;
  background: none; border: none; color: var(--white);
  font-size: 1.4rem; cursor: pointer; opacity: 0.7; line-height: 1;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); font-size: 2rem; line-height: 1;
  width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 2;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.22); }

/* ===== Contact (redesigned) ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-intro-text {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.contact-intro-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card {
  display: flex;
  align-items: stretch;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease);
}

.contact-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
  background: var(--glass-hover);
}

.contact-card-accent {
  width: 4px;
  flex-shrink: 0;
}

.contact-card-body {
  flex: 1;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-card-platform {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--text-muted);
}

.contact-card-handle {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--white);
}

.contact-card-arrow {
  flex-shrink: 0;
  align-self: center;
  margin-right: 18px;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease), color 0.2s;
}

.contact-card:hover .contact-card-arrow {
  transform: translateX(5px);
  color: var(--white);
}

/* ===== Join Us ===== */
.join-intro { font-size: 0.9rem; line-height: 1.88; max-width: 560px; margin-bottom: 30px; }

.join-form { display: flex; flex-direction: column; gap: 16px; max-width: 500px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }

.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
}

.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.38); }

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.16);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.07);
}

.form-select option { background: var(--primary); }
.form-textarea { resize: vertical; min-height: 92px; }

.form-section-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin: 8px 0 0; }

.form-checkbox-group { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.form-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; cursor: pointer; }
.form-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }

.form-error { display: none; font-size: 0.78rem; color: #ff6b6b; margin-top: 4px; }

.form-consent { margin-top: 8px; }
.form-consent .form-checkbox-label { font-size: 0.82rem; line-height: 1.5; color: var(--text-muted); align-items: flex-start; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); }
}

@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; padding: 10px 20px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links {
    display: none; width: 100%;
    flex-direction: column; align-items: flex-start;
    gap: 6px; padding: 10px 0; order: 10;
  }

  .nav-links.is-open { display: flex; }

  .page-wrapper { padding: 24px 24px 70px; }

  .hero { min-height: calc(100vh - var(--nav-h)); padding-bottom: 40px; gap: 20px; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }

  .deco-circle-lg { width: 300px; height: 300px; right: -80px; bottom: -40px; }
  .deco-circle-sm { width: 55px; height: 55px; right: 20px; top: 80px; }

  .events-grid, .blog-grid { grid-template-columns: 1fr; }
  .event-type-panel-inner { flex-direction: column; }
  .event-type-panel-img { width: 100%; height: 160px; }
  .event-type-slideshow { width: 100%; }
  .event-row { grid-template-columns: 58px 3px 1fr; column-gap: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .board-photo { height: 180px; }
  .sponsor-card { min-height: 150px; padding: 12px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .page-header { padding: 32px 0 30px; margin-bottom: 36px; }

  .accordion-trigger { padding: 16px 18px; }
  .accordion-body-inner { padding: 0 18px 18px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .accordion { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
