/* style.css - Modern Responsive Styles for Bees Business
    Moved into css/ for clarity */

.wrapper a:not(.nav-logo):not(.nav-links a):not(.dropdown-menu a) {
   transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s cubic-bezier(.4,2,.6,1);
}
.wrapper a:not(.nav-logo):not(.nav-links a):not(.dropdown-menu a):hover {
   transform: scale(1.10);
   box-shadow: 0 2px 8px rgba(122,196,122,0.13);
   z-index: 1;
   color: inherit;
}
/* Breadcrumb navigation */
.breadcrumb-nav {
   width: 100%;
   background: linear-gradient(90deg, rgba(214,245,214,0.7) 0%, rgba(178,230,178,0.7) 100%);
   border-bottom: 1px solid #e0e0e0;
   font-size: 0.95rem;
   padding: 0.2rem 0;
   margin-bottom: 0.2rem;
   box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.breadcrumb {
   max-width: 900px;
   margin: 0 auto;
   padding: 0 1rem;
   display: flex;
   align-items: center;
   list-style: none;
   gap: 0.3rem;
}
.breadcrumb li {
   color: #7a5c1e;
   white-space: nowrap;
}
.breadcrumb li:not(:last-child)::after {
   content: "/";
   color: #bfa14a;
   margin: 0 0.3rem;
}
.breadcrumb a {
   color: #256029;
   text-decoration: none;
   transition: color 0.2s;
}
.breadcrumb a:hover {
   color: inherit;
}

/* Bottom breadcrumb (subtle secondary) */
.breadcrumb-bottom {
  font-size: 0.85rem;
  color: #666;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.04);
  padding-top: 0.8rem;
}
.breadcrumb-bottom .breadcrumb li { color: #666; }
.breadcrumb-bottom .breadcrumb a { color: #4a7a4a; }
.resource-grid {
   /* Use flexbox to allow wrapped rows to be centered naturally */
   display: flex;
   flex-wrap: wrap;
   gap: 0.75rem;
   justify-content: center; /* center each line when it wraps */
   align-items: flex-start;
   margin: 0.6rem auto;
   max-width: 940px;
}
.resource-grid a {
   /* allow items to size to their content and keep individuality; let them shrink when needed */
   flex: 0 1 auto;
   display: block;
}
@media (max-width: 700px) {
   .resource-grid a {
      flex: 1 1 140px; /* allow items to shrink and wrap on small screens */
   }
}
.resource-grid a {
   display: block;
   text-align: center;
   text-decoration: none;
   color: inherit;
   padding: 0.25rem;
}
.resource-grid img {
   /* Keep natural image dimensions; limit only to container width when needed */
   max-width: 100%;
   height: auto;
   display: block;
   margin: 0 auto;
   border-radius: 6px;
   box-shadow: 0 2px 8px rgba(0,0,0,0.08);
   transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Calendar / ICS viewer styles */
.calendar-controls { display:flex; flex-wrap:wrap; gap:0.5rem; align-items:center; margin:0.6rem 0; }
.calendar-controls input[type="url"]{ flex:1 1 320px; padding:0.45rem; border-radius:6px; border:1px solid #ddd; }
.calendar-controls button{ padding:0.45rem 0.7rem; border-radius:6px; border:1px solid #cfc; background:#256029; color:#fff; cursor:pointer; }
.calendar { margin-top: 0.8rem; }

/* Month controls: keep the month label a fixed width so arrows don't jump as the name changes */
.month-controls { display:inline-flex; align-items:center; gap:0.5rem; justify-content:center; }
.month-controls #month-label { display:inline-block; width: 11rem; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:700px){
   .month-controls #month-label { width: 8rem; }
}
.events-list { display:flex; flex-direction:column; gap:1rem; }
.event { background: rgba(255,255,255,0.95); padding:0.8rem; border-radius:8px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.event h3{ margin:0 0 0.3rem 0; font-size:1.05rem; color:#274a28; }
.event time{ display:block; font-size:0.95rem; color:#666; margin-bottom:0.4rem; }
.event .meta.loc{ font-style:italic; color:#444; margin-bottom:0.4rem; }
.event .desc{ color:#222; margin:0; }
.ics-error{ color:#a00; background: #fff6f6; padding:0.6rem; border-radius:6px; border:1px solid #f2c7c7; }


/* Lightbox overlay */
.lb-overlay {
   position: fixed;
   inset: 0;
   display: none;
   align-items: center;
   justify-content: center;
   background: rgba(0,0,0,0.85);
   z-index: 2000;
   padding: 2rem;
}
.lb-overlay.open { display: flex; }
.lb-stage { max-width: 95%; max-height: 85%; text-align: center; position: relative; }
.lb-stage img { max-width: 100%; max-height: 85vh; border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,0.6); }
.lb-caption { color: #fff; margin-top: 0.6rem; font-size: 0.95rem; }
.lb-close, .lb-next, .lb-prev { position: absolute; background: rgba(255,255,255,0.06); border: none; color: #fff; font-size: 2rem; line-height: 1; padding: 0.4rem 0.8rem; border-radius: 6px; cursor: pointer; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-close:focus, .lb-next:focus, .lb-prev:focus { outline: 3px solid rgba(255,255,255,0.12); }

/* Make gallery thumbnails a consistent max width */
.gallery a img { max-width: 240px; height: auto; display: block; }

/* Thumbnail hover/focus tooltips using data-caption */
.lightbox-item { position: relative; }
.lightbox-item[data-caption]:not([data-caption=""])::after {
   content: attr(data-caption);
   position: absolute;
   bottom: calc(100% + 10px);
   left: 50%;
   transform: translateX(-50%) translateY(8px);
      background: #7a5c1e;
   color: #fff;
   padding: 0.35rem 0.6rem;
   border-radius: 6px;
   white-space: nowrap;
   font-size: 0.85rem;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.18s cubic-bezier(.2,.9,.2,1), transform 0.18s cubic-bezier(.2,.9,.2,1);
   box-shadow: 0 6px 18px rgba(0,0,0,0.35);
   z-index: 2100;
}

/* small triangular pointer */
.lightbox-item[data-caption]:not([data-caption=""])::before {
   content: "";
   position: absolute;
   bottom: calc(100% + 2px);
   left: 50%;
   transform: translateX(-50%) translateY(8px);
   width: 0;
   height: 0;
   border-left: 6px solid transparent;
   border-right: 6px solid transparent;
      border-top: 6px solid #7a5c1e;
   opacity: 0;
   transition: opacity 0.18s ease, transform 0.18s ease;
   pointer-events: none;
   z-index: 2101;
}

.lightbox-item[data-caption]:not([data-caption=""]):hover::after,
.lightbox-item[data-caption]:not([data-caption=""]):focus::after,
.lightbox-item[data-caption]:not([data-caption=""]):focus-within::after,
.lightbox-item[data-caption]:not([data-caption=""]):active::after {
   opacity: 1;
   transform: translateX(-50%) translateY(0);
}

.lightbox-item[data-caption]:not([data-caption=""]):hover::before,
.lightbox-item[data-caption]:not([data-caption=""]):focus::before,
.lightbox-item[data-caption]:not([data-caption=""]):focus-within::before,
.lightbox-item[data-caption]:not([data-caption=""]):active::before {
   opacity: 1;
   transform: translateX(-50%) translateY(0);
}

/* Smaller periscope thumbnails (explicit thumb sizing) */
.periscope-thumb {
   flex: 0 1 180px; /* keep them compact in the resource-grid */
   text-align: center;
}
.periscope-thumb img {
   max-width: 180px;
   height: auto;
   display: block;
   border-radius: 6px;
}

@media (max-width: 700px) {
   .periscope-thumb { flex: 1 1 140px; }
   .periscope-thumb img { max-width: 140px; }
}

@media (hover: none) {
   /* Disable custom tooltips on touch devices where hover isn't meaningful */
   .lightbox-item[data-caption]::after,
   .lightbox-item[data-caption]::before { display: none; }
}

/* (previously mis-pasted lines removed) */
/* style.css - Modern Responsive Styles for Bees Business */

body {
   margin: 0;
   font-family: 'Taviraj', 'Tangerine', serif;
   color: #000;
   position: relative;
   min-height: 100vh;
}

body::before {
   content: "";
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: url('../Images/dancebee.jpg') no-repeat center center fixed;
   background-size: cover;
   opacity: 0.6;
   z-index: -1;
   pointer-events: none;
}

nav {
   width: 100%;
   background: linear-gradient(90deg, rgba(214,245,214,0.7) 0%, rgba(178,230,178,0.7) 100%);
   box-shadow: 0 2px 8px rgba(0,0,0,0.04);
   border-bottom: 2px solid #7ac47a;
}

.nav-container {
   max-width: 900px;
   margin: 0 auto;
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0.5rem 1rem;
}

.nav-logo {
   font-family: 'Tangerine', cursive;
   font-size: 2rem;
   color: #7a5c1e;
   text-decoration: none;
}

.nav-links {
   display: flex;
   gap: 1.2rem;
}


.nav-links a {
   color: #256029;
   background: none;
   text-decoration: none;
   font-size: 1.1rem;
   font-family: 'Taviraj', serif;
   padding: 0.3rem 0.9rem;
   border-radius: 4px;
   margin: 0 0.2rem;
   white-space: nowrap;
   transition: background 0.2s, color 0.2s;
   border: none;
   box-shadow: none;
}

.nav-links a:hover {
   background: #eafbe7;
   color: #256029;
}
/* Make keyboard focus visible and provide an accessible active focus state */
.nav-links a:focus,
.nav-links a:focus-visible,
.nav-dropdown .dropdown-toggle:focus,
.nav-dropdown .dropdown-toggle:focus-visible {
   outline: 3px solid rgba(122,96,30,0.18);
   outline-offset: 3px;
   background: rgba(122,96,30,0.04);
}

.nav-links a.active:focus,
.nav-dropdown .dropdown-toggle.active:focus {
   outline-color: rgba(122,96,30,0.28);
}
/* Dropdown caret and menu (hidden by default) */
.dropdown-toggle::after {
   content: '\25BC';
   font-size: 0.7em;
   margin-left: 0.4em;
   vertical-align: middle;
}

.dropdown-menu {
   display: none;
   position: absolute;
   left: 0;
   top: 100%;
   min-width: 260px;
   background: #fff;
   border-radius: 8px;
   box-shadow: 0 4px 16px rgba(0,0,0,0.10);
   z-index: 1000; /* ensure dropdown sits above other items */
   padding: 0.5rem 0;
   margin-top: 0; /* remove gap between toggle and menu to avoid mouseleave when moving pointer */
   pointer-events: auto;
}

.dropdown-menu a {
   display: block;
   padding: 0.6rem 1.2rem;
   color: #256029;
   background: none;
   border: none;
   border-radius: 0;
   font-size: 1rem;
   font-family: 'Taviraj', serif;
   text-decoration: none;
   transition: background 0.2s, color 0.2s;
   white-space: nowrap;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown .dropdown-menu:hover {
   display: block;
}
/* Make the dropdown container align with other nav links */
.nav-dropdown {
   position: relative; /* anchor absolute-positioned dropdown */
   display: flex;
   align-items: center; /* vertically center with other links */
   height: 100%;
}

/* Make the toggle look and behave like other nav links */
.nav-dropdown .dropdown-toggle {
   display: inline-block;
   padding: 0.3rem 0.9rem;
   color: #256029;
   text-decoration: none;
   font-size: 1.1rem;
   font-family: 'Taviraj', serif;
   white-space: nowrap;
   border: none;
   background: none;
   cursor: pointer;
}
.nav-dropdown .dropdown-toggle:hover,
.nav-dropdown .dropdown-toggle:focus {
   background: #eafbe7;
   color: #256029;
}
   .dropdown-menu a {
      border-radius: 6px; /* soften item corners to match main nav */
   }

   .dropdown-menu a:hover, .dropdown-menu a:focus {
      background: #eafbe7;
      color: #256029;
      transform: scale(1.08);
      box-shadow: 0 4px 16px rgba(122,196,122,0.13);
      z-index: 1;
      border-radius: 6px; /* keep the hovered item rounded */
   }
.nav-links a.active,
.nav-dropdown .dropdown-toggle.active {
   /* Match breadcrumb active treatment: light brown text, no green background */
   background: transparent;
   color: #7a5c1e;
   font-weight: 600;
   box-shadow: none;
}

/* Hamburger menu for mobile */
.nav-toggle {
   display: none;
   flex-direction: column;
   cursor: pointer;
}
.nav-toggle span {
   height: 3px;
   width: 25px;
   background: #7a5c1e;
   margin: 4px 0;
   border-radius: 2px;
   transition: 0.3s;
}

@media (max-width: 700px) {
   .nav-container {
      flex-direction: column;
      align-items: flex-start;
      padding: 0.5rem 0.5rem;
   }
   .nav-links {
      flex-direction: column;
      width: 100%;
      display: none;
      gap: 0;
   }
   .nav-links.open {
      display: flex;
      margin-top: 0.5rem;
   }
   .nav-toggle {
      display: flex;
      margin-left: auto;
   }
   /* Mobile: make dropdown an inline block within the stacked nav */
   .nav-dropdown {
      width: 100%;
   }
   .dropdown-menu {
      position: static;
      min-width: 0;
      box-shadow: none;
      border-radius: 0 0 8px 8px;
      margin-top: 0;
      background: #eafbe7;
   }
   .dropdown-menu a {
      padding-left: 2rem;
   }
}

.wrapper {
   max-width: 900px;
   margin: 0 auto;
   background: linear-gradient(120deg, rgba(122,196,122,0.18) 0%, rgba(182,255,182,0.18) 100%);
   box-shadow: 0 2px 8px rgba(0,0,0,0.07);
   border-radius: 10px;
   padding: 1.5rem;
}

header h1,
.wrapper main h1 {
   font-family: 'Tangerine', cursive;
   font-size: 3rem;
   text-align: center;
   margin: 0 0 1.5rem 0;
   color: #7a5c1e;
}

/* Make promoted H1s inside article.story visually match the previous H2
   so promoting headings for semantic reasons doesn't create jarring size changes. */
.wrapper article.story h1 {
   font-family: 'Taviraj', serif; /* readable serif for body headings */
   font-size: 1.4rem; /* similar visual weight to previous H2s */
   line-height: 1.25;
   margin: 0 0 0.9rem 0;
   color: #7a5c1e;
   font-weight: 600;
}

/* Center headings and article-link blocks on the Educational Resources page */
.article-list {
   text-align: center;
}
.article-list h2,
.article-list h3,
.article-list h4 {
   text-align: center;
   margin-left: 0;
   margin-right: 0;
}
.article-list p {
   text-align: center;
}
.article-list ul {
   /* Keep the list centered on the page but items left-aligned for readability */
   display: inline-block;
   text-align: left;
   padding-left: 1rem;
   margin: 0.6rem 0;
}
.articlesub {
   text-align: center;
}
.articlesub p {
   margin: 0.35rem 0 0 0;
}

/* Use normal block flow for main so floats inside/nearby can affect paragraph wrapping.
   Emulate the previous vertical spacing using margins on direct children. */
main {
   display: block;
}

/* Provide spacing between the main's direct children to mimic the previous gap value. */
main > * {
   margin-bottom: 2rem;
}
main > *:last-child {
   margin-bottom: 0;
}

.index {
   display: flex;
   flex-direction: column;
   gap: 1rem;
   align-items: center;
}

.index a {
   text-decoration: none;
   color: #2a4d2e;
   transition: color 0.2s;
}

.index a:hover {
   color: inherit;
}

.index h2, .index h3 {
   margin: 0;
   font-weight: 400;
   color: #000;
}

.thumbs {
   display: flex;
   justify-content: center;
}

.thumbs figure {
   margin: 0;
   text-align: center;
}

.thumbs img {
   max-width: 100%;
   height: auto;
   border-radius: 8px;
   box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* small bio image on bio page */
/* small bio image on bio page (left aligned) */
#leftpic, #rightpic {
   float: left;
   margin: 0 1rem 1rem 0;
   max-width: 160px;
}
#leftpic img, #rightpic img {
   display: block;
   width: 100%;
   height: auto;
   border-radius: 6px;
   box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

@media (max-width: 700px) {
   #leftpic, #rightpic {
      float: none;
      margin: 0 0 1rem 0;
      max-width: 120px;
      text-align: center;
   }
}

.thumbs figcaption {
   font-size: 1rem;
   color: #444;
   margin-top: 0.5rem;
}

/* resource-grid rules are defined earlier (kept singular) */

/* Visible captions under thumbnails */
.resource-grid .caption,
.articlesub .caption {
   display: block;
   margin-top: 0.35rem;
   font-size: 0.95rem;
   color: #444;
}


.fb {
   display: flex;
   justify-content: center;
   margin-top: 1rem;
}

footer {
   text-align: center;
   font-size: 0.95rem;
   color: #444;
   margin-top: 2rem;
   padding-top: 1rem;
   border-top: 1px solid #eee;
}

@media (max-width: 600px) {
   .wrapper {
      padding: 0.5rem;
   }
   header h1 {
      font-size: 2rem;
   }
   .index h2, .index h3 {
      font-size: 1.1rem;
   }
}

/* Consent banner styles */
#bb-consent {
   position: fixed;
   left: 1rem;
   right: 1rem;
   bottom: 1rem;
   background: rgba(255,255,255,0.96);
   border-radius: 8px;
   box-shadow: 0 6px 24px rgba(0,0,0,0.12);
   z-index: 9999;
   padding: 0.6rem;
   transition: transform 0.25s ease, opacity 0.25s ease;
}
#bb-consent.bb-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
#bb-consent .bb-consent-inner { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
#bb-consent p { margin: 0; font-size: 0.95rem; color: #222; }
.bb-consent-actions { display:flex; gap:0.5rem; }
.bb-btn { padding: 0.45rem 0.75rem; border-radius:6px; border:1px solid #d0d0d0; background:#fff; cursor:pointer; font-size:0.95rem; }
.bb-accept { background: #256029; color: #fff; border-color: #1f4d20; }
.bb-decline { background: transparent; color: #333; }

/* Manage privacy link in footer */
footer .bb-manage { margin-left: 1rem; font-size: 0.95rem; color: #256029; text-decoration: underline; cursor: pointer; }

/* Consent state indicator in footer */
.bb-consent-state {
   margin-left: 0.6rem;
   font-size: 0.85rem;
   color: #666;
   background: rgba(37,96,41,0.06);
   padding: 0.15rem 0.45rem;
   border-radius: 6px;
   border: 1px solid rgba(0,0,0,0.04);
}

.bb-consent-state.granted { color: #fff; background: #256029; border-color: #1f4d20; }
.bb-consent-state.denied { color: #7a5c1e; background: rgba(250,240,210,0.6); }

.bb-consent-state { cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.bb-consent-state:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.06); }

/* small info icon inside consent state */
.bb-consent-icon {
   display: inline-block;
   width: 1.1em;
   height: 1.1em;
   line-height: 1.1em;
   text-align: center;
   border-radius: 50%;
   background: rgba(0,0,0,0.04);
   color: #256029;
   font-size: 0.75em;
   margin-right: 0.35rem;
   vertical-align: middle;
}

/* make focus visible when keyboard navigated */
.bb-consent-state:focus { outline: 3px solid rgba(37,96,41,0.18); outline-offset: 3px; }

/* Etsyshop page-specific styles */
.etsy-shop { text-align: center; }
.etsy-shop .etsy-thumb {
   max-width: 480px;
   width: 80%;
   height: auto;
   display: block;
   margin: 0.6rem auto;
   border-radius: 8px;
   box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

@media (max-width: 700px) {
   .etsy-shop .etsy-thumb { width: 92%; max-width: 360px; }
}

/* social media GIFs on links page */
.socmed { display:inline-block; margin:0.5rem; text-align:center; }
.socmed img { max-width:220px; height:auto; display:block; border-radius:6px; box-shadow:0 2px 6px rgba(0,0,0,0.08); }
.socmed figcaption, .socmed .caption { font-size:0.9rem; color:#444; margin-top:0.4rem; }

@media (max-width:700px){
   .socmed { width:45%; display:inline-block; }
   .socmed img { max-width:100%; }
}

/* Screen-reader only (visually hidden but accessible) */
.sr-only {
   position: absolute !important;
   width: 1px !important;
   height: 1px !important;
   padding: 0 !important;
   margin: -1px !important;
   overflow: hidden !important;
   clip: rect(0 0 0 0) !important;
   white-space: nowrap !important;
   border: 0 !important;
}

.calendar-month .calendar-grid-wrap { border-radius: 8px; display: flex; flex-direction: column; }
/* Header row stays fixed; grid body scrolls */
.calendar-grid-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 8px; background: transparent; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 8px; background: transparent; }
.calendar-grid-body { max-height: 60vh; overflow: auto; padding: 8px; }
.calendar-grid-head .cal-head { font-weight: 600; text-align: center; padding: 6px 4px; color: #3b5b3b; position: sticky; top: 0; background: rgba(255,255,255,0.95); z-index: 2; }
.calendar-grid .day { background: rgba(255,255,255,0.9); min-height: 90px; border-radius: 6px; padding: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); display:flex; flex-direction:column; }
.calendar-grid .day.empty { background: transparent; box-shadow: none; }
.day-number { font-weight: 600; color:#274a28; margin-bottom: 6px; }
.day-events { overflow: auto; flex:1 1 auto; display:flex; flex-direction:column; gap:4px; }
.day-ev { display:flex; justify-content:space-between; gap:0.5rem; align-items:center; }
.ev-title { font-size:0.92rem; color:#1f3b20; }
.ev-time { font-size:0.85rem; color:#666; margin-left:0.4rem; }
.more { font-size:0.85rem; color:#666; text-align:center; padding-top:4px; }

@media (max-width:700px){
   .calendar-grid { gap:6px; }
   .calendar-grid .day { min-height:80px; padding:6px; }
}




