/*
Theme Name: 1st Stanmore Scout Group
Theme URI: https://www.1ststanmore.org.uk
Author:
Author URI: https://www.1ststanmore.org.uk
Description: A custom WordPress theme for 1st Stanmore Scout Group. Features include age group sections, news display, call-to-action, and full customization options. Version 1.9.0 improves color contrast for WCAG AA compliance.
Version: 1.9.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: first-stanmore
Tags: scouts, community, responsive, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, performance-optimized, accessibility-ready

This theme, like WordPress, is licensed under the GPL.
*/

/* ==========================================================================
   CSS Variables (Design Tokens)
   ========================================================================== */

:root {
  /* Primary Colors */
  --primary-purple: #7B2D8E;
  --primary-dark: #5A1F6A;
  --primary-light: #9B4DAE;
  
  /* Scout Section Colors - Darkened for better contrast */
  --squirrels-red: #B71C1C;
  --beavers-blue: #0277BD;
  --cubs-green: #1B5E20;
  --scouts-purple: #6A1B9A;
  --explorers-navy: #01579B;
  --network-black: #000000;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --medium-gray: #CCCCCC;
  --dark-gray: #333333;
  --text-color: #333333;
  --text-light: #666666;
  
  /* Accent Colors - Darkened for better contrast */
  --accent-orange: #D84315;
  --accent-orange-hover: #BF360C;
  --accent-orange-light: #FF8C5F;
  --success-green: #28A745;
  --warning-orange: #FFC107;
  --error-red: #DC3545;
  --info-blue: #17A2B8;
  
  /* Typography */
  --font-primary: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-headings: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-color);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 800;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-lg);
  color: var(--dark-gray);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-md);
}

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-2xl);
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-relaxed);
}

li:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Skip Links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: var(--primary-purple);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: var(--font-weight-semibold);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

/* Screen Reader Only Text */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Focus Styles - High Visibility */
*:focus {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

/* Button Focus Styles */
button:focus-visible,
.btn:focus-visible,
a.btn:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.2);
}

/* Link Focus Styles */
a:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Input Focus Styles */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
  border-color: var(--primary-purple);
}

/* Card Focus Styles */
.news-card:focus-within,
.age-group-card:focus-within,
.team-card:focus-within {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
  transform: translateY(-5px);
}

/* Navigation Focus Styles */
.main-navigation a:focus-visible,
.mobile-navigation a:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
  background-color: rgba(255, 107, 53, 0.1);
}

/* Menu Toggle Focus */
.menu-toggle:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
  background-color: rgba(255, 107, 53, 0.1);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  * {
    border-color: currentColor !important;
  }
  
  .btn,
  button {
    border: 2px solid currentColor !important;
  }
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-lg {
  padding: 8rem 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  min-height: 60px;
  gap: var(--space-lg);
}

.site-logo {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.site-logo img,
.custom-logo {
  max-height: 50px;
  width: auto;
  display: block;
}

.custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.site-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-purple);
  margin: 0;
}

/* Header CTA Button */
.header-cta-button {
  display: none;
  padding: 0.625rem 1.5rem;
  font-size: var(--font-size-base);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Navigation */
.main-navigation {
  display: none;
  margin-left: auto;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.main-navigation li {
  margin: 0 calc(var(--space-xl) / 2);
}

.main-navigation li:first-child {
  margin-left: 0;
}

.main-navigation li:last-child {
  margin-right: 0;
}

.main-navigation a {
  color: var(--dark-gray);
  font-weight: var(--font-weight-medium);
  padding: var(--space-sm) 0;
  position: relative;
  display: block;
  text-decoration: none;
  -webkit-transition: color var(--transition-base);
  -o-transition: color var(--transition-base);
  transition: color var(--transition-base);
}

.main-navigation a:hover,
.main-navigation a.current {
  color: var(--primary-purple);
}

.main-navigation a.current::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-purple);
}

