@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --primary-green: #2D5A27;
  --accent-gold: #D4AF37;
  --alert-red: #D9534F;
  --text-dark: #333333;
  --text-muted: #666666;
  --bg-light: #fdfdfd;
  --border-color: #e8e8e8;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Change the '-' to an '*' */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: transparent;
  line-height: 1.6;
}

/* UTILITY CLASSES */
.text-green { color: var(--primary-green) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-red { color: var(--alert-red) !important; }
.border-red { border-left-color: var(--alert-red) !important; }
.border-gold { border-left-color: var(--accent-gold) !important; }
.border-green { border-left-color: var(--primary-green) !important; }

/* TICKER ARCHITECTURE */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background-color: var(--primary-green);
  padding: 10px 0;
  border-bottom: 4px solid var(--accent-gold);
  margin-bottom: 25px;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-kf 35s linear infinite;
}

.ticker-item {
  display: inline-block;
  padding: 0 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #FFFFFF;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

@keyframes ticker-kf {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* LAYOUT & CONTAINERS */
.main-wrapper, .main-container {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 15px;
}

header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 10px;
}

header h1, h1.banner-title {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-green);
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.banner-section {
  padding: 10px 0 15px 0;
}

/* STANDARDIZED ISSUE DATE TAG */
.date-tag,
.banner-date {
  font-family: 'Montserrat', sans-serif;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: block;
  margin-bottom: 6px;
}

/* CARDS */
.update-card, .vine-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 25px;
  padding: 25px;
  border-top: 6px solid var(--primary-green);
  scroll-margin-top: 25px;
}

.card-header {
  background: var(--primary-green);
  color: var(--alert-red);
  padding: 12px 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: -25px -25px 20px -25px;
}

.sidebar-column .card-header {
  background: #66b85f;
  color: var(--primary-green);
  border-bottom: 2px solid var(--primary-green);
}

.info-alert { border-left: 6px solid var(--accent-gold); }
.urgent-alert { border-left: 6px solid var(--alert-red); }
.success-alert { border-left: 6px solid var(--primary-green); background-color: #f4f8f4; }

/* GRIDS */
.grid-container {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 25px;
}

/* Remove .toc-grid from the shared rule so it looks like this: */
.zigzag-grid, .stats-row, .inner-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 25px;
}

/* Add this new rule specifically for your Table of Contents */
.toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 8px;      /* Controls the vertical space between lines (adjust as needed) */
  column-gap: 20px;  /* Keeps the horizontal space between the left and right columns */
  margin-bottom: 25px;
}

.zigzag-grid, .inner-grid, .toc-grid {
  grid-template-columns: 1fr 1fr;
}

.zigzag-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  border-left: 6px solid var(--primary-green);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* TABLE OF CONTENTS */
.toc-card {
  background-color: #fdfaf0;
  border: 1px solid #e0d8b8;
  border-left: 6px solid var(--accent-gold);
  padding: 20px;
  border-top: none;
}

.toc-link {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  transition: color 0.2s;
  cursor: pointer; /* This forces the pointing finger! */
}

.toc-link i {
  color: var(--accent-gold);
  margin-right: 8px;
  font-size: 0.8rem;
}

.toc-link:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* NOTICES & BOXES */
.urgent-box {
  border: 1px dashed var(--alert-red);
  background-color: #FDF5F5;
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
}

.urgent-box p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.urgent-box strong {
  color: var(--alert-red);
}

.highlight-note {
  background-color: #FDF5F5;
  border-left: 4px solid var(--alert-red);
  padding: 12px 15px;
  margin-top: 15px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 4px 4px 0;
}

.meeting-box {
  background-color: #fdfaf0; /* Changed from invalid #dfdfd to a warm, light tint */
  border: 1px solid #e0d8b8;
  border-left: 6px solid var(--accent-gold); /* Adds a bold side highlight */
  border-radius: 6px;
  padding: 20px;
  margin-top: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06); /* Slightly stronger shadow */
  cursor: pointer; /* Forces the pointing finger on hover */
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth hover effect */
}

/* Optional: Make it lift up slightly when hovered */
.meeting-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* MEDIA */
.card-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 15px;
  background-color: #f0f0f0;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-image-wrapper img:hover {
  transform: scale(1.03);
}

.holiday-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 20px;
  align-items: start;
  margin-bottom: 15px;
}

.holiday-feature-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 6px;
}

.image-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 15px;
  font-style: italic;
}

/* TYPOGRAPHY */
h2.section-title {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-green);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-green);
  font-weight: 700;
  margin: 0 0 10px 0;
  font-size: 1.35rem;
}

h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-green);
  font-weight: 700;
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 12px 0;
  color: #444444;
}

