/* =========================
GLOBAL PAGE SETTINGS & VARIABLES
========================= */
* {
  box-sizing: border-box;
}

:root {
  --brand-purple: #4B1D74;
  --brand-purple-light: #6a2a9e;
  --text-dark: #1a1a2e;
  --text-muted: #555;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-soft: 0 15px 35px rgba(75, 29, 116, 0.05);
  --shadow-hover: 0 20px 40px rgba(75, 29, 116, 0.15);
  --bg-light: #f8f9fa;
  --transition-speed: 0.3s;
}

html {
  background: var(--bg-light);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  opacity: 1;
  transition: opacity 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-top: 0;
}

/* =========================
PAGE TRANSITION
========================= */
body.fade-out section,
body.fade-out footer {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* =========================
HEADER (Glassmorphism)
========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  padding: 0;
  display: flex;
  align-items: center;
  background: rgba(40, 15, 60, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: background var(--transition-speed) ease;
}

header:hover {
  background: rgba(40, 15, 60, 0.7);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.header-logo {
  height: 65px;
  width: auto;
  object-fit: cover;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hide header logo on homepage initially */
body.home-page .header-logo {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* Show it once scrolled past the massive one */
body.home-page header.logo-visible .header-logo {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-6px);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: white;
  opacity: 0.8;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: opacity var(--transition-speed) ease, transform 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* =========================
MOBILE NAV TOGGLE
========================= */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
  transition: transform 0.3s ease;
}

.mobile-nav-toggle .line {
  display: block;
  width: 28px;
  height: 2px;
  background: white;
  margin: 6px 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 2px;
}

/* Hamburger Animation to 'X' */
.nav-open .mobile-nav-toggle .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .mobile-nav-toggle .line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-open .mobile-nav-toggle .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================
BUTTONS
========================= */
.pill {
  padding: 10px 24px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  transition: all var(--transition-speed) ease;
  letter-spacing: 0.5px;
}

.pill-light {
  background: white;
  color: var(--brand-purple);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pill-light:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pill-purple {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  color: white;
  box-shadow: 0 10px 20px rgba(75, 29, 116, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 30px;
  font-size: 1.05rem;
}

.pill-purple:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(75, 29, 116, 0.35);
  color: white;
  background: linear-gradient(135deg, var(--brand-purple-light), var(--brand-purple));
}

.pill-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #f2e8ff 100%);
  color: rgba(30, 10, 50, 0.95);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: none;
  padding: 12px 30px;
  font-size: 1.05rem;
  background-clip: padding-box;
}

.pill-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(75, 29, 116, 0.2);
  color: rgba(30, 10, 50, 0.95);
  background: linear-gradient(135deg, #f0e6ff 0%, #ffffff 100%);
}

.pill:active {
  transform: translateY(0);
}

/* NAVBAR SPECIFIC PILL OVERRIDE (to keep it compact) */
nav .pill {
  padding: 10px 24px;
  font-size: 1rem;
}

/* =========================
HERO SECTION
========================= */
.hero {
  min-height: 100vh;
  /* Premium Dark to Transparent Gradient Overlay */
  background: linear-gradient(to bottom, rgba(20, 5, 30, 0.7) 0%, rgba(75, 29, 116, 0.4) 100%),
    url("../assets/background_opt.jpg");
  background-size: cover;
  background-position: center 0px;
  background-attachment: scroll; /* Handled by custom parallax in JS */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
  position: relative;
}

.hero-content {
  width: 100%;
  max-width: 1100px;
  margin-top: 40px;
  padding: 0 20px;
  z-index: 2;
}



.hero-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
  /*animation: float 6s ease-in-out infinite;*/
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* =========================
TEXT & TYPOGRAPHY
========================= */
.tagline {
  font-size: 24px;
  margin-top: 10px;
  margin-bottom: 40px;
  line-height: 1.4;
}

.tagline-main {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 3rem);
  letter-spacing: -1.5px;
  line-height: 1.1;
  display: block;
  margin-bottom: 20px;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #d4b5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.tagline-sub {
  font-size: 1.3rem;
  font-weight: 400;
  color: white;
  opacity: 1;
  letter-spacing: 0.2px;
}

.tagline-sub a {
  color: #d4b5ff;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-speed) ease;
}

.tagline-sub a:hover {
  color: #fff;
  text-decoration: underline;
}

/* =========================
SECTIONS
========================= */
/* Ensure full height padding so sections pushed under header look good */
.about,
.events,
section:not(.hero) {
  padding: 120px 10%;
  text-align: center;
  background: white;
}

section h2 {
  font-size: 3rem;
  color: var(--text-dark);
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

section p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* =========================
EVENT CARD (Glassmorphism & Shadows)
========================= */
.events {
  background: var(--bg-light);
}

.event-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(25px, 5vw, 50px);
  margin: 40px auto;
  width: 100%;
  max-width: 800px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: left;
}

.event-card h3 {
  font-size: 2rem;
  color: var(--brand-purple);
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.event-card p {
  margin: 0;
  font-size: 1.15rem;
}

.event-card a {
  text-decoration: none;
  color: var(--brand-purple);
}

.event-card a.pill-purple {
  color: white;
}

.event-link {
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.event-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(75, 29, 116, 0.1);
}

.event-poster {
  max-width: 600px;
  margin: auto;
  padding: 40px;
}

.event-banner {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  margin: 10px auto;
  display: block;
}

.event-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  margin-bottom: 30px;
  text-align: left;
}

.speaker {
  margin-top: 10px;
  flex: 0 0 auto;
  text-align: left;
}

.speaker-img {
  width: 180px;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow-soft);
}

.speaker-name {
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  font-family: 'Outfit';
  color: var(--brand-purple);
}

.event-text {
  flex: 1;
  text-align: left;
}

/* =========================
JOIN SECTION
========================= */
.join-section {
  background: white;
  padding: 100px 5%;
  position: relative;
}

@media (max-width: 768px) {
  .event-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .event-text,
  .speaker {
    text-align: center;
  }

  .speaker-img {
    width: 200px;
    margin: 0 auto;
  }
}

.join-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(75, 29, 116, 0.1), transparent);
}

