/* Controls page scrolling behavior + page background color */
html {
  scroll-behavior: smooth;
  background-color: lightgray;
}

/* Global reset for spacing + fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: monospace;
}

/* ------- HEADER STYLING ------- */
header {
  display: flex;                 /* places title and nav on one line */
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  background-color: #3D3D3D;
  color: white;
}

header h1 {
  margin: 0;
}

/* Moves nav slightly right (desktop only) */
nav {
  margin-left: 500px;
}

/* Navigation links */
nav a {
  text-decoration: none;
  color: white;
  margin-left: 20px;
  font-size: 20px;
}

/* Header bottom divider line */
header hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 12px;
}

/* Line under header */
.header-separator {
  border: 0;
  border-top: 2px solid #ddd;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* Main content wrapper (if used) */
main {
  flex: 1;                   /* Push footer down */
  padding: 60px 40px 40px 40px;
  max-width: 80%;
  margin: 0 auto;
  width: 80%;
}

/* ===== CLUB ITEM CARD ===== */
.item {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 10px;
  margin-bottom: 10px;
  margin-top: 10px;

  display: flex;             /* Align image + text side-by-side */
  align-items: center;
  gap: 20px;

  min-height: 280px;
  text-align: center;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover pop effect */
.item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Club logo images */
.item img {
  width: 250px;
  height: 250px;
  object-fit: contain;
}

/* Club title styling */
.item h2 {
  color: #1a77a4;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* Club description text */
.item p {
  color: #555;
  line-height: 1.8;
  font-size: 1rem;
  max-width: 800px;
}

/* ===== FOOTER ===== */
footer {
  background-color: #222;
  color: white;
  padding: 25px 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: auto;      /* Sticks footer to bottom if short content */
}

/* Left footer links */
.footer-left {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

/* Footer link styling */
.footer-left a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-left a:hover {
  color: #1a77a4;
  text-decoration: underline;
}

/* Right side social icons */
.footer-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Hover fade effect */
.footer-right a {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.footer-right a:hover {
  opacity: 0.7;
}

/* Social media icon size */
.footer-right img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ===== RESPONSIVE MOBILE VIEW ===== */
@media (max-width: 768px) {

  /* Stack header vertically on small screens */
  header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  nav {
    margin-left: 0;
  }

  /* Stack image + text for each club item */
  .item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .item img {
    width: 200px;
    height: 200px;
  }

  /* Footer also stacks */
  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }


