/*
  Responsive Breakpoints (desktop-first overrides consolidated)
  - Mobile S: 320px
  - Mobile M: 375px
  - Mobile L: 435px
  - Tablet:   768px
  - Laptop:   1024px
  - Laptop L: 1440px
  - TV:       2560px
*/

/* Slightly smaller section titles for About page */
.section-title-small {
  font-size: 2.8rem !important;
}
/* Meet The Team section styles */
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-placeholder-rect {
  width: 200px;
  height: 280px;
  background: #eaeaea;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: #bdbdbd;
}
.team-subtitle {
  margin-top: 12px;
  font-size: 18px;
  color: #e6d8c3;
  font-weight: bold;
}
.team-subtext {
  margin-top: 4px;
  font-size: 15px;
  color: #eaeaea;
}
/* Why Choose ReSwap grid: 2 per row */
#why-choose .features-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
}
/* Clothing Community Custom Theme */
.community-card.clothing-theme {
  background: rgba(0, 138, 115, 0.04) !important;
}
/* ReSwap Global Styles - Unified Theme System */

/* CSS Custom Properties (Variables) for Theme System */
:root {
  /* Default theme - Homepage/Main */
  --color-primary: #31a050;
  --color-primary-dark: #2a8a44;
  --color-background: #fff9f2;
  --color-text-light: #fff9f2;
  --color-text-dark: #000000;
  --color-text-muted: #4b4b4b;
  --font-heading: 'Frank Ruhl Libre', serif;
  --font-body: 'Inter', 'Hiragino Sans', sans-serif;
}

/* Accessibility helpers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Disabled link/button look for placeholder CTAs */
a.is-disabled,
button.is-disabled,
.btn.is-disabled {
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
}

/* FitShare Theme */
[data-theme="fitshare"] {
  --color-primary: #008a73;
  --color-primary-dark: #006d5a;
  --color-text-primary: #008a73;
}

/* NeedShare Theme */
[data-theme="needshare"] {
  --color-primary: #df3f42;
  --color-primary-dark: #c73134;
  --color-text-primary: #df3f42;
}

/* SpaceShare Theme */
[data-theme="spaceshare"] {
  --color-primary: #50A6CA;
  --color-primary-dark: #3e86a3;
  --color-text-primary: #50A6CA;
}

/* SpaceShare accents: ensure key elements use theme blue */
[data-theme="spaceshare"] .hero-title,
[data-theme="spaceshare"] .section-title,
[data-theme="spaceshare"] .community-nav-title {
  color: var(--color-primary);
}

[data-theme="spaceshare"] .btn-primary,
[data-theme="spaceshare"] .btn-cta {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* SpaceShare Theme */
[data-theme="spaceshare"] {
  --color-primary: #50A6CA;
  --color-primary-dark: #3e86a3;
  --color-text-primary: #50A6CA;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-background);
  font-family: var(--font-body);
  color: var(--color-text-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* line-height: 1.6; */
}

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

.container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 80px;
  padding-right: 80px;
  box-sizing: border-box;
  width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  margin: 0;
}



p {
  line-height: 1.6;
  margin: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 7px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 14px;
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

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

.btn-download {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 10px 24px;
  margin-right: 15px;
}

.btn-cta {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
}

/* Admin Login button: match Download App styles exactly */
.btn-admin {
  background-color: var(--color-background);
  color: var(--color-primary);
  padding: 10px 24px; /* same as .btn-download */
}
.btn-admin:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-background);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Header-specific: make Admin Login background transparent (normal state only) */
.site-header .btn-admin {
  background-color: transparent;
}

/* Preserve original hover style inside header */
.site-header .btn-admin:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-background);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  width: 100%;
/*  background-color: var(--color-background);*/
  backdrop-filter: blur(10px);
/*  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);*/
  padding: 20px 0;
}



.site-header.scrolled {
  background-color: rgba(255, 249, 242, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

.header-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  /* margin-left: auto; */
}

/* Remove right padding inside header so the rightmost button is flush on desktop/tablet */
@media (min-width: 768px) {
  .site-header .container {
    padding-right: 0;
  }
}

.logo {
  position: relative;
  width: 162px;
  height: 42px;
  display: block;
}

.logo img {
  position: absolute;
}

.logo-icon {
  top: -17px;
  left: 52px;
  width: 30px;
}

.logo-text-re {
  top: 2px;
  left: 0;
  width: 46px;
}

.logo-text-swap {
  top: 16px;
  left: 85px;
  width: 77px;
}

/* Navigation Styles */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  align-items: center;
}

.main-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-primary);
  padding: 12px 20px;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.main-nav .nav-link.active,
.main-nav .nav-link:hover {
  color: var(--color-text-light);
  font-weight: 600;
  background-color: var(--color-primary);
}

/* Underline-only hover variant for specific nav links */
.main-nav .nav-link.nav-underline-only {
  background: transparent;
}
.main-nav .nav-link.nav-underline-only:hover {
  background: transparent;           /* no background on hover */
  color: var(--color-primary);       /* keep text green */
}
.main-nav .nav-link.nav-underline-only::after {
  content: "";
  position: absolute;
  left: 12px;                        /* align with padding */
  right: 12px;
  bottom: 8px;                       /* slightly above bottom */
  height: 2px;
  background: transparent;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}
.main-nav .nav-link.nav-underline-only:hover::after {
  background: var(--color-primary);
}

a.nav-link.active {
    padding-top: 40px;
}

.main-nav .nav-link.active::before {
  display: none;
}

.dropdown-arrow {
  margin-left: 8px;
  width: 12px;
  height: 10px;
  transform: rotate(90deg);
}

/* Nav dropdown for Communities */
.main-nav li.dropdown {
  position: relative;
}
.main-nav .dropdown-toggle {
  display: inline-flex;
  align-items: center;
}
.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 8px;
  display: none;
  z-index: 2000;
}
.main-nav li.dropdown:hover > .dropdown-menu {
  display: block;
}
.main-nav .dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--color-text-dark);
  white-space: nowrap;
}
.main-nav .dropdown-item:hover {
  background: rgba(49, 160, 80, 0.08);
  color: var(--color-primary);
}

/* Section Styles */
.section-title {
  font-size: 64px;
  font-weight: 700;
  text-align: center;
  color: var(--color-primary);
/*  margin-bottom: 24px;*/
  font-family: var(--font-heading);
/*    letter-spacing: 10px;*/
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle-dark {
  font-size: 18px;
  text-align: center;
  color: var(--color-text-dark);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero-section {
  padding: 150px 0 100px;
  position: relative;
  /* background: url('../images/fitshare hero.png') center center/cover no-repeat; */
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  
  /* text-align: center; */
  max-width: 560px;
  margin: auto;
  margin-top: 100px;
}

.hero-title {
  font-size: 65px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.hero-welcome {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.underline {
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-underline-offset: 8px;
  text-decoration-thickness: 3px;
}

.hero-section .app-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  justify-content: left;
}

.app-buttons img {
  height: 40px;
  width: auto;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

.hero-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(49, 160, 80, 0.05) 100%);
  z-index: 1;
}

/* Why Choose Section */
.why-choose-section {
  padding: 100px 0;
  background-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, #2b8a5c 100%);
  position: relative;
  margin-top: -60px;
  border-radius: 60px 60px 0 0;
  padding-bottom: 160px;
}

.why-choose-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  /* background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--color-primary) 100%); */
  z-index: -1;
}

.why-choose-section .section-title {
  font-size: 64px;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 20px;
  color: white;
}

.why-choose-section .section-subtitle {
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: 0 auto 80px;
  max-width: 512px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  text-align: center;
  padding: 40px 40px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.feature-icon-bg, .feature-icon {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1);
}

.feature-icon-fg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.feature-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Communities Section */
.communities-section {
  padding: 100px 0;
  background-color: var(--color-background);
  position: relative;
  margin-top: -60px;
  border-radius: 60px 60px 0 0;
}

.communities-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--color-background) 100%);
  z-index: -1;
}

.communities-list {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.community-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  background-color: rgba(49, 160, 80, 0.04);
  padding: 55px 70px;
  border-radius: 18px;
  transition: all 0.3s ease;
}

.community-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.community-card:nth-child(even) {
  flex-direction: row-reverse;
}

.community-content {
  flex: 1;
  max-width: 462px;
}

.community-label {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 300;
  font-size: 16px;
  margin: 0 0 15px;
  color: var(--color-text-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
}



.community-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin: 0 0 20px;
  color: var(--color-primary);
}

.community-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 30px;
}

.community-image-wrapper {
  flex: 1;
  position: relative;
  height: 317px;
  max-width: 527px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-blur {
  position: absolute;
  top: 103px;
  left: 139px;
  width: 234px;
  height: 183px;
  filter: blur(100px);
  z-index: 1;
}

.img-placeholder-large {
  position: absolute;
  top: 0;
  left: 57px;
  width: 470px;
  height: 261px;
  background-color: var(--color-primary);
  border-radius: 11px;
  opacity: 0.8;
  z-index: 2;
}

.img-placeholder-small {
  position: absolute;
  top: 183px;
  left: 0;
  width: 278px;
  height: 134px;
  background-color: var(--color-primary);
  border-radius: 11px;
  box-shadow: 5px -2px 10px -3px rgba(0, 0, 0, 0.25);
  opacity: 0.8;
  z-index: 3;
}

.community-card:nth-child(even) .img-placeholder-large { 
  left: 0; 
}

.community-card:nth-child(even) .img-placeholder-small { 
  left: auto; 
  right: 0; 
}

.community-card:nth-child(even) .img-blur { 
  left: 82px; 
}

/* Footer Styles */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
  margin-top: -60px;
  border-radius: 60px 60px 0 0;
}

.footer-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  z-index: 1;
}

.footer-main {
  position: relative;
  z-index: 2;
  padding: 100px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  align-items: start;
}

.footer-logo-col {
  grid-column: span 1;
}

.footer-subscribe-col {
  grid-column: span 2;
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-light);
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
}

/* Footer icon tinting moved from inline styles in HTML */
.footer-logo-icon,
.footer-social-col img {
  filter: brightness(0) saturate(100%) invert(92%) sepia(10%) saturate(400%) hue-rotate(20deg) brightness(1.1);
}

.footer-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text-light);
}

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

.footer-links a {
  color: var(--color-text-light);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

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

.social-icons img {
  width: auto;
  height: 35px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.social-icons img:hover {
  opacity: 1;
}

.subscribe-title {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--color-text-light);
}

.subscribe-form {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}

.subscribe-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
}

