:root {
  /* =======================
     BACKGROUNDS
  ======================= */

  --bg-page:#F3EEE7;        /* main beige page background */
  --bg-section: #F3EEE7;     /* subtle section separation */
  --bg-dark: #1F2F3A;        /* header + footer + dark panels */

 

  --accent: #405D73;         /* primary buttons, links */
  --accent-hover: #2C3E4F;  /* hover / active */
  --accent-soft: rgba(64, 93, 115, 0.15); /* soft hover bg */

  /* ======================
     TEXT COLORS
  ======================= */

  --text-heading: #2C3E4F;   /* all headings */
  --text-body: #3E5466;      /* main paragraph text */
  --text-muted: #6B879C;    /* meta, dates, subtext */
  --text-on-dark: #FFFFFF;  /* text on header/footer */

  /* =======================
     BORDERS & SHADOWS
  ======================= */

  --border-soft: rgba(44, 62, 79, 0.18);
  --shadow-soft: 0 12px 30px rgba(44, 62, 79, 0.15);
}

/* =======================
   RESET & BASE
   ======================= */
   html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
   height: 100%;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-heading);   /* FIXED */
  min-height: 100vh;
  line-height: 1.6;
}
body {
  overflow-x: hidden;
    height: 100%;
  margin: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
}

p {
  color: var(--accent);
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-hover); /* FIXED */
}
/* Utility */

.section {
  background: var(--bg-section);
  color: var(--text-heading);
}


.center {
  text-align: center;

}

.site-header,
.site-footer {
  background: var( --accent-hover);
  color: var( --text-on-dark);
}

.btn,
.btn-light,
button {
  background: var(--accent);
  
}

.btn:hover,
button:hover {
  background: var(--accent-hover);
}

/* ===============================
   IMAGE SUPPORTED ORBIT LOADER
================================ */

/* Hide loader by default */
#loader {
  position: fixed;
  inset: 0;
  background: var(--text-heading);
  display: none;

  justify-content: center;
  align-items: center;
  z-index: 9999;
}

html.show-loader #loader {
  display: flex;
}

/* Hide content when loader active */
html.show-loader #main-content {
  display: none;
}

/* Orbit container */
.orbit-container {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center logo */
.center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.center-icon img {
  width: 70px;
  height: auto;
  display: block;
}

/* Rotating orbit */
.orbit {
  position: absolute;
  inset: 0;
 
}

/* Base icon positioning */
.orbit .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  animation: orbit-spin 8s linear infinite;
}

/* Icon size */
.orbit .icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.orbit .icon:nth-of-type(1) { --angle: 0deg; }
.orbit .icon:nth-of-type(2) { --angle: 51.428571deg; }
.orbit .icon:nth-of-type(3) { --angle: 102.857142deg; }
.orbit .icon:nth-of-type(4) { --angle: 154.285714deg; }
.orbit .icon:nth-of-type(5) { --angle: 205.714285deg; }
.orbit .icon:nth-of-type(6) { --angle: 257.142857deg; }
.orbit .icon:nth-of-type(7) { --angle: 308.571428deg; }

/* Rotation animation */
@keyframes orbit-spin {
  from {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-75px) rotate(calc(-1 * var(--angle)));
  }
  to {
    transform: translate(-50%, -50%) rotate(calc(360deg + var(--angle))) translateY(-75px) rotate(calc(-360deg - var(--angle)));
  }
}


/* =======================
   HEADER & NAV
   ======================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: none;
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  height: 72px;
}

/* Brand (logo + text) */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  display: block;
  margin-top: 10px;
}

/* Extra safety */

.brand,
.brand * {
  text-decoration: none !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  position: relative;
}

.nav a {

  font-weight: 600;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.nav a:hover {
 
  color: var(--text-muted);
}

/* Header contact button */

.btn-primary {
  background: var(--primary);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

/* Dropdown(not in use) */

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--border-light);
  background: var(--bg-surface-dark);
  min-width: 160px;
  box-shadow: var(--shadow-soft);
  border-radius: 10px;
  z-index: 100;
}

.dropdown-content a {
  display: block;
  padding: 10px 14px;
  color: var(--text-white);
}

.dropdown-content a:hover {
  background: var(--primary);
  color: var(--text-white);
}

.dropdown:hover .dropdown-content {
  display: block;
}
/* Dropdown(not in use) */
/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
  position: relative;
  margin: 0px 0px 0px 150px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-on-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
  margin: 2px 0;
}

