/*
Theme Name:		Circuit 7v7
Description:	Official Theme Circuit 7v7
Version:		1.0
Author:			AWD
Author URI:		http://www.athletewebdesign.com/
*/

/* 1. Use a more intuitive box-sizing model and eliminate default layout shift */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  /* Prevent layout shift when scrollbars appear */
  scrollbar-gutter: stable;
  /* Prevent font size inflation on mobile devices */
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* 2. Remove default margins so spacing is deliberate */
* {
  margin: 0;
  padding: 0; /* Optional: completely clears the slate for lists/inputs */
}

/* 3. Set core body defaults */
body {
  /* Ensure full viewport height using modern dynamic viewport units */
  min-block-size: 100svh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 4. Improve typography defaults & line-wrapping */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  text-wrap: balance; /* Prevents single words from getting trapped on a new line */
}

p {
  text-wrap: pretty; /* Prevents typographic "orphans" at the end of paragraphs */
}

/* 5. Clean up lists (if they are being used purely for structural layout) */
ul[role='list'], ol[role='list'] {
  list-style: none;
}

/* 6. Make media elements responsive and behave predictably */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for interactive form elements */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows on long string content */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Allow smooth transitions to intrinsic sizes (auto, max-content, etc.) */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}


body{
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 24px;
    color: #fff;
    background: url(images/circuit-7-backgorund.webp) no-repeat;
    background-size: cover;
}

p{
  margin-bottom:  20px;
}

a{
    color: #89F336;
    text-decoration: none;
}

p a{
    font-weight: 600;
}

p a:hover{
    text-decoration: underline;
}

h1{
    font-size: 36px;
    font-weight: 800;
}

#container{
    padding: 50px 0;
}

.wrap{
    margin: 0 auto;
    max-width: 1400px;
}

.social-icons-list {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Shoves content to the right */
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-icons-list.center {
   justify-content: center; /* Shoves content to the right */
   margin-top: 0px;
   margin-bottom: 15px;
}

.social-icons-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    border: 1px solid #76ff03; /* Neon green border */
    border-radius: 50%;        /* Makes it a perfect circle */
    color: #76ff03;           /* Icon color */
    font-size: 24px;          /* Icon size */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(118, 255, 3, 0.3); /* Subtle outer glow effect */
}

/* Hover effect */
.social-icons-list li a:hover {
    background-color: #76ff03;
    color: #1a1a1a; /* Dark text/icon on hover fill */
    box-shadow: 0 0 12px rgba(118, 255, 3, 0.8);
}

.logo{
    margin-bottom: 30px;
}

.wp-block-buttons{
    padding-top: 25px;
    padding-bottom: 15px;
}

