/* Modern Reset & Theme Variables */
:root {
  --wood-bg: #202019;
  --paper-bg: #f6f5ee;
  --brand-burgundy: #6c0101;
  --header-leather: #3d2b1f; /* Warm, rich saddle-leather brown that matches the emblem */
  --text-dark: #2f2f28;
  --text-cream: #f4eedb; /* Sun-faded parchment/cream tone for a vintage look */
  --accent-gold: #d4af37;
  --border-color: #d1cebd;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Georgia', serif;
  background-color: var(--wood-bg);
  background-image: url("../images/202019_back.gif");
  color: var(--text-dark);
  line-height: 1.6;
}

/* Base Wrapper */
.site-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--paper-bg);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Header & Brand Layout - Styled for an authentic heritage feel */
header {
  background-color: var(--header-leather);
  padding: 15px 20px;
  border-bottom: 4px solid var(--brand-burgundy);
}

.brand-container {
  display: grid;
  grid-template-columns: 80px 1fr 80px; /* Perfectly balances the logo layout */
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.brand-link {
  display: flex;
  justify-content: flex-start;
  transition: transform 0.2s ease;
}

.brand-link:hover {
  transform: scale(1.05);
}

.header-logo {
  display: block;
  width: auto;
  height: 60px;
  background-color: var(--text-cream); /* Smoothly pulls the title's cream color behind the emblem */
  border-radius: 50%; /* Makes the background perfectly circular to match the emblem shape */
  padding: 4px; /* Gives the logo a sliver of breathing room inside its frame */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Adds a subtle depth to make it stand out on the dark wood */
  transition: transform 0.2s ease;
}

.site-title {
  font-size: 2.1rem;
  font-weight: bold;
  color: var(--text-cream); /* Warm vintage cream */
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8); /* Darker shadow to give a branded/stamped effect */
  text-align: center;
  margin: 0;
}

.header-spacer {
  width: 80px; /* Invisible element that mirrors the logo box width to force text center anchoring */
}

/* Modern Responsive Navigation Bar - Enforced Single-Line Layout */

nav {
  border-bottom: 2px solid var(--border-color);
}

/* Ensure individual links don't stretch off-screen */
nav a, .nav-links a {
  white-space: nowrap;         /* Keeps words like "RANCH HOUSE" together on one line */
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap; /* Allows menu items to cleanly wrap on small screens */
  justify-content: space-around; /* Dynamically spreads buttons evenly across the single line */
  align-items: center;
}

nav ul li {
  flex: 0 1 auto;
  text-align: center;
}

nav ul li a {
  display: block;
  padding: 14px 10px;
  color: var(--brand-burgundy);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem; /* Marginally downsized text to guarantee single-line fitment */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap; /* Forces browser to keep words like "TRADING POST" on one line */
  transition: background 0.2s;
}

nav ul li a:hover {
  background-color: rgba(108, 1, 1, 0.1);
  color: #a00202;
}

/* Highlight the current page link in the navigation menu */
nav ul li a.active {
  background-color: var(--header-leather); /* Flawless saddle-leather brown match */
  color: var(--text-cream);            /* Uses the authentic vintage cream text */
  font-weight: bold;
  border-radius: 4px 4px 0 0;          /* Keeps the top rounded, bottom flat */
}

/* Cinematic Full-Width Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  max-height: 450px;
  overflow: hidden;
}

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

/* Main Content Area */
.main-container {
  padding: 30px;
}

/* Events Grid - Dynamic Cards */
.events-section {
  margin-bottom: 40px;
}

.section-title {
  color: var(--brand-burgundy);
  border-bottom: 2px solid var(--brand-burgundy);
  padding-bottom: 8px;
  margin-top: 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.event-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.event-card img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.event-card h3 {
  margin: 10px 0 5px 0;
  color: var(--brand-burgundy);
}

.event-date {
  font-style: italic;
  font-weight: bold;
  color: #666;
  margin-bottom: 10px;
}

/* Boilerplate & Footer Modules (3-Column Layout) */
/* Boilerplate & Social Media Footer Modules (2-Column Layout) */
.boilerplate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  background-color: #f0ede2;
  padding: 30px;
  border-top: 2px solid var(--border-color);
  margin-top: 40px;
}

.info-meta-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-block {
  font-size: 0.95rem;
}

.info-block h3 {
  color: var(--brand-burgundy);
  margin-top: 0;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 5px;
}

