body {
    /*font-family: 'Helvetica Neue', Arial, sans-serif;*/
    font-family: "Century Gothic", CenturyGothic, Geneva, AppleGothic, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


header {
    position: relative;
    width: 100%;
}
.header-img-mobile {
    display: none;
}

nav {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, color 0.3s, border-bottom 0.3s;
    background: rgba(255, 255, 255, 0);
    padding: 0 20px;
}

nav.scrolled {
    background: rgba(255, 255, 255, 1);
    border-bottom: 1px solid grey;
}

.logo img {
    height: 80px;
    transition: filter 0.3s;
    filter: invert(100%);
    scale: 0.7;
}

nav.scrolled .logo img {
    filter: invert(0%);
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 24px;
    position: relative;
    transition: color 0.3s;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav ul li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

nav.scrolled ul li a {
    color: #333;
}

.header-img {
    width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 40px 20px;
    text-align: center;
    margin-top: 120px; /* Offset for fixed navbar */
}

h1, h2, h3 {
    margin: 20px 0;
    color: black;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.about-text {
    flex: 1 1 30%;
    min-width: 300px;
    max-width: 600px;
    line-height: 2;
    color: rgb(76, 76, 76);
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
}

.newscontainer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.news-image img{
    width: 100%;
    max-width: 400px;
    
}

.calendar-grid, .team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.event, .team-member {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    text-align: left;
    transition: 0.3s;
}

.event:hover, .team-member:hover, .eventSilver:hover, .eventBronze:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

.event h3, .team-member h3, .eventBronze h3, .eventSilver h3 {
    margin-top: 0;
}

footer {
    background: #37343a;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0px;
}

/* footer a:hover {
    text-decoration: underline;
}*/

.footer-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0%;
}

.team-image, .event-image {
    max-width: 100%;

}

.eventbutton {
    background-color: #fb0202;
    border: none;
    color: white;
    padding: 8px 16px;
    text-align: center;
    font-size: 16px;
    margin: 4px 2px;
    opacity: 1;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    border-radius: 5%;
  }
  
  .eventbutton:hover {
    opacity: 0.4;
    
    
}



.eventSilver {
    border: 3px solid #C0C0C0;
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    text-align: left;
    transition: 0.3s;
    
}




.eventBronze {
    border: 3px solid #CD7F32;
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    text-align: left;
    transition: 0.3s;
}


.event-image {
    transition: 0.3s;
    opacity: 1;
}
.event-image:hover {
    opacity: 0.8;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

.reflogo {
    max-height: 35px;
    margin: 5px 10px;
    transition: 0.3s;
}

.reflogo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

#footerp {
    font-size: 20px;
}
.team-member {
    background-image: url(./sapf/fin.png);
    background-repeat: no-repeat;
    background-position: bottom; 
    position: relative;
    background-size: 170%;
    font-weight: bold;
    min-height: 330px;
}

.team-member p, .team-member h3 {
    background-color: #e8edf0;
    padding: 10px;
    border-radius: 8px;
    min-height: 62px;
}

.collapse {
    display: none;
}

.colcontent {
    display: none;
}
.footer-img-mobile{
    display: none;
}
.desk {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.eventcalendarpic {
    width: 400px;
    margin: 20px;
    
}

.colcontent {
    display: none;
}
@media (max-width: 810px) {
    .navul {
        display: none;
    }
    nav {
        padding: 0;
        height: 80px;
    }
    .header-img {
        display: none;
    }
    .header-img-mobile {
        width: 100%;
        height: auto;
        display: block;
    }
    .footer-img-mobile {
        width: 100%;
        height: auto;
        display: block;
        margin: 0%;
    }
    .footer-img {
        display: none;
    }

    .about-image {
        width: 50%;
        max-width: 400px;
        border-radius: 8px;
    }

    section {
        margin: 0;
        padding: 0 20px;
    }
    .eventBronze:hover, .eventSilver:hover, .team-member:hover, .event:hover {
        transform: scale(1);
    }
    footer {
        padding: 0;
    }

    #footerp {
        margin: 0;
    }

    .reflogo {
        max-height: 35px;
    }

    #team {
        margin: 10px 0;
    }
    .collapse {
        background-color: #7c20ee;
        border: none;
        color: white;
        padding: 8px 16px;
        text-align: center;
        font-size: 16px;
        margin: 4px 2px;
        opacity: 1;
        transition: 0.3s;
        display: inline-block;
        text-decoration: none;
        cursor: pointer;
        border-radius: 5%;
        max-height: 50px;
      }
      
      .collapse:hover {
        opacity: 0.4;
        
        
    }
    
    .colcontent {
        
        justify-content: center;
        gap: 20px;
        display: none;
        overflow: hidden;
        transition: max-height 0.2s ease-out;
      }
      .desk {
        display: none;
      }
      .calendar-grid, .team-grid {
        display: block;
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    .eventcalendarpic {
        width: 50%;
        margin: 20px;
        
    }

}