/*
Theme Name: Vincent VanHatten - NSBC
Theme URI: https://northstarboyschoir.org/
Author: Vincent VanHatten
Description: Custom theme for NSBC by vincentvh.com
Version: 1.0
*/
/* Full CSS placeholder (too large to repeat here) */

    :root {
      --primary-color: #02305B;
      --accent-color: #982A23;
      --light-bg: #FFFFFF;
      --highlight-color: #F4E5BE;
    }

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

@media (hover: none) {
  .nav-links li:focus-within > ul {
    display: block;
  }
}


    body {
      font-family: 'Open Sans', sans-serif;
      background-color: var(--light-bg);
      color: #333;
      scroll-behavior: smooth;
    }


    header {
      background-color: white;
      color: var(--primary-color);
      padding: 0 2rem;
      display: flex;
      justify-content: space-between;
      align-items: stretch;
      position: sticky;
      top: 0;
      z-index: 1000;
	  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
	  min-height: 88px;
    }

    header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  white-space: nowrap;
}

/* Allow wrapping on very narrow screens */
@media (max-width: 365px) {
  header h1 {
    white-space: normal;
  }
}






    h1 a {
      color: var(--primary-color);
      text-decoration: none;
    }


    .nav-links {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      align-items: center;
	  align-self: stretch;
    }

.event-link {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--highlight-color);
  color: var(--primary-color);
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.event-link:hover {
  background-color: var(--primary-color);
  color: white;
}


.nav-links li {
  list-style: none;
  position: relative;
  height: 100%;
  display: flex;
}

.nav-links > li > a {    /* the visible link                   */
  display: flex;
  align-items: center;   /* vertically centre the text         */
  height: 100%;          /* take the whole bar                 */
  padding: 0 0.75rem;       /* horizontal spacing                 */
  line-height: 1;        /* prevent extra height               */
  color: var(--primary-color);
  font-weight: 600;
  background: var(--light-bg);
  text-decoration: none;
}
.nav-links > li > a:hover {
  color: var(--primary-color);
  border-bottom: 4px solid var(--accent-color);
}

.nav-links > li.current-menu-item > a {
  color: var(--primary-color);
  /* No border-bottom */
}


.nav-links ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background-color: #fff;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 999;
}

.nav-links > li:hover > a {
  border-bottom: 4px solid var(--accent-color);
}

@media (hover: hover) {
  .nav-links li:hover > ul {
    display: block;
  }
}