.nav-toggle:hover {
  opacity: 0.8;
}

.nav-toggle:focus {
  outline: 2px solid var(--text-on-dark);
  outline-offset: 2px;
}

/* Hamburger animation when nav is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}


/* =======================
   BUTTONS
   ======================= */

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;

  text-decoration: none;
  transition: all 0.28s ease;
  border: none;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.btn-explore {
  display: inline-block;
  padding: 10px 22px;
  font-weight: 700;
  border: 2px solid var(--text-heading);
  border-radius: 8px;
  color: var(--text-white);
  text-decoration: none;
  transition: 0.28s ease;
}

.btn-explore:hover {
  background: var(--primary-hover);
  color: var(--text-white);
  transform: translateY(-3px);
}
/* =======================
   HERO
   ======================= */

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-image: url("img/home/hero\ home.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Mobile image */
@media (max-width: 400px) {
  .hero-section {
    background-image: url("img/home/hero\ mobile\ small.png");
    min-height: 50svh; /* better for mobile browsers */
  }
}

/* ===================== ABOUT SECTION ===================== */

.about-section {
  text-align: center;
  padding: 50px 0;
}

.about-heading {
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 800;
  color: var(--text-main);
}

.about-para {
  max-width: 900px;
  margin: 0 auto 35px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-heading);   /* FIXED */
}

.about-points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

/* Bullet circle */
.about-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--text-main);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--text-heading);
  border-radius: 50%;
}

/* Animation */
.about-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: all .7s ease-out;
}

.about-anim.in {
  opacity: 1;
  transform: translateY(0);
}

/* ABOUT POINTS ANIMATION */
.about-point {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.7s ease-out;
}

.about-point.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .about-points-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-points {
    text-align: center;
  }
  .about-points li {
    padding-left: 0;
  }
  .about-points li::before {
    display: none;
  }
}

/* =======================
   FLAGSHIP (NEW VERSION)
   ======================= */

.flagship-heading {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 5px;
   color: var(--text-heading);
}

/* Background wrapper behind cards */
.flagship-bg {
  width: 100%;
  margin-top: 20px;
  padding: 20px 0 80px;
  background-color: var(--accent-hover) ;
}

/* 3-column staggered layout */
.flagship-stacks {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* middle column shifted down */
.stack-middle {
  margin-top: 45px;
}

/* flagship card */
.flag-card {
  background: var(--bg-page);
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.7s ease-out;
  min-width: 200px;
  min-height: 450px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 20px 20px 25px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.flag-card:hover{
  transform: translateY(-0.5px);
}
.flag-card::before {
  content: "";
  position: absolute;
  inset: 8px; 
  border-radius: 8px;
  border: 1.5px solid var(--text-muted);
  pointer-events: none;
  z-index: 1;

}

.flag-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.flag-card.in {
  opacity: 1;
 
}
.flag-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Force equal width for all 3 stacks */
.flagship-stack {
  flex: 1;
  max-width: 350px;
}

/* Force all cards inside stacks to match width */
.flag-card {
  width: 100%;
  box-sizing: border-box;
}

.flag-card h4 {
  margin: 0 0 6px 0;
  font-size: 18px;
  color: var(--text-main);
}

.flag-card p {
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .flagship-stacks {
    flex-direction: column;
    align-items: center;
  }
  .stack-middle {
    margin-top: 0;
  }
}
/* ---------------------------
   OUR VISION SECTION
---------------------------- */

.vision-sub {
  text-align: center;
  color: var(--text-body);   /* FIXED */
  max-width: 780px;
  margin: 50px auto 10px;
  line-height: 1.6;
}

/* 4 inline points */
.vision-points {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

/* Individual point */
.vision-point {
  text-align: left;
  padding-left: 22px;
  position: relative;
  opacity: 0;
  transform: translateY(25px);
  transition: all .7s ease-out;
}


.vision-point.in {
  opacity: 1;
  transform: translateY(0);
}

.vision-point h4 {
  color: var(--text-heading);
  margin-bottom: 6px;
  font-size: 18px;
}

.vision-point p {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.5;
}

/* responsive */
@media (max-width: 900px) {
  .vision-points {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .vision-points {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FUELING INNOVATION
========================= */

/* full strip background */
.fuel-bg {
  width: 100%;
  padding: 60px 0;
  margin-top: 20px;
}

/* 3 items layout */
.fuel-grid {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

/* individual item */
.fuel-item {
  flex: 1;
  text-align: center;
  color: var(--text-white);
}

/* icons */
.fuel-icon {
  font-size: 40px;
  color: var(--text-white);
  margin-bottom: 10px;
}

/* counting numbers */
.count-num {
  display: block;
  font-size: 25px;
  color: var(--text-white);
  margin-bottom: 6px;
}

/* label */
.fuel-item p {
  color: var(--text-soft);
  font-size: 25px;
}

/* responsive */
@media(max-width: 900px){
  .fuel-grid {
    flex-direction: column;
    gap: 30px;
  }
}

/* =======================
   SPEAKER SLIDER
======================= */

.speakers-section {
  margin-top: 40px;
  margin-bottom: 60px;
}

.speakers-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  gap: 10px;
  margin-left: 0px;
  margin-right: 0px;
}

.speaker-arrow {
  background: none;   /* ⬅ removes bg */
  border: none;       /* ⬅ removes border */
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--accent-hover);
}

.speaker-arrow:hover{
  background:none;
  opacity: 0.5;
}
.speakers-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  justify-content: flex-start;
  scroll-snap-type: x mandatory;
  width: 100%;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--accent) transparent; /* Firefox */
  cursor: grab;
}

.speakers-track:active {
  cursor: grabbing;
}

/* Hide scrollbar for Chrome, Safari, Edge */
.speakers-track::-webkit-scrollbar {
  height: 8px;
}

.speakers-track::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}

.speakers-track::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.speakers-track::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}
/* ==============================
   HIDE SCROLLBAR (KEEP SCROLL)
============================== */

/* Chrome, Safari, Edge */
.speakers-track::-webkit-scrollbar {
  display: none;
}

/* Firefox */
.speakers-track {
  scrollbar-width: none;
}

/* IE / old Edge */
.speakers-track {
  -ms-overflow-style: none;
}

.speaker-card {
  min-width: 190px;
  background: var(--accent-hover);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: 0.3s ease;
  flex: 0 0 198px;
  scroll-snap-align: start;
}

.speaker-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.speaker-card h4 {
  margin: 6px 0 4px;
  color: var(--text-on-dark);
}

.speaker-card p {
  margin: 0;
  color: var(--text-on-dark);
  font-size: 14px;
}

/* =======================
   TESTIMONIALS
   ======================= */

.testimonial-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-top: 20px;
}

.testimonial {
  position: relative;
  flex: 1;
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
  color: var(--text-body);
  opacity: 0;
  transform: translateY(10px);
}

.testimonial::before {
  content: "";
  position: absolute;
  inset: 8px; 
  border-radius: 8px;
  border: 1.5px solid var(--text-muted);
  pointer-events: none;
  z-index: 1;

}


.testimonial blockquote {
  margin: 0 0 12px 0;
  font-size: 19px;
  color: var(--text-body);
}

.testimonial figcaption {
  color: var(--text-muted);
  font-size: 14px;
}

/* =======================
   GENERIC CARD TYPES
   (for other pages: events, team, auth forms)
   ======================= */

.event-card,
.past-event-card,
.card {
  background: var(--green-main);
  color: var(--text-on-green);
}

.form,
.register-card,
.login-card
.person,
.member {
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
}

.card p,
.person p{
  color: var(--text-on-dark);
}

/* =======================
   FOOTER
======================= */

.site-footer {
  margin-top: 100px;
  padding: 45px 0 25px;
  border-top: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

/* COLUMN 1 — CONTACT */
.footer-contact p {
  margin: 6px 0;
  color: var(--text-on-dark);
}

/* COLUMN 2 — LINKS */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

/* COLUMN 3 — FORM */
.footer-form-title {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text-on-dark);
}

.footer-form-sub {
   color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.footer-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-on-dark);
}

.footer-form span {
  font-size: 14px;
 color: var(--text-on-dark);
  margin-bottom: 4px;
  display: block;
}

.footer-form input,
.footer-form textarea {
  background: var(--accent-soft);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  color: var(--text-on-dark);
  resize: none;
}

.footer-form input:focus,
.footer-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-soft);
   color: var(--text-on-dark);

}

#footerStatus {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 14px;
}

/* COLUMN 4 — SOCIAL */
.follow-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-on-dark);
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
}