.donation-block {
  background: rgba(255,255,255,0.4);
  padding: 15px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.facebook-feed-column h3 {
  color: var(--brand-burgundy);
  margin-top: 0;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.fb-container {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.info-block h3 {
  color: var(--brand-burgundy);
  margin-top: 0;
}

/* Global Footer Styles */
footer {
  color: var(--brand-burgundy);
  text-align: center;
  padding: 20px;
  border-top: 4px solid var(--brand-burgundy);
}

.footer-nav {
  margin-bottom: 10px;
}

.footer-nav a {
  color: var(--brand-burgundy);
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
}

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

.copyright {
  font-size: 0.8rem;
  color: #555;
}

/* Global Lightbox Modal Styles */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 20px; /* Reduced padding to give the image more vertical room */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.95); /* Marginally darker backdrop for better text contrast */
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 96%;   /* Expanded from 85% to fill almost the entire width */
  max-height: 94vh; /* Expanded from 85vh to utilize almost the entire vertical screen */
  object-fit: contain; /* Mandates the browser preserve Tim's map proportions perfectly */
  box-shadow: 0 4px 25px rgba(0,0,0,0.6);
  border-radius: 4px;

  /* The Animation Magic Hook */
  animation: lightboxGrow 0.25s ease-out forwards;
}

/* Smooth Scale & Fade-in Animation Engine */
@keyframes lightboxGrow {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #f1f1f1;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  z-index: 10000; /* Guarantees the "X" stays layered on top of the expanded map image */
}

.lightbox-close:hover {
  color: var(--accent-gold);
}
/* Clean, Calmed-Down Event Date Layout */
.event-date-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 25px 0 10px 0;

  /* Typography hierarchy that doesn't scream or compete */
  font-family: 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: bold;
  font-style: normal;
  color: var(--brand-burgundy);
  letter-spacing: 0.3px;
}

/* Light, crisp calendar icons matching your theme colors */
.date-icon {
  width: 18px;
  height: 18px;
  color: var(--brand-burgundy);
  opacity: 0.85;
}

/* Announcement Box Container */
.announcement-box {
  background-color: #fbfbfa; 
  border: 2px dashed var(--brand-burgundy); 
  padding: 40px 20px; 
  border-radius: 8px; 
  margin-bottom: 40px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.announcement-title {
  color: var(--brand-burgundy); 
  font-size: 1.8rem; 
  margin-top: 0; 
  font-family: 'Georgia', serif;
}

.announcement-text {
  font-size: 1.1rem; 
  max-width: 600px; 
  margin: 15px auto; 
  line-height: 1.6; 
  color: var(--text-dark);
}

/* Primary Highlighted Date Line */
.event-date-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 25px 0 10px 0;
  font-family: 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--brand-burgundy); 
  letter-spacing: 0.3px;
}

.date-icon {
  width: 18px;
  height: 18px;
  color: var(--brand-burgundy);
  opacity: 0.85;
}

/* Calmed-Down Subordinate Update Line */
.event-update-line {
  font-family: 'Georgia', serif;
  font-size: 1rem; 
  font-weight: normal; 
  font-style: italic;
  color: var(--text-dark); 
  margin-top: 15px; 
}

/* ==========================================================================
   Ranch House Page Styles (100% Kosher - No Inline HTML Styles!)
   ========================================================================== */

/* Ranch House Page Grid Layout */
.ranch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 20px;
}

@media (min-width: 850px) {
  .ranch-grid {
    grid-template-columns: 1fr 320px; /* Narrative on the left, Sidebar on the right */
  }
}

.ranch-main h2 {
  color: var(--brand-burgundy);
  border-bottom: 2px solid var(--brand-burgundy);
  padding-bottom: 8px;
  margin-top: 0;
}

/* Responsive Featured Image with Clean Spacing */
.ranch-featured-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 25px; /* Clean breathing room before paragraphs */
}

