/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #5d1358;
  --purple-dark: #3d0d3a;
  --purple-light: #7d1a78;
  --yellow: #ffff00;
  --yellow-light: #ffff66;
  --white: #ffffff;
  --off-white: #fdf8f0;
  --gray-light: #f4f1ec;
  --gray: #e0dbd0;
  --gray-dark: #888070;
  --text: #1a1610;
  --text-muted: #5a5040;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 32px rgba(0,0,0,0.15);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--off-white);
}

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.3em; }

strong { font-weight: 600; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--purple);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.site-logo__emblem {
  width: 52px;
  height: 52px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--purple-dark);
  border: 2px solid var(--yellow-light);
  flex-shrink: 0;
}

.site-logo__text { line-height: 1.2; }
.site-logo__name { font-size: 1rem; font-weight: 700; }
.site-logo__tagline { font-size: 0.7rem; opacity: 0.85; font-weight: 400; }

/* ===== NAV ===== */
.main-nav { position: relative; }

.main-nav__toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.main-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav__item { position: relative; }

.main-nav__link {
  display: block;
  padding: 0.55rem 0.8rem;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition);
  white-space: nowrap;
}

.main-nav__link:hover,
.main-nav__link--active {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  text-decoration: none;
}

/* Dropdown */
.main-nav__item--dropdown:hover .main-nav__dropdown,
.main-nav__item--dropdown:focus-within .main-nav__dropdown {
  display: block;
}

.main-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem 0;
  z-index: 200;
  list-style: none;
  margin: 0;
}

.main-nav__dropdown-link {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--text);
  font-size: 0.85rem;
  transition: background var(--transition);
}

.main-nav__dropdown-link:hover {
  background: var(--gray-light);
  color: var(--purple);
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 50%, var(--purple-light) 100%);
  color: var(--white);
  padding: 4rem 1.25rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content { position: relative; z-index: 1; }

.hero__badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--purple-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--yellow);
  color: var(--purple-dark);
  border-color: var(--yellow);
}
.btn--primary:hover {
  background: var(--yellow-light);
  border-color: var(--yellow-light);
  color: var(--purple-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  text-decoration: none;
  border-color: var(--white);
}

.btn--red {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}
.btn--red:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  color: var(--white);
  text-decoration: none;
}

/* ===== SECTION TITLES ===== */
.section { padding: 3rem 0; }
.section--alt { background: var(--gray-light); }
.section--dark { background: var(--text); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark p { color: var(--white); }

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: 0.4rem;
}

.section--dark .section__label { color: var(--yellow); }

.section__title {
  font-size: 1.8rem;
  font-weight: 800;
}

.section__divider {
  width: 48px;
  height: 3px;
  background: var(--yellow);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card__body { padding: 1.5rem; }
.card__title { margin-bottom: 0.5rem; }
.card__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ===== EVENT LIST ===== */
.event-list { display: flex; flex-direction: column; gap: 1rem; }

.event-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.event-item:hover { box-shadow: var(--shadow-lg); }

.event-item__date {
  background: var(--purple);
  color: var(--white);
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  text-align: center;
  flex-shrink: 0;
}

.event-item__day { font-size: 1.75rem; font-weight: 900; line-height: 1; }
.event-item__month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; }
.event-item__year { font-size: 0.68rem; opacity: 0.75; margin-top: 2px; }

.event-item__body { padding: 1rem 1.25rem; flex: 1; }
.event-item__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.event-item__details {
  font-size: 0.83rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.event-item__detail { display: flex; align-items: center; gap: 0.25rem; }

/* ===== GRID ===== */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== TEAM CARD ===== */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 3px solid var(--yellow-light);
}

