/* ============================================
   SOCIAL LEVERAGE — MAIN STYLESHEET
   
   Table of Contents:
   1. CSS Reset & Variables
   2. Base / Global Styles
   3. Layout & Container
   4. Navigation (Desktop & Mobile)
   5. Buttons
   6. Homepage: Hero, Portfolio, Testimonial, Team, Stories, Newsletter
   7. Footer
   8. Global Responsive Overrides
   9. Utility Classes
   10. Portfolio Page
   11. Team Page
   12. Contact Page (Hero, Form, Founder Note, FAQ)
   13. Thank You Page
   14. Legal Pages (Privacy, Disclaimers)
   15. 404 Error Page
   16. Fund Details (Portfolio Page)
   17. Investment Criteria (Approach Page)
   18. Hero Accent & Buttons
   19. Testimonial Section
   20. Approach Page (Hero, Values, Process, CTA)
   21. Approach Page Responsive
   22. Announcement Bar
   23. Community Page (Hero, Palooza, Benefits, Carousel)
   24. Stories Page (Hero, Controls, Grid, Filters, Search, Skeleton)
   ============================================ */

/* CSS Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables */
:root {
  /* Brand Colors */
  --sl-green: #4F9851; /* Matches with RGB(79, 152, 81) */
  --sl-green-light: #6BB56E;
  --sl-green-dark: #3A7339;

  /* Neutral Colors */
  --charcoal: #1A1A1A;
  --gray: #6B7280;
  --light-gray: #E5E7EB;
  --off-white: #FAFAFA;
  --white: #FFFFFF;

  /* Typography */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 80px;
  --section-padding-lg: 100px;
  --container-max: 1200px;
  --container-padding: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-med: 0.3s ease;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a {
  color: var(--sl-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--sl-green-light);
}

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

address {
  font-style: normal;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  z-index: 1000;
  padding: 16px 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--sl-green);
}

.nav-links a.active {
  color: var(--sl-green);
  font-weight: 600;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  transition: var(--transition-fast);
}

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

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

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

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  z-index: 999;
  padding: 24px;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav li {
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 16px;
}

.mobile-nav a.active {
  color: var(--sl-green);
  font-weight: 600;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sl-green);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--sl-green-light);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--sl-green);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid var(--sl-green);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--sl-green);
  color: var(--white);
}

/* HERO SECTION */
.hero {
  padding: 180px 0 120px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 24px;
  color: var(--charcoal);
}

.hero p {
  font-size: 20px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* SECTION HEADERS */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 600;
}

.section-header a {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* SHARED CARD HOVER STYLE */
.card-hover {
  transition: all var(--transition-med);
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  background: var(--white);
}

.card-hover:hover {
  border-color: var(--sl-green);
  box-shadow: 0 12px 40px rgba(45, 139, 111, 0.12);
  transform: translateY(-4px);
}

/* Make portfolio cards work as full-card links (like team cards) */
a.portfolio-card,
a.portfolio-page-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.portfolio-card:hover,
a.portfolio-page-card:hover {
  color: inherit;
}

/* PORTFOLIO SECTION */
.portfolio-section {
  padding: var(--section-padding) 0;
  border-top: 1px solid var(--light-gray);
}

/* Turn Featured Companies into a 2x3 grid similar to Stories */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Make portfolio cards use shared hover style */
.portfolio-card {
  position: relative;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--light-gray);
  background: var(--white);
  transition: all var(--transition-med);
}

.portfolio-card:hover {
  border-color: var(--sl-green);
  box-shadow: 0 12px 40px rgba(45, 139, 111, 0.12);
  transform: translateY(-4px);
}

.exit-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--sl-green);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-logo {
  height: 100px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.portfolio-logo img {
  max-height: 120px;
  min-height: 100px;
  max-width: 100%;
  object-fit: contain;
}

.portfolio-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-card p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.5;
}

.portfolio-card .link {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* TEAM SECTION */
.team-section {
  padding: var(--section-padding-lg) 0;
  background: var(--off-white);
}

.team-section h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Force founder quote to one line */
.founder-quote {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 20px;
  max-width: 100%;
  white-space: nowrap;
}

/* Team grid and card styles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Make team cards behave like portfolio cards on hover */
.team-card {
  text-align: center;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  transition: all var(--transition-med);
}

.team-card:hover {
  border-color: var(--sl-green);
  background: var(--white);
  box-shadow: 0 12px 40px rgba(45, 139, 111, 0.12);
  transform: translateY(-4px);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--light-gray) 0%, #d1d5db 100%);
  margin-bottom: 20px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 14px;
  color: var(--gray);
}

