/* Import Roboto Slab font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;600;700&display=swap');

/* Force remove ALL top spacing */
body {
  margin: 0 !important;
  padding: 0 !important;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Hero Header with Background - Full viewport height */
.site-header {
  position: relative;
  min-height: 100vh;
  background-image: url('../images/heroimage.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  margin-top: -8px !important; /* Negative margin to pull up */
  padding: 0 !important;
  width: 100%;
  overflow: hidden; /* Hide wavy pattern overflow */
}

/* Wavy pattern behind navigation */
.header-wave {
  position: absolute;
  top: -50px; /* Moved up more */
  left: 0;
  right: 0;
  height: 180px;
  background-image: url('../images/wavydesign.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center top;
  z-index: 1;
  margin: 0 !important;
  padding: 0 !important;
  filter: brightness(0.85); /* Darken the wavy pattern */
}

/* Top Navigation Bar - Pulled higher */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 3rem; /* Reduced padding to move nav up */
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2000;
}

/* Logo - bigger size with positioning */
.site-logo {
  display: flex;
  align-items: center;
  position: relative;
  top: -50px; /* Moved up more */
  left: -40px;
}

.site-logo img {
  width: 225px;
  height: 136px;
  object-fit: contain;
}

/* Navigation Menu - Roboto Slab 600, 24px */
.main-navigation {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
  margin: 0;
  margin-top: -60px; /* Moved up more */
  margin-right: -50px;
  padding: 0;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  display: block;
  padding: 0.5rem 1rem; /* Reduced left and right padding */
  font-family: 'Roboto Slab', serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0%;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.main-navigation a:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.main-navigation a.active {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  align-self: center;
}

.hamburger-line {
  width: 30px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

/* Hero Content */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 6rem 3rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Hero Heading - Roboto Slab 600, 40px */
.hero-content h1 {
  font-family: 'Roboto Slab', serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0%;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Subheading - Roboto Slab 400, 24px */
.hero-content p {
  font-family: 'Roboto Slab', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: capitalize;
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* CTA Button */
.hero-cta {
  display: inline-block;
  align-self: flex-start;
  padding: 0.8rem 2rem;
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-cta:hover {
  border-color: #FFD700;
  color: #FFD700;
  transform: translateY(-2px);
}

.hero-cta-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
}

.hero-quick-links {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hero-quick-link {
  font-family: 'Roboto Slab', serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.hero-quick-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Hero Reading List Callout */
.hero-reading-list-callout {
  position: absolute;
  right: 8%;
  top: 55%;
  transform: translateY(-50%);
  z-index: 20;
}

.reading-list-callout-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.reading-list-callout-link:hover {
  border-bottom-color: #FFD700;
  transform: translateX(-5px);
}

.callout-text {
  display: flex;
  flex-direction: column;
}

.callout-label {
  font-family: 'Roboto Slab', serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-bottom: 4px;
}

.callout-title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.callout-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.reading-list-callout-link:hover .callout-arrow {
  background: #FFD700;
  border-color: #FFD700;
  color: #2C3E50;
  transform: rotate(-45deg);
}

/* Mobile responsive adjustments for callout */
@media (max-width: 1024px) {
  .hero-reading-list-callout {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 3rem auto 0;
    padding: 0 2rem;
    max-width: 400px;
    width: 100%;
  }

  .reading-list-callout-link {
    justify-content: space-between;
  }
}
.hero-quick-separator {
  color: rgba(255, 255, 255, 0.75);
  padding: 0 0.2rem;
}

/* Responsive */
@media (max-width: 968px) {
  .site-header--front {
    position: relative;
    z-index: 1;
  }

  .main-nav {
    z-index: 3000;
  }

  .main-nav::before {
    z-index: -1;
  }

  .main-nav.active {
    z-index: 3001;
  }

  .header-wave {
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 0;
  }

  .site-header {
    min-height: 100vh;
    margin-top: -8px !important;
  }

  .header-wave {
    height: 140px;
  }

  .header-top {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    position: relative;
  }

  /* Show hamburger menu */
  .mobile-menu-toggle {
    display: flex;
    margin-top: 0;
    position: relative;
    z-index: 1002;
  }

  /* Mobile menu overlay backdrop */
  .main-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: -1;
  }

  .main-nav.active::before {
    opacity: 1;
    visibility: visible;
  }

  /* Hide navigation by default on mobile */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 3000;
    overflow-y: auto;
    pointer-events: auto;
  }

  .main-nav.active {
    right: 0;
  }

  .main-navigation {
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    width: 100%;
  }

  .main-navigation li {
    width: 100%;
  }

  .main-navigation a {
    padding: 0.75rem 1rem;
    font-size: 18px;
    width: 100%;
    text-align: center;
  }

  .site-logo {
    top: 0;
    left: 0;
    margin-top: 0;
  }

  .site-logo img {
    width: 140px;
    height: 84px;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 120%;
  }

  .hero-content p {
    font-size: 18px;
    line-height: 120%;
  }

  .hero-cta {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .site-logo img {
    width: 120px;
    height: 72px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .main-navigation a {
    font-size: 16px;
  }
}

/* ====================================== */
/* INTERNAL PAGES HEADER (Not Front Page) */
/* ====================================== */

.site-header--internal {
  min-height: auto !important;
  background-image: none !important;
  background-color: transparent;
  padding: 0 !important;
  margin-top: 0 !important;
  overflow: visible;
  position: relative;
}

.site-header--internal .header-wave {
  height: 180px;
  top: -50px; /* Moved up more to match homepage */
  position: absolute;
  z-index: 1;
  background-size: auto 100%;
}

.site-header--internal .header-top {
  padding: 0.5rem 3rem;
  background: transparent;
  position: relative;
  z-index: 10;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header--internal .site-logo {
  top: -50px; /* Moved up more to match homepage */
  left: -40px;
}

.site-header--internal .site-logo img {
  width: 225px;
  height: 136px;
}

.site-header--internal .main-navigation {
  margin-top: -60px; /* Moved up more to match homepage */
  margin-right: -50px;
  gap: 1.5rem;
}

.site-header--internal .main-navigation a {
  font-size: 24px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  color: #333;
  border-color: rgba(51, 51, 51, 0.8);
}

.site-header--internal .main-navigation a:hover,
.site-header--internal .main-navigation a.active {
  border-color: #333;
  background: rgba(51, 51, 51, 0.1);
  color: #333;
}

@media (max-width: 968px) {
  .site-header--internal .header-wave {
    height: 140px;
  }

  .site-header--internal .header-top {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    min-height: auto;
  }

  .site-header--internal .site-logo {
    top: 0;
    left: 0;
  }

  .site-header--internal .site-logo img {
    width: 140px;
    height: 84px;
  }

  .site-header--internal .main-navigation {
    margin-top: 0;
    margin-right: 0;
    flex-direction: column;
    gap: 1rem;
  }

  .site-header--internal .main-navigation a {
    font-size: 18px;
    padding: 0.75rem 1rem;
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
  }

  .site-header--internal .main-navigation a:hover,
  .site-header--internal .main-navigation a.active {
    border-color: #fff;
    color: #fff;
  }

  /* Mobile menu for internal pages */
  .site-header--internal .mobile-menu-toggle .hamburger-line {
    background-color: #333;
  }

  .site-header--internal .main-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }

  .site-header--internal .main-navigation a {
    color: #333;
    border-color: rgba(51, 51, 51, 0.8);
  }

  .site-header--internal .main-navigation a:hover,
  .site-header--internal .main-navigation a.active {
    border-color: #333;
    background: rgba(51, 51, 51, 0.1);
    color: #333;
  }
}

@media (max-width: 480px) {
  .site-header--internal .site-logo img {
    width: 120px;
    height: 72px;
  }

  .site-header--internal .main-navigation a {
    font-size: 16px;
  }
}

/* =====================================================
   Event Banner Slide — Button Hover Animations
   ===================================================== */

/* Base: every event slide button gets a smooth transition */
.event-slide-btn {
  transition:
    transform       0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow      0.28s ease,
    background      0.28s ease,
    color           0.28s ease,
    border-color    0.28s ease,
    filter          0.28s ease;
  will-change: transform;
  cursor: pointer;
}

.event-slide-btn:hover {
  transform: translateY(-4px) scale(1.03);
}

/* pill-white: lift + indigo shadow */
.event-slide-btn--pill-white:hover {
  box-shadow: 0 10px 30px rgba(26, 35, 126, 0.35);
  background: #f0f0ff !important;
}

/* pill-dark: lift + glow */
.event-slide-btn--pill-dark:hover {
  box-shadow: 0 10px 30px rgba(26, 35, 126, 0.55);
  filter: brightness(1.15);
}

/* pill-gold: lift + warm glow */
.event-slide-btn--pill-gold:hover {
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.55);
  filter: brightness(1.08);
}

/* pill-outlined: fill with white on hover */
.event-slide-btn--pill-outlined:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 10px 30px rgba(0,0,0,0.25);
}

/* square-white: lift + squared shadow */
.event-slide-btn--square-white:hover {
  box-shadow: 6px 6px 0px #1A237E;
  transform: translateY(-3px) translateX(-2px) scale(1.02);
}

/* gradient-pink: intensify gradient + lift */
.event-slide-btn--gradient-pink:hover {
  filter: brightness(1.12) saturate(1.2);
  box-shadow: 0 10px 30px rgba(238, 9, 121, 0.45);
}

/* transparent-border: match hero-1 — gold border + text on hover */
.event-slide-btn--transparent-border:hover {
  border-color: #FFD700 !important;
  color: #FFD700 !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
