html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Josefin Sans;
  background: #001735;
}

.header-main {
	background: #06152B00;
	width: 100%;
	text-align: center;
	padding: 10px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: fixed;
	z-index: 2;
	transition: background-color 0.3s ease; /* Animates the background change */
}

.header-main.scrolled {
  background-color: #001735; /* Dark blue */
}

/* Popup Styles */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-box {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	width: 90%;
	max-width: 400px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	margin-left: auto;
	margin-right: auto;
	margin-top: 5%;
}

.popup-box h3 {
  margin: 0 0 15px;
  font-size: 1.5em;
}

.popup-box label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

.popup-box input {
	width: 100%;
	padding: 10px;
	margin-bottom: 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.popup-box button {
  background: #d33;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
}

.popup-box button:hover {
  background: #a22;
}


.footer-main {
	display: none;
	position: fixed;
	bottom: 0px;
	width: 100%;
	text-align: center;
	padding: 10px;
	background: #001735;
}

.icons-social {
	position: fixed;
	top: 0;
	right: 0;
	padding: 10px;
	display: flex;
	gap: 5px;
}

#icon-fb {
	background: url("img/social-fb.png");
	background-size: 30px;
	background-repeat: no-repeat;
	width: 30px;
	height: 30px;
}

#icon-ig {
	background: url("img/social-ig.png");
	background-size: 30px;
	background-repeat: no-repeat;
	width: 30px;
	height: 30px;
}

#icon-x {
	background: url("img/social-x.png");
	background-size: 30px;
	background-repeat: no-repeat;
	width: 30px;
	height: 30px;
}

.logo-container {
	display: flex;
	align-items: center;
	color: white;
	text-align: left;
	gap: 10px;
	text-transform: uppercase;
	font-size: 14px;
}
.logo-wide {
	height: 80px;
}

.nav-main {
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 14px;
	display: flex;
	justify-content: center;
	gap: 20px;
}

.link-active {
	border-bottom: 2px solid #cc343c;
}

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

.nav-mobile-button {
  display: none;
}

.nav-mobile-close {
  display: none;
	font-size: 50px;
	font-family: sans-serif;
	text-align: right;
	margin-right: 10px;
  color: #FFF;
}

.button-red {
	background: #cc343c;
	color: white;
	padding: 15px;
	min-width: 100px;
	display: inline-block;
	font-size: 18px;
	text-decoration: none;
}

.slide {
height: 100vh;
width: 100%;
position: relative;
}
.slider-overlay {
background: #00173570;
position: absolute;
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.slider-content {
font-family: sans-serif;
font-weight: bold;
padding: 5%;
display: flex;
flex-direction: column;
gap: 20px;
align-items: flex-start;
}
.slider-title {
font-size: 70px;
text-transform: uppercase;
}
.slider-subtitle {
font-size: 18px;
}
#slide-1 {
background: url("img/slide-1.jpg");
background-size: cover;
}

@media (max-width: 768px) {
	.icons-social {
		display: none;
	}

	.logo-text {
		display: none;
	}

	.donate-container { 
		display: none;
	}

	.footer-main {
		display: block;
		box-sizing: border-box;
	}


	.footer-main .button-red {
		width: 98%;
		box-sizing: border-box;
		margin-left: 1%;
		margin-right: 1%;
	}

	.slider-title {
		font-size: 40px;
		text-transform: uppercase;
	}

	/*
	.logo-wide {
		display: none;
	}
	
	
	.logo-mobile {
		display: block;
	}*/



	.header-main {
		background-color: #001735; /* Dark blue */
	}

	.margin {
		height: 90px;
	}

	.nav-main {
		display: none;
	}

	.nav-mobile-button {
		display: block;
		width: 35px;
		margin-right: 10px;
	}

	.nav-mobile-button div {
		height: 3px;
		width: 100%;
		background: white;
		margin-bottom: 10px;
	}

	.nav-mobile-expanded {
		display: flex;
		position: absolute;
		flex-direction: column;
		width: 100%;
		background: #002e68;
		padding: 0px;
		left: 0;
		top: -20px;
	}

	.nav-item {
		border-bottom: 1px solid #ffffff54;
		padding-top: 0px;
		padding-bottom: 20px;
		text-decoration: none;
		color: white;
	}

	.nav-mobile-close {
		display: block;
	}
}

