/* Reset basic body spacing */
/* Global typography */
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Responsive base font size:
       - Never smaller than 16px
       - Grows a bit on larger screens
       - Never bigger than 19px
    */
    font-size: clamp(16px, 1.1vw + 14px, 19px);

    line-height: 1.6;
	background-color: #F1E3BD;
}

/* Header bar (logo + nav/hamburger) */
.site-header {
    display: flex;
    align-items: center;
    justify-content: center;   /* center contents instead of space-between */
    background-color: #CA1130;
    color: #ffffff;
    padding: 0.5rem 1rem;
    position: relative;        /* lets us place the hamburger on the right */
}

/* Logo sizing */
.logo-container {
    display: flex;
    align-items: center;
	justify-content: center;
}

.logo {
    width: 30%;       
    max-width: 30%; /* safety limit */
    height: auto;
}

.nav-container {
	background-color: #F1E3BD;
}

/* Hamburger button (mobile only by default) */
.nav-toggle {
    background: none;
    border: 1px solid #ffffff;
    border-radius: 4px;
    font-size: 1.5rem;
    padding: 0.2rem 0.5rem;
    color: #ffffff;
    cursor: pointer;
}

/* Nav menu — mobile default: hidden until toggled */
.main-nav {
    display: none;
    width: 100%;
}

/* When JS adds .open, show it on mobile */
.main-nav.open {
    display: block;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 0.5rem;
}

/* Stack vertically on mobile */
.nav-list > li {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-list a,
.dropdown-toggle {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    text-decoration: none;
    color: #ffffff;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

/* Dropdowns hidden by default */
.dropdown {
    display: none;
    list-style: none;
    margin: 0;
    padding-left: 1rem;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Opened dropdown on mobile */
.has-dropdown.open .dropdown {
    display: block;
}

/* Links inside dropdown */
.dropdown li a {
    padding: 0.4rem 0;
}

.welcomediv {
	margin: 0 20%;
	text-align: center;
	
}

.contentdiv {
	margin: 0 10%;
	text-align: center;
}

.contentdiv iframe {
  width: 100%;
  min-height: 98vh;  /* tweak if needed */
}

/* Medium screens (tablets, small laptops) */
@media (max-width: 1024px) {
  .contentdiv {
    margin: 0 10%;    /* smaller side margins */
  }
}

/* Small screens (phones) */
@media (max-width: 600px) {
  .contentdiv {
    margin: 0 5%;     /* almost full width */
  }
}

/* ---------- Desktop layout ---------- */
@media (min-width: 768px) {

    /* Hide hamburger on desktop */
    .nav-toggle {
        display: none;
    }

    /* Center the nav bar inside the container */
    .nav-container {
        display: flex;
        justify-content: center;
    }

    /* Make the nav itself shrink to content width */
    .main-nav {
        display: block;
        width: auto;
    }

    /* Center the list inside the nav */
    .nav-list {
        display: flex;
        justify-content: center; /* THIS is the important one */
        align-items: center;
        gap: 2rem;
        margin: 0 auto;          /* also helps centering */
        padding: 0.75rem 0;
    }
	
	.nav-list li:hover {
		background-color: rgba(0,0,0,0.2);  /* darker background */
	}

    .nav-list > li {
        border: none;
        position: relative;
    }

    .nav-container .nav-list a,
	.nav-container .dropdown-toggle  {
        padding: 0.25rem 0;
        width: auto;
        color: #000; /* optional, because your bg is tan */
    }

    /* Dropdown menu */
    .dropdown {
        position: absolute;
        top: 100%;
        min-width: 180px;
        background-color: #F1E3BD;
        padding: 0.5rem 0.75rem;
        display: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 1000;
    }
	
    .has-dropdown:hover .dropdown {
        display: block;
    }
}

/* ===== SLIDESHOW ===== */
.slideshow {
    width: 100%;
    overflow: hidden;        /* only one slide visible */
    position: relative;
}

.slides {
    display: flex;
    transition: transform 0.6s ease-in-out;  /* smooth slide */
}

/* each image = exactly 100% of the viewport width */
.slides img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;       /* crops nicely if aspect ratios differ */
}
/* Buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: white;
}

.slide-btn.prev { left: 0.75rem; }
.slide-btn.next { right: 0.75rem; }

.slide-btn:hover {
  background: rgba(0, 0, 0, 0.55);
}

/* On very small screens, make buttons a bit smaller */
@media (max-width: 480px) {
  .slide-btn {
    font-size: 1.6rem;
    padding: 0.2rem 0.5rem;
  }
}

/* ===== EVENTS SECTION ===== */
#events-section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: left;
}

#events-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

#events-list .event {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

#events-list .event-title {
    font-weight: bold;
    font-size: 1.05rem;
}

#events-list .event-meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.25rem;
}

#events-list .event-description {
    margin: 0.25rem 0 0;
}

#show-more-events {
    display: block;
    margin: 1rem auto 0;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    border: none;
    background-color: #CA1130;   /* match your header color */
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

#show-more-events:hover {
    opacity: 0.9;
}

.portrait {
	height:20vh;
	width: auto;
}

.pdf-section {
  margin: 2rem auto;
  padding: 0 1rem;
}

.pdf-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

a.pdf-open-btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  background: #CA1130;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

a.pdf-open-btn:hover { opacity: 0.9; }

.pdf-download-link {
  align-self: center;
}

a.donatebutton {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  background: #CA1130;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

a.donatebutton:hover { opacity: 0.9; }

/* Responsive embed box */
.pdf-embed {
  width: 100%;
  height: 75vh;          /* tall on desktop */
  min-height: 480px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.pdf-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* On small screens, don't embed (PDF viewers are awkward on phones) */
@media (max-width: 768px) {
  .pdf-embed {
    display: none;
  }
}



a.pdf-open-btn,
a.pdf-open-btn:visited {
  color: #fff;
  text-decoration: none;
}