/* ==========================================================================
   SEO Pages Styles — Dark theme for Serve.Love marketing site
   Used by /volunteer/ and /nonprofit/ pages.
   Inherits CSS custom properties from style.css (:root).
   ========================================================================== */


/* --- Breadcrumbs --- */
.seo-breadcrumbs {
    padding: 12px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.seo-breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.seo-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.seo-breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumb-sep {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-secondary);
}


/* --- Hero --- */
.seo-hero {
    background: var(--bg-secondary);
    padding: 80px 0 50px;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    border-bottom: 1px solid var(--border);
}

.seo-hero.city-hero {
    color: #fff;
    border-bottom: none;
}

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

.seo-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-primary);
}

.seo-hero.city-hero h1 {
    color: #fff;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
}

.seo-hero.city-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.hero-stat-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.seo-hero.city-hero .hero-stat-line {
    color: rgba(255, 255, 255, 0.8);
}

.stat-sep {
    color: var(--text-muted);
}

.photo-credit {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}


/* --- Stats Section --- */
.seo-stats {
    background: var(--bg-primary);
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

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

.stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}


/* --- Filter Bar (sticky on city pages) --- */
.seo-filter-bar {
    background: var(--bg-secondary);
    padding: 12px 0;
    position: sticky;
    top: var(--nav-height);
    z-index: 90;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.seo-filter-bar.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

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

.filter-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-sort {
    padding: 6px 12px;
    font-size: 13px;
    font-family: var(--font-body);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.filter-sort:focus {
    outline: none;
    border-color: var(--accent);
}


/* --- Content Section --- */
.seo-content {
    padding: 48px 0;
    background: var(--bg-primary);
}


/* --- Search Box --- */
.search-box {
    max-width: 500px;
    margin: 0 auto 36px;
}

.city-search-input,
.org-search-input {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-family: var(--font-body);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 50px;
    outline: none;
    transition: border-color 0.2s;
}

.city-search-input:focus,
.org-search-input:focus {
    border-color: var(--accent);
}

.city-search-input::placeholder,
.org-search-input::placeholder {
    color: var(--text-muted);
}


/* --- State / City Directory Grid --- */
.state-group {
    margin-bottom: 36px;
}

.state-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.city-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.city-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.city-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.12);
    transform: translateY(-4px);
}

.city-card:hover::before {
    transform: scaleY(1);
}

.city-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.city-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.city-card .city-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.city-card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

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

.stat-item .stat-number {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.city-next-event {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.calendar-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.city-card-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    transition: all 0.25s ease;
}

.city-card-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.city-card:hover .city-card-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}


/* --- Events Grid --- */
.seo-events-section {
    padding: 48px 0;
    background: var(--bg-primary);
}

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

.event-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
}

.event-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-4px);
}


/* --- Event Image --- */
.event-image {
    height: 180px;
    overflow: hidden;
    background: var(--bg-card);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-image-link {
    display: block;
    text-decoration: none;
}

.event-image-link:hover .event-image img {
    transform: scale(1.05);
}

.event-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
}

.placeholder-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.6;
}


/* --- Event Content --- */
.event-content {
    padding: 20px;
}

.event-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.date-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-width: 56px;
    padding: 8px 4px;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    text-align: center;
    flex-shrink: 0;
}

.date-month {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    line-height: 1;
}

.date-day {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.date-weekday {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    line-height: 1;
}

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

.event-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
}

.event-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.event-title a:hover {
    color: var(--accent);
}

.event-meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.org-logo-inline {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: contain;
    flex-shrink: 0;
}

.org-name {
    font-weight: 500;
}

.meta-sep {
    color: var(--text-muted);
}

.event-location-line {
    color: var(--text-muted);
}

.meta-icon {
    flex-shrink: 0;
    color: var(--accent);
}

.location-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.location-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.more-dates-line {
    margin-top: 4px;
    font-size: 13px;
}

.more-dates-line a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.more-dates-line a:hover {
    text-decoration: underline;
}


