/* --- is used in index.html, eco_illum.html, workshops.html -->
/* ----------------------------------
   ✨ RESET & GLOBAL FOUNDATION
---------------------------------- */
/* --- Dark Mode Variables (Ensure these are at the top of your CSS) --- */
:root {
  --card-bg: #fcfcfc;
  --text-main: #333;
}

body.dark-mode {
  --card-bg: #1a1a1a; /* Fixes the white bar issue for diagrams in Dark Mode */
  --text-main: #f0f0f0;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #ffffff;
  font-family: 'Arial', Helvetica, sans-serif;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Force content to spread to edge and kill horizontal white bars */
.main {
  flex: 1;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

section {
  width: 100%;
  max-width: 100% !important;
  padding: 4rem 5%;
  box-sizing: border-box;
}

/* ----------------------------------
   🎨 TYPOGRAPHY & BRANDING & HERO-TEXT
---------------------------------- */
.site-title, h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

h2 { font-size: 2rem; margin-bottom: 1rem; color: #222; border-bottom: 3px solid #f6a21d;
  padding-bottom: 0.5rem;}

h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: #444; }

.highlight-subtitle {
  font-style: italic;
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #C66A53;
  margin-bottom: 2rem;
  padding-left: 1rem;
}
/* used on Index.html, and workshop.html: project-banner-not*/
.project-banner-note {
  max-width: 850px;
  margin: 2rem 0;          /* Matches your left-aligned flow */
  padding: 1.5rem;
  background-color: #fdf7f2; /* Subtle peach/warm tint */
  border-left: 4px solid #C66A53; /* Brand accent color */
  border-radius: 4px;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #444;
  text-align: left !important;
  width: 100%;
  overflow: hidden; /* Prevents anything from sticking out */
  box-sizing: border-box; /* Ensures padding doesn't add to the width */
}

.project-banner-note em {
  font-weight: 600;
  color: #222;
}

/* This tells the image to never be wider than the 850px container */
.project-banner-note img {
  max-width: 95%;
  height: auto;
  display: block;
  margin: 1.5rem 0; /* Adds space between the text and the image */
  border-radius: 4px; /* Optional: matches your container's corners */
}

/* Used on Practices.html: 🧠 The Philosophy, etc. */
.pillar-header {
  text-align: center;
  margin: 4rem 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #ccc;
  text-transform: uppercase;
  color: #333;
}

/* Global Paragraph Left-Alignment */
p { 
  margin-bottom: 1rem; 
  max-width: 800px; 
  text-align: left !important; /* Forces left alignment for all descriptions */
  line-height: 1.6;
}

/* Hero Banner Styles , used in workshop.html */
/* .hero-banner {
  background: linear-gradient(rgba(253, 247, 242, 0.9), rgba(253, 247, 242, 0.95)), url('../images/hero-artjam.jpg') center/cover no-repeat;
  padding: 5rem 2rem;
  text-align: center;
} */

/* Enhanced Hero for Art Jams & Studio Services (workshop.html)*/
.hero-banner {
    background-attachment: fixed; /* Reuses your banner image with a parallax effect */
    background-position: center;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
  font-size: 1.5rem;
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
  font-weight: 500;
  color: #222;
}

/* --- Workshop Hero Styling --- */
.workshop-hero-bg {
  /* Move the inline linear-gradient and URL here */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                    url('../rss/AnnReflectionBannerforLetter_clear.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff; /* Ensures text is white against the dark overlay */
  min-height: 50vh;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Adds readability */
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center !important; /* Center the hero subtext */
}

/* ----------------------------------
   🌐 NAVIGATION & DROPDOWN (UI Element Group 1)
---------------------------------- */
.topnav {
  overflow: hidden;
  background-color: #333;
  display: flex;        /* Align items in a row */
  align-items: center;  /* Vertically center everything */
  flex-wrap: wrap;      /* Allow wrapping on small screens */
}

/* Ensure the topnav mobile icon stays on the right */
.topnav .icon {
  margin-left: auto;
}

.topnav a {
  float: none;          /* Changed from float:left to flex-flow */
  color: #f2f2f2;
  padding: 14px 16px;
  text-decoration: none;
}

.topnav a.active { background-color: #C66A53; }


/* Ensure the button is visible by default on Desktop */
/* Small square toggle buttons in nav */
.topnav .button-ghost {
  justify-content: center;
  align-items: center;
  width: 38px;          /* Small square shape */
  height: 38px;
  min-width: 38px;
  padding: 0;
  margin: 0 5px;
  font-size: 1.1rem;
  align-self: center;
  flex: 0 0 auto;       /* Prevents stretching */
}



.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown:hover .dropdown-content { display: block; }

/* ----------------------------------
   📱 ACCORDION (Light Mode Foundation)
---------------------------------- */
.accordion-container {
  width: 100%;
  margin: 2rem 0;
}

.accordion-toggle {
  background-color: #eee;
  color: #333;
  cursor: pointer;
  padding: 1rem;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: background-color 0.3s ease;
}

.accordion-toggle:hover {
  background-color: #ddd;
}

.accordion-content {
  padding: 0 1rem; /* Reduced padding when closed */
  background-color: #fafafa;
  border-left: 4px solid #4caf50;
  border-radius: 6px;
  display: block; /* MUST be block for height calc to work */
  max-height: 0;
  overflow: hidden;
  margin-bottom: 0;
  /*--- margin-top: 1rem; --*/
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: max-height 0.5s ease, padding 0.5s ease, margin 0.5s ease;
  clear: both;
}

/* an active class for padding when open */
.accordion-toggle.active + .accordion-content {
  padding: 1rem;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

/* ----------------------------------
   🖼️ FIGURES, PARALLAX, BIO-FIGURE WRAPPER, IMAGE BLOCKS & GALLERIES (2x2 Grid)
---------------------------------- */
figure { margin: 1.5rem 0; }

figcaption {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;
}

/* Specific fix for bio-figure and figure-block */
.figure-block, .bio-block {
margin: 0 auto;
  text-align: center;
  max-width: 1000px; /* Responsive container */
  width: 100%;
  overflow: hidden;
}

.figure-block img, .bio-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Fixed .wide-figure Class --- */
.wide-figure {
    grid-column: 1 / -1; 
    margin: 2rem auto;
    text-align: center;
    max-width: 100%;
}

.wide-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    /* Added handling for the Feminist Dragon Boats inline background */
    background-color: #f0f0f0; 
}

.rabbit-figure { text-align: left; }

.banner-wrapper {
  width: 100%;
  text-align: center;
  padding: 1rem 0;
}

/* (2x2 Desktop / 1 Col Mobile) for Evidence/Gallery sections */
/* --- Consolidating Gallery Grids --- */
.evidence-grid, .lightbox-gallery {
    display: grid;
    /* This replaces the fixed '2' with a responsive minimum of 350px */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}



.gallery-item {
  display: flex;             /* Centers image vertically and horizontally */
  align-items: center;
  justify-content: center;
  height: 350px;             /* Set a consistent container height */
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;       /* Fills empty space in light mode */
  transition: transform 0.3s ease, background-color 0.3s ease;
  margin-bottom: 1rem;
}

.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;      /* Prevents stretching to width */
  height: auto;     /* Prevents stretching to height */
  object-fit: contain; /* Shows full image without cropping */
    display: block;
}

/* Ensure the container is stable */
.gallery-item {
  height: 350px; /* Consistent height for the 'mold' */
  overflow: hidden;
  background-color: #f9f9f9; /* Fills gaps if you use 'contain' */
}

/* --- Updated Slider: "Binds" images to the card --- */
/* --- Making the Slider Obvious --- */
.gallery-item-slider {
    display: flex;
    overflow-x: auto; /* Allows horizontal scrolling if multiple images */
    overflow-y: hidden; /* Fixes the vertical "spilling out" issue */
    scroll-snap-type: x mandatory;
    gap: 10px;
    cursor: grab;
    
    /* CRITICAL FIXES BELOW */
    height: 320px; /* Sets a standard height for all card images */
    width: 100%;   /* Ensures it fills the card width */
    /* border-radius: 8px 8px 0 0; /* Clips image corners to match card top */
   border-radius: 8px 8px 8px 8px; /* Rounded all around for a card-within-a-card look */

   padding-bottom: 15px; /* Space for the scrollbar */
   scrollbar-width: thin; /* For Firefox */
   scrollbar-color: #C66A53 #f0f0f0; /* Handle and Track colors */

}

/* Custom Scrollbar: A tactile 'handle' in your brand color */
/* Custom Scrollbar for Chrome, Safari, and Edge */
.gallery-item-slider::-webkit-scrollbar {
  height: 8px;
}

.gallery-item-slider::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.gallery-item-slider::-webkit-scrollbar-thumb {
  background-color: #C66A53; /* Your brand accent color */
  border-radius: 10px;
  border: 2px solid #f0f0f0;
}

/* Hover effect to signal interactivity */
.gallery-item-slider:hover {
  cursor: grab;
  box-shadow: inset 0 0 10px rgba(198, 106, 83, 0.1);
  transform: scale(1.01); /* Subtle tactile feedback on hover */
}

.gallery-item-slider:active {
  cursor: grabbing;
}

/* --- Binding the Image to the Card --- */
/* Ensure the wrapper fills the 300px container */
.slider-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
}

gallery-item-slider img, 
.slider-wrapper img {
    /* MODIFIED: Changed from 100% to 92% to let the next image 'peek' in */
    flex: 0 0 92%; 
    
    /* MODIFIED: Alignment changed to center so the 'peek' gaps are even */
    scroll-snap-align: center; 

    /* KEEP THESE: They maintain the 'bound' structure you worked on */
    width: 100%;          /* Forces horizontal bound */
    height: 300px;        /* Forces vertical bound */
    object-fit: cover;    /* Crops the 'Specimen' to fit the 'Slide' */
    display: block;
    border-radius: 8px 8px 0 0;  /* Matches card corners */
    margin-right: 10px; /* Adds a physical gap between images */
}

/* --- Square Archive Binding --- */
#archive .gallery-item-slider {
    height: auto; /* Let the height be determined by the square ratio */
    padding-bottom: 20px;
}

#archive .slider-wrapper img, 
#archive .gallery-item-slider img {
    flex: 0 0 85%; /* Slightly smaller 'peek' to keep the square shape prominent */
    height: auto; 
    aspect-ratio: 1 / 1; /* Forces the image to stay a perfect square */
    object-fit: contain; /* Shows the WHOLE image without trimming */
    background-color: #f9f9f9; /* Adds a clean background for non-square edge cases */
    border: 1px solid #eee;
    border-radius: 8px;
}