ul {
  padding-left: 20px;
  margin: 10px 0 0 0;
  font-size: 0.95rem;
  color: #444444;
}

li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--alert-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.vine-link {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
}

.vine-link:hover {
  text-decoration: underline;
  color: var(--accent-gold);
}

/* BUTTONS */
.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.btn, .btn-primary {
  display: inline-block;
  background-color: var(--primary-green);
  color: #ffffff !important;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover, .btn-primary:hover {
  background-color: #1e3c1a;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green) !important;
}

.btn-outline:hover {
  background-color: var(--primary-green);
  color: #ffffff !important;
}

.btn-disabled {
  background-color: #cccccc !important;
  color: #777777 !important;
  border: 1px solid #bbbbbb !important;
  cursor: not-allowed;
  pointer-events: none; /* Completely disables the click action */
  opacity: 0.8;
}

/* BACK LINK */
.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  transition: color 0.2s ease, transform 0.2s ease;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--accent-gold);
  transform: translateX(-5px);
}

.back-link i {
  margin-right: 8px;
}

/* SEARCH & ARCHIVE SIDEBAR */
#searchInput {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  border-left: 4px solid var(--accent-gold);
  margin-bottom: 15px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
}

.update-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 450px;
  overflow-y: auto;
}

.update-list li {
  border-bottom: 1px solid #f0f0f0;
}

.update-list a {
  display: block;
  padding: 12px 10px;
  text-decoration: none;
  transition: background 0.2s;
}

.update-list a:hover {
  background-color: #f4f8f4;
}

.archive-date {
  display: block;
  font-size: 0.75rem;
  color: #888888;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.archive-title {
  display: block;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
}

/* =========================================================
   DASHBOARD & PROGRESS BAR MODULES
   ========================================================= */

/* Dashboard Container */
.dashboard-panel {
  background-color: #F4F9F4;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  margin-top: 15px;
  border-left: 4px solid var(--primary-green, #2D5A27);
}

/* Stat Boxes */
.stats-row {
  display: flex;
  gap: 15px;
  text-align: center;
  margin-top: 0;
  flex-wrap: wrap;
}

.stat-box {
  flex: 1;
  min-width: 120px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.stat-box.highlight {
  border: 2px solid var(--primary-green, #2D5A27);
  box-shadow: 0 4px 8px rgba(45, 90, 39, 0.1);
}

.stat-box.alert {
  border: 2px solid var(--alert-red, #D9534F);
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
  color: #333333;
}

.stat-box.highlight .stat-num,
.text-green {
  color: var(--primary-green, #2D5A27);
}

.stat-box.alert .stat-num,
.text-red {
  color: var(--alert-red, #D9534F);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 8px;
  color: #666666;
}

.stat-box.highlight .stat-label {
  color: var(--primary-green, #2D5A27);
}

/* Progress Bar */
.progress-wrapper {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e8e8e8;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  color: #333333;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.progress-label .progress-percent {
  color: var(--primary-green, #2D5A27);
}

.progress-track {
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-green, #2D5A27);
  border-radius: 10px 0 0 10px;
  transition: width 0.8s ease-in-out;
}

@media (max-width: 750px) {
  .stats-row {
    flex-direction: column;
  }
}

/* HELP FOOTER SECTION */
.help-section {
  background-color: #ffffff;
  border-radius: 8px;
  border-top: 5px solid var(--primary-green);
  padding: 35px 30px;
  box-shadow: var(--shadow);
  margin-top: 30px;
  margin-bottom: 40px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.help-col h4 {
  color: var(--primary-green);
  font-size: 1.05rem;
  margin-bottom: 15px;
  margin-top: 0;
  text-transform: uppercase;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.help-col p {
  font-size: 0.9rem;
  color: #555555;
  margin-bottom: 12px;
  margin-top: 0;
}

.help-col a {
  color: var(--primary-green);
  font-weight: 600;
  text-decoration: none;
}

.help-col a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.help-col i {
  width: 20px;
  color: var(--accent-gold);
  text-align: center;
  margin-right: 5px;
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #999999;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}


/* RESPONSIVE BREAKPOINTS */
@media (max-width: 480px) {
  .smokey-image-container {
    float: none !important;
    width: 100% !important;
    margin: 0 0 15px 0 !important;
  }
}

@media (max-width: 800px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .zigzag-grid, .inner-grid, .toc-grid {
    grid-template-columns: 1fr;
  }

  .holiday-feature-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .holiday-feature-image {
    width: 190px;
    height: 245px;
    max-width: 100%;
  }
  
  header h1, h1.banner-title {
    font-size: 1.6rem;
  }
}