/* History Callout Box with Gold Accent Left Border */
.history-callout {
  background-color: #f7f5eb;
  border-left: 4px solid var(--accent-gold);
  padding: 18px 20px;
  margin: 25px 0;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.history-callout h3 {
  color: var(--brand-burgundy);
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.history-callout p {
  margin: 0;
  font-style: italic;
  line-height: 1.55;
  color: #555;
}

/* Sidebar Info Panel Styling */
.ranch-sidebar .info-panel {
  background: #fdfcf7;
  border: 1px solid #e6e4d5;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ranch-sidebar h3 {
  color: var(--brand-burgundy);
  margin-top: 0;
  border-bottom: 2px solid var(--brand-burgundy);
  padding-bottom: 10px;
}

.ranch-sidebar .hours-block {
  background: #fff;
  border-left: 4px solid var(--brand-burgundy);
  padding: 12px 15px;
  margin: 15px 0;
  border-radius: 0 4px 4px 0;
}

.hours-day {
  font-weight: bold;
  color: var(--brand-burgundy);
  margin: 0 0 4px 0;
}

.hours-time {
  margin: 0;
}

.ranch-meta {
  font-size: 0.9rem;
  border-top: 1px dashed var(--border-color);
  margin-top: 20px;
  padding-top: 15px;
  color: #555;
}

.ranch-meta p {
  margin: 6px 0;
}

/* ==========================================================================
   Mansion Page Styles (100% Kosher)
   ========================================================================== */

/* Layout Grid */
.mansion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 20px;
}

@media (min-width: 850px) {
  .mansion-grid {
    grid-template-columns: 1fr 320px; /* Text & image on left, panels on right */
  }
}

/* Featured Header & Images */
.mansion-main h2 {
  color: var(--brand-burgundy);
  border-bottom: 2px solid var(--brand-burgundy);
  padding-bottom: 8px;
  margin-top: 0;
}

.mansion-featured-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 25px;
}