/* --- Lightbox (for technical detail) & Zoom Styling --- */
.lightbox-trigger {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.zoom-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px;
  border-radius: 50%;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-trigger:hover .zoom-icon {
  opacity: 1;
}

/* Ensure images within the link still follow square archive rules */
#archive .lightbox-trigger img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    width: 100%;
    height: auto;
}

/* btn */

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  cursor: pointer;
  border-radius: 4px;
}

.filter-btn.active {
  background-color: #C66A53;
  color: white;
}

.parallax-banner {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  max-width: 1000px;
}

.parallax-banner img {
  width: 100%;
  height: auto;
  will-change: transform;
  transform: translateY(0);
  transition: transform 0.2s ease-out;
}

/* JavaScript trigger class */
.parallax-scrolled .parallax-banner img {
  transform: translateY(-15px);
}

/* ----------------------------------
   🧱 CONTAINERS & SCROLL, BOXES, PROJECTS, GRID & SUBSTACK
---------------------------------- */
/* scrol-container on index.htnl */
.scroll-container {
  background-color: #333;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
}

.scroll-container img { height: 300px; margin-right: 10px; border-radius: 8px; }

/* Unified Card logic for all toggleable containers */
/* project, project-card on index.html */
/* method-card, easy-read-box, collab-card, support item on practice.html */
.project, .project-card, .method-card, .easy-read-box, .collab-card, .support-item, .substack-box {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

/* --- Featured Card Modifier -used for workshop.html -- */
.featured-card {
  border: 2px solid #f6a21d; /* Matches your glow color */
  box-shadow: 0 0 15px 2px rgba(246, 162, 29, 0.4); /* Your existing glow effect */
  transform: scale(1.02); /* Makes it slightly larger to stand out */
  position: relative;
  z-index: 1; /* Ensures the glow appears above other cards */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px 4px rgba(246, 162, 29, 0.6);
}

/* Optional: Add a "Featured" badge inside the card */
.featured-card::before {
  content: "⭐ FEATURED";
  position: absolute;
  top: -12px;
  right: 20px;
  background: #C66A53;
  color: white;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 4px;
}

/* project grid is on index.html */
/* -----
   🧱 PROJECT GRID 
---- */
/* Standard 2-Column Grid for Art Projects */
.project-grid {
  display: grid;
  /* Creates exactly 2 equal columns on large screens */
  grid-template-columns: repeat(2, 1fr); 
  gap: 2rem;
  margin: 2rem 0;
  width: 100%; /* Ensures it doesn't overflow or stay too narrow */
}

/* AI Portfolio Override: 1 Column for Wide Technical Images */
.single-col-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2.5rem;
  max-width: 900px; 
  margin: 0 auto;
}