.team-card__name { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.team-card__role { font-size: 0.8rem; color: var(--purple); font-weight: 600; margin-bottom: 0.5rem; }
.team-card__contact { font-size: 0.78rem; color: var(--text-muted); }
.team-card__contact a { color: var(--text-muted); }
.team-card__contact a:hover { color: var(--purple); }

/* ===== SPONSOR GRID ===== */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.sponsor-item {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.sponsor-item:hover {
  border-color: var(--yellow);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* ===== INFO BOX ===== */
.info-box {
  background: var(--white);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}

.info-box--red { border-left-color: var(--purple); }
.info-box--gold { border-left-color: var(--yellow); }

.info-box__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--purple); }

/* ===== HIGHLIGHT BANNER ===== */
.highlight-banner {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-light) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.highlight-banner h3 { color: var(--purple-dark); margin-bottom: 0.5rem; }
.highlight-banner p { color: var(--purple-dark); margin-bottom: 1rem; }

/* ===== MEMBERSHIP TIERS ===== */
.membership-tier {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.membership-tier:hover { border-color: var(--yellow); }

.membership-tier__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.membership-tier__name { font-size: 1.1rem; font-weight: 700; color: var(--purple); margin-bottom: 0.5rem; }

/* ===== CONTACT CARD ===== */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-card__name { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.contact-card__role { font-size: 0.82rem; color: var(--purple); font-weight: 600; margin-bottom: 0.75rem; }
.contact-card__info { font-size: 0.85rem; color: var(--text-muted); }
.contact-card__info p { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.site-footer p { font-size: 0.85rem; margin-bottom: 0.4rem; }

.site-footer__links { list-style: none; padding: 0; }
.site-footer__links li { margin-bottom: 0.4rem; }
.site-footer__links a { color: rgba(255,255,255,0.65); font-size: 0.85rem; transition: color var(--transition); }
.site-footer__links a:hover { color: var(--yellow); text-decoration: none; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.site-footer__bottom a { color: rgba(255,255,255,0.55); }
.site-footer__bottom a:hover { color: var(--yellow); text-decoration: none; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: var(--white);
  padding: 2.5rem 1.25rem;
}

.page-hero__inner { max-width: 1100px; margin: 0 auto; }
.page-hero__label { font-size: 0.75rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.page-hero__title { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; color: var(--white); }
.page-hero__sub { opacity: 0.85; margin-top: 0.4rem; font-size: 0.95rem; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.85rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gold { color: var(--yellow); }

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--red { background: #f0e0ef; color: var(--purple); }
.badge--gold { background: #ffffa0; color: #5a5a00; }
.badge--green { background: #e6f7e6; color: #2a7a2a; }

.divider {
  border: none;
  border-top: 1px solid var(--gray);
  margin: 2rem 0;
}

/* Secondary items hidden on desktop; shown in mobile hamburger */
.main-nav__item--secondary { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav__toggle { display: block; }
  .main-nav__item--secondary { display: block; }
  .main-nav__item--mehr { display: none; }

  .main-nav__list {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: 300;
    align-items: stretch;
  }

  .main-nav__list.is-open { display: flex; }

  .main-nav__link { color: var(--text); padding: 0.6rem 1rem; border-radius: 0; }
  .main-nav__link:hover { background: var(--gray-light); color: var(--purple); }

  .main-nav__dropdown {
    position: static;
    box-shadow: none;
    background: var(--gray-light);
    border-radius: 0;
    display: none;
  }

  .main-nav__item--dropdown.is-open .main-nav__dropdown { display: block; }

  .main-nav__dropdown-link { padding-left: 2rem; }

  .site-header__inner { padding: 0.6rem 1rem; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .event-item__date { min-width: 60px; }
  .event-item__day { font-size: 1.4rem; }
  .hero { padding: 2.5rem 1rem 2rem; }
  h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
}

/* ===== DEPT FILTER BUTTONS ===== */
.dept-filter-btn {
  background: var(--gray-light);
  border: 1px solid var(--gray);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.dept-filter-btn.is-active { background: var(--purple); color: var(--white); border-color: var(--purple); }