.team-cta {
  text-align: center;
  margin-top: 48px;
}

/* STORIES SECTION */
.stories-section {
  padding: var(--section-padding-lg) 0;
}

/* Keep 4-column grid */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Make Stories use the same hover as portfolio */
.story-card {
  display: block;
  color: inherit;
  border-radius: 16px;
  border: 1px solid var(--light-gray);
  overflow: hidden;
  transition: all var(--transition-med);
  background: var(--white);
}

.story-card:hover {
  border-color: var(--sl-green);
  box-shadow: 0 12px 40px rgba(45, 139, 111, 0.12);
  transform: translateY(-4px);
  color: inherit;
}

.story-thumbnail {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--sl-green) 0%, var(--sl-green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.story-content {
  padding: 24px;
}

.story-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.story-meta {
  font-size: 13px;
  color: var(--gray);
}

.story-date {
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: 2px;
}

.story-author {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

/* NEWSLETTER SECTION */
.newsletter-section {
  padding: var(--section-padding-lg) 0;
  background: var(--charcoal);
  text-align: center;
}

.newsletter-section h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.newsletter-section p {
  font-size: 18px;
  color: #9CA3AF;
  margin-bottom: 32px;
}

.newsletter-single {
  display: flex;
  justify-content: center;
}

.newsletter-item {
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.newsletter-desc {
  color: #9CA3AF;
  margin-bottom: 16px;
}

/* FOOTER */
footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 60px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: #9CA3AF;
  font-size: 14px;
  margin-top: 16px;
}

.footer-brand address {
  color: #9CA3AF;
  font-size: 13px;
  margin-top: 16px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #9CA3AF;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #9CA3AF;
  font-size: 13px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: #9CA3AF;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--white);
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 800px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --section-padding-lg: 80px;
  }

  /* Navigation */
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 140px 0 80px;
  }

  .hero p {
    font-size: 18px;
  }

  /* Section Headers */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Team */
  .team-section h2 {
    font-size: 32px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .founder-quote {
    white-space: normal; /* allow wrapping on small screens */
  }

  /* Newsletter */
  .newsletter-section h2 {
    font-size: 32px;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* UTILITY CLASSES */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-4 {
  margin-top: 16px;
}

.mt-8 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}


/* ============================================
   PORTFOLIO PAGE STYLES
   ============================================ */

.portfolio-hero {
    padding: 160px 0 60px;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
}

.portfolio-hero p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.filter-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 65px;
    background: var(--white);
    z-index: 100;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 80px;
    flex-shrink: 0;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    background: var(--white);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--sl-green);
    color: var(--sl-green);
}

.filter-btn.active {
    background: var(--sl-green);
    border-color: var(--sl-green);
    color: var(--white);
}

.filter-count {
    font-size: 13px;
    color: #9CA3AF;
}

/* Search Bar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #9CA3AF;
    pointer-events: none;
}

.search-input {
    padding: 10px 36px 10px 36px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--white);
    width: 220px;
    transition: all var(--transition-fast);
}

.search-input::placeholder {
    color: #9CA3AF;
}

.search-input:focus {
    outline: none;
    border-color: var(--sl-green);
    box-shadow: 0 0 0 3px rgba(45, 139, 111, 0.1);
}

.search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.search-clear:hover {
    color: var(--charcoal);
    background: var(--light-gray);
}

.filter-toggle {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--sl-green);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.filter-toggle:hover {
    color: var(--sl-green-light);
}

.filter-toggle svg {
    transition: transform var(--transition-fast);
}

.filter-toggle.expanded svg {
    transform: rotate(180deg);
}

.extra-filters {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
    margin-top: 8px;
}

.extra-filters.visible {
    display: flex;
}

/* Portfolio Grid */
.portfolio-page-section {
    padding: 48px 0 100px;
}

.portfolio-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.portfolio-page-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    padding: 24px;
    padding-top: 40px;
    transition: all var(--transition-med);
    display: flex;
    flex-direction: column;
    position: relative;
}

.portfolio-page-card:hover {
    border-color: var(--sl-green);
    box-shadow: 0 12px 40px rgba(45, 139, 111, 0.12);
    transform: translateY(-4px);
}

.portfolio-page-card.hidden {
    display: none;
}

