/* 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;
}

/* General <h2> styling */
body h2 {
  padding-top: 20px;
  font-size: 40px;
}



/* ------- ROW 1 (TEXT + IMAGES) ------- */
.row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 50px;
  width: 90%;              /* centers the row */
  margin: 0 auto;
}

/* Left column text */
.text-col {
  width: 40%;
}

.text-col h2 {
  font-size: 45px;
  line-height: 1.2;
  padding-left: 25px;
}

/* Right column with team images */
.image-col {
  display: flex;
  gap: 20px;
}

/* Team images */
.team-img {
  width: 350px;
  height: 230px;
  object-fit: cover;
  padding-right: 20px;
}

/* ------- MULTI-COLUMN INFO SECTIONS ------- */
.outer-column h2 {
  text-align: center;
  padding-top: 20px;
}

.inner-columns-container {
  display: flex;               /* side-by-side boxes */
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 20px;
  gap: 10px;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}

.inner-column {
  flex: 1;
  padding: 15px;
  border: 1px solid #eee;
  background-color: #f9f9f9;
  text-align: center;
  margin: 0 5px;
}

/* ------- CLUB LOGOS ------- */
.logo-img {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin: 10px;
  transition: transform 0.2s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* Club grid layout for club selection page */
.club-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  width: 90%;
  margin: 40px auto;
  padding: 20px;
}

/* Remove radio button visibility */
.club-option input {
  display: none;
}

/* Styling applied to each club image */
.club-grid img,
.club-option img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: white;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid lightgray;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.club-grid img:hover,
.club-option img:hover {
  transform: scale(1.05);
}

/* Highlight a selected club (radio checked) */
.club-option input:checked + img {
  border: 3px solid #3D3D3D;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transform: scale(1.08);
}

/* ------- DONATION BOX ------- */
.donation-box {
  padding: 20px;
  width: 100%;
  text-align: center;
}

.donation-box h2 {
  color: black;
  margin-bottom: 15px;
}

.donation-box label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

/* Donation buttons */
.donation-box button {
  background-color: #279CF5;
  color: white;
  padding: 15px 28px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  margin: 6px;
  cursor: pointer;
}

.donation-box button:hover {
  background-color: #0975C8;
  transform: scale(1.03);
}

.donation-box button.highlighted {
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transform: scale(1.06);
}

/* ------- STORY BOX ------- */
.story-box {
  font-size: 25px;
  border: 1px solid black;
  padding: 20px;
  width: 50%;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Row combining donation box + story box */
.row2 {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 50px;
  padding: 20px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* ------- AFFILIATED CLUBS SECTION ------- */
.clubs {
  text-align: center;
  padding-bottom: 10px;
}

.clubs img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  margin: 20px;
  display: inline-block;
}

/* ------- PAYMENT PAGE BOX ------- */
.payment-box {
  background-color: #f2f2f2;
  padding: 25px;
  border-radius: 8px;
  max-width: 500px;
  margin: 30px auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Shared styling for form inputs */
input[type=text],
input[type=number],
select,
textarea,
input[type=email] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 16px;
  background: white;
}

/* Submit/donate button */
input[type=submit],
button.donate-final {
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  width: 100%;
  font-size: 16px;
  cursor: pointer;
}

input[type=submit]:hover,
button.donate-final:hover {
  background-color: #02804f;
}

.payment-box label {
  font-weight: bold;
}

/* Remove spinner from number inputs */
input[type=number] {
  -moz-appearance: textfield;
}

/* Row layouts for donation amount/type selectors */
.donation-type,
.donation-amounts,
.donation-select-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

/* Custom radio-button look for donation amount options */
.donation-select {
  position: relative;
}

/* Hide real radio button */
.donation-select input {
  display: none;
}

.donation-select span {
  display: inline-block;
  padding: 12px 20px;
  background: #ffffff;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.15s ease;
}

.donation-select span:hover {
  transform: scale(1.03);
}

/* Selected donation option */
.donation-select input:checked + span {
  font-weight: 700;
  background-color: #dff7e8;
  border-color: #04AA6D;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* ------- FOOTER ------- */
footer {
  background-color: #222;
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-left a {
  color: white;
  text-decoration: none;
}

.footer-left a:hover {
  text-decoration: underline;
}

.footer-right img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-left: 15px;
}

/* ------- RESPONSIVE BREAKPOINTS ------- */
@media (max-width: 980px) {
  nav { margin-left: 0; }

  /* Stack sections vertically */
  .inner-columns-container,
  .row2 {
    flex-direction: column;
    gap: 20px;
  }

  .row1 {
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
  }

  .team-img {
    width: 100%;
    height: auto;
  }

  /* Smaller grid on tablets */
  .club-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 95%;
  }
}

@media (max-width: 520px) {
  /* One-column grid for phone */
  .club-grid {
    grid-template-columns: 1fr;
  }

  .text-col h2 {
    font-size: 32px;
    padding-left: 12px;
  }

  .donation-select span {
    padding: 10px 14px;
    font-size: 14px;
  }

  .logo-img {
    width: 140px;
    height: auto;
  }
}