/* Ensure the cards inside look consistent */
.project-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

/* --- 🖼️ IMAGE HANDLING --- */

/* Artistic Photos: Uniform Crop */
.project-card figure img {
  width: 100%;
  height: 280px; 
  object-fit: cover; 
  border-radius: 8px;
  display: block;
}

/* AI & Technical Diagrams: No Cropping */
.single-col-grid .project figure img {
  height: auto; 
  max-height: 500px;
  object-fit: contain; 
  background: #fdfdfd;
  border: 1px solid #eee;
}

/* evidence-grid , support-grid, substack-box on practice.html */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}



/* --- Technical Foundation Grid used on workshop--- */
// befire jan 17
#technical-foundations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Automatically stacks when narrow */
  gap: 2rem;
  padding: 4rem 5%;
} 

/* --- Refined Technical Card Styles --- */
/* befire jan 17
.technical-card {
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
  border-top: 5px solid #C66A53; /* Added your brand accent color top border */
  height: 100%;
}*/

/* --- Technical Foundation Grid: Fixed 3-Column Desktop Start --- */
.technical-grid {
  display: grid;
  /* Forces a 3-column start on desktop, then scales down */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}


/* --- Technical Grid: 2-Column Desktop Start --- */
/* revert back 
.technical-grid {
  display: grid;
  /* Increased minimum width to 450px to ensure a 2-column start on desktop */
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
  gap: 2.5rem;
  margin-top: 2rem;
  width: 100%;
}
*/
/* --- Keep these Refined Technical Card Styles --- */
/*
.technical-card {
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
  //This orange top-border distinguishes your "Science" from your "Gallery"
  border-top: 5px solid #C66A53; 
  height: 100%;
  transition: transform 0.3s ease;
}
*/
/* --- Improved Technical Card Image Handling with Dark Mode Support --- */
 /* Ensure the diagrams inside are fully visible (Scientific Accuracy) */
