h1, h2, h3, h4, h5, h6 {
  color: color(srgb 0.01 0.29 0.41);
  font-family: Helvetica, Arial, sans-serif;
}

body {
  background-color: color(srgb 0.13 0.55 0.65);
  }
header, footer {
  padding-left: clamp(1rem, 5vw, 3rem);
  padding-right: clamp(1rem, 5vw, 3rem);
}
main {
  padding-left: clamp(1rem, 5vw, 4rem);
  padding-right: clamp(1rem, 5vw, 4rem);
  padding-top: clamp(1rem, 5vw, 2rem);
  padding-bottom: clamp(1rem, 5vw, 2rem);
}

.container-header {
  background-color: color(srgb 0.01 0.29 0.41);
  background-image: none;
   
}

.container-footer {
  background-color: color(srgb 0.01 0.29 0.41);
  background-image: none;
  
}
.container-header .mod-menu {
  color: white;
  }

.navbar-brand {
  transition:  all 0.2s ease-in-out;
  max-width: 30%; /* initial height */
  transform: scale(1);
  padding-top: 0;
  padding-bottom:0;
}

.navbar-brand.shrink {
  transform: scale(1);
  max-width: 0%; /* adjusted height when scrolled */
  height: 0px;
  padding-top: 0;
  padding-bottom:0;
}
.mod-custom124 {
  padding-top: 9px;
  }

.container-header .mod-menu>li.active:after, .container-header .mod-menu>li:hover:after {
  background: white;
  }
#mod-custom125 {
  padding:clamp(1rem, 5vw, 4rem);
  }


.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive columns */
    gap: 15px; /* Space between grid items */
    padding: 20px;
    justify-content: center;
}

.grid-item {
    background: white; /* White background */
    aspect-ratio: 1 / 1; /* Ensures a square shape */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* Make sure it adapts to different screen sizes */
    position: relative;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.grid-item img {
    max-width: 80%; /* Ensures the image fits inside */
    max-height: 80%; /* Keeps image within the box */
    object-fit: contain; /* Prevents distortion */
    transition: transform 0.3s ease-in-out; /* Smooth zoom effect */
}


.grid-item a {
    display: flex; /* Make sure the link also centers content */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none; /* Remove link underline */
    position: relative;
}


.grid-item:hover img {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    color: white;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: clamp(0.4rem, 2vw, 1rem);
}

.grid-item:hover .overlay {
    opacity: 1; /* Show text when hovering */
}
.small-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Smaller sponsors */
    gap: 5px;
    padding: 10px;
    justify-content: center;
}

.grid-item.small {
    transform: scale(0.8); /* Shrinks the smaller sponsors */
}

.grid-item.small img {
    max-width: 90%;  /* Adjusts the image size for smaller sponsors */
    max-height: 90%; /* Keeps images within the smaller square */
    object-fit: contain;
}
.grid-item.small .overlay {
    text-align: center;
    padding: 10px;
    font-size: clamp(0.2rem, 2vw, 0.9rem);
    position: absolute;
    bottom: 0;
    left: 0;
}
@media only screen and (max-width: 400px) {.grid-item.small {transform: scale(0.9)}
    .grid-item.small .overlay {
        height: 70%; /* Make it even larger on smaller screens */
        font-size: 14px; /* Adjust font size */
    }
                                           
/* Sponsor Logos Container */
.foot-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); /* Smaller sponsors */
    gap: 5px;
    padding: 10px;
    justify-content: center;
}

.grid-foot { 
    aspect-ratio: 1 / 1; /* Ensures a square shape */
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20%; /* Make sure it adapts to different screen sizes */
    position: relative;
    overflow: hidden;
}

.grid-foot img {
    max-width: 50%;  /* Adjusts the image size for footer */
    max-height: 50%; /* Keeps images within the smaller square */
    object-fit: contain;
}

.card-title {
  background-color: white !important;
  display: inline-block;
}                                           