
html, body { height: 100%; }

body.soccer-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main grows to fill the space between header and footer */
main#main { flex: 1 0 auto; }

/* Footer is pushed to the bottom by the flex layout */
footer#footer {
  margin-top: auto;
  position: static !important;   /* override any global fixed/absolute */
  width: 100%;
}

/* --- Make the footer more compact (height smaller) --- */
#footer .footer-top {            /* trims the tall top area */
  padding-top: 16px !important;  /* was ~50–60px in many templates */
  padding-bottom: 16px !important;
}
#footer .footer-bottom {         /* trims the bottom bar */
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
#footer .footer-newsletter input[type="email"] {
  height: 38px;
  line-height: 38px;
}
#footer .footer-newsletter input[type="submit"] {
  height: 40px;
  line-height: 40px;
}

/* --- Ensure page content starts below the fixed header --- */
/* Adjust this to match your header height */
.header-spacer { height: 92px; } /* tweak if your header is taller/shorter */

#header { background: #f8f9fa; border-bottom: 1px solid rgba(0,0,0,.06); }
#header .container { padding-top: 16px; padding-bottom: 16px; }


/* Navbar floating animation */
@keyframes navbarFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(8px); }   /* how far it swings down */
  100% { transform: translateY(0); }
}

/* Apply the animation to your header or navbar */
#header {
  animation: navbarFloat 3s ease-in-out infinite;
}

/* Add space between navbar and first section (image or heading) */
.soccer-page main img:first-of-type {
  margin-top: 3rem;  /* adjust to 2rem or 4rem if you want */
}

/* Soccer Home Redesign */
.soccer-home {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4.5vw, 4.2rem) 0 clamp(2.4rem, 4.8vw, 4.8rem);
  background:
    radial-gradient(circle at 12% 14%, rgba(34, 197, 94, 0.2), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(16, 185, 129, 0.2), transparent 32%),
    linear-gradient(145deg, #07150f 0%, #0b2419 48%, #0f3222 100%);
}

.soccer-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.14;
  pointer-events: none;
}

.soccer-home-shell {
  position: relative;
  z-index: 1;
}

.soccer-home-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1rem, 2.8vw, 2.1rem);
  align-items: stretch;
}

.soccer-home-copy,
.soccer-home-visual {
  border: 1px solid rgba(110, 231, 183, 0.24);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(6, 28, 19, 0.9), rgba(10, 38, 27, 0.86));
  box-shadow: 0 26px 70px rgba(3, 10, 7, 0.45), inset 0 1px 0 rgba(167, 243, 208, 0.12);
}

.soccer-home-copy {
  padding: clamp(1.2rem, 3.2vw, 2rem);
}

.soccer-home-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(74, 222, 128, 0.42);
  border-radius: 999px;
  background: rgba(20, 83, 45, 0.48);
  color: #b7f7d3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.42rem 0.8rem;
}

.soccer-home-copy h1 {
  color: #f4fff8;
  font-size: clamp(1.65rem, 3.4vw, 3rem);
  line-height: 1.1;
  margin: 0.9rem 0 0.9rem;
}

.soccer-home-copy p {
  color: #b9e3cf;
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
  line-height: 1.65;
  max-width: 62ch;
  margin-bottom: 1.05rem;
}

.soccer-home-greet {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(110, 231, 183, 0.22);
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: #d6ffe9;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.42rem 0.64rem;
  margin-bottom: 1rem;
}

.soccer-home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.soccer-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.96rem;
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.soccer-home-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.soccer-home-btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: rgba(167, 243, 208, 0.44);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.34);
}

.soccer-home-btn-secondary {
  background: linear-gradient(135deg, #123f2f, #17533c);
  border-color: rgba(134, 239, 172, 0.36);
  color: #deffec;
  box-shadow: 0 14px 30px rgba(14, 116, 66, 0.27);
}

.soccer-home-btn-accent {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  border-color: rgba(125, 211, 252, 0.42);
  color: #06243a;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.35);
}

.soccer-home-meta {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.soccer-home-meta div {
  border: 1px solid rgba(167, 243, 208, 0.2);
  border-radius: 12px;
  background: rgba(4, 18, 12, 0.45);
  padding: 0.72rem;
}

.soccer-home-meta strong {
  display: block;
  color: #e8fff3;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.soccer-home-meta span {
  color: #9dd1b6;
  font-size: 0.77rem;
  line-height: 1.45;
}

.soccer-home-visual {
  display: grid;
  align-items: center;
  padding: clamp(0.65rem, 2vw, 1rem);
}

.soccer-home-image-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: #0a2016;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.soccer-field-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.18) contrast(1.06);
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.soccer-home-image-frame:hover .soccer-field-img {
  transform: scale(1.06);
}

@media (max-width: 991.98px) {
  .soccer-home-hero {
    grid-template-columns: 1fr;
  }

  .soccer-home-copy h1 {
    max-width: 20ch;
  }
}

@media (max-width: 575.98px) {
  .soccer-home-actions,
  .soccer-home-meta {
    grid-template-columns: 1fr;
  }
}