.technical-card .gallery-item-slider img {
  width: 100%;
  height: 250px;
  object-fit: contain; /* Ensures technical diagrams like the 5 joints are not cropped */
  
  /* Replaces hardcoded white with a variable that changes in Dark Mode */
  background-color: var(--card-bg, #fcfcfc); 
  padding: 20px; /* Padding around technical drawings */
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* Slider Nav Fix: Ensures buttons are clickable */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none; /* Allows clicking through the container */
}
.slider-nav button {
  pointer-events: auto; /* Makes only the buttons clickable */
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}

.technical-card .card-text {
  padding: 1.5rem 0;
}

.technical-card h3 {
  font-family: 'Arial', sans-serif;
  color: #222;
  margin-bottom: 0.5rem;
}

.technical-card strong {
  color: #C66A53;
}

/* Ensure images within these grids maintain their integrity */
.evidence-grid .project-card img, 
.lightbox-gallery img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

/* --- Updated Gallery Item Handling --- */
.gallery-item img {
  width: 100%;
  height: 100%; /* Fill the container height you defined (350px) */
  display: block;
  
  /* OPTION A: Artistic Uniformity (Crops slightly to fill the box) */
  object-fit: cover; 
  
  /* OPTION B: Scientific Accuracy (Shows whole image, may leave gaps) */
  /* object-fit: contain; */ 
  
  transition: transform 0.3s ease;
}

/* Fix for technical images to ensure they don't overflow */
.technical-card .gallery-item-slider img {
  width: 100%;
  height: 250px;
  object-fit: contain; /* Shows technical diagrams without cropping */
  background: #eee;
  border-radius: 4px;
}

/* dev-access-grid used on workshop.htnml */
.dev-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
/* substack-box is removed, as i move to grid and card system.
.substack-box {
  background: #fffafa;
  border-color: #ffe4e1;
  text-align: center;
} */
.status-badge-live {
  background: #C66A53;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
}


 /* Container for the material science sections */
#material-resistance {
  padding: 3rem 0;
}