.subscribe-form button {
  background-color: white;
  color: var(--color-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-form button:hover {
  background-color: #f0f0f0;
}

.subscribe-legal {
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.4;
}

.subscribe-legal a {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

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

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--color-text-light);
  opacity: 0.7;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.footer-legal-links a:hover {
  opacity: 1;
}

.footer-copyright {
  font-size: 14px;
  opacity: 0.7;
  color: var(--color-text-light);
}

/* Laptop and down */
@media (max-width: 1024px) {
  /* Container breathing room on laptop */
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
  .how-it-works-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .how-it-works-card.lendor {
    border-radius: 30px;
  }
  
  .community-nav-grid {
    grid-template-columns: 1fr;
    max-width: 491px;
    margin: 0 auto;
  }
}

/* Exact laptop width (1024px): prevent community image overlap by shrinking image placeholders */
@media (width: 1024px) {
  .community-card {
    gap: 40px; /* slightly tighter gap to accommodate narrower width */
    padding: 45px 50px; /* reduce padding so content + image fit */
  }
  .community-image-wrapper {
    height: 260px; /* was 317px */
    max-width: 420px; /* shrink width */
  }
  .img-placeholder-large {
    left: 30px;
    width: 360px;
    height: 200px;
  }
  .img-placeholder-small {
    top: 150px;
    width: 210px;
    height: 100px;
  }
  .img-blur {
    left: 100px;
    top: 80px;
    width: 180px;
    height: 130px;
  }
  /* Even cards maintain reversed layout; adjust their offsets */
  .community-card:nth-child(even) .img-placeholder-large {
    left: 0;
  }
  .community-card:nth-child(even) .img-placeholder-small {
    right: 0;
    left: auto;
  }
  .community-card:nth-child(even) .img-blur {
    left: 60px;
  }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-primary);
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(49, 160, 80, 0.1);
}

.mobile-nav {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: var(--color-background) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  padding: 20px !important;
  z-index: 1000 !important;
  border-radius: 12px;
}

.mobile-nav ul {
  flex-direction: column !important;
  gap: 15px !important;
  align-items: flex-start !important;
}

/* Mobile menu buttons container */
.mobile-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(49, 160, 80, 0.1);
}

.mobile-menu-buttons .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 14px;
  padding: 12px 16px;
}

