/* === General Reset === */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: #0d0d0d;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === Header === */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000000;
  padding: 0.8rem 1rem;
  border-bottom: 3px solid #00ff00;
}

.title {
  font-size: clamp(2.6rem, 4vw, 3.3rem);
  margin: 0;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
}

.subtitle {
  color: #cccccc;
  margin: 0.2rem 0 0.8rem 0;
  font-size: 1.1rem;
}

.top-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
  transition: background 0.3s;
  font-size: 1rem;
}

.nav-link:hover {
  background-color: #00ff00;
  color: #000;
}

/* === HERO SECTION — PERFECT BALANCE === */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 2rem;
  background: #111;
  min-height: 70vh;
  margin-bottom: 2rem;
}

.hero-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: #181818;
  border: 2px solid #00ff00;
  border-radius: 14px;
  box-shadow: 0 0 28px rgba(0, 255, 0, 0.3);
  padding: 2.5rem 2rem;
  max-width: 1200px;
  width: 95%;
  gap: 1.8rem;
}

/* Flyer image (left side) */
.hero-card img.flyer {
  width: 48%;
  max-width: 480px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Text section (right side) */
.hero-info {
  flex: 1;
  min-width: 280px;
  color: #f5f5f5;
  margin-left: 1rem;
}

.hero-info h2 {
  color: #00ff00;
  margin: 0 0 0.8rem 0;
  font-size: clamp(2.1rem, 2.9vw, 2.5rem);
  text-shadow: 0 0 14px rgba(0, 255, 0, 0.6);
}

.key-info {
  font-size: 1.15rem;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/*

/* === Club Sectors (reduce spacing above) === */
.section {
  padding: 1.5rem 1rem;          /* reduced from 2.5rem */
  text-align: center;
  background: #0d0d0d;
}

.section-title {
  margin-top: 0.5rem;            /* less top spacing */
  margin-bottom: 1rem;           /* slightly reduced */
}



/* === Tabs === */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.tab {
  background: #222;
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.tab.active,
.tab:hover {
  background: #00ff00;
  color: #000;
}

.panels {
  max-width: 850px;
  margin: 0 auto;
  text-align: left;
}

.panel {
  display: none;
  background: #1b1b1b;
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.panel.active {
  display: block;
}

.panel h3 {
  font-size: 1.3rem;
  margin-top: 0;
}

.badges {
  margin-top: 0.6rem;
}

.badge {
  display: inline-block;
  background: #00ff00;
  color: #000;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  margin: 0.25rem;
  font-weight: bold;
}

/* === Calendar === */
.calendar-figure img {
  width: 100%;
  max-width: 750px;
  border-radius: 8px;
  border: 2px solid #00ff00;
}

/* === Contact === */
#contact {
  padding-top: 1.5rem;
}

/* === Footer === */
.site-footer {
  background: #000;
  color: #999;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  border-top: 3px solid #00ff00;
}

/* === Recommendation Section === */
#recommend {
  background: #111;
  border-top: 3px solid #006400;
  padding: 2rem 1rem 3rem 1rem;
  color: #fff;
}

#recommend .section-title {
  color: #ffcc00;
}

#recommend p {
  color: #ddd;
  margin-bottom: 1rem;
}

#recommend .form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 500px;
  margin: 1rem auto;
}

#recommend input,
#recommend textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fdfdfd;
  color: #000;
}

#recommend .btn {
  background-color: #006400;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

#recommend .btn:hover {
  background-color: #228B22;
}

/* --- Bar Chart Output --- */
.result {
  margin-top: 1.5rem;
  text-align: left;
  max-width: 600px;
  margin-inline: auto;
}

/* === Ranked Bars === */
.bar-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
}

.bar-label {
  font-weight: 600;
  color: #d9ffcc;
}

.bar-container {
  position: relative;
  background-color: #eeeeee;
  border-radius: 10px;
  height: 24px;
  overflow: hidden;
}

.bar {
  height: 100%;
  transition: width 0.9s ease;
  text-indent: -9999px;
}

.bar-pct {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: #123212;
  font-size: 0.9rem;
}

.bar.green { background-color: #006400; }
.bar.gold { background-color: #C9A500; }
.bar.lightgreen { background-color: #32CD32; }
.bar.teal { background-color: #008080; }

/* === Responsive === */
@media (max-width: 768px) {
  .hero-card {
    flex-direction: column;
    text-align: center;
  }
  .bar-row {
    grid-template-columns: 1fr;
  }
  .bar-pct {
    right: 5px;
  }
}