/* Dropdown Menu Styles */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  z-index: 1000;
  padding: var(--space-sm) 0;
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
}

.main-navigation li {
  position: relative;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
  display: block;
}

.main-navigation ul ul li {
  margin: 0;
}

.main-navigation ul ul a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--dark-gray);
  white-space: nowrap;
}

.main-navigation ul ul a:hover {
  background-color: var(--light-gray);
  color: var(--primary-purple);
}

.main-navigation ul ul a::after {
  display: none;
}

/* Third level dropdown */
.main-navigation ul ul ul {
  left: 100%;
  top: 0;
  margin-top: 0;
  margin-left: var(--space-xs);
}

/* Dropdown indicator */
.main-navigation .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: var(--space-sm);
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
}

.main-navigation ul ul .menu-item-has-children > a::after {
  border-left: 4px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 0;
  margin-left: auto;
  float: right;
  margin-top: 4px;
}

/* Mobile Navigation - Flat Menu with Depth-Based Indentation */

/* Hide dropdown indicators in mobile menu */
.mobile-navigation .menu-item-has-children > a::after {
  display: none !important;
}

/* Level 1 (child items) - More indentation */
.mobile-navigation li.depth-1 a {
  padding-left: calc(var(--space-xl) + var(--space-md));
  position: relative;
  font-size: var(--font-size-base);
}

.mobile-navigation li.depth-1 a::before {
  content: '→';
  position: absolute;
  left: var(--space-xl);
  color: var(--primary-purple);
  font-weight: bold;
}

/* Level 2 (grandchild items) - Even more indentation */
.mobile-navigation li.depth-2 a {
  padding-left: calc(var(--space-xl) * 2 + var(--space-md));
  position: relative;
  font-size: var(--font-size-base);
}

.mobile-navigation li.depth-2 a::before {
  content: '→→';
  position: absolute;
  left: calc(var(--space-xl) + var(--space-md));
  color: var(--primary-purple);
  font-weight: bold;
  font-size: 0.9em;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--dark-gray);
  transition: all var(--transition-base);
}

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

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

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

/* Mobile Navigation */
.mobile-navigation {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--white);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  z-index: 999;
}

.mobile-navigation.active {
  transform: translateX(0);
}

.mobile-navigation ul {
  list-style: none;
  padding: var(--space-xl);
}

.mobile-navigation li {
  margin-bottom: var(--space-lg);
}