.mobile-nav .nav-link {
  width: 100%;
  padding: 12px 16px !important;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-nav .nav-link:hover {
  background-color: rgba(49, 160, 80, 0.1);
}

.mobile-nav .nav-link.active {
  background: transparent;
  color: var(--color-primary) !important;
}
/* Keep 'Home' text green without green background when dropdown (mobile) menu is used */
.mobile-nav .nav-link.active[href*="index.html"],
.mobile-nav .nav-link.active[href="#"],
.mobile-nav .nav-link.active:first-child {
  background: transparent !important;
  color: var(--color-primary) !important;
}

/* Tablet and down */
@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .site-header {
    padding: 12px 0;
  }
  
  /* Hide header buttons on mobile - they'll appear in the hamburger menu */
  .header-buttons {
    display: none;
  }
  
  /* Fix header container alignment */
  .header-container {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .logo {
    width: 130px;
    height: 34px;
    transform: translateY(-10px);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
  }
  
  .main-nav.mobile-nav {
    display: block;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 80px 0 40px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }  .hero-content {
    margin-top: 40px;
  }
  
  .hero-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  
  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .hero-section .app-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .app-buttons img {
    height: 44px;
    width: auto;
    max-width: 180px;
  }
  
  /* Sections */
  .section-title {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .section-subtitle,
  .section-subtitle-dark {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  /* Why Choose Section */
  .why-choose-section {
    padding: 50px 0 50px;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
  }
  
  .why-choose-section .section-title {
    font-size: 36px;
  }
  
  .why-choose-section .section-subtitle {
    font-size: 13px;
    margin-bottom: 40px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
    max-width: 300px;
    padding-bottom: 50px;
  }
  
  .feature-card {
    padding: 24px 20px;
  }
  
  .feature-icon-wrapper {
    margin-bottom: 16px !important;
  }
  
  .feature-icon-bg, .feature-icon {
    width: 45px !important;
    height: 45px !important;
  }
  
  .feature-icon-fg {
    width: 22px !important;
    height: 22px !important;
  }
  
  .feature-title {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }
  
  .feature-description {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  
  /* Communities Section */
  .communities-section {
    padding: 50px 0 40px;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
  }

  .communities-list {
    margin-top: 30px;
    gap: 30px;
  }  .community-nav-title {
    font-size: 36px;
  }
  
  .community-card {
    flex-direction: column !important;
    text-align: center;
    padding: 30px 20px;
    gap: 30px;
  }
  
  .community-card:nth-child(even) {
    flex-direction: column !important;
  }
  
  .community-content {
    max-width: 100%;
  }
  
  .community-title {
    font-size: 28px;
    margin-bottom: 16px;
  }
  
  .community-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  
  .community-label {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  /* Community images */
  .community-image-wrapper {
    max-width: 100%;
    height: 200px;
    margin: 0 auto;
  }
  
  .img-placeholder-large {
    left: 10px !important;
    width: calc(100% - 20px);
    max-width: 280px;
    height: 160px;
  }
  
  .img-placeholder-small {
    left: 0 !important;
    right: auto !important;
    top: 100px;
    width: calc(100% - 40px);
    max-width: 180px;
    height: 80px;
  }
  
  .community-card:nth-child(even) .img-placeholder-large {
    left: 10px !important;
  }
  
  .community-card:nth-child(even) .img-placeholder-small {
    left: 0 !important;
    right: auto !important;
  }
  
  .img-blur {
    width: 150px !important;
    height: 100px !important;
    left: 50% !important;
    transform: translateX(-50%);
    top: 50px !important;
  }
  
  /* Comparison Section */
  .comparison-section {
    padding: 50px 0 40px;
  }
  
  .comparison-table {
    overflow-x: auto;
    overflow-y: visible;
    font-size: 13px;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
  }
  
  .header-cell,
  .cell {
    padding: 12px 8px;
    font-size: 11px;
  }
  
  .table-header {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    min-width: 500px;
  }
  
  .table-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    min-width: 500px;
  }
  
  /* FAQ Section */
  .faq-section {
    padding: 40px 0;
  }
  
  .faq-item {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .faq-question {
    font-size: 16px;
    gap: 12px;
  }
  
  .faq-answer {
    font-size: 14px;
    padding-left: 28px;
    margin-top: 12px;
  }
  
  /* CTA Section */
  .cta-section {
    padding: 50px 0;
  }
  
  .cta-title {
    font-size: 32px;
  }
  
  .info-title {
    font-size: 36px;
  }
  
  .info-description {
    font-size: 16px;
  }
  
  /* How It Works */
  .how-it-works-section {
    padding: 50px 0 40px;
    margin-top: -40px;
  }
  
    .how-it-works-section .section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .how-it-works-grid {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .how-it-works-card {
        min-width: auto;
        max-width: 100%;
        width: 100%;
        padding: 30px 24px;
        flex: none;
    }

    .how-it-works-card h3 {
        font-size: 24px;
    }  /* Community Nav Section */
  .community-nav-section {
    padding: 40px 0;
  }
  
  .community-nav-section .section-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  /* Info Section (Why X Matters) */
  .info-section {
    padding: 40px 0;
  }
  
  /* Community Nav Cards */ 
  .community-nav-card {
    height: auto;
    min-height: 140px;
    padding: 20px;
  }
  
  /* Footer */
  .site-footer {
    margin-top: -40px;
    border-radius: 40px 40px 0 0;
  }
  
  .footer-main {
    padding: 60px 0 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-subscribe-col {
    grid-column: span 1;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-legal-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .subscribe-form {
    flex-direction: column;
    gap: 10px;
  }
  
  .subscribe-form button {
    width: 100%;
  }
}

/* Exact tablet width (iPad portrait 768px): left-align hero globally except homepage hero stays centered */
@media (width: 768px) {
  .hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
  }
  .hero-content {
    margin-left: 0;
    margin-right: auto;
  padding-left: 30px; /* add breathing room from left edge */
  }
  .hero-title,
  .hero-subtitle,
  .hero-description,
  .hero-welcome {
    text-align: left;
    margin-left: 0;
  padding-left: 30px; /* align with hero-content padding */
  }
  .hero-section .app-buttons {
    align-items: flex-start;
  padding-left: 30px; /* keep buttons aligned with text */
  }
  /* Homepage (#hero) overrides: center direct children only (do not affect FitShare) */
  #hero > .hero-content,
  #hero > .hero-title,
  #hero > .hero-subtitle,
  #hero > .app-buttons {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    align-items: center;
  }
  #hero > .app-buttons { padding-left: 0; }
  /* Homepage hero: force the second part onto a new line at 768px */
  #hero .hero-title .hero-line-2 {
    display: block;
  }
}

/* Mobile L and down */
@media (max-width: 435px) {
  /* Header */
  .site-header {
    padding: 10px 0;
  }
  
  .logo {
    width: 110px;
    height: 29px;
  }
  
  .header-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .btn-admin,
  .btn-download {
    flex: 1;
    font-size: 12px;
    padding: 8px 12px;
    min-width: 0;
  }
  
  /* Typography */
  .hero-title {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .why-choose-section .section-title {
    font-size: 28px;
  }
  
  .community-nav-title {
    font-size: 28px;
  }
  
  .info-title {
    font-size: 28px;
  }
  
  .info-description {
    font-size: 15px;
  }
  
  .cta-title {
    font-size: 28px;
  }
  
  .community-title {
    font-size: 24px;
  }
  
  .feature-card {
    padding: 20px 16px !important;
  }
  
  .feature-icon-wrapper {
    margin-bottom: 14px !important;
  }
  
  .feature-icon-bg, .feature-icon {
    width: 40px !important;
    height: 40px !important;
  }
  
  .feature-icon-fg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .feature-title {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }
  
  .feature-description {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
  
  .how-it-works-card h3 {
    font-size: 20px;
  }
  
  /* Spacing */
  .hero-section {
    padding: 100px 0 50px;
  }
  
  .why-choose-section {
    padding: 50px 0 100px;
  }
  
  .communities-section {
    padding: 50px 0;
  }
  
  .comparison-section {
    padding: 50px 0;
  }
  
  .faq-section {
    padding: 50px 0;
  }
  
  .cta-section {
    padding: 50px 0;
  }
  
  .footer-main {
    padding: 50px 0 30px;
  }
  
  /* Community images - further reduce */
  .img-placeholder-large {
    width: calc(100% - 10px) !important;
    max-width: 250px !important;
    height: 140px !important;
    left: 5px !important;
  }
  
  .img-placeholder-small {
    width: calc(100% - 20px) !important;
    max-width: 150px !important;
    height: 70px !important;
    top: 80px !important;
  }
  
  .community-image-wrapper {
    height: 160px !important;
  }
  
  .img-blur {
    width: 120px !important;
    height: 80px !important;
  }
  
  /* Comparison table */
  .comparison-table {
    margin: 20px -20px;
    font-size: 11px;
    overflow-x: auto;
    overflow-y: visible;
  }
  
  .header-cell,
  .cell {
    padding: 10px 6px;
    font-size: 10px;
  }
  
  .table-header,
  .table-row {
    min-width: 450px;
  }
  
  /* Cards */
  .feature-card {
    padding: 24px 20px;
  }
  
  .community-card {
    padding: 24px 16px;
  }
  
  .how-it-works-card {
    padding: 24px 20px;
  }
  
  /* App buttons */
  .app-buttons img {
    height: 40px;
    max-width: 160px;
  }
  
  /* FAQ */
  .faq-item {
    padding: 14px;
  }
  
  .faq-question {
    font-size: 15px;
  }
  
  .faq-answer {
    font-size: 13px;
  }
  /* About Us: stack stats vertically on narrow screens */
  .story-stats {
    flex-direction: column;
    gap: 20px;
  }
}

/* Mobile L - 435px - Optimized for larger mobile phones */
@media (max-width: 435px) {
  /* Container adjustments */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  /* Typography fine-tuning */
  .hero-title {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .hero-subtitle,
  .hero-description {
    font-size: 15px;
    line-height: 1.5;
  }
  
  .section-title {
    font-size: 26px;
    line-height: 1.3;
  }
  
  /* App buttons spacing */
  .app-buttons {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .app-buttons img {
    height: 38px;
    max-width: 145px;
  }
  
  /* Community navigation cards */
  .community-nav-grid {
    gap: 14px;
  }
  
  .community-nav-card {
    padding: 20px 14px;
    min-height: 120px;
  }
  
  .community-nav-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }
  
  .community-nav-card p {
    font-size: 13px;
    line-height: 1.4;
  }
  
  /* How it works section */
  .how-it-works-grid {
    gap: 16px;
  }
  
  .how-it-works-card {
    padding: 22px 18px;
  }
  
  .how-it-works-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
  }
  
  .how-it-works-card p,
  .how-it-works-card li {
    font-size: 13px;
    line-height: 1.5;
  }
  
  /* Footer adjustments */
  .footer-column h4 {
    font-size: 15px;
    margin-bottom: 12px;
  }
  
  .footer-column ul li {
    margin-bottom: 8px;
  }
  
  .footer-column a {
    font-size: 13px;
  }
  
  .footer-newsletter input {
    font-size: 13px;
    padding: 10px 12px;
  }
  
  .footer-newsletter button {
    font-size: 13px;
    padding: 10px 20px;
  }
}

/* Mobile M - 375px - Standard mobile phone size */
@media (max-width: 375px) {
  /* Further container reduction */
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  
  /* Typography optimization */
  .hero-title {
    font-size: 28px;
    margin-bottom: 14px;
  }
  
  .hero-subtitle,
  .hero-description {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .info-title {
    font-size: 24px;
  }
  
  .cta-title {
    font-size: 24px;
  }
  
  /* App buttons */
  .app-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .app-buttons img {
    height: 42px;
    max-width: 160px;
    width: 100%;
  }
  
  /* Feature cards */
  .feature-card {
    padding: 18px 14px !important;
  }
  
  .feature-title {
    font-size: 15px !important;
  }
  
  .feature-description {
    font-size: 12px !important;
  }
  
  /* Community cards */
  .community-nav-card {
    padding: 18px 12px;
    min-height: 110px;
  }
  
  .community-nav-card h3 {
    font-size: 17px;
  }
  
  .community-nav-card p {
    font-size: 12px;
  }
  
  /* How it works cards */
  .how-it-works-card {
    padding: 20px 16px;
  }
  
  .how-it-works-card h3 {
    font-size: 18px;
  }
  
  .how-it-works-card p,
  .how-it-works-card li {
    font-size: 12px;
  }
  
  /* Footer spacing */
  .footer-main {
    padding: 40px 0 25px;
  }
  
  .footer-columns {
    gap: 30px;
  }
  
  .footer-bottom {
    padding: 16px 0;
  }
  
  .footer-bottom-links {
    gap: 12px;
    font-size: 12px;
  }
  
  /* Comparison table mobile optimization */
  .comparison-table {
    margin: 20px -14px;
    font-size: 10px;
  }
  
  .header-cell,
  .cell {
    padding: 8px 4px;
    font-size: 9px;
  }
}

/* Mobile S - 320px - Smallest mobile devices */
@media (max-width: 320px) {
  /* Minimal container padding */
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  /* Compact typography */
  .hero-title {
    font-size: 26px;
    margin-bottom: 12px;
    line-height: 1.2;
  }
  /* Mobile S: reduce hero title width by 30px and center */
  .hero-section .hero-title {
    display: block;
    max-width: calc(100% - 30px) !important;
    margin: 0 auto 12px !important;
    text-align: center;
    font-size: 31px !important; /* reduced by 5px per request */
    line-height: 1.18;
  }
  /* Mobile S: force second line of hero title to next line */
  .hero-section .hero-title .hero-line-2 {
    display: block;
  }
  
  .hero-subtitle,
  .hero-description {
    font-size: 13px;
    line-height: 1.4;
  }
  /* Mobile S: make hero subtitle 20px narrower and centered */
  .hero-section .hero-subtitle {
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
  }
  
  .section-title {
    font-size: 22px;
    margin-bottom: 14px;
  }
  
  .info-title,
  .cta-title,
  .community-nav-title {
    font-size: 22px;
  }
  
  .info-description {
    font-size: 13px;
  }
  
  /* Compact spacing */
  .hero-section {
    padding: 90px 0 40px;
  }
  
  .why-choose-section,
  .communities-section,
  .comparison-section,
  .faq-section,
  .cta-section {
    padding: 40px 0;
  }
  /* Mobile S: make communities subtitle 5px smaller */
  .communities-section .section-subtitle-dark {
    font-size: 11px;
  }
  
  /* App buttons - full width stacked */
  .app-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .app-buttons img {
    height: 40px;
    max-width: 100%;
    width: 100%;
  }

  /* Homepage hero: match Mobile M layout exactly at Mobile S */
  .hero-section .app-buttons {
    flex-direction: column !important;
    align-items: center;
    gap: 12px;
  }
  .hero-section .app-buttons img {
  width: 90px;
  height: auto;
  max-width: 90px;
  }


/* Mobile M - 321px to 375px: homepage hero title sizing and forced line break */
@media (min-width: 321px) and (max-width: 375px) {
  /* Scope to homepage hero only via #hero */
  #hero .hero-title {
    font-size: 31px;
    line-height: 1.18;
  }
  #hero .hero-title .hero-line-2 {
    display: block; /* force second part onto a new line */
  }
}
  /* Mobile S: bottom CTA app buttons side-by-side at fixed width */
  .cta-section .app-buttons {
    flex-direction: row !important;
    justify-content: center;
    gap: 16px;
  }
  .cta-section .app-buttons img {
    width: 100px;
    height: auto;
    max-width: 100px;
  }
  
  /* Feature cards - ultra compact */
  .feature-card {
    padding: 16px 12px !important;
  }
  
  .feature-icon-wrapper {
    margin-bottom: 10px !important;
  }
  
  .feature-icon-bg, .feature-icon {
    width: 36px !important;
    height: 36px !important;
  }
  
  .feature-icon-fg {
    width: 18px !important;
    height: 18px !important;
  }
  
  .feature-title {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }
  
  .feature-description {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
  /* Mobile S: extra bottom spacing under feature cards */
  .why-choose-section .features-grid { padding-bottom: 50px; }
  
  /* Community navigation cards - compact */
  .community-nav-grid {
    gap: 12px;
  }
  
  .community-nav-card {
    padding: 16px 10px;
    min-height: 100px;
  }
  
  .community-nav-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .community-nav-card p {
    font-size: 11px;
    line-height: 1.3;
  }
  
  /* How it works cards - minimal padding */
  .how-it-works-grid {
    gap: 14px;
  }
  
  .how-it-works-card {
    padding: 18px 14px;
  }
  
  .how-it-works-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }
  
  .how-it-works-card p {
    font-size: 11px;
    margin-bottom: 10px;
  }
  
  .how-it-works-card li {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  
  /* Footer compact */
  .footer-main {
    padding: 35px 0 20px;
  }
  
  .footer-columns {
    gap: 25px;
  }
  
  .footer-column h4 {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .footer-column a,
  .footer-column p {
    font-size: 12px;
  }
  
  .footer-newsletter input {
    font-size: 12px;
    padding: 9px 10px;
  }
  
  .footer-newsletter button {
    font-size: 12px;
    padding: 9px 16px;
  }
  
  .footer-bottom {
    padding: 14px 0;
    font-size: 11px;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
  }
  
  /* FAQ compact */
  .faq-item {
    padding: 12px;
  }
  
  .faq-question {
    font-size: 14px;
  }
  
  .faq-answer {
    font-size: 12px;
  }
  
  /* CTA section */
  .cta-section {
    padding: 40px 0;
  }
  
  .cta-button {
    font-size: 14px;
    padding: 12px 24px;
  }
  
  /* Community images - smallest size */
  .img-placeholder-large {
    max-width: 220px !important;
    height: 130px !important;
  }
  
  .img-placeholder-small {
    max-width: 130px !important;
    height: 65px !important;
  }
  
  .community-image-wrapper {
    height: 150px !important;
  }

  /* NeedShare page: Mobile S heading size */
  [data-theme="needshare"] .how-it-works-section .section-title {
    font-size: 36px !important;
  }
}

/* Page-specific styles */

/* Comparison Section (Homepage only) */
.comparison-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

.comparison-table {
  max-width: 800px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background-color: var(--color-primary);
  color: white;
}

.header-cell {
  padding: 20px;
  font-weight: 600;
  text-align: center;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid #eee;
}

.table-row:last-child {
  border-bottom: none;
}

.feature-row {
  background-color: #f8f9fa;
}

.cell {
  padding: 16px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cell img {
  width: 20px;
  height: 20px;
}

.comparison-cta {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: #FFF9F2;
  background: var(--color-background);
  overflow: hidden;
    position: relative;

}


.faq-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(49, 160, 80, 0.02) 100%);
}

.faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
    outline: 2px solid #31a050;
    margin: 0px 0px 20px 0px;
    padding: 11px 20px;
    padding-bottom: 0px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, .1);
    border-radius: 9px;
/*  border-bottom: 1px solid #eee;*/
/*  padding: 24px 0;*/
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.faq-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.faq-answer {
  margin-top: 16px;
  padding-left: 32px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.faq-cta {
  text-align: center;
  margin-top: 40px;
}

/* CTA Section */
.cta-section {
  padding: 150px 0;
  position: relative;
  background: var(--color-background);
  text-align: center;
  overflow: hidden;
  margin-top: -60px;
  border-radius: 60px 60px 0 0;
}

.cta-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta-bg-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.cta-blur-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1014px;
  height: 424px;
  filter: blur(200px);
  z-index: 0;
}

.cta-container {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 32px;
  border-radius: 8px;
}

.cta-button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Community-specific sections */
.info-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: var(--color-text-light);
  padding-top: 50px;
  /* margin-top: -60px; */
  border-radius: 60px 60px 0 0;
}

.info-section-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary);
  border-radius: 60px 60px 0 0;
  z-index: -1;
}

.info-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(255, 249, 242, 0) 0%, var(--color-primary) 100%);
  z-index: -1;
}

.info-container {
  position: relative;
  z-index: 2;
  max-width: 933px;
  margin: 0 auto;
}

.info-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.29;
  color: var(--color-text-light);
  margin-bottom: 17px;
}