/* Micro-chapter headers for a timeline feel */
.micro-chapter h3 {
  border-left: 4px solid #C66A53;
  padding-left: 1rem;
  color: #C66A53;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
}

/* Specific styling for the Large-Scale Build section */
.solo-builds-highlight {
  background: rgba(198, 106, 83, 0.03);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
}

/* The Stress-Test Cards */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.geo-card {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-top: 4px solid #C66A53;
  transition: transform 0.3s ease;
}

.target-site {
  border-top: 4px solid #f6a21d; /* Burnaby target gets a 'warning' yellow/orange */
  background: rgba(246, 162, 29, 0.05);
}
/* --
   🧱 Support Grid & Items
--- */
.support-grid {
    display: grid;
    /* Responsive: fits as many 250px columns as possible, then stacks */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 1.5rem;
    margin: 2rem 0;
}

.support-item {
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: left; /* Aligns description text to the left */
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

/* Ensure the emoji/icon remains centered or distinct */
.support-item div {
    text-align: center; 
    margin-bottom: 1rem;
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #f9f9f9;
}
/* ----------------------------------
   UI Elements Group 2 (BUTTONS & GLOWS, registration box)
---------------------------------- */
/* --- Improved Button Sizing (Prevent Full Width) --- */
/* before jan 17 
.cta, .button, .button-ghost {
  height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-self: flex-start;
  position: static; /* Ensure they stay in normal flow 
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  clear: both;
}  */

.cta, .button, .button-ghost {
  height: 48px;
  padding: 0 24px;
  display: inline-flex; /* Changed from block to inline-flex */
  align-items: center;
  justify-content: center;
  width: auto;          /* Explicitly fit content */
  max-width: fit-content;
  align-self: flex-start;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.cta { background-color: #f6a21d; color: #fff; }
.button { background-color: #333; color: #fff; }
.button-ghost { border: 2px solid #4caf50; color: #4caf50; }

.glow { box-shadow: 0 0 12px 2px rgba(246, 162, 29, 0.6); }
.glow-ink { box-shadow: 0 0 10px 1px rgba(50, 50, 50, 0.5); }
.glow-green { box-shadow: 0 0 12px 2px rgba(76, 175, 80, 0.6); }

/* Specific fix for Green Glow buttons to match "Reflections" button behavior */
.button-ghost.glow-green {
  border: 2px solid #4caf50;
  color: #4caf50;
  background-color: transparent;
}

/* Specific styling for the 24-person limit box */
.registration-box {
    border: 2px dashed var(--accent-color, #C66A53); /* Reuses your theme's orange */
    padding: 1.5rem;
    margin: 1rem 0;
}

/* --- 2. Registration & Event Layouts --- */
.event-details-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1rem 0;
  font-weight: bold;
}

/* ----------------------------------
   🌐 UI ELEMENTS Group 3 (Icons, Footer)
---------------------------------- */

.icon-bar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px; /* Slight spacing for touch targets */
}

.button-ghost, .icon-bar button {
  background-color: #444;
  color: white;
  border: none;
  font-size: 18px;
  padding: 10px;
  cursor: pointer;
  display: block;
  width: 100%;
  transition: transform 0.3s ease;
}

/* Ensure keyboard users see where they are focusing */
.icon-bar a:focus, 
.icon-bar button:focus {
  outline: 3px solid #f6a21d; /* High contrast orange for focus */
  outline-offset: 2px;
}

/* Base style for the icon links */
/* before Jan 17
.icon-bar a {
  display: block;
  text-align: center;
  padding: 7px;
  font-size: 14px;
  background-color: inherit; /* fallback 
  background-color: #ddd;
  color: #222;
  box-sizing: border-box;
  transition: all 0.3s ease;
} */

.icon-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #ddd;
  color: #222;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 4px; /* Makes them distinct squares */
}

/* 
.icon-bar a.instagram,
.icon-bar a.facebook,
.icon-bar a.twitter,
.icon-bar a.linkedin,
.icon-bar a.youtube,
.icon-bar a.substack {
  color: white;
}*/

.icon-bar a.beacons {
  background-color: #C66A53; /* Using your brand accent color */
  color: white;
}
.icon-bar .toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Tooltip behavior: While aria-label is for screen readers, 
   the 'title' attribute provides a visual hover hint for sighted users. *
/* before Jan 17
.icon-bar a:hover {
  background-color: #fff;
  color: #fff;
} */

.icon-bar a:hover {
  background-color: #333;
  color: #fff;
}

/* Ensure the button matches the square link style */
#darkModeToggleIconBar.button-ghost {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: #444;
  cursor: pointer;
}

footer, .flex-container2 {
  width: 100% !important;
  background-color: #333 !important;
  color: white;
}

/* ----------------------------------
   ☕ Ko-fi Widget Positioning & Layering
---------------------------------- */
#kofi-widget-overlay {
  z-index: 999 !important; /* One layer below your icon-bar (1000) */
  bottom: 20px !important;
  right: 70px !important;  /* Moves it left of the narrow icon-bar */
  transition: all 0.3s ease;
}

/* Adjust Ko-fi for mobile so it doesn't crowd the screen */
@media screen and (max-width: 480px) {
  #kofi-widget-overlay {
    right: auto !important;
    left: 20px !important; /* Move to the opposite side on small phones */
    bottom: 15px !important;
  }
}

