:root { 
  --wrap: 980px; 
  --bg: #ffffff; 
  --ink: #333333; 
  --link: #2c5aa0;
  --header-bg: #ffffff;
  --header-border: #e5e5e5;
  --footer-bg: #f8f9fa;
  --footer-border: #e5e5e5;
  --text-color: #333333;
  --nav-color: #333333;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --ink: #e0e0e0;
    --link: #8cc2ff;
    --header-bg: #2a2a2a;
    --header-border: #404040;
    --footer-bg: #2a2a2a;
    --footer-border: #404040;
    --text-color: #e0e0e0;
    --nav-color: #ffffff;
  }
}
* { box-sizing: border-box; }
body { margin:0; font:16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text-color); background: var(--bg); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.site-header { 
  background: var(--header-bg); 
  border-bottom: 1px solid var(--header-border); 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  padding: 1rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header .brand { 
  font-weight: 700; 
  text-decoration: none; 
  color: var(--nav-color); 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  flex-shrink: 0;
}

.site-header .brand .logo { 
  height: 48px; 
  width: auto; 
  flex-shrink: 0; 
}

@media (prefers-color-scheme: dark) {
  .site-header .brand .logo {
    filter: invert(1);
  }
}

.site-header .brand .brand-text { 
  font-size: 24px; 
  line-height: 1.2; 
  font-weight: 700;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--nav-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Navigation */
.main-nav {
  flex: 1;
}

.nav-list { 
  list-style: none; 
  display: flex; 
  gap: 2rem; 
  margin: 0; 
  padding: 0;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-item a {
  color: var(--nav-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav-item a:hover {
  color: var(--link);
}

/* Dropdown Styles */
.dropdown-container {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: var(--nav-color);
  font-weight: 500;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.dropdown-toggle:hover {
  color: var(--link);
}

.dropdown-arrow {
  transition: transform 0.2s;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  border-radius: 8px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.dropdown-container:hover .dropdown-menu,
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--nav-color);
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-menu a:hover {
  background: var(--footer-bg);
  color: var(--link);
}
.content img { max-width:100%; height:auto; }
/* Footer Styles */
.site-footer {
  background: var(--header-bg);
  border-top: 1px solid var(--header-border);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--header-border);
  color: var(--text-color);
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-copyright p {
  margin: 0;
}

.footer-join,
.footer-contact,
.footer-social {
  text-align: left;
}

.footer-join h3,
.footer-contact h3,
.footer-social h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1.1rem;
}

.footer-join p,
.footer-contact p,
.footer-social p {
  margin-bottom: 1rem;
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.5;
}

.footer-join .btn,
.footer-contact .btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--link);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.footer-join .btn:hover,
.footer-contact .btn:hover {
  background: #1e4a8a;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .footer-join .btn:hover,
  .footer-contact .btn:hover {
    background: #5a9eff;
  }
}

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

.footer-social li {
  margin-bottom: 0.5rem;
}

.footer-social a {
  color: var(--link);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a:hover {
  text-decoration: underline;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.join-cta {
  font-weight: 600;
  color: var(--text-color);
}

.footer-main { flex: 1; }
.footer-social h4, .footer-contact h4, .footer-join h4 { margin: 0 0 0.5rem 0; color: var(--text-color); font-size: 1rem; }
.social-links, .contact-links { display: flex; gap: 1rem; }
.social-links a, .contact-links a { color: var(--text-color); opacity: 0.7; transition: opacity 0.2s; }
.social-links a:hover, .contact-links a:hover { opacity: 0.9; }
.contact-link { display: flex; align-items: center; gap: 0.5rem; }

/* Join Section Styles */
.join-cta { text-align: center; }
.join-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--link);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s;
  margin-bottom: 0.5rem;
}

.join-button:hover {
  background: #1e4a8a;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .join-button:hover {
    background: #5a9eff;
  }
}

.join-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-color);
  opacity: 0.8;
}

/* Contact Form Styles */
.contact-form {
  max-width: 600px;
  margin: 2rem 0;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--header-border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-color);
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.2);
}

@media (prefers-color-scheme: dark) {
  .contact-form input:focus,
  .contact-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(140, 194, 255, 0.3);
  }
}

.contact-form .form-actions {
  text-align: center;
  margin-top: 2rem;
}

/* Image Slideshow Styles */
.slideshow-container {
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

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

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1rem 1rem;
  text-align: center;
}

.slide-caption h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.slide-caption p {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  opacity: 0.9;
}

.photo-credit {
  font-size: 0.875rem;
  opacity: 0.7;
  font-style: italic;
}

/* Navigation Buttons */
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  z-index: 10;
}

.slideshow-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slideshow-nav.prev {
  left: 1rem;
}

.slideshow-nav.next {
  right: 1rem;
}

/* Dots Navigation */
.slideshow-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dot.active,
.dot:hover {
  background: white;
}

/* Responsive Slideshow */
@media (max-width: 768px) {
  .slideshow-wrapper {
    height: 300px;
  }
  
  .slideshow-nav {
    width: 40px;
    height: 40px;
  }
  
  .slideshow-nav.prev {
    left: 0.5rem;
  }
  
  .slideshow-nav.next {
    right: 0.5rem;
  }
  
  .slide-caption {
    padding: 1.5rem 0.75rem 0.75rem;
  }
  
  .slide-caption h3 {
    font-size: 1.1rem;
  }
  
  .slide-caption p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .slideshow-wrapper {
    height: 250px;
  }
  
  .slideshow-nav {
    width: 36px;
    height: 36px;
  }
  
  .slide-caption {
    padding: 1rem 0.5rem 0.5rem;
  }
  
  .slide-caption h3 {
    font-size: 1rem;
  }
  
  .slide-caption p {
    font-size: 0.8rem;
  }
  
  .photo-credit {
    font-size: 0.75rem;
  }
}
/* Link Styles */
a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}