.wp-block-buttons .wp-block-button .wp-block-button__link {
  color: #000;
  background-color: #fff;
  border-radius: 9999px;
  box-shadow: none;
  text-decoration: none;
  padding: 6px 22px 6px 6px;
  font-size: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

.wp-block-buttons .wp-block-button .wp-block-button__link i {
   border-radius: 100%;
    width: 50px;
    height: 50px;
    align-content: center;
    font-size: 20px;
    background: #89F336;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

.wp-block-buttons .wp-block-button .wp-block-button__link:hover {
  color: #000;
  background-color: #89F336;
}

.wp-block-buttons .wp-block-button .wp-block-button__link:hover  i {
  color: #89F336;
    background: #fff;
}

.small-seperator{
  width: 378px;
  height: 4px;
  margin: 0 auto 18px;
  border: none !important;
  background: #fff;
}

.big-seperator{
  width: 1200px;
  height: 4px;
  margin: 0 auto 18px;
  border: none !important;
  background: #fff;
}

.full-seperator{
  width: 1400px;
  height: 2px;
  margin: 0 auto 18px;
  border: none !important;
  background: #fff;
}

.location-container{
  margin-bottom: 25px;
}

.location-block{
  color: #fff;
  font-size: 24px;
  width: 447px;
  height: 329px;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 0;
  cursor: pointer;
  border: 4px solid #fff;
    /* Smoothly transition ONLY the color property over 0.3 seconds */
  transition: color 0.3s ease; 
}

.location-block:hover{
  color: #000;
  border: 4px solid #89F336;
}

.location-block-1{
  background: url(images/location1.webp) no-repeat;
}

.location-block-2{
  background: url(images/location2.webp) no-repeat;
}

.location-block-3{
  background: url(images/location3.webp) no-repeat;
}

.overlay {
  display: flex;
  height: 100%;
  padding: 25px;
  flex-direction: column;
  justify-content: flex-end;
   /* syntax: property | duration | timing-function */
  transition: background-color 0.3s ease, transform 0.2s ease-in-out;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}


.location-block:hover .overlay {
   background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(137, 243, 54, 1) 100%);
}


.location-block h3{
  text-transform: uppercase;
  font-size: 36px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0;
    /* Smoothly transition ONLY the color property over 0.3 seconds */
  transition: color 0.3s ease; 
}

.location-block:hover h3{
  color: #000;
}

.location-block h3 span{
  display: none;
    opacity: 0;
  visibility: hidden;
}

.location-block:hover h3 span {
  display: block;
  opacity: 1;
  visibility: visible;
}

.location-block p{
  font-size: 24px;
  margin-bottom: 0;
}


.event-listing{
  font-size: 16px;
  gap: 0;
  padding: 5px 0;
  margin-bottom: 0;
}

.event-image img{
  border-radius: 4px;
  border: 2px solid #fff;
}

.event-listing h3{
  font-size: 24px;
}

.event-listing h4{
  font-size: 18px;
}

.event-listing p{
  margin-bottom: 12px;
}

.event-buttons{
  justify-content: flex-end;
  display: flex;
  align-items: self-end;
  padding-bottom: 15px;
}

.event-buttons .wp-block-buttons .wp-block-button{
  width: 100%;
}


.event-buttons .wp-block-buttons .wp-block-button .wp-block-button__link {
  color: #89F336;
  background-color: transparent;
  border: 1px solid #89F336;
  border-radius: 9999px;
  box-shadow: none;
  text-decoration: none;
  width: 100%;
  padding: 10px 8px;
  font-size: 18px;
}

.event-buttons .wp-block-buttons .wp-block-button:first-child .wp-block-button__link {
  color: #000;
  background-color: #89F336;
}

.event-buttons .wp-block-buttons .wp-block-button .wp-block-button__link:hover {
  color: #000;
  background-color: #89F336;
  border: 1px solid #fff;
}

.event-buttons .wp-block-buttons .wp-block-button:first-child .wp-block-button__link:hover {
  font-weight: 600;
  border: 1px solid #fff;
}

.event-buttons .wp-block-buttons .wp-block-button .wp-block-button__link i {
   border-radius: 0;
    width: auto;
    height: auto;
    align-content: center;
    font-size: 12px;
    background: none;
}

.event-buttons .wp-block-buttons .wp-block-button .wp-block-button__link:hover i {
  color: #000
}

.copyright a{
  color: #fff;
}



@media screen and (max-width: 1500px) {

.location-block{
  width: 420px;
  aspect-ratio: 447 / 329;
}

}

@media screen and (max-width: 1400px) {

    #container {
        padding: 20px; /* Adds a safety margin on the sides */
    }

.location-block{
  width: 100%;
  aspect-ratio: 447 / 329;
}

.event-listing{
  gap: 10px;
}

}


/*
==========================================
   TABLET LANDSCAPE & PORTRAIT (Max-width: 1024px)
   ========================================== */
@media screen and (max-width: 1024px) {
    #container {
        padding: 40px 20px; /* Adds a safety margin on the sides */
    }

    .wrap {
        max-width: 100%;
    }

    .social-icons-list {
  margin: 0 0 20px 0; /* Adds a safety margin on the sides */
}

    h1 {
        font-size: 30px; /* Scales down slightly */
    }

    /* Prevent fixed-width separators from overflowing */
    .big-seperator, 
    .full-seperator {
        width: 100%;
        max-width: 100%;
    }

    .small-seperator {
        max-width: 100%;
    }

    /* Make location grid flexible */
    .location-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .location-block {
        max-width: 447px;
        height: 300px; /* Slightly reduced height */
    }


    .location-block h3 {
        font-size: 28px;
    }

    .location-block p,
    .location-block {
        font-size: 20px;
    }

    .event-buttons{
  justify-content: center;
  align-items: center;
  padding-bottom: 0;
}
}

/* ==========================================
   MOBILE DEVICES (Max-width: 768px)
   ========================================== */
@media screen and (max-width: 768px) {
    #container {
        padding: 30px 15px;
    }

    h1 {
        font-size: 26px;
    }

    /* Stack social icons if they don't fit */
    .social-icons-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    /* Force location blocks to full width stacked layout */
    .location-block {
        width: 100%;
        max-width: 443px;
        height: 329px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Smooth out WordPress buttons layout for mobile scaling */
    .wp-block-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .wp-block-buttons .wp-block-button,
    .wp-block-buttons .wp-block-button .wp-block-button__link {
        text-align: center;
        box-sizing: border-box;
    }

    /* Adjust specific WP button icon formatting */
    .wp-block-buttons .wp-block-button .wp-block-button__link {
        padding: 8px 16px;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .wp-block-buttons .wp-block-button .wp-block-button__link i {
        width: 35px;
        height: 35px;
    }

    /* Handle event listing stacking layout */
    .event-listing {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    align-content: center;
    }

    .event-image{
              text-align: center;
    align-content: center;
    }

    .event-image img {
        height: auto;
        margin: 0 auto;
    }

    .event-listing h3 {
        font-size: 20px;
    }

    .event-listing h4 {
        font-size: 16px;
    }
}

