* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-green: #0f5333;
    --primary-green-light: #1f8f63;
    --primary-green-dark: #092312;
    --secondary-blue: #7daaff;
    --accent-teal: #78ccaa;
    --text-dark: #122719;
    --text-medium: rgba(18, 39, 25, 0.7);
    --text-light: rgba(18, 39, 25, 0.5);
    --bg-primary: #fafbf9;
    --bg-secondary: #ffffff;
    --bg-overlay: rgba(255, 255, 255, 0.8);
    --border-color: rgba(18, 39, 25, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
    --gradient-primary: linear-gradient(135deg, #1f8f63 0%, #0f5333 100%);
    --gradient-hero: linear-gradient(135deg, #0f5333 0%, #1f8f63 50%, #78ccaa 100%);
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-dark);
    scroll-behavior: smooth;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Safari rendering fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 40vmax;
    height: 40vmax;
    border-radius: 50%;
    -webkit-filter: blur(100px);
    filter: blur(100px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
    -webkit-animation: float 20s ease-in-out infinite;
    animation: float 20s ease-in-out infinite;
}

body::before {
    top: -15vmax;
    left: -10vmax;
    background: #78ccaa; /* Fallback for Safari - using direct color instead of CSS variable */
    animation-delay: 0s;
    -webkit-animation-delay: 0s;
}

body::after {
    bottom: -15vmax;
    right: -10vmax;
    background: #7daaff; /* Fallback for Safari - using direct color instead of CSS variable */
    animation-delay: 10s;
    -webkit-animation-delay: 10s;
}

@-webkit-keyframes float {
    0%, 100% { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); }
    50% { -webkit-transform: translate(30px, -30px) scale(1.1); transform: translate(30px, -30px) scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* Navigation */
.navbar {
    position: -webkit-sticky; /* Safari prefix */
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8); /* Fallback for Safari */
    background: var(--bg-overlay);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    /* Safari rendering fix for sticky + backdrop-filter */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    display: -webkit-box; /* Safari fallback */
    display: -webkit-flex; /* Safari fallback */
    display: flex;
    -webkit-box-pack: justify; /* Safari fallback */
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center; /* Safari fallback */
    -webkit-align-items: center;
    align-items: center;
    padding: 1rem clamp(2rem, 8vw, 8rem);
}

/* Gap fallback for older Safari */
@supports not (gap: 2rem) {
    .nav-container {
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .nav-container > * {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@supports (gap: 2rem) {
    .nav-container {
        gap: 2rem;
    }
}

.navbar .logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar .logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: -webkit-box; /* Safari fallback */
    display: -webkit-flex; /* Safari fallback */
    display: flex;
    margin: 0;
    padding: 0;
    -webkit-box-align: center; /* Safari fallback */
    -webkit-align-items: center;
    align-items: center;
}

/* Gap fallback for older Safari */
@supports not (gap: 2.5rem) {
    .nav-links {
        margin-left: -1.25rem;
    }
    
    .nav-links > li {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }
}

@supports (gap: 2.5rem) {
    .nav-links {
        gap: 2.5rem;
    }
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.nav-links li a:hover::after {
    width: 100%;
}

.nav-btn {
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    max-width: 360px;
    background: var(--bg-secondary);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.12);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu ul li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu ul li:last-child {
    border-bottom: none;
    margin-top: 1rem;
}

.mobile-menu ul li a,
.mobile-menu ul li button.nav-btn {
    display: block;
    padding: 1.25rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: color 0.3s ease;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li button.nav-btn:hover {
    color: var(--primary-green);
}

.mobile-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1040;
}

.mobile-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* Main Content */
.page {
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem clamp(2rem, 8vw, 8rem);
    display: -webkit-box; /* Safari fallback */
    display: -webkit-flex; /* Safari fallback */
    display: flex;
    -webkit-box-orient: vertical; /* Safari fallback */
    -webkit-box-direction: normal; /* Safari fallback */
    -webkit-flex-direction: column;
    flex-direction: column;
}

/* Gap fallback for older Safari */
@supports not (gap: 3.5rem) {
    .page > * + * {
        margin-top: 3.5rem;
    }
}

@supports (gap: 3.5rem) {
    .page {
        gap: 3.5rem;
    }
}

/* Hero Section */
.hero-section {
    display: -webkit-grid; /* Safari fallback */
    display: grid;
    -webkit-grid-template-columns: 1.1fr 0.9fr; /* Safari fallback */
    grid-template-columns: 1.1fr 0.9fr;
    -webkit-align-items: center; /* Safari fallback */
    align-items: center;
    padding: 1rem 0;
    min-height: 500px;
    width: 100%;
}

/* Grid gap fallback for older Safari */
@supports not (gap: 4rem) {
    .hero-section > * + * {
        margin-left: 4rem;
    }
}

@supports (gap: 4rem) {
    .hero-section {
        gap: 4rem;
    }
}

.hero-content {
    display: -webkit-box; /* Safari fallback */
    display: -webkit-flex; /* Safari fallback */
    display: flex;
    -webkit-box-orient: vertical; /* Safari fallback */
    -webkit-box-direction: normal; /* Safari fallback */
    -webkit-flex-direction: column;
    flex-direction: column;
}

/* Gap fallback for older Safari */
@supports not (gap: 1.5rem) {
    .hero-content > * + * {
        margin-top: 1.5rem;
    }
}

@supports (gap: 1.5rem) {
    .hero-content {
        gap: 1.5rem;
    }
}

.hero-badge {
    display: -webkit-inline-box; /* Safari fallback */
    display: -webkit-inline-flex; /* Safari fallback */
    display: inline-flex;
    -webkit-box-align: center; /* Safari fallback */
    -webkit-align-items: center;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(31, 143, 99, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green);
    width: -webkit-fit-content; /* Safari fallback */
    width: -moz-fit-content; /* Firefox fallback */
    width: fit-content;
}

/* Gap fallback for older Safari */
@supports not (gap: 0.5rem) {
    .hero-badge > * + * {
        margin-left: 0.5rem;
    }
}

@supports (gap: 0.5rem) {
    .hero-badge {
        gap: 0.5rem;
    }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-green-light);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@-webkit-keyframes pulse {
    0%, 100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
    50% { opacity: 0.7; -webkit-transform: scale(1.2); transform: scale(1.2); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Safari fallback */
    color: var(--primary-green);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .gradient-text {
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-medium);
    line-height: 1.6;
    max-width: 650px;
    margin-top: -0.5rem;
}

.hero-search {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.search-wrapper {
    flex: 1;
    min-width: 280px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-light);
    pointer-events: none;
}

.hero-search input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 1rem;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.hero-search input:focus {
    outline: none;
    border-color: var(--primary-green-light);
    box-shadow: 0 0 0 4px rgba(31, 143, 99, 0.1);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search-btn svg {
    transition: transform 0.3s ease;
}

.search-btn:hover svg {
    transform: translateX(4px);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
}

.hero-visual {
    position: relative;
    height: 420px;
    width: 100%;
    max-width: 100%;
}

.floating-card {
    position: absolute;
    background: var(--bg-secondary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.floating-card:hover {
    transform: translateY(-8px);
}

.card-1 {
    width: 85%;
    max-width: 380px;
    top: 0;
    left: 0;
    animation: float-card-1 6s ease-in-out infinite;
}

.card-2 {
    width: 75%;
    max-width: 320px;
    bottom: 0;
    right: 0;
    animation: float-card-2 8s ease-in-out infinite;
}

@-webkit-keyframes float-card-1 {
    0%, 100% { -webkit-transform: translate(0, 0) rotate(-2deg); transform: translate(0, 0) rotate(-2deg); }
    50% { -webkit-transform: translate(10px, -15px) rotate(2deg); transform: translate(10px, -15px) rotate(2deg); }
}

@keyframes float-card-1 {
    0%, 100% { transform: translate(0, 0) rotate(-2deg); }
    50% { transform: translate(10px, -15px) rotate(2deg); }
}

@-webkit-keyframes float-card-2 {
    0%, 100% { -webkit-transform: translate(0, 0) rotate(2deg); transform: translate(0, 0) rotate(2deg); }
    50% { -webkit-transform: translate(-10px, 15px) rotate(-2deg); transform: translate(-10px, 15px) rotate(-2deg); }
}

@keyframes float-card-2 {
    0%, 100% { transform: translate(0, 0) rotate(2deg); }
    50% { transform: translate(-10px, 15px) rotate(-2deg); }
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.25rem;
}

.card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
}

/* Trail Stream Section */
.trail-stream {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.header-content {
    flex: 1;
    min-width: 300px;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(31, 143, 99, 0.1);
    color: var(--primary-green);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0.5rem 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-medium);
    margin: 0;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-all-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateX(4px);
}

.view-all-btn svg {
    transition: transform 0.3s ease;
}

.view-all-btn:hover svg {
    transform: translateX(4px);
}

.cards-wrapper {
    overflow: hidden;
    margin: 0 -1rem;
}

.cards {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex-wrap: nowrap;
    width: 100%;
    touch-action: pan-y;
}

.card {
    flex: 0 0 33.3333%;
    padding: 0 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-md);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
}

@media (max-width: 768px) {
    .card {
        flex: 0 0 100%;
        padding: 0 1rem;
    }
}

.card-media {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: var(--bg-secondary);
    /* Safari fallback for aspect-ratio (older versions) */
    height: 0;
    padding-bottom: 56.25%; /* 16/9 = 0.5625 */
}

@supports (aspect-ratio: 16/9) {
    .card-media {
        height: auto;
        padding-bottom: 0;
        aspect-ratio: 16/9;
    }
}

.card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}


.card:hover .card-media img {
    transform: scale(1.1);
}

.card-chip {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.card-body {
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 1.25rem;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.card-location {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.card-body h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.trail-info {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin: 0;
}

.card-cta {
    margin-top: auto;
    align-self: flex-start;
    border: none;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.pagination-dots span {
    width: 10px;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dots span:hover {
    background-color: var(--primary-green-light);
    transform: scale(1.2);
}

.pagination-dots span.active {
    background-color: var(--primary-green);
    width: 32px;
    border-radius: 5px;
    transform: scale(1);
}

/* Features Section */
.features-section {
    padding: 2rem 0;
}

.features-grid {
    display: -webkit-grid; /* Safari fallback */
    display: grid;
    -webkit-grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Safari fallback */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Grid gap fallback for older Safari */
@supports not (gap: 1.5rem) {
    .features-grid > * + * {
        margin-top: 1.5rem;
    }
}

@supports (gap: 1.5rem) {
    .features-grid {
        gap: 1.5rem;
    }
}

.feature-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(31, 143, 99, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* Community Banner */
.community-banner {
    background: var(--gradient-primary);
    border-radius: 32px;
    padding: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-xl);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.community-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.community-content {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 1;
}

.quote-mark {
    font-size: 6rem;
    line-height: 1;
    opacity: 0.3;
    font-family: Georgia, serif;
    margin-bottom: -1rem;
}

.community-banner .eyebrow {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.community-banner h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0.5rem 0 1.5rem 0;
    color: #fff;
}

.community-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.85rem;
    opacity: 0.8;
}

.community-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #fff;
    color: var(--primary-green);
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.community-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.community-btn svg {
    transition: transform 0.3s ease;
}

.community-btn:hover svg {
    transform: translateX(4px);
}

/* Footer */
.site-footer {
    background-color: var(--bg-secondary);
    padding: 3rem clamp(2rem, 8vw, 8rem) 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.footer-grid {
    width: 100%;
    margin: 0 auto;
    display: -webkit-grid; /* Safari fallback */
    display: grid;
    -webkit-grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Safari fallback */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 2rem;
}

/* Grid gap fallback for older Safari */
@supports not (gap: 2rem) {
    .footer-grid > * + * {
        margin-left: 2rem;
    }
}

@supports (gap: 2rem) {
    .footer-grid {
        gap: 2rem;
    }
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-medium);
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: var(--primary-green);
}

.footer-col img {
    margin-top: 0.5rem;
    transition: transform 0.3s ease;
}

.footer-col img:hover {
    transform: scale(1.05);
}

.footer-bottom {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (min-width: 1600px) {
    .hero-section {
        gap: 6rem;
    }
    
    .page {
        padding: 2.5rem clamp(6rem, 10vw, 12rem);
    }
    
    .nav-container {
        padding: 1rem clamp(6rem, 10vw, 12rem);
    }
    
    .site-footer {
        padding: 3rem clamp(6rem, 10vw, 12rem) 1.5rem;
    }
}

@media (max-width: 1200px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        height: 350px;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .page {
        padding: 2rem 1.5rem;
        gap: 3rem;
    }

    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .navbar .nav-links,
    .navbar .nav-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-section {
        min-height: auto;
        padding: 1rem 0;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: 350px;
        max-width: 100%;
        margin: 0 auto;
    }

    .floating-card {
        position: relative;
        margin: 1rem auto;
        width: 100% !important;
        max-width: 100% !important;
    }

    .card-1,
    .card-2 {
        position: relative;
        animation: none;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .view-all-btn {
        width: 100%;
        justify-content: center;
    }

    .community-banner {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
    }

    .community-content {
        min-width: 100%;
    }

    .community-author {
        justify-content: center;
    }

    .community-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body::before,
    body::after {
        width: 60vmax;
        height: 60vmax;
        -webkit-filter: blur(120px);
        filter: blur(120px);
    }

    .page {
        padding: 1.5rem 1rem;
        gap: 2.5rem;
    }

    .hero-section {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .hero-search {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-wrapper {
        width: 100%;
        min-width: 100%;
    }

    .search-btn {
        width: 100%;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .stat-item {
        min-width: auto;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .hero-visual {
        height: 320px;
    }

    .trail-stream,
    .features-section {
        padding: 1.5rem 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

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

    .cards-wrapper {
        padding: 0;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .navbar .logo img {
        height: 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.875rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .card-body h3 {
        font-size: 1.25rem;
    }

    .community-banner {
        padding: 2.5rem 1.5rem;
    }

    .quote-mark {
        font-size: 4rem;
    }

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

    .site-footer {
        padding: 2.5rem 1rem 1.25rem;
        margin-top: 1.5rem;
    }

    .hero-visual {
        height: 300px;
    }

    .floating-card {
        width: 100%;
        max-width: 100%;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
    .page {
        padding: 1rem 0.75rem;
        gap: 2rem;
    }

    .nav-container {
        padding: 0.75rem 0.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }

    .hero-search input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem 0.875rem 0.875rem 3rem;
    }

    .search-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px; /* Minimum touch target */
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .stat-item {
        width: 100%;
    }

    .hero-visual {
        height: 280px;
    }

    .floating-card {
        margin: 0.5rem 0;
    }

    .card-content {
        padding: 1rem;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }

    .card-content p {
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.875rem;
    }

    .view-all-btn {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
        font-size: 0.9rem;
    }

    .card-cta {
        padding: 0.75rem 1.25rem;
        min-height: 44px;
        font-size: 0.9rem;
        width: 100%;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    .community-banner {
        padding: 2rem 1.25rem;
        border-radius: 24px;
    }

    .community-banner h2 {
        font-size: 1.5rem;
    }

    .quote-mark {
        font-size: 3rem;
    }

    .community-btn {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
        font-size: 0.95rem;
    }

    .footer-col h4 {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .footer-col ul li a {
        font-size: 0.85rem;
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .mobile-menu {
        padding: 4rem 1.5rem 2rem;
    }

    .mobile-menu ul li a,
    .mobile-menu ul li button.nav-btn {
        padding: 1rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Touch target improvements for all interactive elements */
@media (max-width: 768px) {
    .nav-links li a {
        padding: 0.75rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-btn {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }

    .hamburger {
        min-width: 44px;
        min-height: 44px;
        padding: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pagination-dots span {
        width: 12px;
        height: 12px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pagination-dots span::before {
        content: '';
        width: 12px;
        height: 12px;
        background-color: inherit;
        border-radius: 50%;
    }

    .pagination-dots span.active::before {
        width: 32px;
        border-radius: 5px;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        position: relative;
    }

    * {
        max-width: 100%;
    }

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

    .cards-wrapper {
        margin: 0;
        overflow: hidden;
        width: 100%;
    }

    .cards {
        margin: 0;
        width: 100%;
    }

    .card {
        margin: 0;
        width: 100%;
    }

    /* Ensure all containers don't overflow */
    .nav-container,
    .page,
    .hero-section,
    .hero-content,
    .hero-visual,
    .section-header,
    .footer-grid {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix any potential overflow from padding */
    .page {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Utility Classes */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Improve text readability */
    body {
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* Better spacing for mobile */
    .page > section {
        margin-bottom: 2rem;
    }

    /* Improve form inputs on mobile */
    input[type="search"],
    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
        border-radius: 12px;
    }

    /* Better button spacing */
    button {
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(31, 143, 99, 0.2);
    }

    /* Improve link spacing */
    a {
        -webkit-tap-highlight-color: rgba(31, 143, 99, 0.2);
    }

    /* Prevent text selection issues on mobile */
    .card,
    .feature-card,
    .value-card {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }

    .hero-visual {
        height: 250px;
    }

    .page {
        padding: 1.5rem 1rem;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .card-body h3 {
        font-size: 1.1rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .community-banner h2 {
        font-size: 1.25rem;
    }

    .nav-container {
        padding: 0.5rem 0.75rem;
    }

    .page {
        padding: 1rem 0.5rem;
    }
}

/* Ensure smooth scrolling on mobile */
@media (max-width: 768px) {
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Improve performance on mobile */
    .floating-card,
    .card,
    .feature-card {
        will-change: transform;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Fix for iOS Safari address bar */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .page {
            min-height: -webkit-fill-available;
        }

        body {
            min-height: -webkit-fill-available;
        }
    }
}