.page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-size: 20px;
	color: #fff;
	font-family: Open Sans;
}

.redline {
	background: linear-gradient(to right, #6c1b1f, #cc343c, #6c1b1f);
	width: 100%;
	height: 8px;
}
.page-alternate {
	background: linear-gradient(to right, #e3f2ff, white, #e3f2ff);
	color: #002f57;
}

.section-header {
	width: 100%;
	position: relative;
	margin-bottom: 50px;
}

.section-title {
	font-size: 40px;
	margin-top: 30px;
	text-transform: uppercase;
	color: #fff;
	text-align: center;
	letter-spacing: 10px;
}

.section-content { 
	padding: 5%;
}

.page-alternate .section-title {
	color: #002f57;
}

.button {
	margin-top: 50px;
	border: 2px solid white;
	font-size: 30px;
	color: #fff;
	padding: 30px;
	border-radius: 100px;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 15px;
	text-decoration: none;
}

.page-alternate .button { 
	border: 2px solid #002f57;
	color: #002f57;
}

.footer {
  padding: 20px;
}

.bio-name {
	font-weight: bold;
	font-size: 25px;
}

.bio-title {
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 10px;
}

.full-bio {
  display: none;
}

.read-more {
	font-weight: bold;
	font-style: italic;
	text-decoration: underline;
}

.bio-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.bio-container {
	width: calc(24% - 20px);
	margin: 10px;
	border-radius: 7px;
	padding: 10px;
	box-sizing: border-box;
	box-shadow: 5px 5px 5px 5px #00346012;
	background: #00447E;
}

@media screen and (max-width: 768px) {
	.bio-container {
		width: 100%; /* On smaller screens, each container takes full width */
	}
}

.event-flyer {
	width: 94%;
	margin-left: auto;
	margin-right: auto;
	max-width: 600px;
	border: 2px solid #002f57;
	box-shadow: 5px 5px 8px 3px #002f574a;
}


.calendar-nav {
	font-size: 20px;
	font-family: sans-serif;
	transform: scaleY(1.8);
	margin-left: 20px;
	margin-right: 20px;
}

.calendar-nav-container {
	display: flex;
	justify-content: space-between;
}

.calendar {
  width: 100%;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  grid-template-rows: 50px;
  grid-auto-rows: 120px;
  overflow: auto;
}
.calendar-container {
  width: 100%;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fff;
  max-width: 1200px;
  margin-top: 50px;
}
.calendar-header {
  text-align: center;
  padding: 20px 0;
  background: linear-gradient(to bottom, #fafbfd 0%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 1px solid rgba(166, 168, 179, 0.12);
}
.calendar-header h1 {
	margin: 0;
	font-size: 18px;
	color: #002f57;
}
.calendar-header p {
  margin: 5px 0 0 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(81, 86, 93, 0.4);
}
.calendar-header button {
  background: 0;
  border: 0;
  padding: 0;
  color: rgba(81, 86, 93, 0.7);
  cursor: pointer;
  outline: 0;
}

.event {
	background: #0478cd;
	color: white;
	border-radius: 5px;
	text-align: center;
	font-family: sans-serif;
	padding: 3px;
	width: 100%;
	max-height: 22px;
	text-overflow: ellipsis;
	overflow: hidden;
	word-break: break-all;
}

.week {
	display: flex;
}

.day {
  display: flex;
  flex-direction: column;
  row-gap: 2px;
  flex: 1;
  border-bottom: 1px solid rgba(166, 168, 179, 0.12);
  border-right: 1px solid rgba(166, 168, 179, 0.12);
  text-align: right;
  padding: 5px;
  font-size: 12px;
  box-sizing: border-box;
  color: #98a0a6;
  position: relative;
  z-index: 1;
  height: 100px;
}
.day:nth-of-type(7n + 7) {
  border-right: 0;
}
.day:nth-of-type(n + 1):nth-of-type(-n + 7) {
  grid-row: 2;
}
.day:nth-of-type(n + 8):nth-of-type(-n + 14) {
  grid-row: 3;
}
.day:nth-of-type(n + 15):nth-of-type(-n + 21) {
  grid-row: 4;
}
.day:nth-of-type(n + 22):nth-of-type(-n + 28) {
  grid-row: 5;
}
.day:nth-of-type(n + 29):nth-of-type(-n + 35) {
  grid-row: 6;
}
.day:nth-of-type(7n + 1) {
  grid-column: 1/1;
}
.day:nth-of-type(7n + 2) {
  grid-column: 2/2;
}
.day:nth-of-type(7n + 3) {
  grid-column: 3/3;
}
.day:nth-of-type(7n + 4) {
  grid-column: 4/4;
}
.day:nth-of-type(7n + 5) {
  grid-column: 5/5;
}
.day:nth-of-type(7n + 6) {
  grid-column: 6/6;
}
.day:nth-of-type(7n + 7) {
  grid-column: 7/7;
}
.day-name {
  flex: 1;
  font-size: 12px;
  text-transform: uppercase;
  color: #99a1a7;
  text-align: center;
  border-bottom: 1px solid rgba(166, 168, 179, 0.12);
  line-height: 30px;
  font-weight: 500;
}
.day--disabled {
  color: rgba(152, 160, 166, 0.6);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f9f9fa' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  cursor: not-allowed;
}

.number-container {
	align-self: end;
	padding: 3px;
}

.day--current {
	background: black;
	color: white;
	border-radius: 30px;
	line-height: 14px;
}

.task {
  border-left-width: 3px;
  padding: 8px 12px;
  margin: 10px;
  border-left-style: solid;
  font-size: 14px;
  position: relative;
}
.task--warning {
  border-left-color: #fdb44d;
  grid-column: 4/span 3;
  grid-row: 3;
  background: #fef0db;
  align-self: center;
  color: #fc9b10;
  margin-top: -5px;
}
.task--danger {
  border-left-color: #fa607e;
  grid-column: 2/span 3;
  grid-row: 3;
  margin-top: 15px;
  background: rgba(253, 197, 208, 0.7);
  align-self: end;
  color: #f8254e;
}
.task--info {
  border-left-color: #4786ff;
  grid-column: 6/span 2;
  grid-row: 5;
  margin-top: 15px;
  background: rgba(218, 231, 255, 0.7);
  align-self: end;
  color: #0a5eff;
}
.task--primary {
  background: #4786ff;
  border: 0;
  border-radius: 4px;
  grid-column: 3/span 3;
  grid-row: 4;
  align-self: end;
  color: #fff;
  box-shadow: 0 10px 14px rgba(71, 134, 255, 0.4);
}
.task__detail {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  background: #fff;
  border: 1px solid rgba(166, 168, 179, 0.2);
  color: #000;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  z-index: 2;
}
.task__detail:after, .task__detail:before {
  bottom: 100%;
  left: 30%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}
.task__detail:before {
  border-bottom-color: rgba(166, 168, 179, 0.2);
  border-width: 8px;
  margin-left: -8px;
}
.task__detail:after {
  border-bottom-color: #fff;
  border-width: 6px;
  margin-left: -6px;
}
.task__detail h2 {
  font-size: 15px;
  margin: 0;
  color: #51565d;
}
.task__detail p {
  margin-top: 4px;
  font-size: 12px;
  margin-bottom: 0;
  font-weight: 500;
  color: rgba(81, 86, 93, 0.7);
}

.iframe-container-outer {
	width: 100%;
	max-width: 800px;
	margin-bottom: 50px;
}

.iframe-container-inner {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.iframe-container-inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.separator {
	height: 80px;
	width: 100%;
}

/* Pop-up styling */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid rgba(166, 168, 179, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    width: 400px;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.popup-content {
    text-align: left;
	color: black;
	font-size: 
	18px;
}

#popupTitleContainer {
	display: flex;
	align-items: center;
	gap: 7px;
}

#popupTitleDot {
	width: 10px;
	height: 10px;
	background: #0476c9;
	border-radius: 100%;
}

#popupTitle {
	font-size: 20px;
	font-weight: bold;
}

.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: black;
    cursor: pointer;
}