.info-description {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.33;
  color: var(--color-text-light);
}

/* Community navigation cards */
.community-nav-section {
  padding: 100px 0;
  background-color: var(--color-background);
  position: relative;
}

.community-nav-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(255, 249, 242, 0) 0%, var(--color-background) 100%);
  z-index: -1;
}

.community-nav-title {
  font-size: 64px;
  font-weight: 700;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 27px;
}

.community-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 48px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.community-nav-card {
  height: 229px;
  background-color: #d9d9d9;
  border: 1px solid #000000;
  border-radius: 15px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
}

.community-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.community-nav-card.current {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border-color: var(--color-primary);
}

.community-nav-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--color-text-dark);
}

.community-nav-card.current h3 {
  color: white;
}

.community-nav-card p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.community-nav-card.current p {
  color: rgba(255, 255, 255, 0.9);
}

/* NeedShare promo card background for Explore sections */
.community-nav-card.needshare-bg {
  background: url('../images/essentials_com.png') center center/cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-color:#DF3F42;
}
.community-nav-card.needshare-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}
.community-nav-card.needshare-bg > * {
  position: relative;
  z-index: 1;
}
.community-nav-card.needshare-bg h3,
.community-nav-card.needshare-bg p {
  color: #fff;
}

/* FitShare promo card background for Explore sections */
.community-nav-card.fitshare-bg {
  background: url('../images/clothing_rack.png') center center/cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-color:#008A73;
}
.community-nav-card.fitshare-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}
.community-nav-card.fitshare-bg > * {
  position: relative;
  z-index: 1;
}
.community-nav-card.fitshare-bg h3,
.community-nav-card.fitshare-bg p {
  color: #fff;
}

