:root {
  --accent: #DA802F;
  --accent-hover: #c46e22;
  --main-title: #081E3B;
  --secondary-title: #225071;
  --bg-cream: #F3DDC2;
  --bg-card: #FAF0E4;
  --bg-surface: #EAD0B1;
  --border-color: rgba(34, 80, 113, 0.24);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-cream);
  color: var(--main-title);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 221, 194, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-color);
  padding: 0.85rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 48px;
  height: 44px;
  background: var(--bg-cream);
  border: 2px solid var(--main-title);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo svg {
  width: 42px;
  height: 36px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--main-title);
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--secondary-title);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--secondary-title);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--main-title);
  color: var(--bg-cream);
}

/* Hero Banner (Styled after the Adventure Club Style Guide Banner) */
.hero-banner {
  position: relative;
  margin-top: 2rem;
  background: var(--bg-cream);
  border: 3px solid var(--main-title);
  border-radius: 28px;
  padding: 2.5rem 2.75rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(8, 30, 59, 0.1);
}

.banner-blobs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-logo-card {
  background: rgba(243, 221, 194, 0.92);
  border: 2px solid rgba(8, 30, 59, 0.15);
  border-radius: 24px;
  padding: 1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 1.5rem;
}

.primary-club-logo {
  width: 225px;
  height: auto;
  display: block;
}

.hero-content {
  flex: 1;
  min-width: 280px;
  max-width: 590px;
  background: rgba(243, 221, 194, 0.88);
  padding: 1.25rem 1.5rem;
  border-radius: 22px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.hero-content h1 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  color: var(--main-title);
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.hero-content p {
  color: var(--secondary-title);
  font-size: 0.96rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-box {
  background: var(--main-title);
  color: var(--bg-cream);
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--bg-cream);
  font-weight: 600;
}

/* Controls Bar */
.controls-bar {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  background: var(--bg-card);
  border: 2px solid var(--secondary-title);
  color: var(--secondary-title);
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.pill:hover {
  border-color: var(--main-title);
  color: var(--main-title);
  background: var(--bg-surface);
}

.pill.active {
  background: var(--accent);
  border-color: var(--main-title);
  color: var(--main-title);
  font-weight: 800;
}

.search-wrap input {
  background: var(--bg-card);
  border: 2px solid var(--secondary-title);
  color: var(--main-title);
  padding: 0.58rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  width: 265px;
  outline: none;
  transition: border-color 0.2s;
}

.search-wrap input::placeholder {
  color: var(--secondary-title);
  opacity: 0.75;
}

.search-wrap input:focus {
  border-color: var(--accent);
}

/* Events Grid */
.events-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: var(--bg-card);
  border: 2px solid var(--main-title);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 0 var(--main-title);
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--main-title);
}

.card-banner {
  background: var(--main-title);
  height: 108px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Curvy blob accent inside each event card banner */
.card-banner::before {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -35px;
  width: 135px;
  height: 115px;
  background: var(--secondary-title);
  border-radius: 58% 42% 48% 52% / 50% 60% 40% 50%;
  z-index: 0;
}

.card-banner::after {
  content: "";
  position: absolute;
  left: 38%;
  top: -28px;
  width: 85px;
  height: 60px;
  background: rgba(218, 128, 47, 0.28);
  border-radius: 50% 50% 60% 40% / 55% 45% 55% 45%;
  z-index: 0;
}

.card-tag {
  position: relative;
  z-index: 1;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.card-emoji {
  position: relative;
  z-index: 1;
  font-size: 2.65rem;
  line-height: 1;
  align-self: center;
}

.card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--main-title);
}

.card-meta {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--secondary-title);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--main-title);
  opacity: 0.88;
  margin-top: 0.25rem;
}

/* Poll Box inside Card */
.poll-box {
  margin: 0 1.35rem;
  background: var(--bg-cream);
  border: 2px solid var(--border-color);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.poll-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary-title);
  margin-bottom: 0.45rem;
}

.poll-count {
  color: var(--main-title);
  font-weight: 800;
}

.poll-bar-bg {
  height: 8px;
  background: var(--bg-surface);
  border-radius: 99px;
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* Card Vote Buttons */
.card-actions {
  padding: 1rem 1.35rem 1.35rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.btn-vote {
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid var(--main-title);
  background: #ffffff;
  color: var(--main-title);
  transition: all 0.2s;
}

.btn-vote:hover {
  background: var(--bg-cream);
}

.btn-vote.voted-in {
  background: var(--accent);
  border-color: var(--main-title);
  color: #ffffff;
}

.btn-vote.voted-pass {
  background: var(--secondary-title);
  border-color: var(--main-title);
  color: #ffffff;
}

/* Suggest Form Section */
.suggest-section {
  margin-top: 3.5rem;
  background: var(--bg-card);
  border: 3px solid var(--main-title);
  border-radius: 26px;
  padding: 2.25rem;
  box-shadow: 0 8px 0 var(--main-title);
}

.suggest-header {
  margin-bottom: 1.5rem;
}

.suggest-header h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--main-title);
  margin-bottom: 0.3rem;
}

.suggest-header p {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--secondary-title);
}

.suggest-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--secondary-title);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #ffffff;
  border: 2px solid var(--secondary-title);
  color: var(--main-title);
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.btn-submit {
  align-self: flex-start;
  background: var(--accent);
  color: #ffffff;
  border: 2px solid var(--main-title);
  padding: 0.8rem 1.65rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Footer */
.footer {
  margin-top: 4rem;
  border-top: 2px solid var(--border-color);
  padding: 2.25rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--main-title);
}

.footer-sub {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary-title);
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 1.75rem 1.25rem;
  }
  .hero-logo-card {
    margin-left: 0;
    width: 100%;
  }
}
