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

:root {
    --forest: #1B4332;
    --green: #2D6A4F;
    --sage: #52B788;
    --mint: #74C69D;
    --seafoam: #B7E4C7;
    --mist: #D8F3DC;
    --off-white: #F9FAFB;
    --ocean: #1D6A8A;
    --sky: #A8DADC;
    --primary: #2D6A4F;
    --primary-hover: #1B4332;
    --secondary: #52B788;
    --success: #2D6A4F;
    --warning: #d97706;
    --error: #dc2626;
    --bg: #ffffff;
    --bg-secondary: #F9FAFB;
    --bg-card: #ffffff;
    --text: #1a2e1a;
    --text-mid: #3d5a3d;
    --text-muted: #6b856b;
    --border: #e0ede0;
    --header-height: 70px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 6px rgba(27,67,50,0.07);
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Header Left / Right */
.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-auth-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.header-auth-link:hover {
    background: rgba(45, 106, 79, 0.1);
    color: var(--text);
    text-decoration: none;
}

/* Hamburger - always visible */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

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

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

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

/* Main Navigation Dropdown */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    z-index: 98;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    padding-top: var(--header-height);
}

.main-nav.open {
    transform: translateX(0);
}

.nav-dropdown {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown .nav-link:hover {
    background: rgba(45, 106, 79, 0.1);
    color: var(--text);
    text-decoration: none;
}

.nav-dropdown .nav-link.active {
    background: var(--primary);
    color: white;
}

.nav-dropdown .nav-cta {
    background: rgba(45, 106, 79, 0.15);
    color: var(--primary);
    font-weight: 500;
    border: 1px solid var(--primary);
    margin-top: 0.25rem;
}

.nav-dropdown .nav-cta:hover {
    background: var(--primary);
    color: white;
}

.nav-dropdown .nav-manage {
    background: rgba(45, 106, 79, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.nav-dropdown .nav-manage:hover {
    background: rgba(45, 106, 79, 0.2);
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.logout-form {
    margin: 0;
}

.logout-btn {
    background: none;
    border: none;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

/* Nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

.nav-overlay.open {
    display: block;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-top: var(--header-height);
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
}

/* Page Styles */
.page-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Home Page Hero */
.home-hero {
    min-height: calc(100vh - var(--header-height) - 80px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

.home-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.hero-text-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.hero-text-box {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 1.5rem 2.5rem;
    max-width: 800px;
}

.hero-tagline {
    font-size: 1.75rem;
    color: var(--text);
    text-align: center;
}

.hero-tagline p {
    margin: 0;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text);
    text-align: center;
}

.hero-subtext p {
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-news-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.hero-news-box {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 3rem;
    width: 100%;
    max-width: 900px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-content {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text);
}

.news-content p {
    margin: 0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Manage Section */
.manage-container {
    max-width: 1000px;
    margin: 0 auto;
}

.manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.manage-header h1 {
    font-size: 1.75rem;
}

.content-table-wrapper {
    overflow-x: auto;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.content-table th,
.content-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.content-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text);
}

.content-table td {
    color: var(--text-muted);
}

.content-table code {
    background: var(--bg);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--primary);
}

.content-table .actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.manage-section {
    margin-top: 3rem;
}

.manage-section .manage-header {
    margin-bottom: 1rem;
}

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

/* Search Box */
.search-box {
    margin-bottom: 1rem;
}

.search-results {
    min-height: 50px;
}

.search-results-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-secondary);
    text-decoration: none;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-result-info strong {
    color: var(--text);
}

.search-result-owner {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.search-no-results,
.search-error {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.search-error {
    color: var(--error);
}

/* Admin Org Detail */
.admin-org-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.admin-org-main {
    min-width: 0;
}

.admin-org-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.admin-action-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.action-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.action-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

.admin-org-logo {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    object-fit: cover;
    margin-top: 0.5rem;
}

.org-detail-row {
    margin-bottom: 0.75rem;
}

.org-detail-row strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.org-detail-row span,
.org-detail-row p,
.org-detail-row a {
    color: var(--text);
}

.admin-events-list {
    list-style: none;
}

.admin-events-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-events-list li:last-child {
    border-bottom: none;
}

.admin-events-list .event-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .admin-org-grid {
        grid-template-columns: 1fr;
    }

    .admin-org-sidebar {
        order: -1;
    }
}

.content-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.nav-manage,
.nav-cta {
    background: rgba(45, 106, 79, 0.2);
    border: 1px solid var(--primary);
}

.nav-manage:hover,
.nav-cta:hover {
    background: rgba(45, 106, 79, 0.3);
}

/* Organizations */
.org-container {
    max-width: 900px;
    margin: 0 auto;
}

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

.org-header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.org-logo {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    object-fit: cover;
}

.org-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.org-status {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 1rem;
}

.badge-success {
    background: rgba(45, 106, 79, 0.2);
    color: var(--success);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.badge-secondary {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.org-details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
}

.org-section {
    margin-bottom: 2rem;
}

.org-section:last-child {
    margin-bottom: 0;
}

.org-section h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.org-links {
    list-style: none;
}

.org-links li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.org-links li strong {
    color: var(--text);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list.small {
    gap: 0.375rem;
}

.tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(45, 106, 79, 0.1);
    color: var(--primary);
    border-radius: 1rem;
    font-size: 0.875rem;
}

.tag-list.small .tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

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

.org-actions {
    margin-top: 2rem;
}

/* Organization Grid List */
.org-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.org-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.org-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.org-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.org-card-logo {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.org-card-logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.org-card-title h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.org-card-mission {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Form Fieldset */
.form-fieldset {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-fieldset legend {
    padding: 0 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-grid input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.current-logo {
    margin-bottom: 0.75rem;
}

.current-logo img {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.org-cta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.org-cta p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.page-header {
    text-align: center;
    padding: 2rem 0 3rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.placeholder-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
}

.placeholder-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.placeholder-section p {
    color: var(--text-muted);
}

/* Messages */
.messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.message {
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-success {
    background: rgba(45, 106, 79, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.message-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.message-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.message-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-block {
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.field-error {
    display: block;
    font-size: 0.875rem;
    color: var(--error);
    margin-top: 0.5rem;
}

.form-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.form-errors .error {
    color: var(--error);
    margin: 0;
}

/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-card.wide {
    max-width: 600px;
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    color: var(--text-muted);
}

/* Feed / Gallery */
.feed-container {
    max-width: 800px;
    margin: 0 auto;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feed-header h1 {
    font-size: 1.5rem;
}

.posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    grid-column: 1 / -1;
}

.empty-state p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Post Card */
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
}

.post-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.post-card-body {
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.post-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.vote-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.vote-btn:hover:not(:disabled) {
    background: rgba(45, 106, 79, 0.1);
}

.vote-btn.active.upvote {
    color: var(--success);
}

.vote-btn.active.downvote {
    color: var(--error);
}

.vote-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.vote-btn svg {
    width: 20px;
    height: 20px;
}

.vote-score {
    font-weight: 600;
    font-size: 0.875rem;
}

.post-content {
    flex: 1;
    min-width: 0;
}

.post-header {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.post-author {
    font-weight: 500;
    color: var(--text);
}

.post-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.post-title a {
    color: var(--text);
}

.post-title a:hover {
    color: var(--primary);
}

.post-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Post Detail */
.post-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.post-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.post-detail-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-votes.large .vote-btn svg {
    width: 28px;
    height: 28px;
}

.post-votes.large .vote-score {
    font-size: 1.125rem;
}

.post-detail-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-detail-content {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.post-detail-image {
    margin-bottom: 1.5rem;
}

.post-detail-image img {
    max-width: 100%;
    border-radius: 0.5rem;
}

.post-actions {
    margin-top: 1.5rem;
}

/* Profile */
.profile-container {
    max-width: 700px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar img,
.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.profile-username {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.profile-bio {
    margin-bottom: 0.75rem;
}

.profile-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.profile-actions {
    margin-bottom: 2rem;
}

.profile-posts h2 {
    margin-bottom: 1rem;
}

.no-posts {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

.current-avatar {
    margin-bottom: 0.75rem;
}

.current-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem 1rem;
    }

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

    .hero {
        padding: 2rem 1rem;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .feed-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .posts-list {
        grid-template-columns: 1fr;
    }

    .home-hero-content {
        padding: 1rem;
    }

    .hero-text-section {
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .hero-text-box {
        padding: 1rem 1.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-news-box {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Events */
.events-container {
    max-width: 1200px;
    margin: 0 auto;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.event-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
}

.event-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.event-card-header {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.event-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.event-card-image-placeholder svg {
    width: 48px;
    height: 48px;
}

.event-card-org {
    position: absolute;
    bottom: -20px;
    left: 1rem;
}

.event-card-org-logo {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 3px solid var(--bg-card);
}

.event-card-org-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    border: 3px solid var(--bg-card);
}

.event-card-body {
    padding: 1.5rem 1rem 1rem;
    display: flex;
    gap: 1rem;
}

.event-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 50px;
}

.event-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.event-year {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.event-card-info {
    flex: 1;
    min-width: 0;
}

.event-card-title {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.event-card-org-name {
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.event-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-goal {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 0.375rem;
}

.event-card-goal strong {
    color: var(--primary);
}

.event-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-card-time {
    font-weight: 500;
}

/* Event Badges */
.badge-physical {
    background: rgba(45, 106, 79, 0.2);
    color: var(--success);
}

.badge-virtual {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.badge-hybrid {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.badge-sm {
    padding: 0.125rem 0.5rem;
    font-size: 0.7rem;
}

/* Event Detail Page */
.event-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

.event-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.event-hero-overlay {
    height: 100%;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
}

.event-hero-content {
    padding: 2rem;
    width: 100%;
}

.event-header-simple {
    margin-bottom: 2rem;
}

.event-org-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.event-org-logo {
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    object-fit: cover;
}

.event-org-badge a {
    font-weight: 500;
}

.event-title {
    font-size: 2rem;
    color: var(--text);
    margin: 0;
}

.event-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.event-main {
    min-width: 0;
}

.event-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.event-section h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.event-short-desc {
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.event-full-desc {
    color: var(--text-muted);
    line-height: 1.8;
}

.event-goal {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.event-instructions {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Event Sidebar */
.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-info-card,
.event-org-card,
.event-admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.event-info-card h3,
.event-org-card h3,
.event-admin-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.event-info-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.event-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.event-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.event-info-value {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.event-duration {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.event-address {
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.event-org-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.event-org-link:hover {
    text-decoration: none;
}

.event-org-logo-lg {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.event-org-link strong {
    color: var(--text);
    font-size: 1rem;
    display: block;
}

.event-org-mission {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.event-admin-card .btn {
    margin-bottom: 0.5rem;
}

.event-admin-card .btn:last-child {
    margin-bottom: 0;
}

.event-footer {
    margin-top: 2rem;
    text-align: center;
}

/* Events List in My Org */
.org-events-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-list-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    align-items: flex-start;
}

.event-list-item.event-past {
    opacity: 0.6;
}

.event-list-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

.event-list-info {
    flex: 1;
    min-width: 0;
}

.event-list-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.event-list-info h4 a {
    color: var(--text);
}

.event-list-info h4 a:hover {
    color: var(--primary);
}

.event-list-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.event-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-list-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.empty-state-small {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.org-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.manage-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Delete confirmation */
.delete-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.delete-preview h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.delete-preview p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.delete-preview .event-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.warning-text {
    color: var(--error);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.delete-form .form-actions {
    margin-top: 0;
}

/* Empty state with icon */
.empty-state .empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

/* Event responsive */
@media (max-width: 900px) {
    .event-content {
        grid-template-columns: 1fr;
    }

    .event-sidebar {
        order: -1;
    }
}

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

    .event-hero {
        height: 200px;
        border-radius: 0;
        margin: -1.5rem -1rem 1.5rem;
        width: calc(100% + 2rem);
    }

    .event-title {
        font-size: 1.5rem;
    }

    .event-list-item {
        flex-direction: column;
    }

    .event-list-date {
        flex-direction: row;
        gap: 0.5rem;
        min-width: auto;
    }

    .event-list-actions {
        width: 100%;
    }

    .event-list-actions .btn {
        flex: 1;
    }

    .org-header-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* Blogs */
.blog-list-container,
.blog-detail-container,
.blog-form-container {
    max-width: 860px;
    margin: 0 auto;
}

.blog-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.blog-list-header h1 {
    font-size: 1.75rem;
}

.blog-label-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.label-tab {
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.label-tab:hover {
    color: var(--text);
    border-color: var(--border);
    text-decoration: none;
}

.label-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.blog-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-card {
    display: flex;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: border-color 0.2s;
}

.blog-card:hover {
    border-color: var(--primary);
}

.blog-card-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.blog-card-body {
    flex: 1;
    min-width: 0;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-meta-sep {
    color: var(--border);
}

.blog-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text);
}

.blog-card-title a:hover {
    color: var(--primary);
    text-decoration: none;
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.blog-read-more {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.blog-read-more:hover {
    text-decoration: underline;
}

/* Label badges */
.blog-label-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.blog-label-science_decoded {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.blog-label-me_in_the_wild {
    background: rgba(45, 106, 79, 0.15);
    color: var(--primary);
}

/* Blog detail */
.blog-detail-header {
    margin-bottom: 2rem;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.blog-updated {
    font-style: italic;
}

.blog-detail-title {
    font-size: 2rem;
    line-height: 1.2;
}

.blog-detail-layout {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.blog-vote-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.blog-vote-score {
    font-size: 1.25rem !important;
}

.blog-content {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    color: var(--text);
    line-height: 1.7;
}

.blog-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.blog-author-actions {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 600px) {
    .blog-detail-layout {
        flex-direction: column;
    }

    .blog-vote-sidebar {
        flex-direction: row;
        padding-top: 0;
    }

    .blog-detail-title {
        font-size: 1.5rem;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-card-vote {
        flex-direction: row;
    }

    .blog-detail-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Corporate Footer */
.footer-corp {
    background: var(--forest);
    color: rgba(255,255,255,0.85);
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
}

.footer-corp-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand .logo-link {
    color: #fff;
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-brand .logo-icon {
    color: var(--mint);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-social a:hover {
    background: var(--mint);
    color: var(--forest);
    text-decoration: none;
}

.footer-col h4 {
    color: var(--mint);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

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

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-corp-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

@media (max-width: 900px) {
    .footer-corp-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-corp-grid {
        grid-template-columns: 1fr;
    }
}

/* New Home Page Sections */
.hero-new {
    background: linear-gradient(135deg, var(--forest) 0%, var(--green) 55%, var(--ocean) 100%);
    color: white;
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/static/images/planetero-bcg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
}

.hero-new-content {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.95);
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.hero-new h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #fff;
}

.hero-new-lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-new-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    background: #fff;
    color: var(--forest);
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover {
    background: var(--mist);
    color: var(--forest);
    text-decoration: none;
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.35);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.25);
    text-decoration: none;
    color: #fff;
}

.kpi-strip {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.kpi-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.kpi-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

/* Section layout */
.home-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Find Local */
.find-local-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.find-local-event-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(27,67,50,0.08);
}

.find-local-event-image {
    height: 200px;
    overflow: hidden;
}

.find-local-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.find-local-event-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--mist);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage);
}

.find-local-event-body {
    padding: 1.5rem;
}

.find-local-event-org {
    font-size: 0.8rem;
    color: var(--sage);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.find-local-event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 0.75rem;
}

.find-local-event-goal {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.find-local-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.link-all {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.link-all:hover {
    text-decoration: underline;
}

.find-local-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--forest);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.find-local-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Community Section */
.community-section {
    background: var(--mist);
    padding: 4rem 2rem;
}

.community-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.member-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.member-card {
    background: #fff;
    border: 1px solid var(--seafoam);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(27,67,50,0.06);
}

.member-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
}

.member-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 1rem;
}

.member-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 0.25rem;
}

.member-joined {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Stories / Blogs */
.stories-section {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
}

.stories-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.story-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
}

.story-card:hover {
    box-shadow: 0 4px 20px rgba(27,67,50,0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

.story-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1.3;
}

.story-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.story-score {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 600;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--forest), var(--green));
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-banner p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Home page responsive */
@media (max-width: 900px) {
    .find-local-grid {
        grid-template-columns: 1fr;
    }

    .find-local-text h2 {
        font-size: 1.75rem;
    }

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

@media (max-width: 600px) {
    .hero-new h1 {
        font-size: 2rem;
    }

    .kpi-strip {
        gap: 1.5rem;
    }

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

    .hero-new-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Tooltip */
.info-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

.info-tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    background: var(--forest);
    color: #fff;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.78rem;
    line-height: 1.4;
    width: 220px;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 10;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