.join-container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.join-subtitle {
  margin-bottom: 70px;
  font-size: 1.3rem;
  color: var(--text-muted);
}

/* Cards Grid Layout */
.join-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  justify-content: center;
}

.join-card {
  background: white;
  padding: 50px 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.join-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.join-card h3 {
  margin-bottom: 30px;
  color: var(--brand-purple);
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

.join-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.join-card li {
  margin-bottom: 15px;
  color: var(--text-muted);
  font-size: 1.15rem;
  position: relative;
  padding-left: 28px;
  text-align: left;
}

.join-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--brand-purple-light);
  font-size: 1.1rem;
}

/* DISABLED BUTTON */

.pill.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(30%);
}

/* =========================
FOOTER
========================= */
footer {
  width: 100%;
  padding: 20px 20px;
  background: #240E36;
  /* Lighter dark purple */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social {
  display: flex;
  gap: 30px;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: scale(1.15) translateY(-3px);
}

footer span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

/* PRIVACY CHECKBOX */

.privacy-container {
  margin-top: 20px;
  text-align: left;
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.privacy-label input {
  margin-top: 3px;
  accent-color: var(--brand-purple);
  transform: scale(1.1);
}

.privacy-label a {
  color: var(--brand-purple);
  text-decoration: underline;
}

/* spacing before button */

.privacy-spacing {
  height: 15px;
}

/* =========================
PRIVACY PAGE STYLING (UPGRADED)
========================= */

main.content {
  max-width: 820px;
  margin: 60px auto 80px auto;
  padding: 60px 50px;

  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;

  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* HEADINGS */

main.content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand-purple);
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

main.content h2 {
  margin-top: 45px;
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand-purple);
}

/* TEXT */

main.content p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 18px;
}

/* LISTS */

main.content ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

main.content li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #555;
}

/* HIGHLIGHT BOX */

main.content .highlight-box {
  background: rgba(75, 29, 116, 0.06);
  border-left: 4px solid var(--brand-purple);

  padding: 18px 20px;
  border-radius: 10px;

  margin: 30px 0;

  font-size: 0.95rem;
  color: #444;
}

.back-button {
  position: fixed !important;
  top: 20px;
  left: 10px;

  background: white;
  color: var(--brand-purple);

  padding: 10px 18px;
  border-radius: 30px;

  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  transition: all 0.2s ease;
  z-index: 9999;
}

/* =========================
TEAM SECTION
========================= */
.team-page {
  background-color: #111822;
  color: #ffffff;
  padding: 140px 10% 80px 10%;
  min-height: 100vh;
}

.team-header-container {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  text-align: left;
}

.team-page h2 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 20px;
}

.team-intro {
  font-size: 1.15rem;
  color: #a0aec0;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
}

.tag-button {
  background-color: #2d3748;
  color: #e2e8f0;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag-button:hover {
  background-color: #4a5568;
  color: #fff;
}