.mobile-navigation a {
  color: var(--dark-gray);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  display: block;
  padding: var(--space-sm) 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* Diagonal Geometric Shapes */
.hero-shape {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.hero-shape-1 {
  top: -15%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: linear-gradient(135deg,
    rgba(123, 45, 142, 0.25) 0%,
    rgba(155, 77, 174, 0.15) 100%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  transform: rotate(-12deg);
}

.hero-shape-2 {
  bottom: -20%;
  left: -15%;
  width: 50%;
  height: 60%;
  background: linear-gradient(45deg,
    rgba(255, 107, 53, 0.12) 0%,
    rgba(255, 140, 95, 0.08) 100%);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
  transform: rotate(8deg);
}

.hero-shape-3 {
  top: 20%;
  right: 15%;
  width: 30%;
  height: 40%;
  background: rgba(155, 77, 174, 0.1);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transform: rotate(45deg);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: var(--space-xl);
}

.hero-title {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: var(--space-lg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 800;
}

.hero-subtitle {
  font-size: var(--font-size-2xl);
  color: var(--white);
  margin-bottom: var(--space-xl);
  font-weight: var(--font-weight-normal);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-purple);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123, 45, 142, 0.3);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
  background-color: var(--primary-purple);
  color: var(--white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-ghost:hover {
  background-color: var(--white);
  color: var(--primary-purple);
}

.btn-accent {
  background-color: var(--accent-orange);
  color: var(--white);
  font-weight: var(--font-weight-bold);
}

.btn-accent:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  color: var(--white);
}

/* ==========================================================================
   Age Groups Section
   ========================================================================== */

.age-groups-section {
  background-color: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.age-groups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.age-group-card {
  background-color: var(--white);
  border: 3px solid var(--medium-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  text-align: center;
  padding: var(--space-2xl);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--dark-gray);
}

.age-group-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-width: 4px;
}

/* Section-specific border colors */
.age-group-card.squirrels { border-color: var(--squirrels-red); }
.age-group-card.beavers { border-color: var(--beavers-blue); }
.age-group-card.cubs { border-color: var(--cubs-green); }
.age-group-card.scouts { border-color: var(--scouts-purple); }
.age-group-card.explorers { border-color: var(--explorers-navy); }
.age-group-card.network { border-color: var(--network-black); }

/* Subtle background tint on hover */
.age-group-card.squirrels:hover { background-color: rgba(183, 28, 28, 0.05); }
.age-group-card.beavers:hover { background-color: rgba(2, 119, 189, 0.05); }
.age-group-card.cubs:hover { background-color: rgba(27, 94, 32, 0.05); }
.age-group-card.scouts:hover { background-color: rgba(106, 27, 154, 0.05); }
.age-group-card.explorers:hover { background-color: rgba(1, 87, 155, 0.05); }
.age-group-card.network:hover { background-color: rgba(0, 0, 0, 0.05); }

.age-group-logo {
  margin-bottom: var(--space-xl);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}

.age-group-logo img {
  max-width: 250px;
  max-height: 80px;
  width: auto;
  height: auto;
  display: block;
}

.age-group-title {
  font-size: var(--font-size-2xl);
  color: var(--dark-gray);
  margin-bottom: var(--space-sm);
}

.age-group-age {
  font-size: var(--font-size-lg);
  color: var(--text-color);
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

.age-group-description {
  font-size: var(--font-size-base);
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.age-group-link {
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

/* Section-specific link colors */
.age-group-card.squirrels .age-group-link { color: var(--squirrels-red); }
.age-group-card.beavers .age-group-link { color: var(--beavers-blue); }
.age-group-card.cubs .age-group-link { color: var(--cubs-green); }
.age-group-card.scouts .age-group-link { color: var(--scouts-purple); }
.age-group-card.explorers .age-group-link { color: var(--explorers-navy); }
.age-group-card.network .age-group-link { color: var(--network-black); }

/* ==========================================================================
   News Section (Homepage)
   ========================================================================== */

.news-section {
  background-color: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.news-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--light-gray);
  transition: all var(--transition-base);
  margin-bottom: var(--space-lg);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.news-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: var(--white);
}

.news-image-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
}

.news-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  display: block;
}

/* Only add padding to actual thumbnail images, not placeholder/solid backgrounds */
.news-image-wrapper .wp-post-image {
  object-fit: contain;
  padding: 0 var(--space-sm);
}

.news-content {
  padding: var(--space-lg) var(--space-lg) var(--space-sm);
}

.news-date {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--space-sm);
  display: block;
}

.news-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-title a {
  color: var(--dark-gray);
  text-decoration: none;
}

.news-title a:hover {
  color: var(--primary-purple);
}

.news-excerpt {
  font-size: var(--font-size-base);
  color: var(--text-light);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  color: var(--primary-purple);
  font-weight: var(--font-weight-semibold);
  display: inline-block;
  margin-bottom: 0;
  text-decoration: none;
}

.news-link:hover {
  text-decoration: underline;
}

.news-content > *:last-child {
  margin-bottom: 0;
}

.view-all-news {
  text-align: center;
}

/* ==========================================================================
   News Archive Page
   ========================================================================== */

.news-archive-page {
  padding: var(--space-4xl) 0;
  background-color: var(--light-gray);
}

.archive-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.archive-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--dark-gray);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.archive-description {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  line-height: var(--line-height-relaxed);
}

/* Year Filter Tabs */
.news-year-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-3xl);
  padding: var(--space-lg);
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.year-filter-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  background-color: rgba(123, 45, 142, 0.08);
  color: var(--primary-purple);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.year-filter-tab:hover {
  background-color: rgba(123, 45, 142, 0.15);
  transform: translateY(-1px);
}

