@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

html {
    overflow-y: scroll;
}

* {
    box-sizing: border-box;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans', sans-serif;
    text-align: center;
}

h1, h2, h3 {
    padding-top: 10px;
    padding-bottom: 10px;
}

img {padding-top:10px;}

.navbar {
    background-color: #333;
    padding: 15px;
    text-align: center;
    position: relative;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
}

.menu-icon {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.nav-links {
    display: flex;
    justify-content: center;
}

.nav-item {
    font-weight: normal;
    color: #fff;
    text-decoration: none;
}

.nav-item:hover {
    color: #ababab;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .navbar {
        padding: 20px;
    }
    .menu-icon {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 10px;
        border-top: 1px solid white;
    }
    .nav-links a:hover {
        background: #ababab;
        color: #000;
    }
    .nav-links.active {
        display: flex;
        padding-bottom: 10px;
    }
}

.banner {
    width: 100%;
    height: 170px;
    background: url('cropped-cropped-uku-to-right-sw-title-2.jpg') no-repeat center center;
    background-size: cover;
    cursor: default;
}

#searchBar {
    width: 80%;
    padding: 10px;
    margin: 20px 0;
}

#clearSearch {
    padding: 8px 15px;
    margin-left: 5px;
    font-size: 16px;
    cursor: pointer;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
	display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes content to the top and image to the bottom */
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    margin: 10px;
    width: 200px;
    height: 250px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.card:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
}

.event-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.event {
	border: 1px solid #ccc;
	border-radius: 10px;
	padding: 15px;
	width:400px;
	margin: 10px;
	text-align: center;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s;
}

.event:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

#noResults {
    display: none;
    font-size: 18px;
    color: #ababab;
    margin-top: 20px;
}

#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #555;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

#backToTop:hover {
    background: #333;
}

/* Scroll Bar Styles */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: white;
}

::-webkit-scrollbar-thumb {
    background: #ababab;
}

::-webkit-scrollbar-thumb:hover {
    background: #ababab;
}

/* Link Styles */
a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
    color: #333;
}

a.link-nochange,
a.link-nochange:hover {
    font-weight: normal;
    text-decoration: none;
    color: #000;
}

.subnav {
  background-color: #f0f0f0;
  padding: 10px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.subnav a {
  margin: 0 15px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.subnav a:hover {
  color: #0077cc;
}

#learn, #history, #song {padding-top: 40px;}

/* === Hero two-column layout === */
.hero {
  display: flex;
  padding: 2rem 5%;
  align-items: center;
  gap: 2rem;
}
.hero-text {
  flex: 1;
  text-align: left;
}
.hero-slideshow {
  flex: 1;
  position: relative;
  height: 450px; /* adjust as needed */
  overflow: hidden;
  border-radius: 8px;
}
.hero-slideshow .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.hero-slideshow .slide.active {
  display: block;
}

/* === Mobile responsiveness === */
@media (max-width: 600px) {
  .hero {
    flex-direction: column;
  }
  .hero-text {
    padding: 0 3% 0 3%;
  }
  .hero-slideshow {
    display: none;
  }
.menu-icon { display: block; }
  .nav-links { display: none; }
  .nav-links.active { display: flex; flex-direction: column; }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

 .hero-text {
    padding: 0 3% 0 3%;
  }
  .hero-slideshow {
    width: 100%;
    height: 200px;
  }
}