* {
  box-sizing: border-box;
}

body.home
{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 13px;
	background-image: url(../images/background_dark.png);
	background-repeat: repeat-x-y;
	background-attachment:fixed;
	margin: 0;
}

  body.home .top-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 80px;
  padding: 12px 16px;
  background: radial-gradient(circle, rgba(255,215,0,1) 0%, rgba(134,113,0,1) 100%);
  font-family: Arial;
}


body.home .logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

body.home .banner-text {
  text-align: center;
}

body.home .banner-text h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.2;
  color: #202020;
  text-shadow: 2px 2px 5px orange;
}

body.home .banner-text p {
  margin: 4px 0 0;
  font-size: clamp(12px, 2.5vw, 16px);
  color: #202020;
  font-weight: bold;
  text-shadow: 1px 1px 2px orange;
}

body.home .logo a {
  display: inline-flex;
  align-items: center;
}

body.home .logo a:focus-visible {
  outline: 2px solid #333;
  outline-offset: 4px;
}

@media (max-width: 479px) {
  body.home .top-banner {
    grid-template-columns: 1fr;
    row-gap: 8px;
    text-align: center;
    padding: 14px 12px;
  }

  body.home .logo {
    justify-self: center;
  }

  body.home .logo img {
    height: 64px;
  }

 body.home  .banner-text {
    padding: 4px 0 0;
  }
  
   body.home .banner-text h1 {
    line-height: 1.3;
  }

  body.home .banner-text p {
    font-size: 13px;
  }
}

body.home div.ad
{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: gold;
	background-color: #222;
	position: absolute;
	width:auto;
	padding:6px;
	border:1px solid; 
	margin:0;
	height: auto;
	right: 15px;
	top: 44px;
	z-index:1;
}
body.home div.ad a {
        color: #202020;
	text-decoration: none;
}

body.home div.officialTTFC
{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: gold;
	background-color: #222;
	position: absolute;
	width:auto;
	padding:6px;
	border:1px solid; 
	margin:0;
	height: auto;
	right: 15px;
	top: 10px;
	z-index:1;
}
body.home div.officialTTFC a {
        color: #202020;
	text-decoration: none;
}

body.home div.ex {
    position: relative;
    left:0;
    width:70%;
    padding:5px 5px 5px 5px;
    margin:0 auto;
}

body.home div.ex a:link {
	text-decoration: none;
	color: #f0d880;
}
body.home div.ex a:visited {
	text-decoration: none;
	color: #f0d880;
}
body.home div.ex a:hover {
	text-decoration: none;
	color: #f0d880;
}
body.home div.ex a:active {
	text-decoration: none;
	color: #f0d880;
}adding: 32px;
}

div.ex {
  width: 70vw;
  margin: auto;
  }

div.ex h2 {
  color: #009000;
  margin-bottom: 8px;
  }

div.ex hr {
  margin: 32px 0;
  color: #333;
  }

.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.flex-container:not(:last-child) {
  margin-bottom: 20px;
}

.flex-item {
  flex: 1 1 calc(25% - 20px);
  border: 2px transparent;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  -webkit-transition-duration: 0.4s;
  -moz-transition-duration: 0.4s;
  -o-transition-duration: 0.4s;
}

.flex-item-static {
  flex: 1 1 calc(25% - 20px);
  border: 2px transparent;
  border-radius: 8px;
  overflow: hidden;
}

.flex-item:hover {
  -webkit-transform:scale(1.025);
  -moz-transform:scale(1.025)
  -o-transform: scale(1.025);
  box-shadow:0 gray;
  -webkit-box-shadow:0 gray;
  -moz-box-shadow:0 gray;
}

.flex-item img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid #ddd;
  border-style: inset;
  border-radius: 10%;
  opacity: 0.85;
}

.flex-item img:hover {
  border: 2px solid #fdd700;
  border-style: inset;
  border-radius: 10%;
  opacity: 1;
}

.flex-item h3, p {
    color: #ccc;
}

.flex-item-static h3, p {
    color: #ccc;
}

.placeholder {
    aspect-ratio: 1;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-crests {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Target both <a> links directly inside the container */
.match-crests > a {
    flex: 1;
    max-width: 45%;
    min-width: 0;        /* Allows the link wrapper to shrink fluidly */
    display: flex;       /* Centers the image inside the link box */
    justify-content: center;
    align-items: center;
}

/* Make the images behave inside the link wrappers */
.match-crests img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    border: none;
}

.match-crests img:hover {
    border: none;
}

.sl-logo {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Make the images behave inside the link wrappers */
.sl-logo img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    border: none;
}

.sl-logo img:a {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    border: none;
}

.sl-logo img:hover {
    border: none;
}

.flex-item figure {
  margin: 0;
}

figcaption {
    margin-top: 10px;
    text-align: center;
}

figcaption h3,
figcaption h4 {
  margin: 0;
}

figcaption h3 {
  padding-bottom: 4px;
  color: #009000;
}

figcaption h4 {
  padding-bottom: 8px;
  color: #FFD700;
}

.caption-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

@media (max-width: 1023px) {
  .flex-item {
    flex-basis: calc(50% - 20px);
  }
}

@media (max-width: 639px) {
  .flex-item {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 16px;
  }
}

@media (max-width: 639px) {
  .flex-item-static {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 16px;
  }
}

.footer {
  color: #FFD700;
  font-size: 14px;
  text-align: center;
  padding: 32px;
}