html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  color: #1a1a1aa8;
  background: url('Pics/Background_bw.jpg') no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(11, 46, 91, 0.5) 0%, rgba(196, 30, 58, 0.4) 100%), 
              url('Pics/Hero.JPG') no-repeat center;
  -webkit-background-size: auto 100%;
  -moz-background-size: auto 100%;
  -o-background-size: auto 100%;
  background-size: auto 100%;
  background-attachment: fixed;
  color: white;
  padding: 3.5rem 2rem;
  text-align: left;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-bottom: 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 46, 91, 0.6) 0%, rgba(196, 30, 58, 0.5) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin: 0 0 1.5rem 0;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin: 1rem 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

.hero .cta-button {
  display: none;
}

header {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 0.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid #C41E3A;
  transition: all 0.3s ease;
  min-height: 40px;
}

header.hide {
  transform: translateY(-100%);
}

header.scrolled {
  padding: 0.5rem 1rem;
  background: #0B2E5BBF;
}

header.scrolled nav {
  position: fixed;
  right: 2rem;
  top: 2rem;
  gap: 0.5rem;
  flex-direction: column;
  width: auto;
  background: transparent;
  padding: 0.75rem;
  border-radius: 12px;
  box-shadow: none;
}

header.scrolled nav a {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
  background: white;
  color: #0B2E5B;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled nav a::before {
  display: none;
}

header.scrolled nav a:hover {
  background: linear-gradient(135deg, #0B2E5B 0%, #C41E3A 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

header img {
  position: absolute;
  left: 2rem;
  max-width: 140px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
  transition: transform 0.3s ease;
}

header.scrolled img {
  display: none;
}

header img:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.25rem;
  border-radius: 20px;
  max-width: fit-content;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

nav a {
  padding: 0.4rem 0.8rem;
  min-height: 38px;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  color: #0B2E5B;
  border-radius: 18px;
  border-color: 2px solid #0B2E5B;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  position: relative;
}

nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0B2E5B 0%, #C41E3A 100%);
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

nav a:hover::before {
  opacity: 1;
}

nav a:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 46, 91, 0.3);
}

nav a:active {
  transform: translateY(0);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 101;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: #0B2E5B;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
  line-height: 1.6;
}

.section {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem auto;
  max-width: 1300px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.section:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.section h1 {
  color: #0B2E5B;
  font-size: 2.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0B2E5B 0%, #C41E3A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section h2 {
  color: #0B2E5B;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 700;
  border-left: 4px solid #C41E3A;
  padding-left: 1rem;
  position: relative;
}

.section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #C41E3A 0%, #0B2E5B 100%);
  border-radius: 2px;
}

.section p {
  margin: 1rem 0;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.8;
}

.section a {
  color: #0B2E5B;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.section a:hover {
  color: #C41E3A;
}

footer {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 4px solid #C41E3A;
}

.footer-logo-wrap {
  margin-bottom: 1rem;
}

.footer-logo {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

footer div {
  color: #0B2E5B;
}

/* Events Grid Layout */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.event-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 46, 91, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0B2E5B 0%, #C41E3A 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.event-card:hover::before {
  transform: scaleX(1);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(11, 46, 91, 0.2);
  border-color: #C41E3A;
}

.event-date {
  font-weight: 700;
  font-size: 1.2rem;
  color: #C41E3A;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #C41E3A;
}

.event-content p {
  margin: 0.75rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.event-section {
  background: rgba(11, 46, 91, 0.05);
  border-left: 3px solid #C41E3A;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.event-section:hover {
  background: rgba(11, 46, 91, 0.08);
  border-left-color: #0B2E5B;
}

.event-section strong {
  color: #0B2E5B;
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.event-section p {
  margin: 0;
  color: #333;
}

.event-section-link {
  text-decoration: none;
  display: block;
  cursor: pointer;
  border: none;
}

.event-section-link .event-section {
  cursor: pointer;
  transition: all 0.3s ease;
}

.event-section-link .event-section:hover {
  transform: translateX(4px);
  background: rgba(4, 98, 221, 0.18);
}

.event-section-link .event-section p {
  font-weight: normal;
  color: #333;
}

.event-content strong {
  color: #a10d48;
  font-weight: 600;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, #0B2E5B 0%, #C41E3A 100%);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(11, 46, 91, 0.3);
  border: none;
  cursor: pointer;
  margin-top: 1rem;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.cta-button:active {
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}

.older-event {
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.show-more-btn-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.show-more-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, #0B2E5B 0%, #C41E3A 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(11, 46, 91, 0.3);
  letter-spacing: 0.3px;
}

.show-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.show-more-btn:active {
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  body {
    font-size: 15px;
  }

  main {
    margin: 0 auto;
    padding: 0 1rem;
  }

  .section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
  }

  .section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
  }

  .section p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0.75rem 0;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .event-card {
    padding: 1rem;
  }

  .event-date {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
  }

  .event-content p {
    font-size: 0.95rem;
    margin: 0.5rem 0;
  }

  .event-section {
    padding: 0.6rem 0.75rem;
    margin: 0.5rem 0;
  }

  .event-section strong {
    font-size: 0.8rem;
  }

  header {
    padding: 0.2rem 0.5rem;
    min-height: 40px;
  }

  header img {
    display: none;
  }

  nav {
    display: none;
    position: fixed;
    top: 40px;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-radius: 0;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: white;
    width: 100%;
    max-width: 100%;
    z-index: 100;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    min-height: auto;
    min-width: auto;
    border-radius: 0;
    border: none;
    justify-content: flex-start;
    text-align: left;
  }

  nav a::before {
    display: none;
  }

  nav a:hover {
    background: rgba(11, 46, 91, 0.1);
    transform: none;
    box-shadow: none;
    color: #C41E3A;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 2.5rem 1.5rem 3.5rem 1.5rem;
    min-height: 280px;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-end;
    background-size: cover;
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .hero p {
    font-size: 0.95rem;
    margin: 0.5rem 0;
  }

  .hero .cta-button {
    display: none;
  }
}

/* Extra small devices (iPhone sizes) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  main {
    margin: 0 auto;
    padding: 0 0.75rem;
  }

  .section {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .section h1 {
    font-size: 1.7rem;
    margin-bottom: 0.75rem;
  }

  .section h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .section p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.5rem 0;
  }

  .events-grid {
    gap: 0.75rem;
  }

  .event-card {
    padding: 0.9rem;
  }

  .event-date {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .event-content p {
    font-size: 0.9rem;
    margin: 0.4rem 0;
  }

  .event-section {
    padding: 0.5rem 0.65rem;
    margin: 0.4rem 0;
  }

  .event-section strong {
    font-size: 0.75rem;
  }

  header {
    padding: 0.2rem 0.4rem;
    min-height: 40px;
  }

  header img {
    display: none;
  }

  nav {
    display: none;
    position: fixed;
    top: 40px;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-radius: 0;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: white;
    width: 100%;
    max-width: 100%;
    z-index: 100;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    min-height: auto;
    min-width: auto;
    border-radius: 0;
    border: none;
    justify-content: flex-start;
    text-align: left;
  }

  nav a::before {
    display: none;
  }

  nav a:hover {
    background: rgba(11, 46, 91, 0.1);
    transform: none;
    box-shadow: none;
    color: #C41E3A;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 1.5rem 1rem 2.5rem 1rem;
    min-height: 240px;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-end;
    background-size: cover;
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
  }

  .hero p {
    font-size: 0.85rem;
    margin: 0.3rem 0;
  }

  .hero .cta-button {
    display: none;
  }
}