/* RideShare promo card background */
.community-nav-card.rideshare-bg {
  background: url('../images/car_driving.png') center center/cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-color: #9168E5;
}
.community-nav-card.rideshare-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}
.community-nav-card.rideshare-bg > * {
  position: relative;
  z-index: 1;
}
.community-nav-card.rideshare-bg h3,
.community-nav-card.rideshare-bg p {
  color: #fff;
}

/* SpaceShare promo card background */
.community-nav-card.spaceshare-bg {
  background: url('../images/housing_com.png') center center/cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-color:#50A6CA;
}
.community-nav-card.spaceshare-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}
.community-nav-card.spaceshare-bg > * {
  position: relative;
  z-index: 1;
}
.community-nav-card.spaceshare-bg h3,
.community-nav-card.spaceshare-bg p {
  color: #fff;
}

/* How It Works Section */
.how-it-works-section {
  padding: 100px 0;
  background-color: var(--color-background);
  position: relative;
  margin-top: -60px;
  border-radius: 60px 60px 0 0;
}

.how-it-works-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(255, 249, 242, 0) 0%, var(--color-background) 100%);
  z-index: -1;
}

.how-it-works-section .section-title {
  text-align: center;
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 68px;
  color: var(--color-primary);
}

.how-it-works-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.how-it-works-card {
  padding: 74px 50px;
  max-width: 550px;
  border-radius: 30px;
  transition: transform 0.3s ease;
  flex: 1;
  /* min-width: 320px; */
}