.nav-links ul li {
  display: block;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.nav-links ul li a {
  color: var(--primary-color);
  text-decoration: none;
  background: transparent;
  display: block;
  width: 100%;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  padding: 0.5rem 1rem;
  transition: background 0.3s, color 0.3s;
}

.nav-links ul li a:hover {
  color: var(--primary-color);              /* stay navy */
}

    .nav-links a {
      color: var(--primary-color);
      text-decoration: none;
      font-weight: 600;
      transition: color 0.3s;
    }

/* Mobile dropdown toggle support */
@media (max-width: 1150px) {
/* Make dropdowns collapsible and add arrow */
.nav-links ul {
  display: none !important;
  max-height: 0;
  overflow: hidden;
}

.nav-links .submenu-open > ul {
  display: block !important;
  max-height: 1000px;
}

.nav-links .menu-item-has-children > a::after {
  content: " ▼";
  font-size: 0.8em;
  margin-left: 0.4rem;
  transition: transform 0.2s ease;
}

.nav-links .submenu-open > a::after {
  transform: rotate(180deg);
}

.nav-links ul {
  position: static;
  background: var(--primary-color);
  padding: 0;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  text-align: center;
}
	
.nav-links > li.current-menu-item > a {
  color: var(--light-bg);
}
	
  .nav-links ul li {
  width: 100%;
  margin: 0;
  padding: 0;
  }

.nav-links ul li a {
  display: block;
  width: 100%;
  font-size: 1rem;
  color: var(--light-bg);
  background: none;
  text-decoration: none;
  font-weight: 500;
  transition: none !important; /* remove hover animations */
  text-align: center;
  padding: 0.5rem 0;
}
	
.nav-links ul li a:hover {
  background: var(--highlight-color);
  color: var(--primary-color);
}
}

.top-bar {
  height: 2.8rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0 2rem;
  font-size: 1rem;
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
}

.top-bar-icons a {
  color: var(--light-bg);
  margin-left: 1rem;
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.top-bar-icons a:hover {
  color: var(--highlight-color);
  transform: scale(1.15);
}

@media (max-width: 1150px) {
  .nav-links a,
  .nav-links ul li a {
    transition: none !important;
  }
}

@media (max-width: 1150px) {
  .top-bar-content {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
	height: 100%;
	width: 100%;
	gap: 0.5rem;
  }
}



    .nav-links a:hover {
      color: var(--accent-color);
    }

    .donate-btn {
      background-color: var(--accent-color);
      color: white !important;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      font-weight: bold;
      text-decoration: none;
      margin-left: 0.75rem;
    }

    .menu-toggle {
      display: none;
      font-size: 1.8rem;
      cursor: pointer;
      color: var(--primary-color);
    }
	
	.donate-floating {
	  display: none;
	  position: absolute;
	  top: 100%;
	  right: 2rem;
	  background: var(--accent-color);
	  color: white;
	  padding: 0.7rem 1rem;
/*	  border-bottom-left-radius: 5px; */
	  font-weight: bold;
	  text-decoration: none;
	  font-family: 'Open Sans', sans-serif;
	  z-index: 999;
	}

.hero {
  width: 100%;
  position: relative;
  padding: 0;       /* ✅ Remove inner spacing */
  margin: 0 auto;   /* ✅ Optional: center align if needed */
  max-width: none;  /* ✅ Prevent restriction to 1100px */
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

    .hero-caption {
      position: absolute;
      bottom: 1rem;
      left: 1.5rem;
      background-color: rgba(0, 0, 0, 0.5);
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      font-size: 1rem;
      font-style: italic;
    }


.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide .hero-caption {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  font-style: italic;
  z-index: 2;
}

.hero-dots {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.dot {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot:hover {
  background: var(--highlight-color);
}

.dot.active {
  background: white;
}


@media (max-width: 1150px) {

  .under-bar {
    display: block;
    height: 2.8rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    text-align: left;
    line-height: 2.8rem;
    font-weight: 500;
    padding: 0 2rem;
    z-index: 998;
    position: relative;
  }
}

@media (min-width: 769px) {
  .under-bar {
    display: none;
  }
}





@media (max-width: 1150px) {
  .top-bar-content {
    justify-content: flex-end;
    flex-direction: row;
    gap: 0.5rem;
  }
}



    section {
      padding: 2rem 2rem;
      max-width: 1100px;
      margin: auto;
    }

    section h2 {
      font-family: 'Playfair Display', serif;
      font-size: 2.2rem;
      color: var(--primary-color);
      margin-bottom: 1.2rem;
    }

    .centered {
      text-align: center;
      max-width: 800px;
      margin: 0 auto;
    }

    .events {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.5rem;
    }

    .event-card {
      background: #fff;
      border-left: 5px solid var(--accent-color);
      padding: 1rem;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }



    .cta {
      background-color: var(--accent-color);
      color: white;
      text-align: center;
      padding: 3rem 2rem;
      font-size: 1.2rem;
      max-width: none;
    }

    .cta a {
      font-weight: bold;
      text-decoration: none;
    }
    
.cta-button {
  display: inline-block;
  margin-top: 2rem;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #000; /* Slightly darker navy for hover effect */
  transform: scale(1.05);
  text-decoration: none;
}




    #choirs {
      background: none;
      padding: 4rem 2rem;
    }

.choir-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "music cadet"
    "viking kantorei";
  gap: 2rem;
}

.choir-grid .choir-card:nth-child(1) { grid-area: music; }
.choir-grid .choir-card:nth-child(2) { grid-area: cadet; }
.choir-grid .choir-card:nth-child(3) { grid-area: viking; }
.choir-grid .choir-card:nth-child(4) { grid-area: kantorei; }


    .choir-card {
      background: #ffffff;
      border-left: 5px solid var(--accent-color);
      padding: 1.5rem;
      border-radius: 6px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      transition: transform 0.3s ease;
    }

    .choir-card:hover {
      transform: translateY(-4px);
    }

    .choir-card h3 {
      margin-top: 0;
      color: var(--primary-color);
      font-size: 1.4rem;
      margin-bottom: 0.5rem;
    }

    .choir-card p {
      font-size: 0.95rem;
      margin-bottom: 0.4rem;
      line-height: 1.5;
    }

    .choir-card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-radius: 6px;
      margin-bottom: 1rem;
    }

    .learn-more {
      display: inline-block;
      margin-top: 0.6rem;
      font-weight: bold;
      color: var(--primary-color);
      text-decoration: none;
    }

    .learn-more i {
      margin-left: 6px;
    }
    
.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  color: white;
  margin: 0 0.6rem;
  font-size: 1.4rem;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--highlight-color);
  transform: scale(1.15);
}



    footer {
      background-color: var(--primary-color);
      color: white;
      text-align: center;
      padding: 2rem 1rem;
      font-size: 0.95rem;
    }

    footer a {
      color: var(--highlight-color);
      text-decoration: none;
      font-weight: bold;
    }

    @media (max-width: 768px) {
    
            .choir-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "music"
      "cadet"
      "viking"
      "kantorei";
  }
}
  
      
@media (max-width: 1150px) {
  header {
    align-items: center; /* ✅ Vertically center everything inside header */
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    z-index: 999;
    text-align: center;
	overflow-y: auto;      /* ✅ allow vertical scroll */
    max-height: 0;         /* default closed */
  }
  
  header h1 {
	display: flex;
	align-items: center;
	margin: 0;
  }

  .nav-links.mobile-visible {
  max-height: 80vh; /* ✅ allows scrolling if menu is tall */
  overflow-y: auto;
  opacity: 1;
  pointer-events: all;
  padding: 1rem 0;
  }

/* style each top-level link */
.nav-links > li {
    display: block;
    width: 100%;
}
	
.nav-links > li > a {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--light-bg);
    background: none;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
	text-align: center;
    justify-content: center;  /* center flex items */
	border-bottom: none !important;   /* ✅ prevent gap caused by underline space */
}

.nav-links > li > a:hover {
  background-color: var(--highlight-color);
  color: var(--primary-color);
  border-bottom: none !important;   /* ✅ remove red underline */
}

.nav-links a {
  font-size: 1.1rem;
  padding: 0.4rem 0;
  border-radius: 0;
  color: white;
  font-weight: 600;
  background: none;
  text-align: center;
  transition: color 0.3s, transform 0.2s;
}

.nav-links a:hover {
  color: var(--accent-color);
  transform: none !important;
}


  .menu-toggle {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    align-self: center;
    padding: 0.5rem;
  }
  
  .donate-floating {
    display: block;
  }

  .donate-floating.hide-on-menu {
    display: none !important;
  }

    }

/* If a submenu is open, mimic the hover underline */
.nav-links .submenu-open > a {
  border-bottom: 4px solid var(--accent-color);
}

/*  Show a dropdown any time JS adds .submenu-open (desktop width)  */
@media (min-width: 1150px) {
  .nav-links .submenu-open > ul {
    display: block;               /* or `flex` if you prefer */
  }
}


/*WOO STYLES */