.year-filter-tab.active {
  background-color: var(--primary-purple);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(123, 45, 142, 0.3);
}

/* News Archive Grid */
.news-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: var(--space-3xl);
}

.news-archive-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.news-archive-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background-color: var(--white);
}

.news-archive-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.news-archive-card:hover .news-archive-image-wrapper::after {
  opacity: 1;
}

.news-archive-image-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
}

.news-archive-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--transition-base);
}

/* Only add padding to actual thumbnail images, not placeholder/solid backgrounds */
.news-archive-image-wrapper .wp-post-image {
  object-fit: contain;
  padding: 0 var(--space-md);
}

.news-archive-image-default {
  object-fit: contain;
  padding: var(--space-2xl);
}

.news-archive-card:hover .news-archive-image {
  transform: scale(1.05);
}

/* News Badges */
.news-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.news-badge-new {
  background-color: var(--accent-orange);
  color: var(--white);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Category Badge */
.news-category-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  margin-bottom: var(--space-sm);
  background-color: var(--primary-purple);
  color: var(--white);
}

/* Category-specific colors */
.news-category-badge[data-category*="camp"] {
  background-color: var(--cubs-green);
}

.news-category-badge[data-category*="award"] {
  background-color: var(--primary-purple);
}

.news-category-badge[data-category*="event"] {
  background-color: var(--beavers-blue);
}

.news-category-badge[data-category*="community"] {
  background-color: var(--accent-orange);
}

.news-category-badge[data-category*="fundrais"] {
  background-color: var(--squirrels-red);
}

.news-archive-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-archive-date {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-archive-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.news-archive-title a {
  color: var(--dark-gray);
  text-decoration: none;
}

.news-archive-title a:hover {
  color: var(--primary-purple);
}

.news-archive-excerpt {
  font-size: var(--font-size-base);
  color: var(--text-light);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: var(--line-height-normal);
  flex-grow: 1;
}

.news-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(123, 45, 142, 0.08);
  border-radius: 6px;
  color: var(--primary-purple);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
  align-self: flex-start;
}

.news-archive-link:hover {
  background-color: var(--primary-purple);
  color: var(--white);
  transform: translateX(4px);
}

.news-archive-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.news-archive-link:hover::after {
  transform: translateX(4px);
}

/* No Posts Found */
.no-posts-found {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.no-posts-found p {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  margin-bottom: var(--space-xl);
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
}

.news-pagination .page-numbers {
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--primary-purple);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--primary-purple);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all var(--transition-base);
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
  background-color: var(--primary-purple);
  color: var(--white);
}

.news-pagination .page-numbers.dots {
  border: none;
  background: none;
  color: var(--text-light);
}

/* ==========================================================================
   Team Section
   ========================================================================== */

.team-section {
  padding: var(--space-3xl) 0;
  background-color: var(--light-gray);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1400px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.team-card-image-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  background-color: var(--light-gray);
}

.team-card-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.team-card:hover .team-card-image-wrapper::after {
  opacity: 1;
}

.team-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .team-card-image {
  transform: scale(1.05);
}

.team-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(123, 45, 142, 0.1) 0%, rgba(123, 45, 142, 0.05) 100%);
}

.team-card-image-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--primary-purple);
  opacity: 0.3;
}

.team-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.team-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin: 0;
  line-height: 1.2;
}

.team-card-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-purple);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.team-card-bio {
  font-size: var(--font-size-base);
  color: var(--text-light);
  line-height: var(--line-height-relaxed);
  margin: 0;
  flex-grow: 1;
}

.team-card-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: rgba(123, 45, 142, 0.08);
  color: var(--primary-purple);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: auto;
}

.team-card-email:hover {
  background-color: var(--primary-purple);
  color: var(--white);
  transform: translateY(-1px);
}