/* Team Grid Categories */
.team-category {
  max-width: 1200px;
  margin: 0 auto 80px auto;
}

.team-category-title {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

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

/* Individual Team Member Card */
.member-card {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.member-image-placeholder {
  width: 30%;
  aspect-ratio: 1 / 1.1;
  background-color: #1e293b;
  border-radius: 12px;
  margin-bottom: 20px;
  background-size: cover;
  background-position: center;
}

.member-name {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 5px;
}

.member-role {
  font-size: 1.25rem;
  color: rgba(75, 29, 116, 0.35);
  margin-bottom: 10px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
}

.member-date {
  font-size: 0.95rem;
  color: #a0aec0;
  margin-bottom: 15px;
}

.member-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
}

.member-socials {
  display: flex;
  gap: 15px;
}

.circle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.circle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* =========================
SCROLL ANIMATIONS (Reveal)
========================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered transition delays for lists/cards */
.join-card:nth-child(1) {
  transition-delay: 0.1s;
}

.join-card:nth-child(2) {
  transition-delay: 0.2s;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {

  .about,
  .events,
  section:not(.hero) {
    padding: 100px 8%;
  }

  .join-section {
    padding: 80px 8%;
  }

  section h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .tagline-main {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .tagline-sub {
    font-size: 1.1rem;
  }

  .about,
  .events {
    padding: 60px 20px;
  }

  .join-section {
    padding: 60px 20px;
  }

  section h2 {
    font-size: 2.2rem;
  }

  .nav-container {
    padding: 0 1.5rem;
  }

  header {
    height: 65px;
    background: rgba(30, 10, 50, 0.9);
  }

  .header-logo {
    height: 60px;
  }

  /* Mobile Navigation Menu */
  .mobile-nav-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(20, 5, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    transition: right 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1050;
    padding: 2rem;
  }

  .nav-open nav {
    right: 0;
  }

  .nav-link {
    display: block;
    font-size: 1.8rem;
    opacity: 1;
    transform: translateY(20px);
    transition: all 0.4s ease;
    transition-delay: 0.1s;
  }

  .nav-open .nav-link {
    transform: translateY(0);
    opacity: 1;
  }

  /* Staggered link animations */
  .nav-open .nav-link:nth-child(1) {
    transition-delay: 0.2s;
  }

  .nav-open .nav-link:nth-child(2) {
    transition-delay: 0.3s;
  }

  .nav-open .nav-link:nth-child(3) {
    transition-delay: 0.4s;
  }

  .nav-open .nav-link:nth-child(4) {
    transition-delay: 0.5s;
  }

  .nav-open .nav-link:nth-child(5) {
    transition-delay: 0.6s;
  }

  .pill-light {
    font-size: 1.5rem;
    padding: 15px 40px;
    background: white;
    color: var(--brand-purple);
  }

  .join-subtitle {
    margin-bottom: 40px;
    font-size: 1.1rem;
  }

  .join-card {
    padding: 40px 30px;
  }
}

@media (max-width: 480px) {
  .tagline-main {
    font-size: 2.1rem;
  }

  .hero-logo {
    width: 100%;
    max-width: 95%;
    height: auto;
  }

  .pill {
    width: 100%;
  }

  /* Full width buttons on tiny mobile */
  .pill-purple {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .join-cards {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 30px 20px;
  }

  .footer-social {
    gap: 20px;
  }
}

/* =========================
BOARD PAGE & TEAM NAVIGATION
========================= */
.board-page {
  background-color: #ffffff;
  padding: 80px 10% 80px 10%;
  color: #333333;
  min-height: 100vh;
}

.board-nav-container {
  text-align: center;
  margin-bottom: 80px;
}

.board-nav-container p {
  font-size: 1.15rem;
  color: #6a7c92;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.team-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.team-nav-pill {
  background-color: #2b3543;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.board-page {
  background-color: #f8fafc !important; /* Slightly cooler background to make glass cards pop */
  position: relative;
  overflow: hidden;
  padding-bottom: 150px;
}

.board-page::before,
.board-page::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  opacity: 0.1; /* Very subtle glow */
  pointer-events: none;
}

.board-page::before {
  top: 500px;
  right: -200px;
  background: radial-gradient(circle, var(--brand-purple), transparent);
}

.board-page::after {
  bottom: 500px;
  left: -200px;
  background: radial-gradient(circle, var(--brand-purple), transparent);
}

.team-nav-pill:hover {
  background-color: #3b4759;
  color: #fff;
}

.board-category {
  max-width: 1200px;
  margin: 100px auto 0 auto;
  scroll-margin-top: 100px;
  position: relative;
}

/* Section Watermarks */
.board-category::before {
  content: attr(data-watermark);
  position: absolute;
  top: -20px;
  left: -20px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.03);
  z-index: -1;
  text-transform: uppercase;
  pointer-events: none;
  font-family: 'Outfit', sans-serif;
}

.board-category:first-of-type {
  margin-top: 60px;
}

.board-category-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 50px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}

.board-category-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 4px;
  background: var(--brand-purple);
  border-radius: 2px;
}