/* ----------------------------------
   🌓 ULTIMATE DARK MODE OVERRIDES
---------------------------------- */
body.dark-mode, html.dark-mode {
  background-color: #121212 !important;
}



/* before Jan 17
body.dark-mode .button-ghost {
  background-color: #222 !important; 
  color: #81c784 !important;
} */

remove the !important background-colors to let the base styles shine */
body.dark-mode .button-ghost {
  border-color: #81c784;
  color: #81c784;
}

body.dark-mode .button-ghost:hover {
  background-color: #2e7d32;
  color: #fff;
}


body.dark-mode a {
  color: #9cdcfe !important; /* Soft, bright sky blue for high readability */
  text-decoration-color: rgba(156, 220, 254, 0.4);
  transition: color 0.2s ease;
}

body.dark-mode a:hover {
  color: #ffffff !important; /* Pure white on hover */
  text-decoration: underline;
}
/* Global Background Cleansing */
body.dark-mode .main, 
body.dark-mode section, 
body.dark-mode .banner-wrapper,
body.dark-mode .gallery-item,
body.dark-mode .wide-figure img {
  background-color: #121212 !important;
  background: #121212 !important;
}

/* Dark Mode adjustment for gallery gaps */
body.dark-mode .gallery-item {
  background: #000000 !important; /* Black background for empty space in dark mode */
  border-color: #333;
}