a:hover {
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

.post .meta, .event .meta, .classified .meta { color: var(--text-color); opacity: 0.7; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--header-border); padding: 8px; }
th { background: var(--footer-bg); text-align:left; }
/* Mobile Styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--header-bg);
    border-left: 1px solid var(--header-border);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 99;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 5rem 1rem 1rem;
    align-items: stretch;
  }
  
  .nav-item {
    border-bottom: 1px solid var(--header-border);
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-item a,
  .dropdown-toggle {
    padding: 1rem 0;
    display: block;
    width: 100%;
    text-align: left;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--footer-bg);
    margin-left: 1rem;
    display: none;
  }
  
  .dropdown-menu.active {
    display: block;
  }
  
  .dropdown-menu a {
    padding: 0.75rem 1rem;
  }
  
  .site-header .brand .brand-text {
    font-size: 20px;
  }
  
  .site-header .brand .logo {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .site-header .brand .brand-text {
    font-size: 18px;
  }
  
  .site-header .brand .logo {
    height: 36px;
  }
  
  .site-header .brand {
    gap: 12px;
  }
}
@media (max-width:480px){ 
  .site-header .brand .brand-text { font-size: 14px; }
  .site-header .brand { gap: 8px; }
}

/* Form Styles */
.membership-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--header-border);
  border-radius: 8px;
  background: var(--bg);
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--header-border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-color);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.2);
}

@media (prefers-color-scheme: dark) {
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    box-shadow: 0 0 0 2px rgba(140, 194, 255, 0.3);
  }
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-color);
  opacity: 0.7;
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

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

.btn-primary:hover {
  background: #1e4a8a;
}

@media (prefers-color-scheme: dark) {
  .btn-primary:hover {
    background: #5a9eff;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-social, .footer-contact, .footer-join {
    text-align: left;
  }
  .join-cta {
    text-align: left;
  }
  .footer-copyright {
    margin-top: 1rem;
  }
}

/* Classifieds Styles */
.classified-preview {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--header-border);
  border-radius: 8px;
  background: var(--bg);
}

.classified-preview h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.classified-preview h3 a {
  color: var(--link);
  text-decoration: none;
}

.classified-preview h3 a:hover {
  text-decoration: underline;
}

.classified-preview .excerpt {
  margin-top: 0.5rem;
  color: var(--text-color);
  opacity: 0.8;
}

.classified .meta {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--header-border);
}

/* Event Styles */
.event-preview {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--header-border);
  border-radius: 8px;
  background: var(--bg);
  transition: box-shadow 0.2s ease;
}

.event-preview:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  .event-preview:hover {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
  }
}

.event-preview h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.event-preview h3 a {
  color: var(--link);
  text-decoration: none;
}

.event-preview h3 a:hover {
  text-decoration: underline;
}

.event-preview .event-meta {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

.event-preview .event-meta span {
  display: inline-block;
  margin-right: 1rem;
}

.event-preview .event-excerpt {
  margin-bottom: 1rem;
  color: var(--text-color);
  opacity: 0.9;
}

.event-preview .event-links {
  margin-top: 1rem;
}

.event-preview .event-link {
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--link);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: background-color 0.2s;
}

.event-preview .event-link:hover {
  background: #1e4a8a;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .event-preview .event-link:hover {
    background: #5a9eff;
  }
}

/* Event Detail Page */
.event-detail {
  max-width: 800px;
  margin: 0 auto;
}

.event-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--header-border);
}

.event-header h1 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.event-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  font-size: 1.1rem;
}

.event-content {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.event-links {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--header-border);
  border-radius: 8px;
}

.event-links h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.event-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-links li {
  margin-bottom: 0.5rem;
}

.event-links a {
  color: var(--link);
  text-decoration: none;
}

.event-links a:hover {
  text-decoration: underline;
}

.event-navigation {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--header-border);
}

/* Latest Events and News Sections */
.latest-events,
.latest-news {
  margin-bottom: 3rem;
}

.latest-events h2,
.latest-news h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--header-border);
}

.news-preview {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--header-border);
  border-radius: 8px;
  background: var(--bg);
}

.news-preview h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.news-preview h3 a {
  color: var(--link);
  text-decoration: none;
}

.news-preview h3 a:hover {
  text-decoration: underline;
}

.news-preview .meta {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
}

.news-preview p:last-child {
  margin-bottom: 0;
}

.more-link {
  text-align: center;
  margin-top: 1.5rem;
}

.more-link a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.more-link a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .event-meta {
    grid-template-columns: 1fr;
  }
  
  .event-preview .event-meta span {
    display: block;
    margin-right: 0;
    margin-bottom: 0.25rem;
  }
}

/* Year Grouping Styles */
.year-events {
  margin-bottom: 2rem;
}

.year-events:last-child {
  margin-bottom: 0;
}

/* Year headings styling */
h2:not(.latest-events h2):not(.latest-news h2) {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--header-border);
  color: var(--text-color);
  font-size: 1.5rem;
}

h2:first-of-type {
  margin-top: 0;
}

/* Results page year headings */
.results-champions h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--header-border);
  color: var(--text-color);
  font-size: 1.3rem;
}

.results-champions h3:first-of-type {
  margin-top: 0;
}

/* News page year groupings */
.news-year {
  margin-bottom: 2rem;
}

.news-year:last-child {
  margin-bottom: 0;
}

.news-year ul {
  margin-top: 0.5rem;
}

.news-year li {
  margin-bottom: 0.5rem;
}