.card-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    font-size: 9px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-exit {
    background: var(--sl-green);
    color: var(--white);
}

.card-logo {
    height: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.card-logo img {
    max-height: 120px;
    min-height: 100px;
    max-width: 140px;
    object-fit: contain;
}

.card-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.card-description {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--sl-green);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-link:hover {
    color: var(--sl-green-light);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--gray);
}

.portfolio-section-header {
    grid-column: 1 / -1;
    margin-top: 32px;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-gray);
}

.portfolio-section-header:first-child {
    margin-top: 0;
}

.portfolio-section-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.portfolio-section-header p {
    font-size: 14px;
    color: var(--gray);
}

/* Loading state */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--sl-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Portfolio Page Responsive */
@media (max-width: 1024px) {
    .portfolio-page-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 120px 0 40px;
    }
    
    .portfolio-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-label {
        width: auto;
        margin-bottom: 8px;
    }
    
    .search-container {
        width: 100%;
        order: -1;
        margin-bottom: 8px;
    }
    
    .search-input {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .portfolio-page-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   TEAM PAGE STYLES
   ============================================ */

.team-hero {
    padding: 160px 0 60px;
    text-align: center;
}

.team-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
}

.team-hero p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.team-page-section {
    padding: 60px 0 100px;
}

.team-category {
    margin-bottom: 80px;
}

.team-category:last-child {
    margin-bottom: 0;
}

.team-category-header {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9CA3AF;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-gray);
}

/* Team Member - Side by side layout */
.team-member {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    margin-bottom: 64px;
    align-items: start;
}

.team-member:last-child {
    margin-bottom: 0;
}

.team-member .team-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--light-gray) 0%, #D1D5DB 100%);
    overflow: hidden;
}

.team-member .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding-top: 8px;
}

.team-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--charcoal);
}

.team-role {
    font-size: 16px;
    color: var(--sl-green);
    font-weight: 500;
    margin-bottom: 20px;
}

.team-bio {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 24px;
}

.team-bio p {
    margin-bottom: 16px;
}

.team-bio p:last-child {
    margin-bottom: 0;
}

.team-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.team-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.team-links a:hover {
    color: var(--sl-green);
}

@media (max-width: 800px) {
    .team-member {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .team-member .team-photo {
        max-width: 280px;
    }
    
    .team-name {
        font-size: 24px;
    }
}

@media (max-width: 500px) {
    .team-hero {
        padding: 140px 0 40px;
    }
    
    .team-member .team-photo {
        max-width: 100%;
    }
}


/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-hero {
    padding: 160px 0 80px;
    text-align: center;
}

.contact-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-hero p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    padding: 80px 0 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.contact-info > p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-detail {
    margin-bottom: 24px;
}

.contact-detail h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9CA3AF;
    margin-bottom: 8px;
}

.contact-detail p,
.contact-detail a {
    font-size: 16px;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact-detail a {
    color: var(--sl-green);
}

.contact-detail a:hover {
    color: var(--sl-green-light);
}

.contact-form h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--sl-green);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sl-green);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.submit-btn:hover {
    background: var(--sl-green-light);
    transform: translateY(-2px);
}

.social-links-contact {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-links-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #F3F4F6;
    color: var(--gray);
    transition: all var(--transition-fast);
}

.social-links-contact a:hover {
    background: var(--sl-green);
    color: var(--white);
}

