/* Root variables definition for the HTML to reference */
:root {
  /* Pink accents (replaces previous orange accents) */
  --orange-primary: #d26a84;
  --orange-dark: #b5566f;
  --orange-darker: #8f3f54;
  --orange-light: #ee9bb0;
  --orange-lighter: #f7cfe0;

  /* Green accents (replaces previous cyan/blue accents) */
  --cyan-primary: #3fb491;
  --cyan-dark: #2f8f73;
  --cyan-light: #74d3b8;
  --cyan-lighter: #a8e4d3;
  --cyan-lightest: #d9f3eb;

  /* Pastel green accents */
  --pastel-green-light: #e8f6ef;
  --pastel-green-dark: #86c99e;
  /* Solid darker greens for buttons (good contrast with white text) */
  --green-solid: #3aa987;
  --green-solid-dark: #2d876d;
  /* Pastel pink accents */
  --pastel-pink-light: #fdeef6;
  --pastel-pink-dark: #f7cfe0;
  /* Solid pinks for buttons (good contrast with white text) */
  --pink-solid: #d26a84;
  --pink-solid-dark: #b5566f;

  /* Neutral colors */
  --background-dark: #252525;
  --white: #ffffff;
  --gray-light: #f9fafb;
  --gray-medium: #e0e0e0;
  --text-dark: #333;

  /* Accent colors */
  --text-brown: #7c2d12;
  --nav-background: #1e1e1e;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #252525;
  min-height: 100vh;
  color: #333;
}

header {
  background: linear-gradient(135deg, rgba(167, 243, 208, 0.32) 0%, rgba(134, 239, 172, 0.32) 100%),
    url('assets/middigs1_photos/group_photo.JPG') center 65%/cover no-repeat;
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-container {
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-placeholder {
  width: 200px;
  height: 200px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: visible;
  box-shadow: none;
}

.logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-top: 0;
  margin-bottom: 0;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: var(--background-dark);
  padding: 1rem;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.4); */
  position: sticky;
  top: 0;
  z-index: 100;
}

nav button {
  padding: 0.75rem 1.5rem;
  border: none;
  background: var(--pink-solid);
  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background: var(--pink-solid-dark);
}

nav button.active {
  background: linear-gradient(135deg, var(--green-solid) 0%, var(--green-solid-dark) 100%);
}

main {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--gray-light);
  padding: 2.5rem;
  margin-top: 0;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.tab {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.register-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange-primary) 100%);
  color: white;
  padding: 1.25rem 1.75rem;
  border-radius: 14px;
  margin-bottom: 2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(210, 106, 132, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.register-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(210, 106, 132, 0.35);
}

.register-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.register-banner-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.register-banner-sub {
  font-size: 0.9rem;
  opacity: 0.9;
}

.register-banner-cta {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
}

h2 {
  color: var(--orange-primary);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
  border-bottom: 3px solid var(--orange-primary);
  padding-bottom: 0.5rem;
}

.info-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--cyan-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
  color: var(--cyan-dark);
  margin-bottom: 0.25rem;
}

.post-date {
  display: block;
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 0.75rem;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

ul li:before {
  content: "•";
  position: absolute;
  left: 0;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border-left: 3px solid var(--orange-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.faq-item strong {
  color: var(--orange-dark);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.skill-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.skill-table th {
  background: var(--orange-primary);
  color: white;
  padding: 0.6rem 1rem;
  text-align: center;
  font-weight: 600;
}

.skill-table td {
  padding: 0.6rem 1rem;
  text-align: center;
  border: 1px solid var(--gray-medium);
  background: white;
  font-weight: 500;
}

.skill-descriptions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.skill-entry {
  padding: 0.75rem 1rem;
  background: white;
  border-left: 3px solid var(--orange-primary);
  border-radius: 0 6px 6px 0;
}

.skill-entry strong {
  color: var(--orange-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.skill-entry p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

iframe {
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.registration-embed {
  display: flex;
  justify-content: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 aspect ratio */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 0.75rem;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

footer {
  text-align: center;
  padding: 2rem;
  color: white;
  font-size: 0.95rem;
}

footer a {
  color: white;
  text-decoration: underline;
}

.highlight {
  background: linear-gradient(120deg, var(--pastel-pink-light) 0%, var(--pastel-pink-dark) 100%);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  color: #7c2d12;
}

@media (max-width: 768px) {
  header {
    padding: 1.5rem 1rem;
  }

  .logo-placeholder {
    width: 170px;
    height: 170px;
  }

  h1 {
    font-size: 1.8rem;
    line-height: 1.1;
    text-wrap: balance;
    margin-bottom: 0.35rem;
  }

  .subtitle {
    font-size: 1rem;
    line-height: 1.3;
    text-wrap: balance;
  }

  main {
    margin: 1rem;
    padding: 1.5rem;
  }

  nav {
    padding: 0.75rem;
    gap: 0.4rem;
  }

  nav button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    flex: 1 1 150px;
  }

  .register-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .register-banner-cta {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .logo-placeholder {
    width: 150px;
    height: 150px;
  }

  h1 {
    font-size: 1.55rem;
  }

  nav button {
    flex-basis: 140px;
  }
}

.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.team-card {
  background: white;
  border: 2px solid var(--orange-primary);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.team-card h4 {
  color: var(--orange-dark);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.team-card p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

/* Past Events photo collage */
.photo-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
}

.collage-item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.collage-item.featured {
  grid-column: span 3;
  aspect-ratio: 16 / 7;
}

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

.collage-item img:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .photo-collage {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Dropdown navigation */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--nav-background);
  border-radius: 8px;
  padding: 0.4rem;
  min-width: 175px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  z-index: 200;
  flex-direction: column;
  gap: 0.25rem;
}

/* Invisible bridge that fills the gap so the hover area is continuous */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.35rem;
  left: 0;
  right: 0;
  height: 0.35rem;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-menu button {
  width: 100%;
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}