.team-card-email svg {
  flex-shrink: 0;
}

/* Team Card Section Colors */
.team-card-squirrels .team-card-role {
  color: #DC5E40;
}

.team-card-squirrels .team-card-email {
  background-color: rgba(220, 94, 64, 0.08);
  color: #DC5E40;
}

.team-card-squirrels .team-card-email:hover {
  background-color: #DC5E40;
  color: var(--white);
}

.team-card-beavers .team-card-role {
  color: #009CDE;
}

.team-card-beavers .team-card-email {
  background-color: rgba(0, 156, 222, 0.08);
  color: #009CDE;
}

.team-card-beavers .team-card-email:hover {
  background-color: #009CDE;
  color: var(--white);
}

.team-card-cubs .team-card-role {
  color: #23A950;
}

.team-card-cubs .team-card-email {
  background-color: rgba(35, 169, 80, 0.08);
  color: #23A950;
}

.team-card-cubs .team-card-email:hover {
  background-color: #23A950;
  color: var(--white);
}

.team-card-scouts .team-card-role {
  color: #004851;
}

.team-card-scouts .team-card-email {
  background-color: rgba(0, 72, 81, 0.08);
  color: #004851;
}

.team-card-scouts .team-card-email:hover {
  background-color: #004851;
  color: var(--white);
}

.team-card-explorers .team-card-role {
  color: #003982;
}

.team-card-explorers .team-card-email {
  background-color: rgba(0, 57, 130, 0.08);
  color: #003982;
}

.team-card-explorers .team-card-email:hover {
  background-color: #003982;
  color: var(--white);
}

.team-card-network .team-card-role {
  color: #7413DC;
}

.team-card-network .team-card-email {
  background-color: rgba(116, 19, 220, 0.08);
  color: #7413DC;
}

.team-card-network .team-card-email:hover {
  background-color: #7413DC;
  color: var(--white);
}

/* Team Card Placeholder Colors by Section */
.team-card-squirrels .team-card-image-placeholder {
  background: linear-gradient(135deg, rgba(220, 94, 64, 0.15) 0%, rgba(220, 94, 64, 0.08) 100%);
}

.team-card-squirrels .team-card-image-placeholder svg {
  color: #DC5E40;
}

.team-card-beavers .team-card-image-placeholder {
  background: linear-gradient(135deg, rgba(0, 156, 222, 0.15) 0%, rgba(0, 156, 222, 0.08) 100%);
}

.team-card-beavers .team-card-image-placeholder svg {
  color: #009CDE;
}

.team-card-cubs .team-card-image-placeholder {
  background: linear-gradient(135deg, rgba(35, 169, 80, 0.15) 0%, rgba(35, 169, 80, 0.08) 100%);
}

.team-card-cubs .team-card-image-placeholder svg {
  color: #23A950;
}

.team-card-scouts .team-card-image-placeholder {
  background: linear-gradient(135deg, rgba(0, 72, 81, 0.15) 0%, rgba(0, 72, 81, 0.08) 100%);
}

.team-card-scouts .team-card-image-placeholder svg {
  color: #004851;
}

.team-card-explorers .team-card-image-placeholder {
  background: linear-gradient(135deg, rgba(0, 57, 130, 0.15) 0%, rgba(0, 57, 130, 0.08) 100%);
}

.team-card-explorers .team-card-image-placeholder svg {
  color: #003982;
}

.team-card-network .team-card-image-placeholder {
  background: linear-gradient(135deg, rgba(116, 19, 220, 0.15) 0%, rgba(116, 19, 220, 0.08) 100%);
}