.form-success {
    background: #D1FAE5;
    border: 1px solid #10B981;
    color: #065F46;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

/* Founders Note Section - Redesigned */
.founders-note-section {
    padding: 0 0 60px;
    margin-top: -20px;
}

.founders-note-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.founders-note-header {
    background: linear-gradient(135deg, var(--sl-green) 0%, var(--sl-green-dark) 100%);
    padding: 16px 32px;
}

.founders-note-label {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.founders-note-body {
    padding: 32px;
}

.founders-note-lead {
    font-size: 20px;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.6;
    margin-bottom: 20px;
}

.founders-note-body > p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.founders-note-callout {
    background: #F0FDF9;
    border-left: 4px solid var(--sl-green);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.founders-note-callout strong {
    display: block;
    font-size: 16px;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.founders-note-callout span {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.founders-note-promise {
    font-size: 15px;
    color: var(--sl-green-dark);
    font-weight: 500;
    margin-bottom: 0 !important;
}

.founders-note-footer {
    padding: 20px 32px;
    background: var(--off-white);
    border-top: 1px solid var(--light-gray);
}

.founders-note-footer .signature {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0;
}

@media (max-width: 768px) {
    .founders-note-section {
        padding: 0 0 40px;
    }
    
    .founders-note-header {
        padding: 14px 24px;
    }
    
    .founders-note-body {
        padding: 24px;
    }
    
    .founders-note-lead {
        font-size: 18px;
    }
    
    .founders-note-callout {
        padding: 16px 20px;
    }
    
    .founders-note-footer {
        padding: 16px 24px;
    }
}


/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--off-white);
}

.faq-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.faq-item p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
}

.faq-item a {
    color: var(--sl-green);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-hero {
        padding: 140px 0 60px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   THANK YOU PAGE STYLES
   ============================================ */

.thanks-hero {
    padding: 200px 0 120px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
}

.thanks-icon {
    width: 80px;
    height: 80px;
    background: #D1FAE5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.thanks-icon svg {
    width: 40px;
    height: 40px;
    color: var(--sl-green);
}

.thanks-content h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
}

.thanks-content p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.thanks-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .thanks-hero {
        padding: 160px 0 80px;
    }
    
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
}


/* ============================================
   LEGAL PAGES STYLES (Privacy, Disclaimers)
   ============================================ */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 24px 80px;
}

.legal-content h1 {
    font-size: 40px;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #4B5563;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #4B5563;
}

.legal-content a {
    color: var(--sl-green);
}

/* ============================================
   404 ERROR PAGE STYLES
   ============================================ */

.error-hero {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-size: clamp(80px, 15vw, 140px);
    font-weight: 700;
    color: var(--light-gray);
    line-height: 1;
    margin-bottom: 16px;
}

.error-content h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.error-content p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Specific override for 404 secondary button to match original inline style */
.error-actions .btn-secondary {
    border: 2px solid var(--light-gray);
    color: var(--charcoal);
}

.error-actions .btn-secondary:hover {
    border-color: var(--sl-green);
    color: var(--sl-green);
    background: transparent; /* Keeping the hollow look from original */
}


/* ============================================
   FUND DETAILS SECTION (Portfolio Page)
   ============================================ */

.fund-details-section {
    padding: 32px 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--light-gray);
}

.fund-details-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.fund-details-content {
    padding-right: 24px;
}

.fund-details-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.fund-details-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray);
}

.fund-metrics-table {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fund-metrics-table table {
    width: 100%;
    border-collapse: collapse;
}

.fund-metrics-table th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.fund-metrics-table td {
    font-size: 14px;
    padding: 16px 12px;
    color: var(--charcoal);
}

.fund-metrics-table td strong {
    color: var(--sl-green);
    font-weight: 600;
}

.fund-metrics-disclaimer {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--light-gray);
}

@media (max-width: 900px) {
    .fund-details-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .fund-details-content {
        padding-right: 0;
    }
    
    .fund-metrics-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .fund-metrics-table table {
        min-width: 500px;
    }
}

/* Stack metrics as a clean vertical list on phones */
@media (max-width: 600px) {
    .fund-details-title {
        font-size: 24px;
    }
    
    .fund-details-description {
        font-size: 14px;
    }

    .fund-metrics-table {
        overflow-x: visible;
    }

    .fund-metrics-table table,
    .fund-metrics-table thead,
    .fund-metrics-table tbody,
    .fund-metrics-table tr,
    .fund-metrics-table th,
    .fund-metrics-table td {
        display: block;
    }

    .fund-metrics-table table {
        min-width: 0;
    }

    /* Hide the header row — we'll use data-labels instead */
    .fund-metrics-table thead {
        display: none;
    }

    .fund-metrics-table tbody tr {
        display: flex;
        flex-direction: column;
    }

    .fund-metrics-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0;
        border-bottom: 1px solid var(--light-gray);
        font-size: 15px;
    }

    .fund-metrics-table td:last-child {
        border-bottom: none;
    }

    /* Show the label from data-label attribute */
    .fund-metrics-table td::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--gray);
    }
}


/* ============================================
   INVESTMENT CRITERIA SECTION (Approach Page)
   ============================================ */

.investment-criteria-section {
    padding: 80px 0;
    background: var(--white);
}

.investment-criteria-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.criteria-intro {
    font-size: 18px;
    color: var(--gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.criteria-item {
    background: var(--off-white);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    transition: all var(--transition-med);
}

.criteria-item:hover {
    border-color: var(--sl-green);
    box-shadow: 0 8px 24px rgba(45, 139, 111, 0.1);
    transform: translateY(-2px);
}

.criteria-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--sl-green);
    border: 1px solid var(--light-gray);
}