.social-icons .icon {
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
  transition: background 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.social-icons .icon:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* COPYRIGHT */
.footer-social p {
  margin: 4px 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-btn {
  margin-top: 10px;
  width: auto;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* =======================
   FLOATING SOCIAL SIDEBAR
======================= */

.social-sidebar {
  position: fixed;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
  border-radius: 30px;
  background: var(--accent);
  box-shadow: var(--shadow-soft);
  z-index: 999;
}

.social-sidebar .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  color: var(--text-main);
  border-radius: 50%;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-sidebar .icon:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: scale(1.1);
}

/* =======================
   ANIMATIONS (for JS to toggle .in)
   ======================= */

.hero-line,
.hero-sub,
.hero-buttons,
.testimonial,
.num-card,
.flagship-card {
  transition: all 700ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.hero-line.in,
.hero-sub.in,
.hero-buttons.in,
.testimonial.in,
.num-card.in,
.flagship-card.in {
  opacity: 1;
  transform: translateY(0);
}

/* =======================
   RESPONSIVE
   ======================= */

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    gap: 20px;
  }

  .hero-content {
    max-width: 100%;
    padding-left: 0;
    text-align: left;
  }

  .hero-panel {
    width: 100%;
    height: 220px;
  }

  .flagship-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-row {
    flex-direction: column;
    gap: 16px;
  }

  .footer-left,
  .footer-right {
    max-width: 100%;
    align-items: flex-start;
  }

  .footer-right {
    align-items: stretch;
  }

  .social-sidebar {
    right: 8px;
  }

  /* Mobile speaker section improvements */
  .speakers-wrapper {
    gap: 8px;
  }

  .speaker-arrow {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .speakers-track {
    gap: 12px;
    padding-bottom: 8px; /* Space for scrollbar */
  }

  .speaker-card {
    min-width: 180px;
    flex: 0 0 180px;
  }

  /* mobile nav behavior */
  header nav {
    position: relative;
  }
  
  .nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--bg-dark);
    display: none;
    flex-direction: column;
    padding: 20px;
    gap: 0;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav.open {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.3s ease-out;
  }

  .nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav li:last-child {
    border-bottom: none;
  }

  .nav a {
    display: block;
    padding: 16px 20px;
    font-size: 18px;
    text-align: left;
    color: var(--text-on-dark);
    width: 100%;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav a:hover,
  .nav a:active {
    background: var(--accent);
    color: var(--text-on-dark);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 201;
    background: transparent;
    min-width: 44px;
    min-height: 44px;
    border-radius: 4px;
  }
  
  .nav-toggle:active {
    background: rgba(255, 255, 255, 0.1);
  }
  
  /* Hide desktop nav on mobile */
  header nav .nav:not(.open) {
    display: none;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 500px) {
  .container {
    width: 95%;
  }

  .hero-line {
    font-size: 36px;
  }

  .num-card {
    width: calc(50% - 10px);
  }

  /* Enhanced mobile nav for small screens */
  .nav-toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
  }

  .nav-toggle span {
    width: 22px;
    height: 2.5px;
  }

  .nav {
    padding: 16px;
  }

  .nav a {
    padding: 14px 16px;
    font-size: 16px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  /* Small screen speaker section */
  .speakers-wrapper {
    gap: 5px;
  }

  .speaker-arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .speaker-card {
    min-width: 160px;
    flex: 0 0 160px;
    padding: 12px;
  }

  .speaker-card img {
    height: 140px;
  }

  .speaker-card h4 {
    font-size: 14px;
  }

  .speaker-card p {
    font-size: 12px;
  }
}
/* ============================================================
   EVENTS PAGE — HERO
============================================================ */

.event-hero {
  width: 100%;
  min-height: 78vh;
  background: url("img/events/hero.jpg") center/cover no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  position: relative;
  overflow: hidden;
  padding-bottom: 32px;
  margin-bottom: 100px;
}

.event-hero-row {
  position: relative;
  width: 100%;
  height: 100px;
}

.event-hero-row h2 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  margin: 0;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-on-dark);
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.event-scroll-link {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  font-size: 18px;
  font-weight: 600;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.event-scroll-link.left {
  left: 400px;
}

.event-scroll-link.right {
  right: 350px;
}

.event-scroll-link:hover {
  color: var(--text-muted);
  transform: translateY(calc(-50% - 1px));
}

/* Mobile */
@media (max-width: 800px) {
  .event-hero-row {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .event-scroll-link {
    position: static;
    transform: none;
  }

  .event-hero-row h2 {
    position: static;
    transform: none;
  }
}

/* ============================================================
   SCROLL OFFSET
============================================================ */

#past-events,
#upcoming-events {
  scroll-margin-top: 130px;
}

#upcoming-events {
  padding-left: 80px;
  padding-right: 80px;
}
/* ============================================================
   PAST EVENTS
============================================================ */

.past-events {
  margin-top: 80px;
  color: var(--accent-hover);
  margin-bottom: 5px;
}

.events-subtext {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 5px;
  color: var(--text-body   );
  font-size: 16px;
}

.past-events-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ============================================================
   PAST EVENT CARD
============================================================ */

.past-event-card {
  display: flex;
  gap: 24px;
  margin: 0 25px;
  background: #415160;
  border-radius: 18px;
  padding: 22px;
  color: var(--text-on-dark);
  align-items: flex-start;
  transition: height 0.3s ease;
}

/* image block */
.past-event-img {
  flex: 0 0 260px;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
}

.past-event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* content block */
.past-event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* text */
.past-event-content h4 {
  margin-bottom: 8px;
  color: var(--text-on-dark);
}

.past-event-content p {
  color: var(--text-on-dark);
  line-height: 1.6;
}

.past-event-card {
  scroll-margin-top: 120px;
}

/* ============================================================
   READ MORE – SINGLE SCROLL VERSION
============================================================ */

/* hide extra text initially */
.past-event-more {
  display: none;
}

/* expanded card */
.past-event-card.expanded {
  height: 400px;        /* fixed height when opened */
  overflow: hidden;     /* prevent spill */
}

/* content layout when expanded */
.past-event-card.expanded .past-event-content {
  display: flex;
  flex-direction: column;
  height: 100%;

}

/* show extra text */
.past-event-card.expanded .past-event-more {
  display: block;
}

/* create ONE scroll area for entire text */
.past-event-card.expanded .past-event-content {
  overflow-y: auto;
  padding-right: 8px;   /* space for scrollbar */
}

/* keep button fixed at bottom */
.past-event-card.expanded .past-readmore {
  margin-top: auto;
}

/* keep button fixed at bottom */
.past-event-card.expanded .past-readmore {
  margin-top: auto;
}

/* scrollbar styling */
.past-event-content::-webkit-scrollbar {
  width: 6px;
}

.past-event-content::-webkit-scrollbar-thumb {
  background: var(--accent-hover);
  border-radius: 10px;
}

/* ============================================================
   BUTTON
============================================================ */

.past-readmore {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.28s ease;
  border: none;
  margin-top: auto;
  align-self: flex-start;
  background-color: var(--text-muted);
  color: var(--text-on-dark);
}

.past-readmore:hover {
  background-color: var(--text-on-dark);
  transform: translateY(-1px);
  color: var(--text-heading);
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 800px) {

  .past-event-card {
    flex-direction: column;
    text-align: center;
  }

  .past-event-img {
    width: 100%;
    height: 200px;
  }

  .past-readmore {
    align-self: center;
  }
}
 .past-event-card.expanded {
    height: 75vh !important;   /* force bigger height */
    max-height: none !important;
 }
/* ============================================================
   UPCOMING EVENTS
============================================================ */
.upcoming-events{
  color: var(--text-heading);
  margin-top: 100px;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 50px;
  justify-items: center;
  margin-left: 5px;
}

.event-card {
  width: 100%;
  min-height: 260px;

  background: #415160;
  border: 1px solid var(--border-soft);
  border-radius: 16px;

  padding: 30px;
  margin-left: 50px;
  margin-right: 50px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  color: var(--text-main);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(0px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.event-card .meta {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-on-dark);
}

.btn-light {
  margin-top: auto;
  align-self: flex-start;
  background-color: var(--text-muted);
  color: var(--text-on-dark);
}
.btn-light:hover{
  background-color: var(--text-on-dark);
  transform: translateY(-1px);
  color: var(--text-heading);
}
@media (max-width: 1000px) {

  .event-grid {
    display: flex;          /* remove grid control */
    flex-direction: column;
    align-items: center;    /* center cards */
    gap: 30px;
  }

  .event-card {
    width: 80vw;            /* viewport width based */
    max-width: none;
    margin: 0;
  }

}

.event-card h3,
.past-event-card h3 {
  color: var(--text-on-dark);
}

.event-card p,
.past-event-card p {
  color: var(--text-on-dark);
}

/* ============================================================
   FILTER CHIPS
============================================================ */

.chip {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.chip:hover,
.chip.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}




/* ================================
   TEAM PAGE — TEAM CARDS
================================ */


.team-hero {
  width: 100%;
  min-height: 78vh;
  background: url("img/team/hero.jpg") center/cover no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  position: relative;
  overflow: hidden;
  padding: 40px 0 32px;
  box-sizing: border-box;
}

.team-hero h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-on-dark);
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

/* ================================
   TEAM LAYOUT
================================ */

.team-section {
  padding: 50px 0;
}

.team-row {
  display: flex;
  justify-content: center;
  gap: 35px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.center-row {
  justify-content: center;
}

.spaced-row {
  width: 70%;
  margin: 0 auto 35px;
  justify-content: space-between;
}

/* ================================
   TEAM CARD
================================ */

.member {
  width: 260px;
  height: 320px;
  padding: 20px;
  text-align: center;

  background: var(--bg-surface);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);

  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-items: start;
}


/* ================================
   PROFILE IMAGE (STATIC)
================================ */

.member img {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
  position: relative;
  z-index: 3;
  transition: opacity 0.25s ease;
  display: block;
  margin: 0 auto 5px;
    
}

.member:hover img {
  opacity: 0;
}

.member p.role {
  min-height: 42px;   /* enough for 2 lines */
  line-height: 1.3;
}


/* ================================
   TEXT
================================ */

.member h3 {
  margin-bottom: 0;
  color: var(--primary-light);
  position: relative;
  z-index: 3;
}

.member p {
  margin: 0;
  color: var(--text-muted);
  position: relative;
  z-index: 3;
}

.member:hover h3,
.member:hover p {
  color:#FFFFFF;
}

/* ================================
   ICONS
================================ */

.member-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  position: relative;
  z-index: 3;
    margin-top: auto;
}

.member-icons a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-hover);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  text-decoration: none;
}
.member-icons a:hover {
  
  color: var(--text-on-dark);             /* icon turns blue */
  border: 1.5px solid var(--primary);
  border-radius: 50%;               /* ⬅ “a little circular”, not full */
  transform: translateY(-1px);
}
/* ================================
   BACKGROUND IMAGE (FROM JS)
================================ */