.team-card-network .team-card-image-placeholder svg {
  color: #7413DC;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */

.gallery-section {
  background-color: var(--light-gray);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}

.view-all-gallery {
  text-align: center;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  background-color: var(--primary-purple);
  color: var(--white);
  text-align: center;
}

.cta-title {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.cta-text {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-widget h3 {
  color: var(--white);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
}

.footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-widget li {
  margin-bottom: var(--space-sm);
}

.footer-widget a {
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  -webkit-transition: opacity var(--transition-base);
  -o-transition: opacity var(--transition-base);
  transition: opacity var(--transition-base);
}

.footer-widget a:hover {
  opacity: 0.8;
  color: var(--white);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.social-link:hover {
  background-color: var(--primary-purple);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ==========================================================================
   Page & Post Templates
   ========================================================================== */

.content-area {
  padding: var(--space-3xl) 0;
}

.entry-header {
  margin-bottom: var(--space-2xl);
}

.entry-title {
  margin-bottom: var(--space-md);
}

.entry-meta {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.entry-content {
  line-height: var(--line-height-relaxed);
}

.entry-content > * {
  margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Contact Form Styles
   ========================================================================== */

.wpcf7-form,
.wpforms-form {
  max-width: 600px;
  margin: 0 auto;
}

.wpcf7-form p,
.wpforms-field {
  margin-bottom: var(--space-lg);
}

.wpcf7-form label,
.wpforms-field-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-medium);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpforms-field input,
.wpforms-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  transition: border-color var(--transition-base);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(123, 45, 142, 0.1);
}

.wpcf7-form textarea,
.wpforms-field textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7-form input[type="submit"],
.wpforms-submit {
  background-color: var(--primary-purple);
  color: var(--white);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
}

.wpcf7-form input[type="submit"]:hover,
.wpforms-submit:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Mobile: Simplify hero shapes */
@media (max-width: 767px) {
  .hero-shape-1 {
    width: 80%;
    height: 60%;
    top: -10%;
    right: -20%;
    opacity: 0.6;
  }
  
  .hero-shape-2 {
    width: 70%;
    height: 50%;
    bottom: -15%;
    left: -20%;
    opacity: 0.5;
  }
  
  .hero-shape-3 {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .container,
  .container-fluid {
    padding: 0 var(--space-2xl);
  }
  
  .header-inner {
    min-height: 80px;
  }
  
  .site-logo {
    flex: 0;
    justify-content: flex-start;
  }
  
  .site-logo img {
    max-height: 50px;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .main-navigation {
    display: flex;
  }
  
  .header-cta-button {
    display: inline-block;
  }
  
  .mobile-navigation {
    display: none;
  }
  
  .hero-title {
    font-size: var(--font-size-5xl);
  }
  
  /* Hero shapes - adjust for tablet */
  .hero-shape-1 {
    width: 55%;
    height: 75%;
  }
  
  .hero-shape-2 {
    width: 45%;
    height: 55%;
  }
  
  .age-groups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .age-groups-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .news-archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-widgets {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   WordPress Block Styles
   ========================================================================== */

/* Separator Block */
.wp-block-separator,
hr {
  border: 0;
  border-top: 2px solid var(--medium-gray);
  margin: var(--space-2xl) 0;
  clear: both;
}

.wp-block-separator.is-style-wide {
  border-top-width: 2px;
}

.wp-block-separator.is-style-dots {
  border: none;
  text-align: center;
  max-width: none;
  line-height: 1;
  height: auto;
}

.wp-block-separator.is-style-dots::before {
  content: "···";
  color: var(--medium-gray);
  font-size: var(--font-size-2xl);
  letter-spacing: 2em;
  padding-left: 2em;
  font-family: serif;
}

/* ==========================================================================
   Posts & Archives
   ========================================================================== */

/* Increase spacing between posts on blog/archive pages */
.site-main article {
  margin-bottom: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  border-bottom: 1px solid var(--light-gray);
}

.site-main article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: var(--primary-purple);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--space-md); }
.mb-1 { margin-bottom: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mb-2 { margin-bottom: var(--space-xl); }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}



/* ==========================================================================
   Lightbox Styles
   ========================================================================== */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 0.7;
}

body.mobile-menu-open {
    overflow: hidden;
}