.how-it-works-card:hover {
  transform: translateY(-5px);
}

.how-it-works-card.lendor {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: 0px 60px 60px 0px;
  box-shadow: 9px 9px 17.5px 0px rgba(0, 0, 0, 0.25);
}

.how-it-works-card.seller {
  background-color: rgba(var(--color-primary-rgb), 0.04);
  border: 2px solid var(--color-primary);
}

[data-theme="fitshare"] .how-it-works-card.seller {
  background-color: rgba(0, 138, 115, 0.04);
}

[data-theme="needshare"] .how-it-works-card.seller {
  background-color: rgba(223, 63, 66, 0.04);
}

.how-it-works-card.lendor h3 {
  color: var(--color-text-light);
}

.how-it-works-card h3 {
  font-size: 45px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.how-it-works-card p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.how-it-works-card ul {
  list-style: none;
  padding: 0;
}

.how-it-works-card li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.how-it-works-card li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.how-it-works-card.lendor li::before {
  color: var(--color-text-light);
}

/* About Us Page Specific Styles */

/* Hero Video Section */
.hero-video {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-video-placeholder {
  background-color: #d9d9d9;
  border-radius: 12px;
  width: 100%;
  max-width: 458px;
  height: 237px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero-video-placeholder:hover {
  transform: scale(1.02);
}

.play-button {
  width: 62px;
  height: 62px;
}

/* Our Story Section */
.our-story-section {
  padding: 100px 0;
  background-color: var(--color-primary);
  position: relative;
  margin-top: -60px;
  border-radius: 60px 60px 0 0;
  padding-bottom: 180px;
}

.our-story-section .section-title {
  /* padding: 100px 0; */
  color: var(--color-background);
  /* position: relative; */
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.story-subtitle {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-background);
}

.story-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-background);
  margin-bottom: 20px;
}

.story-stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background-color: var(--color-background);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Our Mission Section */
.our-mission-section {
  padding: 100px 0;
  background-color: var(--color-background);
  position: relative;
  margin-top: -60px;
  border-radius: 60px 60px 0 0;
  padding-bottom: 180px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.mission-card {
  text-align: center;
  padding: 40px 30px;
  background-color: #31a05007;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.mission-icon {
  margin-bottom: 24px;
}

.mission-icon img {
  width: 60px;
  height: 60px;
}

.mission-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.mission-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Our Values Section */
.our-values-section {
  padding: 100px 0;
  background-color: var(--color-primary);
  position: relative;
  margin-top: -60px;
  border-radius: 60px 60px 0 0;
  padding-bottom: 180px;
  /* padding-bottom: 60px; */
}

.our-values-section .section-title {
  /* padding: 100px 0; */
  color: var(--color-background);
  /* position: relative; */
}

.values-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 60px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  background-color: var(--color-background);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateX(10px);
}

.value-item:nth-child(even) {
  flex-direction: row-reverse;
}

.value-icon img {
  width: 80px;
  height: 80px;
}

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

.value-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Team Section */
.team-section {
  padding: 100px 0;
  background-color: var(--color-background);
  position: relative;
  margin-top: -60px;
  border-radius: 60px 60px 0 0;
}

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

.team-member {
  text-align: center;
  padding: 40px 20px;
  background-color: #31a05007;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-8px);
}

.member-photo {
  margin-bottom: 20px;
}

.member-photo img {
  width: 100%;
  padding: 5px;
  /* height: 120px; */
  border-radius: 5%;
}

.member-name {
  font-size: 24px;
  font-weight: 700;
  /* margin-bottom: 8px; */
  color: var(--color-primary);
}

.member-role {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.member-bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Join Us Section */
.join-us-section {
  padding: 100px 0;
  /* background: linear-gradient(135deg, var(--color-primary) 0%, #2b8a5c 100%); */
  background-color: var(--color-background);
  position: relative;
  color: white;
  margin-top: -60px;
}

.join-us-section .section-title {
  color: var(--color-primary);
}

.join-us-section .section-subtitle-dark {
  /* color: rgba(255, 255, 255, 0.9); */
  color: var(--color-primary);
}

.join-actions {
  /* display: grid; */
  grid-template-columns: 1fr 1fr;
  /* gap: 40px; */
  margin-top: 80px;
}

.join-card {
  text-align: center;
  padding: 40px 30px;
  background-color: #31a05007;
  backdrop-filter: blur(10px);
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
  border-radius: 20px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.join-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.25);
}

.join-icon {
  margin-bottom: 24px;
}

.join-icon img {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1);
}