.criteria-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.criteria-item p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .criteria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .criteria-grid {
        grid-template-columns: 1fr;
    }
    
    .investment-criteria-section h2 {
        font-size: 28px;
    }
    
    .criteria-intro {
        font-size: 16px;
    }
}

/* ============================================
   HERO UPDATES
   ============================================ */

.hero-accent {
    color: var(--sl-green);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ============================================
   TESTIMONIAL SECTION (Homepage)
   ============================================ */

.testimonial-section {
    padding: 80px 0;
    background: var(--charcoal);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    color: var(--white);
    line-height: 1.5;
    margin: 0 0 28px 0;
    border: none;
    padding: 0;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ============================================
   APPROACH PAGE STYLES
   ============================================ */

/* Approach Hero */
.approach-hero {
    padding: 160px 0 80px;
    text-align: center;
}

.approach-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
}

.approach-hero p {
    font-size: 19px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Value Section */
.value-section {
    padding: 80px 0;
    background: var(--off-white);
}

.value-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.value-header h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.value-header h2 .accent {
    color: var(--sl-green);
}

.value-header p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.value-item {
    padding: 28px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--light-gray);
    transition: all var(--transition-med);
}

.value-item:hover {
    border-color: var(--sl-green);
    box-shadow: 0 12px 40px rgba(45, 139, 111, 0.1);
    transform: translateY(-4px);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--off-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--sl-green);
    border: 1px solid var(--light-gray);
}

.value-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: var(--white);
}

.process-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.process-item {
    position: relative;
}

.process-number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    color: var(--light-gray);
    line-height: 1;
    margin-bottom: 16px;
}

.process-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.process-item p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

/* Approach CTA Section */
.approach-cta-section {
    padding: 100px 0;
    background: var(--charcoal);
    text-align: center;
}

.approach-cta-section h2 {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.approach-cta-section h2 .accent {
    color: var(--sl-green-light);
}

.approach-cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 900px) {
    .value-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-number {
        font-size: 48px;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-section {
        padding: 60px 0;
    }
    
    .approach-hero {
        padding: 140px 0 60px;
    }
    
    .value-section,
    .process-section {
        padding: 60px 0;
    }
    
    .approach-cta-section {
        padding: 80px 0;
    }
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */

.announcement-bar {
    background: var(--sl-green);
    color: var(--white);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-bar p {
    font-size: 14px;
    margin: 0;
    text-align: center;
}

.announcement-bar strong {
    font-weight: 600;
}

.announcement-bar a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    white-space: nowrap;
}

.announcement-bar a:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* Adjust nav position when announcement bar is visible */
body:has(.announcement-bar) nav {
    top: 44px;
}

body:has(.announcement-bar) .mobile-nav {
    top: 109px;
}

body:has(.announcement-bar) .hero {
    padding-top: 224px;
}

/* Fallback for browsers without :has() support */
@supports not selector(:has(*)) {
    nav {
        top: 44px;
    }
    
    .mobile-nav {
        top: 109px;
    }
    
    .hero {
        padding-top: 224px;
    }
}

@media (max-width: 768px) {
    .announcement-bar {
        padding: 10px 0;
    }
    
    .announcement-bar p {
        font-size: 13px;
    }
    
    body:has(.announcement-bar) nav {
        top: 42px;
    }
    
    body:has(.announcement-bar) .mobile-nav {
        top: 107px;
    }
    
    body:has(.announcement-bar) .hero {
        padding-top: 210px;
    }
}

/* ============================================
   COMMUNITY PAGE STYLES
   ============================================ */

/* Community Hero */
.community-hero {
    padding: 160px 0 80px;
    text-align: center;
    background: var(--off-white);
}

.community-hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--charcoal);
}

.community-hero p {
    font-size: 19px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Palooza Section */
.palooza-section {
    padding: 80px 0;
    background: var(--white);
}

.palooza-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sl-green);
    margin-bottom: 16px;
    padding: 6px 12px;
    background: rgba(45, 139, 111, 0.1);
    border-radius: 4px;
}

.palooza-content h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.palooza-content > p {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 28px;
}

.palooza-features {
    list-style: none;
    margin-bottom: 32px;
}