/* Group Tour Callout Box */
.tour-callout {
  background-color: #f7f5eb;
  border-left: 4px solid var(--accent-gold);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.tour-callout h3 {
  color: var(--brand-burgundy);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.tour-callout p {
  margin: 0 0 15px 0;
  line-height: 1.5;
  color: var(--text-dark);
}

/* Call-to-action Tour Button */
.tour-btn {
  display: inline-block;
  background-color: var(--brand-burgundy);
  color: #fff !important; /* Forces link text to remain white */
  text-decoration: none;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.tour-btn:hover {
  background-color: #7a0202; /* Slightly darker shade on hover */
}

/* Sidebar Panels */
.mansion-sidebar .info-panel {
  background: #fdfcf7;
  border: 1px solid #e6e4d5;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}

.mansion-sidebar h3 {
  color: var(--brand-burgundy);
  margin-top: 0;
  border-bottom: 2px solid var(--brand-burgundy);
  padding-bottom: 10px;
}

.requires-reg {
  font-size: 0.85rem;
  color: #666;
  margin-top: -5px;
  margin-bottom: 15px;
}

/* Hours Layout */
.mansion-sidebar .hours-block {
  background: #fff;
  border-left: 4px solid var(--brand-burgundy);
  padding: 10px 12px;
  margin: 10px 0;
  border-radius: 0 4px 4px 0;
}

.hours-time.closed {
  color: #888;
  font-style: italic;
}

/* Contact Specific Styling */
.contact-details {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.contact-details li {
  margin: 8px 0;
  font-size: 0.9rem;
}

.contact-details a {
  color: var(--brand-burgundy);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Barnyard Page Styles
   ========================================================================== */

.barnyard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 20px;
}

@media (min-width: 850px) {
  .barnyard-layout {
    grid-template-columns: 1fr 320px;
  }
}

.barnyard-main h2 {
  color: var(--brand-burgundy);
  border-bottom: 2px solid var(--brand-burgundy);
  padding-bottom: 8px;
  margin-top: 0;
}

/* --- Responsive CSS Mosaic Collage --- */
.collage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 25px 0;
}

@media (min-width: 600px) {
  .collage-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
  }
}

/* Base Collage Item */
.collage-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e6e4d5;
  background-color: #f7f5eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* Hover Zoom Effect */
.collage-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.collage-item:hover img {
  transform: scale(1.05);
}

/* Caption Overlay styling */
.collage-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #ffffff;
  padding: 15px 12px 10px 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; /* Allows hover state to pass through seamlessly */
}

.collage-item:hover .collage-caption {
  opacity: 1;
  transform: translateY(0);
}

.collage-caption h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: var(--accent-gold);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.collage-caption p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #ddd;
}

/* ==========================================================================
   Refined Grid Spans (Sizing Logic)
   ========================================================================== */
@media (min-width: 600px) {
  /* Casper on the left spans 3 rows tall */
  .collage-item.portrait.large {
    grid-column: span 3;
    grid-row: span 3;
  }

  /* Force Casper's large frame to crop from the top down */
  .collage-item.portrait.large img {
    object-position: top;
  }

  /* Alpacas on the top right span 1 row tall */
  .collage-item.landscape.wide {
    grid-column: span 3;
    grid-row: span 1;
  }

  /* Abby on the bottom right now spans 2 rows tall! */
  .collage-item.square {
    grid-column: span 3;
    grid-row: span 2; /* Changed from span 1 to span 2 */
  }

  /* Keeps Abby's face perfectly centered in her taller frame */
  .collage-item.square img {
    object-position: center center;
  }

  /* Lunch on the bottom spans the full width */
  .collage-item.landscape {
    grid-column: span 6;
    grid-row: span 2;
  }
}

/* New Volunteer CTA Link styling */
.volunteer-cta {
  font-weight: bold;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 25px;
}

.volunteer-cta a {
  color: var(--brand-burgundy);
  text-decoration: none;
  font-size: 1.1rem;
}

.volunteer-cta a:hover {
  text-decoration: underline;
}

/* Sidebar & General elements */
.volunteer-note {
  font-style: italic;
  border-top: 1px solid #e6e4d5;
  padding-top: 15px;
  color: #666;
}

.barnyard-sidebar .info-panel {
  background: #fdfcf7;
  border: 1px solid #e6e4d5;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}

.barnyard-sidebar h3 {
  color: var(--brand-burgundy);
  margin-top: 0;
  border-bottom: 2px solid var(--brand-burgundy);
  padding-bottom: 10px;
}

.tour-note {
  margin-top: 15px;
  font-size: 0.85rem;
  line-height: 1.4;
  border-top: 1px dashed #d1ceb8;
  padding-top: 10px;
}

.bison-panel {
  background-color: #f7f5eb !important;
  border-left: 4px solid var(--accent-gold) !important;
}

.bison-history {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #555;
}

/* ==========================================================================
   About Page Layout & Emblem Styles
   ========================================================================== */

/* Split layout on wider screens - now perfectly aligned at the top */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 20px;
  align-items: start; /* Changed from 'center' to 'start' to snap the logo to the top! */
}

@media (min-width: 800px) {
  .about-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.about-main h2 {
  color: var(--brand-burgundy);
  border-bottom: 2px solid var(--brand-burgundy);
  padding-bottom: 8px;
  margin-top: 0;
}

.about-list {
  margin-bottom: 30px;
  padding-left: 20px;
}

.about-list li {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Emblem container and rendering rules */
.emblem-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.about-large-emblem {
  max-width: 280px;
  width: 100%;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  transition: transform 0.4s ease;
}

.about-large-emblem:hover {
  transform: scale(1.03); /* Subtle interactive touch on hover */
}

/* Bottom Callout Section */
.about-support-box {
  background-color: #f7f5eb;
  border: 1px solid #e6e4d5;
  border-radius: 8px;
  padding: 25px;
  margin-top: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.about-support-box h3 {
  color: var(--brand-burgundy);
  margin-top: 0;
  border-bottom: 1px solid #e6e4d5;
  padding-bottom: 10px;
}

.support-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 700px) {
  .support-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.support-col {
  background: #ffffff;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e6e4d5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.support-col h4 {
  margin-top: 0;
  color: var(--brand-burgundy);
  font-size: 1.1rem;
}

.support-link-wrapper {
  margin-bottom: 0;
  margin-top: 15px;
  text-align: center;
}

/* ==========================================================================
   Newsletters Layout & Archive Box (Fully Restructured)
   ========================================================================== */

/* Outer grid wrapper holding both columns side-by-side */
.newsletter-layout {
  display: grid;
  grid-template-columns: 1fr; /* Stacks on mobile */
  gap: 40px;
  margin-top: 25px;
  align-items: start;
}

@media (min-width: 800px) {
  .newsletter-layout {
    grid-template-columns: 1.1fr 0.9fr !important; /* Forces perfect side-by-side on desktop */
  }
}

/* Masthead Banner Styling (Span Across Top) */
.newsletter-banner-container {
  background: #f7f5eb;
  border: 1px solid #e6e4d5;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.newsletter-masthead-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.newsletter-tagline {
  color: #666;
  font-size: 1.1rem;
  margin-top: -10px;
  margin-bottom: 20px;
}

/* Left Column: Subscription Interactive Card */
.signup-card {
  background-color: #ffffff;
  border: 1px solid #e6e4d5;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.signup-card h3 {
  color: var(--brand-burgundy);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.signup-card p {
  color: #555;
  margin-bottom: 20px;
}

/* Button Styling (Ensuring "Subscribe Now" isn't a plain link) */
.signup-btn-wrapper .btn-burgundy {
  display: inline-block;
  background-color: var(--brand-burgundy);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 1.1rem;
  transition: background-color 0.2s ease;
}

.signup-btn-wrapper .btn-burgundy:hover {
  background-color: #8c2626;
}

/* Right Column: Newsletter Archive Panel */
.newsletter-archive-panel {
  background: #ffffff;
  border: 1px solid #e6e4d5;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.newsletter-archive-panel h3 {
  color: var(--brand-burgundy);
  margin-top: 0;
  border-bottom: 2px solid var(--brand-burgundy);
  padding-bottom: 8px;
}

.archive-intro {
  font-style: italic;
  margin-bottom: 15px;
  color: #555;
}

/* --- THE MAC CHROME SCROLL CONTAINER --- */
.archive-scroll-container {
  max-height: 400px; /* Constrains the vertical size of the list box */
  height: 400px;
  overflow-y: scroll !important; /* Force scrollbar track calculation */
  border: 2px solid #8c2626; /* Crimson border */
  border-radius: 6px;
  padding: 15px;
  background-color: #fafafa;
  box-sizing: border-box;

  /* Firefox explicit values */
  scrollbar-width: auto;
  scrollbar-color: #8c2626 #e6e4d5;
}

/* Explicit list style resets to kill default bullets */
.archive-list {
  list-style-type: none !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.archive-list li {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.4;
  list-style-type: none !important; /* Extra insurance to remove bullets */
}

.archive-list a {
  color: var(--brand-burgundy);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.archive-list a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.archive-year-header {
  font-weight: bold;
  font-size: 1.2rem;
  color: #333;
  margin-top: 20px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 3px;
}

.archive-year-header:first-of-type {
  margin-top: 0;
}

.sub-list-header {
  font-weight: bold;
  color: #555;
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.supplement-item {
  margin-left: 15px !important;
  font-size: 0.9rem !important;
  border-left: 2px solid #ddd;
  padding-left: 10px;
}

.archive-footer-note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid #e6e4d5;
  padding-top: 15px;
}

.archive-footer-note a {
  color: var(--brand-burgundy);
  font-weight: bold;
  text-decoration: none;
}

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

/* --- CLEAN, NATIVE SCROLL CONTAINER --- */
.archive-scroll-container {
  max-height: 400px;
  height: 400px;
  overflow-y: auto; /* Hands control back to macOS to show/hide scrollbars natively */
  border: 2px solid #8c2626; /* Keeps your nice burgundy frame */
  border-radius: 6px;
  padding: 15px;
  background-color: #fafafa;
  box-sizing: border-box;
}

/* ==========================================================================
   Compact Resource Directory (Grid Alignment)
   ========================================================================== */

.links-directory {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.directory-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .directory-row {
    grid-template-columns: 1fr 1fr;
  }
  .directory-row.center-row {
    display: flex;
    justify-content: center;
  }
  .partner-item {
    width: calc(50% - 10px); /* Perfectly aligns with rows above */
  }
}

/* Individual Directory Row Links */
.directory-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 15px;
  text-decoration: none;
  color: var(--text-dark);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.directory-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 1, 1, 0.08);
}

/* Hard Box Restrictions for Badges & Icons */
.logo-badge-container {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 6px;
  overflow: hidden;
}

.logo-badge-container.dark-badge {
  background: #222222;
  border-color: #222222;
}

.badge-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.badge-logo-img.logo-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Hart-ified Custom Social Media Badges */
.logo-badge-container.social-badge {
  background: #ffffff;
  border: 2px solid var(--accent-gold); /* Pulls your gold variables natively */
  border-radius: 50%; /* Smooth Western circle medallion */
}

.hartified-icon {
  width: 44px;
  height: 44px;
  fill: var(--brand-burgundy); /* Pulls your burgundy variables natively */
}

/* Row Typography Tuning */
.item-text h4 {
  margin: 0 0 4px 0;
  color: var(--brand-burgundy);
  font-size: 1.05rem;
}

.directory-item:hover .item-text h4 {
  color: var(--accent-gold);
  text-decoration: underline;
}

.item-text p {
  margin: 0;
  font-size: 0.88rem;
  color: #666666;
  line-height: 1.4;
}