.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 70px 80px;
  justify-content: center;
}

.board-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  max-width: 280px;
  margin: 0 auto;
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.board-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px rgba(52, 19, 85, 0.1);
  border-color: rgba(52, 19, 85, 0.1);
}

.board-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 24px;
  background-color: #f1f5f9;
  border-radius: 18px; /* Slightly different from card for asymmetrical feel */
}

.board-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.board-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.board-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-purple);
  margin: 0 0 4px 0;
  opacity: 0.8;
}

.board-linkedin {
  font-size: 1.2rem;
  color: var(--brand-purple);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}

.board-card:hover .board-linkedin {
  opacity: 1;
  transform: rotate(10deg) scale(1.2);
}

/* =========================
EVENT CARD (Glassmorphism & Grid)
========================= */
.past-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.event-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(75, 29, 116, 0.2);
}

/* Card Header/Thumbnail */
.event-card-media {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background-color: #eee;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-card-media img {
  transform: scale(1.05);
}

.event-badge-container {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.event-badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-purple);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

.event-badge.category {
  background: var(--brand-purple);
  color: white;
}

/* Content Area */
.card-visible-content {
  padding: 25px 30px;
}

.event-card h3 {
  font-size: 1.4rem;
  color: var(--brand-purple);
  margin: 0 0 12px 0;
  line-height: 1.3;
  font-family: 'Outfit', sans-serif;
}

.event-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Hidden Content (Expanded) */
.card-hidden-content {
  padding: 0 30px 30px 30px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.clickable-card.expanded .card-hidden-content {
  max-height: 2000px;
  opacity: 1;
}

.event-divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin: 0 0 20px 0;
}

p.event-details {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 55px;
}

/* Gallery inside Card */
.gallery-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.event-gallery {
  width: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background-color: #f1f5f9;
  flex-shrink: 0;
}

.gallery-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.event-gallery-img {
  width: 100%;
  flex: 0 0 100%;
  height: auto;
  object-fit: cover;
}


.gallery-btn {
  background: white;
  color: var(--brand-purple);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.gallery-btn:hover {
  background: var(--brand-purple);
  color: white;
}

@media (max-width: 768px) {
  .past-events-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
}


/* =========================
FEATURE PILLARS (What We Offer)
========================= */
.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px 40px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.feature-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(75, 29, 116, 0.2);
}

.feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffffff 0%, #f2e8ff 100%);
  color: var(--brand-purple);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(75, 29, 116, 0.05);
  border: 1px solid rgba(75, 29, 116, 0.1);
}


.feature-content {
  flex: 1;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--brand-purple);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  text-align: left !important; /* Override section p centering */
  max-width: none !important;
}

/* Default state for desktop */
.mobile-event-action {
  display: none;
}

@media (max-width: 768px) {
  .feature-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 15px;
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
  }

  .feature-card p {
    text-align: center !important;
  }

  /* Events Mobile Fixes */
  .mobile-event-action {
    display: block;
  }
  .mobile-only-btn {
    width: 100%;
    margin: 20px 0 0 0 !important;
    text-align: center;
    pointer-events: none;
    font-size: 0.95rem;
    padding: 12px 0;
  }
  .clickable-card.expanded .mobile-only-btn::after {
    content: " (Close)";
  }
  .event-gallery {
    width: 100%;
  }
  .gallery-wrapper {
    flex-direction: column;
    gap: 15px;
  }

  /* Team Board Mobile Fixes */
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 15px;
  }
  .board-card {
    padding: 12px;
    border-radius: 16px;
  }
  .board-img {
    border-radius: 12px;
    margin-bottom: 15px;
  }
  .board-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .board-name {
    font-size: 1.05rem;
    line-height: 1.2;
  }
  .board-role {
    font-size: 0.65rem;
  }
  .board-linkedin {
    font-size: 1.1rem;
    align-self: flex-start;
    margin-top: 8px;
    opacity: 0.8;
  }
}