.palooza-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.feature-dot {
    width: 8px;
    height: 8px;
    background: var(--sl-green);
    border-radius: 50%;
    flex-shrink: 0;
}

/* NOTE: .palooza-image styles removed — replaced by .palooza-carousel below */

/* Community Benefits Section */
.community-benefits-section {
    padding: 80px 0;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
}

.benefits-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.benefits-header h2 {
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.benefits-header p {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.7;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-card {
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    transition: all var(--transition-med);
}

.benefit-card:hover {
    border-color: var(--sl-green);
    box-shadow: 0 12px 40px rgba(45, 139, 111, 0.12);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: var(--off-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--sl-green);
    border: 1px solid var(--light-gray);
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.benefit-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
}

.benefit-card .benefit-link {
    margin-top: 16px;
}

/* Community CTA Section */
.community-cta-section {
    padding: 100px 0;
    background: var(--charcoal);
    text-align: center;
}

.community-cta-section h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-dark {
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary-dark:hover {
    background: var(--white);
    color: var(--charcoal);
}

/* Community Page Responsive */
@media (max-width: 900px) {
    .palooza-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .palooza-image {
        order: -1;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .community-hero {
        padding: 140px 0 60px;
    }
    
    .palooza-section,
    .community-benefits-section {
        padding: 60px 0;
    }
    
    .community-cta-section {
        padding: 80px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
/* Palooza Carousel Styles */
.palooza-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--light-gray) 0%, #d1d5db 100%);
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.palooza-carousel:hover .carousel-slide img {
    filter: grayscale(0%);
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.image-caption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 4px;
    z-index: 10;
}

/* ============================================
   STORIES PAGE STYLES
   (Hero, Controls, Grid, Filters, Search,
    Skeleton, Load More, Responsive)
   ============================================ */

/* Stories Hero */
.stories-hero {
    padding: 180px 0 60px;
    text-align: center;
    background: var(--off-white);
}

.stories-hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.stories-hero p {
    font-size: 19px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Stories Feed Section */
.stories-feed-section {
    padding: var(--section-padding-lg) 0;
}

/* Search & Filter Controls */
.stories-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

/* Search Input */
.stories-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1px solid var(--light-gray);
    border-radius: 100px;
    background: var(--white);
    width: 260px;
    flex-shrink: 0;
    transition: border-color var(--transition-fast);
}

.stories-search:focus-within {
    border-color: var(--sl-green);
}

.stories-search svg {
    flex-shrink: 0;
    color: var(--gray);
}

.stories-search input {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--charcoal);
    background: transparent;
    width: 100%;
}

.stories-search input::placeholder {
    color: #9CA3AF;
}

/* Filter Tabs */
.stories-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--sl-green);
    color: var(--sl-green);
}

.filter-btn.active {
    background: var(--sl-green);
    border-color: var(--sl-green);
    color: var(--white);
}

/* 4-Column Stories Grid */
.stories-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stories-page-grid .story-card {
    display: block;
    color: inherit;
    border-radius: 16px;
    border: 1px solid var(--light-gray);
    overflow: hidden;
    transition: all var(--transition-med);
    background: var(--white);
}

.stories-page-grid .story-card:hover {
    border-color: var(--sl-green);
    box-shadow: 0 12px 40px rgba(45, 139, 111, 0.12);
    transform: translateY(-4px);
    color: inherit;
}

.stories-page-grid .story-thumbnail {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--sl-green) 0%, var(--sl-green-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
}

.stories-page-grid .story-content {
    padding: 20px;
}

.stories-page-grid .story-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--charcoal);
}

.stories-page-grid .story-date {
    font-size: 12px;
    color: #9CA3AF;
    margin: 0 0 2px 0;
}

.stories-page-grid .story-author {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
    margin: 0;
}

/* Loading Skeleton */
.stories-loading {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    grid-column: 1 / -1;
}

.skeleton-card {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: linear-gradient(90deg, var(--light-gray) 25%, #f0f0f0 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty State */
.stories-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--gray);
    font-size: 16px;
    grid-column: 1 / -1;
}

/* Load More Button */
.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.load-more-wrap .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Stories Page Responsive */
@media (max-width: 1024px) {
    .stories-page-grid,
    .stories-loading {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stories-hero {
        padding: 140px 0 40px;
    }

    .stories-search {
        max-width: 100%;
    }

    .stories-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .stories-page-grid,
    .stories-loading {
        grid-template-columns: 1fr;
    }
}