/* --- Event Description (compact, CSS-clamped) --- */
.event-description-compact {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* --- Event Buttons --- */
.event-buttons {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-interest,
.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    flex: 1;
    cursor: pointer;
    border: none;
}

.btn-interest {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-interest:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.btn-interest.interested {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: transparent;
    pointer-events: none;
}

.btn-signup {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 600;
}

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

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


/* --- Trust Ribbon --- */
.trust-ribbon {
    grid-column: 1 / -1;
    text-align: center;
    padding: 14px 24px;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    letter-spacing: 0.3px;
}


/* --- Interest Form (inline, hidden by default) --- */
.sl-interest-form {
    display: none;
    padding: 20px;
    margin-top: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.sl-interest-form[data-visible="true"] {
    display: block;
}

.sl-interest-form h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.sl-trust-statement {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 8px;
    line-height: 1.5;
}

.sl-contact-line {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.sl-contact-line a {
    color: var(--accent);
    text-decoration: none;
}

.sl-contact-line a:hover {
    text-decoration: underline;
}

.sl-form-fields-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sl-form-row {
    display: flex;
}

.sl-form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s;
}

.sl-form-input:focus {
    border-color: var(--accent);
}

.sl-form-input::placeholder {
    color: var(--text-muted);
}

.sl-consent-checkboxes {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.sl-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    cursor: pointer;
    line-height: 1.4;
}

.sl-checkbox {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.sl-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    justify-content: flex-end;
}

.sl-button-cancel {
    padding: 8px 16px;
    font-size: 13px;
    font-family: var(--font-body);
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.sl-button-cancel:hover {
    background: var(--bg-card-hover);
    color: var(--text-secondary);
}

.sl-button-submit {
    padding: 8px 20px;
    font-size: 13px;
    font-family: var(--font-body);
    font-weight: 600;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.sl-button-submit:hover {
    background: var(--accent-hover);
}

.sl-button-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sl-interest-success {
    text-align: center;
    padding: 16px;
    color: var(--accent);
    font-weight: 500;
}

.sl-success-icon {
    width: 32px;
    height: 32px;
    display: block;
    margin: 0 auto 8px;
}


/* --- Phone Verification --- */
.sl-verification-form h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.sl-verification-instruction {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

.sl-verification-input-group {
    display: flex;
    gap: 10px;
}

.sl-verification-code-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 18px;
    font-family: var(--font-mono);
    letter-spacing: 4px;
    text-align: center;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
}

.sl-verification-code-input:focus {
    border-color: var(--accent);
}

.sl-verify-button {
    padding: 10px 20px;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 600;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.sl-verify-button:hover {
    background: var(--accent-hover);
}

.sl-verification-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 8px;
}

.sl-verification-success {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}


/* --- Collapsible About Section --- */
.seo-about-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    text-align: left;
}

.toggle-arrow {
    font-size: 12px;
    transition: transform 0.2s;
    color: var(--text-muted);
}

.seo-about-toggle.open .toggle-arrow {
    transform: rotate(180deg);
}

.seo-about-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.seo-about-content.open {
    max-height: 500px;
}

.seo-about-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 16px 0;
}

.seo-about-content a {
    color: var(--accent);
    text-decoration: none;
}

.seo-about-content a:hover {
    text-decoration: underline;
}


/* --- Info Section --- */
.seo-info {
    padding: 48px 0;
    background: var(--bg-secondary);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.info-card {
    padding: 28px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.info-card ul,
.info-card ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.info-card li {
    margin-bottom: 4px;
}

.info-note {
    font-size: 14px;
    color: var(--accent);
    margin-top: 16px;
}


/* --- Internal Org Links --- */
.seo-org-links {
    padding: 48px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.seo-org-links h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 24px;
}

.org-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.org-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.org-link-card:hover {
    border-color: var(--accent);
    background: var(--bg-card);
}

.org-link-logo {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.org-link-initial {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.org-link-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}


/* --- Partner Links --- */
.seo-partner-links {
    padding: 48px 0;
    background: var(--bg-secondary);
}

.seo-partner-links h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-primary);
    margin: 0 0 24px;
}

.partner-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.partner-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.partner-link-card:hover {
    border-color: var(--accent);
}

.partner-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.partner-initial {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-name {
    font-size: 13px;
    color: var(--text-primary);
}


/* --- CTA Section --- */
.volunteer-cta-section {
    margin-top: 48px;
}

.volunteer-cta-card {
    text-align: center;
    padding: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.volunteer-cta-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.volunteer-cta-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 24px;
}

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

.volunteer-cta-buttons .btn-primary {
    padding: 12px 28px;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.volunteer-cta-buttons .btn-primary:hover {
    background: var(--accent-hover);
}

.volunteer-cta-buttons .btn-secondary {
    padding: 12px 28px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.volunteer-cta-buttons .btn-secondary:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}


/* --- Nonprofit Hero --- */
.seo-hero.nonprofit-hero {
    background: var(--bg-secondary);
}

.seo-hero.org-hero {
    padding: 80px 0 40px;
}

.seo-hero.org-hero-with-image {
    color: #fff;
    border-bottom: none;
}

.seo-hero.org-hero-with-image h1 {
    color: #fff;
}

.org-page-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    margin-bottom: 16px;
}


/* --- Impact Stats --- */
.seo-impact-stats {
    padding: 32px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.impact-stats-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

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

.impact-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
}

.impact-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.impact-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.impact-org-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
}


/* --- Nonprofit Directory --- */
.seo-testimonial {
    padding: 32px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.seo-testimonial blockquote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
    border: none;
    background: none;
}

.seo-testimonial blockquote p {
    font-size: 18px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px;
}

.seo-testimonial blockquote cite {
    font-size: 14px;
    color: var(--text-muted);
    font-style: normal;
}


/* --- How It Works --- */
.seo-how-it-works {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.seo-how-it-works h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 32px;
}

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

.how-step {
    text-align: center;
    padding: 24px;
}

.how-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-dim);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.how-step h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.how-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}


/* --- Orgs Grid --- */
.orgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.org-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
}

.org-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-4px);
}