.member::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.35s ease;
  z-index: 0;
}
.member:hover::before {
  opacity: 1;
   inset: 14px;                      /* ⬅ more inner margin */
  border-radius: 16px;    /* ⬅ creates margin effect */
}
/* ================================
   DARK OVERLAY
================================ */

.member::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;

}
/* ================================
   RISE ANIMATION
================================ */

.member.in {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   GALLERY PAGE — EVENT CARDS
================================ */

/* Full section height */

 .video-hero {
  position: relative;
  width: 100%;
  height: 85svh;   /* single source of truth */
  overflow: hidden;
  display: grid;
  place-items: center;
  
}
  

/* Video styling */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-hero::before {
  top: 0;                   /* top seam */
}

.video-hero::after {
  bottom: 0;                /* bottom seam */
}

.event-gallery {
  margin-top: 0 !important;
  padding-top: 0 !important;
  
}


/* Text over video */
.hero-overlay {
  position: relative;
  text-align: center;
}

.hero-overlay h2 {
  color: var(--text-on-dark);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.event-gallery h2 {
  margin-top: 80px;
  margin-bottom: 20px;
}

.event-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 0px;
  margin-right: 0px;
  width:90%;
  margin: 0 auto;
}

.event-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  width: 100%;
  cursor: grab;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.event-track:active {
  cursor: grabbing;
}

.event-track::-webkit-scrollbar {
  margin-top: 10px;
  height: 8px;
}

.event-track::-webkit-scrollbar-track {
  margin-top: 10px;
  background: transparent;
  border-radius: 4px;
}

.event-track::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.event-track::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}
/* ==============================
   HIDE SCROLLBAR (KEEP SCROLL)
============================== */

/* Chrome, Safari, Edge */
.event-track::-webkit-scrollbar {
  display: none;
}

/* Firefox */
.event-track {
  scrollbar-width: none;
}

/* IE / old Edge */
.event-track {
  -ms-overflow-style: none;
}

/* 4 images visible */
.event-track img {
  flex: 0 0 calc(25% - 14px);
  height: 185px;
  border-radius: 5px;
  object-fit: cover;
  border: none;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.35);
  scroll-snap-align: start;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: auto;
}

/* arrows */
.event-arrow {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.25s ease;
  margin-left: 10px;
  margin-right: 10px;
}

.event-arrow.left {
  left: -20px;
}

.event-arrow.right {
  right: -20px;
}



.event-arrow:hover {
  background:none;
  opacity: 0.5;
}

/* responsive */
@media (max-width: 900px) {
  .event-track img {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 500px) {
  .event-track img {
    flex: 0 0 100%;
  }
}