/* Toggleable Box, Card, Grid (Includes Project, Substack, etc.) */
body.dark-mode .project, 
body.dark-mode .project-card, 
body.dark-mode .method-card, 
body.dark-mode .easy-read-box,
body.dark-mode .collab-card,
body.dark-mode .support-item,
body.dark-mode .filter-btn {
  background-color: #1a1a1a !important;
  border-color: #333 !important;
  color: #ffffff !important;
}

/* Text Responsiveness - Fixing Eco-Illum & Practices titles , Philosophy, Site Titles, etc*/
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, 

body.dark-mode .hero-text, 

body.dark-mode .site-title, 
body.dark-mode .pillar-header,
body.dark-mode .highlight-subtitle {
  color: #ffffff !important;
}

/* Dark Mode Override for Banner Note */
body.dark-mode .project-banner-note {
  background-color: #1e1a18 !important; /* Dark warm tint */
  border-left-color: #f6a21d !important; /* Brighter accent */
  color: #f0f0f0 !important;
}

body.dark-mode .project-banner-note em {
  color: #ffffff !important;
}

body.dark-mode .hero-banner {
  background: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.95)), url('../images/hero-artjam.jpg') center/cover no-repeat;
  color: #ffffff;
}

body.dark-mode .highlight-subtitle { color: #f6d1b6 !important; }

/* High Contrast Text Fix for Eco-materials paragraphs */
body.dark-mode p, body.dark-mode li {
  color: #f0f0f0 !important; /* Brighter for dark backgrounds */
}

body.dark-mode figcaption { color: #f0f0f0 !important; }

/* Gardner Video Credit Inline Override */
body.dark-mode .dark-mode-text {
  background-color: #1a1a1a !important;
  color: #bbbbbb !important;
  border-left-color: #444 !important;
}

/* UI Elements Darkening */
body.dark-mode .topnav, body.dark-mode .dropdown-content, body.dark-mode footer, body.dark-mode .flex-container2 {
  background-color: #111 !important;
  color: #ddd !important;
  border: 1px solid #333;
}

body.dark-mode .icon-bar a {
  background-color: #222 !important;
  color: #ddd !important;
  border: 1px solid #333;
}



body.dark-mode .icon-bar a:hover {
  background-color: #000000 !important; /* True black background */
  color: #ffffff !important;            /* Pure white icons */
  transform: translateX(-1px);
  border-color: #4caf50 !important;    /* Green accent border on hover */
}

/* Specific Dark Mode Button Override (Darker Green) */
body.dark-mode .button-ghost {
  background-color: #222 !important; /* Dark Forest Green #1b3d21 */
  color: #81c784 !important;            /* Softer Light Green text */
  border-color: #2e7d32 !important;     /* Deep Green Border */
}

/* Darker Green Glow for Dark Mode */
body.dark-mode .glow-green {
  box-shadow: 0 0 15px 3px rgba(27, 61, 33, 0.8) !important; /* Deeper Green Glow */
}

body.dark-mode .button-ghost:hover {
  background-color: #2e7d32 !important; /* Brighter forest green */
  color: #ffffff !important;           /* High contrast text */
  transform: scale(1.05);
}

/* --- ACCORDION DARK MODE (NEW) --- */
body.dark-mode .accordion-toggle {
  background-color: #1e1e1e;
  color: #f0f0f0;
  padding: 1rem;
  width: 100%;
  text-align: left;
  border: none;
  font-weight: 600;
  border-radius: 6px;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
body.dark-mode .accordion-toggle:hover { background-color: #333; }

body.dark-mode .accordion-content {
  padding: 1rem;
  background-color: #121212;
  color: #f0f0f0;
  border-left: 4px solid #ffd166;
  border-radius: 0 0 6px 6px;
  display: none;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  clear: both;
}
body.dark-mode .accordion-content figcaption { color: #ccc; text-align: center; }

/* 🌓 Dark Mode Sync for Projects */
body.dark-mode .project-card {
  background-color: #1a1a1a !important;
  border-color: #333 !important;
  color: #ffffff !important;
}

/* Dark Mode adjustment for Featured Cards */
body.dark-mode .featured-card {
  background-color: #1a1a1a !important;
  box-shadow: 0 0 20px 3px rgba(246, 162, 29, 0.6) !important;
  border-color: #ffd166 !important;
}

 /* Dark Mode adjustment for square archive */
body.dark-mode #archive .gallery-item-slider img {
    background-color: #1a1a1a;
    border-color: #333;
}

/* 🌓 Dark Mode Sync for Support Items */
body.dark-mode .support-item {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
    color: #f0f0f0 !important;
}

body.dark-mode .support-item:hover {
    background-color: #222 !important;
}

/* Dark Mode Override for high visibility */
body.dark-mode .project-card a,
body.dark-mode .project-banner-note a,
body.dark-mode .support-item a,
body.dark-mode .support-item strong,
body.dark-mode .support-item p {
  color: #f0f0f0 !important; /* High contrast white for text */
}

/* --- Dark Mode for Technical Cards --- */
body.dark-mode .technical-card {
  background-color: #1a1a1a !important;
  border-top-color: #f6a21d; /* Brighter orange for dark mode */
}

/* Dark Mode Adjustment */
body.dark-mode .workshop-hero-bg {
  /* Slightly darker overlay for dark mode to blend with the rest of the site */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), 
                    url('../rss/AnnReflectionBannerforLetter_clear.png');
}

body.dark-mode .support-item a {
  color: #f6a21d !important; /* Bright Gold for the actual clickable links */
  text-decoration-color: #f6a21d;
}

body.dark-mode .support-item a:hover {
  color: #ffffff !important;
  text-decoration: underline double;
}
/* ----------------------------------
   📱 RESPONSIVE MEDIA QUERIES
---------------------------------- */
@media screen and (max-width: 768px) {
  section { padding: 3rem 5%; }

  .topnav .button-ghost { display: none !important; }
  .project-grid {
    grid-template-columns: 1fr; /* Stacks to 1 column on tablets/phones */
  }

   /* --- Mobile Responsiveness (1 Column) --- */
  .project-grid, .single-col-grid {
    grid-template-columns: 1fr !important; /* Forces cards to stack */
    gap: 1.5rem;
  }
                         
  /* Resetting the cards to ensure they don't stretch past the screen */
  .project-card {
    width: 100%;
    margin: 0 0 1rem 0;
    box-sizing: border-box;
  }

/* Standardize images within project cards */
.project-card figure img {
  width: 100%;
  height: 220px;      /* Shorter fixed height for all project images */
  object-fit: cover;  /* This crops the image to fill the space without stretching */
  /* object-fit: position: center; /* Keeps the focus on the middle of the art */
  object-fit: cover;  /* Crops to fit without distortion */
  border-radius: 6px;
  display: block;
}

/* Ensure captions don't push cards out of alignment */
.project-card figcaption {
  min-height: 3em; 
  display: flex;
  align-items: center;
  justify-content: center;
}
                         
  .evidence-grid, .lightbox-gallery {
    grid-template-columns: 1fr; /* Stacks 2x2 to 1 column */
  }
   .hero-text { font-size: 1.2rem; }
  
  .figure-block, .bio-figure {
    padding: 0 10px;
  }
 /* ✅ Parallax Scroll Effect (desktop only) */
 .parallax-banner img {
    will-change: transform;
    transform: translateY(0);
    transition: transform 0.2s ease-out;
  }

  .parallax-scrolled .parallax-banner img {
    transform: translateY(-15px); /* scroll upward subtly */
  }
}

@media screen and (max-width: 480px) {
  section { padding: 2rem 5%; }
  .site-title { font-size: 1.8rem; }
  .flex-container2 { flex-direction: column; text-align: center; }
  .icon-bar { right: 10px; bottom: 10px; }
   .topnav.responsive {
    position: relative;
    flex-direction: column;
   }
   
   .topnav.responsive a,
     .topnav.responsive .button-ghost {
       display: block;
       float: none;
       text-align: left;
       padding: 12px 16px;
   }
   
   .topnav.responsive .icon {
       position: absolute;
       right: 0;
       top: 0;
   }