.join-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.join-description {
  font-size: 16px;
  line-height: 1.6;
  /* color: rgba(255, 255, 255, 0.9); */
  color: var(--color-primary);
  margin-bottom: 24px;
}

.join-card .app-buttons {
  justify-content: center;
  margin-bottom: 0;
}

/* About Us Mobile Responsive Styles */
@media (max-width: 768px) {
  .story-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .story-stats {
    flex-direction: row;
    gap: 20px;
    margin: auto;
  }
  
  .stat-item {
    padding: 20px 15px;
  }
  
  .stat-number {
    font-size: 32px;
  }
  
  .mission-grid {
    grid-template-columns: 1fr;
  }
  
  .value-item {
    flex-direction: column !important;
    text-align: center;
    gap: 20px;
  }
  
  .value-item:nth-child(even) {
    flex-direction: column !important;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 60px auto 0;
  }
  
  .join-actions {
    grid-template-columns: 1fr;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

/* Removed duplicate consolidated empty media queries to keep CSS lean */

/* Television - 2560px up: center and increase gutters to avoid overly wide lines */
/* Laptop L - 1440px: reserved (current layout scales well) */
@media (min-width: 1440px) {
  /* intentionally no changes at 1440px; keeping for clarity */
}

@media (min-width: 2560px) {
  .container {
    max-width: 1600px; /* prevent ultra-wide content */
    padding-left: 160px;
    padding-right: 160px;
  }
  .section-title { letter-spacing: 0.2px; }
  .hero-title { letter-spacing: 0.2px; }
}

/* About Us page - Mobile L (435px) */
@media (max-width: 435px) {
  .story-subtitle {
    font-size: 22px;
    line-height: 1.3;
  }
  
  .stat-number {
    font-size: 30px;
  }
  
  .stat-label {
    font-size: 13px;
  }
  
  .mission-card,
  .value-item {
    padding: 20px 16px;
  }
  
  .mission-card h3,
  .value-title {
    font-size: 20px;
  }
  
  .mission-card p,
  .value-content p {
    font-size: 13px;
  }
  
  .team-card h3 {
    font-size: 18px;
  }
  
  .team-card p {
    font-size: 13px;
  }
}

/* About Us page - Mobile M (375px) */
@media (max-width: 375px) {
  .story-subtitle {
    font-size: 20px;
  }
  
  .story-stats {
    gap: 16px;
  }
  
  .stat-item {
    padding: 18px 12px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .mission-card,
  .value-item {
    padding: 18px 14px;
  }
  
  .mission-card h3,
  .value-title {
    font-size: 19px;
  }
  
  .mission-card p,
  .value-content p {
    font-size: 12px;
    line-height: 1.5;
  }
  
  .team-card {
    padding: 20px 14px;
  }
  
  .team-card h3 {
    font-size: 17px;
  }
  
  .team-card p {
    font-size: 12px;
  }
  
  .hero-video-placeholder {
    height: 160px;
  }
}

/* About Us page - Mobile S (320px) */
@media (max-width: 320px) {
  .story-subtitle {
    font-size: 19px;
    line-height: 1.3;
  }
  
  .story-stats {
    flex-direction: column; /* revert to column on Mobile S */
    gap: 14px;
  }
  
  .stat-item {
    padding: 16px 10px;
  }
  
  .stat-number {
    font-size: 26px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  .mission-card,
  .value-item {
    padding: 16px 12px;
  }
  
  .mission-card h3,
  .value-title {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .mission-card p,
  .value-content p {
    font-size: 11px;
    line-height: 1.4;
  }
  
  .team-card {
    padding: 18px 12px;
  }
  
  .team-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .team-card p {
    font-size: 11px;
    line-height: 1.4;
  }
  
  .hero-video-placeholder {
    height: 150px;
  }
  
  .join-action-card {
    padding: 24px 16px;
  }
  
  .join-action-card h3 {
    font-size: 18px;
  }
  
  .join-action-card p {
    font-size: 12px;
  }
}