.org-banner {
    height: 140px;
    overflow: hidden;
    background: var(--bg-card);
}

.org-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.org-card-content .org-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    margin-bottom: 4px;
}

.org-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.org-logo-placeholder svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.org-card-content .org-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.org-description-snippet {
    font-size: 13px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.org-location {
    font-size: 13px;
    color: var(--text-muted);
}

.org-event-count {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}


/* --- SEO CTA Section --- */
.seo-cta {
    padding: 60px 0;
    background: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid var(--border);
}

.seo-cta h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.seo-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 24px;
}

.seo-cta .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

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

.cta-contact {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
}

.cta-contact a {
    color: var(--accent);
    text-decoration: none;
}

.cta-contact a:hover {
    text-decoration: underline;
}


/* --- Org Page Sections --- */
.sl-page-intro {
    max-width: 700px;
    margin: 0 auto 32px;
    text-align: center;
}

.sl-page-intro p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 8px;
}

.sl-intro-contact {
    font-size: 13px;
    color: var(--text-muted);
}

.sl-intro-contact a {
    color: var(--accent);
    text-decoration: none;
}

.org-description {
    max-width: 760px;
    margin: 0 auto 40px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* --- No Events State --- */
.no-events {
    text-align: center;
    padding: 60px 0;
}

.no-events p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 24px;
}

.no-events .btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}


/* --- Section Title --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-primary);
    margin: 0 0 24px;
}


/* --- 404 Page --- */
.seo-404-nearby h2 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 0 0 24px;
}


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

@media (max-width: 768px) {
    .seo-hero {
        padding: 60px 0 36px;
    }

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

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

    .how-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sl-form-fields-container {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        gap: 24px;
    }

    .impact-stats-grid {
        gap: 24px;
    }

    .hero-stat-line {
        flex-wrap: wrap;
        justify-content: center;
    }

    .org-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

    .org-links-grid {
        grid-template-columns: 1fr;
    }

    .partner-links-grid {
        grid-template-columns: 1fr 1fr;
    }

    .event-header {
        flex-direction: column;
    }

    .date-chip {
        flex-direction: row;
        width: auto;
        gap: 8px;
        padding: 6px 12px;
    }
}


/* --- Org Page: Tagline --- */
.org-tagline {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

/* --- Org Page: Event Gallery --- */
.seo-gallery {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
}

/* --- Org Page: Volunteer Reviews --- */
.seo-testimonials {
    padding: 48px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.aggregate-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.aggregate-rating .stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 20px;
    height: 20px;
}

.star-filled {
    color: #f59e0b;
}

.star-empty {
    color: var(--border);
}

.rating-text {
    font-size: 15px;
    color: var(--text-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.testimonial-stars .star {
    width: 16px;
    height: 16px;
}

.testimonial-quote {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 12px;
    border: none;
    padding: 0;
    background: none;
}

.testimonial-author {
    font-size: 14px;
    color: var(--text-muted);
    font-style: normal;
    display: block;
}

.testimonial-date {
    color: var(--text-muted);
    opacity: 0.7;
}

/* --- Org Page: Topics --- */
.seo-topics {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.topic-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.topic-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.topic-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* --- Org Page: FAQs --- */
.seo-faq {
    padding: 48px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

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

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-item[open] .faq-question {
    border-bottom: 1px solid var(--border);
}

.faq-answer {
    padding: 16px 20px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* --- Org Page: Events Preview --- */
.seo-events-preview .events-grid {
    max-width: 100%;
}

.events-view-all {
    text-align: center;
    margin-top: 32px;
}

.events-view-all .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: opacity 0.2s;
}

.events-view-all .btn-primary:hover {
    opacity: 0.9;
}

/* --- Gallery/Testimonials responsive --- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

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

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

    .aggregate-rating {
        flex-wrap: wrap;
    }
}
