/* Landing Page Styles */

/* ═══════════════════════════════════════════════════════════════════════════
   BACKGROUND CONTINUITY - Respects light/dark mode
   ═══════════════════════════════════════════════════════════════════════════ */

/* Apply theme-aware background to entire landing page - respects light/dark mode */
.landing-page-content {
    background-color: var(--bs-body-bg) !important;
    min-height: 100vh;
}

.landing-fallback-hero-copy {
    max-width: 600px;
}

.landing-fallback-hero-glow {
    background: radial-gradient(circle at 50% 50%, var(--bs-primary), transparent 70%);
    filter: blur(100px);
    z-index: 1;
}

/* Ensure parent elements don't interfere */
.site-main:has(.landing-page-content) {
    background-color: var(--bs-body-bg) !important;
    padding: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PILLAR SECTION NAVIGATION ARROWS
   Arrows now in same flex row as title, aligned to baseline
   ═══════════════════════════════════════════════════════════════════════════ */

.pillar-section-arrows {
    /* Arrows are now in baseline-aligned row with title - no margin needed */
    position: relative;
}

.pillar-section-arrows button {
    /* Ensure consistent arrow button styling across all pillar sections */
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pillar-section-arrows button:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .pillar-section-arrows {
        /* On mobile, arrows might need slight adjustment */
        margin-left: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY & BUTTON SIZE SYSTEM (Landing Page)
   Single source of truth for consistent text and button sizing
   ═══════════════════════════════════════════════════════════════════════════ */

/* Section Title Sizing - Applied to Wiki, Events, Discussions, Tank Builds */
.rs-section-title {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    color: var(--bs-heading-color, var(--bs-body-color));
}

/* Wiki gets slightly larger as primary pillar */
.rs-section-title--primary {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

/* Section Subtitle - Consistent across all sections */
.rs-section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--bs-body-secondary-color);
    margin-bottom: 1.5rem;
}

/* Microcopy / Helper Text */
.rs-text-micro {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--bs-body-secondary-color);
}

/* Responsive Typography */
@media (max-width: 991px) {
    .rs-section-title {
        font-size: 2rem;
    }
    
    .rs-section-title--primary {
        font-size: 2.25rem;
    }
}

@media (max-width: 767px) {
    .rs-section-title {
        font-size: 1.75rem;
    }
    
    .rs-section-title--primary {
        font-size: 2rem;
    }
    
    .rs-section-subtitle {
        font-size: 1rem;
    }
}

/* Button Size System - Standardized across landing page */

/* Section Buttons - Standard size for Wiki, Events, Discussions, Tank Builds, Final CTA */
.rs-btn-section {
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
}

.rs-btn-section.btn-primary {
    font-weight: 600;
}

/* Hero Buttons - Larger for primary conversion */
.rs-btn-hero {
    font-size: 1.0625rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
}

/* Ensure buttons in same group match height */
.rs-btn-section,
.rs-btn-hero {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Button Sizing */
@media (max-width: 767px) {
    .rs-btn-section {
        font-size: 0.8125rem;
        padding: 0.625rem 1.25rem;
        flex: 0 1 auto;  /* Don't grow, allow shrink, auto width */
        white-space: nowrap;  /* Keep button text on one line */
    }
    
    /* Ensure button containers on mobile allow side-by-side layout */
    .d-flex.gap-3 {
        gap: 0.5rem !important;  /* Reduce gap on mobile to fit buttons */
    }
    
    .rs-btn-hero {
        font-size: 1rem;
        padding: 0.8125rem 1.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   A. PRIMARY WIKI SECTION - VISUAL DOMINANCE (CRITICAL)
   Single continuous module: Header + Content Preview
   Generic naming: works for Reefapedia, Leafapedia, Morphapedia, etc.
   ═══════════════════════════════════════════════════════════════════════════ */

.wiki_spotlight-section {
    /* Significantly more breathing room than any other section */
    padding: 7rem 0 !important;
    margin: 0 !important;
    position: relative;
}

/* Remove inner section background breaks */
.wiki_spotlight-section section {
    background-color: transparent !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Wiki section title - uses standardized primary sizing */
.wiki_spotlight-section h2 {
    color: var(--bs-body-color) !important; /* Force body text color for visibility */
}

/* Ensure all text in wiki section uses body colors for visibility */
.wiki_spotlight-section p,
.wiki_spotlight-section .lead,
.wiki_spotlight-section .text-body-secondary {
    color: var(--bs-body-secondary-color) !important;
}

@media (max-width: 767px) {
    .wiki_spotlight-section {
        padding: 5rem 0 !important;
    }
}

/* Primary wiki CTAs - Enhanced hover effect */
.wiki_spotlight-section .btn-primary {
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3) !important;
}

.wiki_spotlight-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb), 0.4) !important;
}

/* Text colors inherit from Bootstrap theme - no overrides needed */

/* Navigation arrows - positioned at viewport edges, centered on cards (EXACT Tank Builds pattern) */
.wiki_spotlight-section .carousel-prev,
.wiki_spotlight-section .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bs-body-bg, #ffffff);
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.125));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
}

/* Fade in on section hover */
.wiki_spotlight-section:hover .carousel-prev,
.wiki_spotlight-section:hover .carousel-next {
  opacity: 1;
}

/* Position at left/right edges - visible in viewport */
.wiki_spotlight-section .carousel-prev {
  left: 16px;
}

.wiki_spotlight-section .carousel-next {
  right: 16px;
}

/* Hover state - increased shadow only */
.wiki_spotlight-section .carousel-prev:hover,
.wiki_spotlight-section .carousel-next:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Tablet adjustments - arrows stay at same position */
@media (max-width: 991px) {
  .wiki_spotlight-section .carousel-prev {
    left: 12px;
  }
  
  .wiki_spotlight-section .carousel-next {
    right: 12px;
  }
}

/* Mobile adjustments - hide arrows on mobile, swipe is primary interaction */
@media (max-width: 767px) {
  .wiki_spotlight-section .carousel-prev,
  .wiki_spotlight-section .carousel-next {
    display: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .wiki_spotlight-section .carousel-prev,
  .wiki_spotlight-section .carousel-next {
    background: var(--bs-body-bg, #212529);
    border-color: var(--bs-border-color, rgba(255, 255, 255, 0.125));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .wiki_spotlight-section .carousel-prev:hover,
  .wiki_spotlight-section .carousel-next:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   WIKI DEPTH BLOCKS - Internal Article Groups for Substantiality
   Purpose: Adds internal depth to Wiki section without new top-level sections
   ═══════════════════════════════════════════════════════════════════════════ */

.wiki-depth-blocks {
    padding-top: 3rem;
    margin-top: 4rem !important;
}

.wiki-depth-group {
    padding-bottom: 2rem;
}

.wiki-depth-group:last-child {
    /* No additional styling needed */
}

/* Depth group headers - smaller than main section title */
.wiki-depth-group h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bs-heading-color);
    margin-bottom: 0.5rem;
}

.wiki-depth-group p.text-body-secondary {
    font-size: 0.875rem;
    color: var(--bs-body-secondary-color);
    margin-bottom: 1rem;
}

/* Depth block carousels - more compact than main carousel */
.wiki-depth-group .swiper-slide {
    height: auto;
}

.wiki-depth-group .landing-carousel-container {
    padding: 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .wiki-depth-blocks {
        margin-top: 3rem !important;
        padding-top: 2rem;
    }
    
    .wiki-depth-group {
        padding-bottom: 1.5rem;
    }
    
    .wiki-depth-group h3 {
        font-size: 1.25rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   B. EVENTS SECTION - CLEARLY SECONDARY
   Single continuous module: Header + Content Preview (same pattern as Wiki)
   ═══════════════════════════════════════════════════════════════════════════ */

.events_spotlight-section {
    /* Increased padding to match Reefapedia spacing standard */
    padding: 7rem 0 !important;
    margin: 0 !important;
    position: relative; /* Positioning context for arrows */
}


/* CRITICAL: Remove ALL background breaks inside Events section */
.events_spotlight-section section,
.events_spotlight-section .bg-body-tertiary,
.events_spotlight-section .bg-light,
.events_spotlight-section .bg-white {
    background-color: transparent !important;
    background: none !important;
}

/* Reset padding on child sections to allow unified header */
.events_spotlight-section section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
}

/* Events section - uses standardized section sizing */

@media (max-width: 991px) {
    .events_spotlight-section {
        padding: 5rem 0 !important;
    }
}

@media (max-width: 767px) {
    .events_spotlight-section {
        padding: 5rem 0 !important;
    }
}

/* Events section: Hide header arrows */
.events_spotlight-section .pillar-section-arrows {
    display: none !important;
}

/* Events carousel arrows: Uses reusable swiper arrow system */
/* Arrows are defined by .swiper-arrow-prev and .swiper-arrow-next utility classes */

/* Events section: Subtle featured emphasis on first event */
.events_spotlight-section .swiper-slide:first-child .content-card-poster {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
}

.events_spotlight-section .swiper-slide:first-child .content-card-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(var(--bs-primary-rgb), 0.15); /* Subtle primary border */
    border-radius: inherit;
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════════════════
   Discovery / Pulse Section ("Recent Activity" / "What's New")
   ═══════════════════════════════════════════════════════════════════════════
   
   Purpose: Answer "Is anything happening right now?" - a pulse, hint of activity
   
   Position: Section 4 (below Events, above Discussions)
   Content: Wiki activity + Events ONLY
   
   Visual Priority: Lighter than Wiki, Events, AND Discussions
   - Must be most subtle section
   - Optional feeling, easy to remove
   - Signal, not destination
   
   Key Requirements:
   - Smaller typography than Discussions (h3 @ 1.75rem vs Discussions h2 @ 2rem)
   - Compact vertical list (2-4 items)
   - Text-first, minimal visual noise
   - Theme-aware (no hardcoded colors)
   - Optional muted CTA only
   
   ═══════════════════════════════════════════════════════════════════════════ */

.recent_activity-section {
    padding: 3rem 0 !important;
}

/* Heading - smaller than Discussions (h3 size, not h2) */
.recent_activity-section h2 {
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    color: var(--bs-heading-color) !important;
    margin-bottom: 0.5rem !important;
}

/* Subtitle - muted, factual tone */
.recent_activity-section .text-body-secondary {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

/* Filter chips - very subtle, almost invisible */
.recent_activity-section .badge {
    background-color: transparent !important;
    border: 1px solid var(--bs-border-color-translucent) !important;
    color: var(--bs-secondary-color) !important;
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    padding: 0.25rem 0.75rem !important;
    opacity: 0.6;
}

.recent_activity-section .badge i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Compact vertical list - text-first, minimal */
.recent_activity-section .pulse-list {
    max-width: 700px;
    margin: 0 auto;
}

.recent_activity-section .pulse-item {
    padding: 1rem 0;
}

.recent_activity-section .pulse-item:last-child {
    /* No additional styling needed */
}

/* Context label - very subtle, small */
.recent_activity-section .pulse-label {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    opacity: 0.6;
    min-width: 70px;
}

.recent_activity-section .pulse-label i {
    font-size: 0.7rem;
}

/* Title - clean, readable */
.recent_activity-section .pulse-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.recent_activity-section .pulse-title a {
    color: var(--bs-heading-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent_activity-section .pulse-title a:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

/* Optional CTA - link style, very muted */
.recent_activity-section .pulse-cta {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.recent_activity-section .pulse-cta:hover {
    opacity: 1;
    color: var(--bs-primary);
}

.recent_activity-section .pulse-cta i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.recent_activity-section .pulse-cta:hover i {
    transform: translateX(3px);
}

/* Empty state - calm, intentional */
.recent_activity-section .pulse-empty {
    text-align: center;
    padding: 2rem 1rem;
    opacity: 0.7;
}

/* Responsive - maintain readability on mobile */
@media (max-width: 768px) {
    .recent_activity-section {
        padding: 2rem 0 !important;
    }
    
    .recent_activity-section h2 {
        font-size: 1.5rem !important;
    }
    
    .recent_activity-section .pulse-label {
        min-width: 60px;
        font-size: 0.7rem;
    }
    
    .recent_activity-section .pulse-title {
        font-size: 0.9375rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   D. COMMUNITY/BUILDS - DE-EMPHASIZE FURTHER
   ═══════════════════════════════════════════════════════════════════════════ */

/* ❌ REMOVED: Old padding rule - now uses unified 7rem standard below (line ~1007) */

/* Reduce visual intensity of community/builds cards */
.community_builds-section .card,
.community_builds-section .grid-card {
    opacity: 0.92;
    max-height: 280px; /* Reduce height by ~20% */
}

.community_builds-section .card:hover,
.community_builds-section .grid-card:hover {
    opacity: 1;
}

/* Add darker overlay to imagery if present */
.community_builds-section .card-img,
.community_builds-section [style*="background-image"] {
    position: relative;
}

.community_builds-section .card-img::after,
.community_builds-section [style*="background-image"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

/* Text colors are now handled by Bootstrap theme system automatically */
/* No forced light/dark colors - respects light/dark mode naturally */

/* Trust line and badges */
.landing-page-content .badge {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION & BLOCK - Full-bleed, no padding on wrapper
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero wrapper must have no padding - full bleed to edges */
.hero-section {
    padding: 0 !important;
    margin: 0 !important;
}

.hero-block {
    display: flex;
    align-items: center;
    min-height: 65vh !important; /* Reduced from default ~80-90vh */
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Tighter spacing between hero elements */
.hero-block h1 {
    margin-bottom: 1rem !important;
}

.hero-block p {
    margin-bottom: 1.5rem !important;
}

.hero-block .btn-group {
    margin-bottom: 1.25rem !important;
}

@media (max-width: 767px) {
    .hero-block {
        min-height: 60vh !important;
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    .hero-block h1 {
        font-size: 2.25rem !important;
    }
}

.hero-overlay-gradient {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

/* ═══════════════════════════════════════════════════════════════════════════
   E. HERO → WIKI TRANSITION - SMOOTH HAND-OFF
   ═══════════════════════════════════════════════════════════════════════════ */

/* Reduce visual drop between hero and wiki section */
.hero-block + * {
    margin-top: -2rem !important; /* Pull wiki section up slightly */
}

/* Gradient continuity from hero to wiki section - theme-aware */
.wiki_spotlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        to bottom,
        rgba(var(--bs-border-color-translucent), 0.3) 0%,
        transparent 100%
    );
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   F. FINAL CTA ("Join {Brand}") - SUBORDINATE TO HERO
   Generic: "Join Reefapedia", "Join Leafapedia", etc. comes from CMS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Final CTA old styles removed - new styles are below in line 589+ */

@media (max-width: 767px) {
    .cta_join-section h1 {
        font-size: 2rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARD SPACING & SIZING
   ═══════════════════════════════════════════════════════════════════════════ */

/* Ensure all cards have consistent max width */
.landing-page-content .card {
    max-width: 100%;
}

/* Cards in carousels should have fixed width for consistency */
.landing-page-content .swiper-slide .card {
    width: 100%;
    height: 100%;
}

.grid-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 767px) {
    .grid-card {
        min-height: 220px !important;
    }
}

/* Article and event cards should not stretch beyond comfortable reading width */
.landing-page-content .article-card,
.landing-page-content .event-card {
    max-width: 380px;
}

/* In carousels, enforce consistent card dimensions */
.landing-carousel-container .article-card,
.landing-carousel-container .event-card,
.poster-carousel-swiper .article-card,
.poster-carousel-swiper .event-card {
    width: 320px;
    max-width: 320px;
}

@media (max-width: 575px) {
    .landing-carousel-container .article-card,
    .landing-carousel-container .event-card,
    .poster-carousel-swiper .article-card,
    .poster-carousel-swiper .event-card {
        width: 280px;
        max-width: 280px;
    }
}

/* Carousel container: uses .ds-carousel-container from ds/ds.css */

/* Navigation arrows hover states */
.poster-carousel-swiper + .swiper-button-prev:hover,
.poster-carousel-swiper + .swiper-button-next:hover,
[class*="poster-carousel-prev"]:hover,
[class*="poster-carousel-next"]:hover {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
}

/* Hide auto-generated pagination */
.poster-carousel-swiper .swiper-pagination {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   POSTER CAROUSEL (Wiki Spotlight Section)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Consistent card widths for poster carousel */
.poster-carousel-swiper .swiper-slide {
    width: 320px !important;
    margin-right: 1.5rem !important; /* 24px gap between cards */
}

@media (max-width: 575px) {
    .poster-carousel-swiper .swiper-slide {
        width: 280px !important;
        margin-right: 1rem !important;
    }
}

/* Prevent cards from being too close to viewport edge */
.poster-carousel-swiper {
    padding: 0 2rem;
}

@media (max-width: 767px) {
    .poster-carousel-swiper {
        padding: 0 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION SPACING & RHYTHM - FINAL POLISH
   ═══════════════════════════════════════════════════════════════════════════ */

/* Eliminate gaps between sections for seamless flow */
.landing-page-content > div {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Ensure no gaps leak through */
.landing-page-content {
    padding: 0 !important;
}

/* Visual hierarchy summary:
   1. Wiki Spotlight: 7rem vertical padding + gradient + large title + strong CTAs
   2. Events: 4.5rem vertical padding + standard surface + medium title
   3. Feed: 4.5rem top / 3.5rem bottom + subtle border
   4. Community: 4rem padding + reduced opacity + muted
*/

/* Secondary text visibility */
/* Typography sizing handled by .rs-section-subtitle class - removed font-size override */
.landing-page-content .text-body-secondary {
    line-height: 1.6 !important;
    margin-top: 1rem !important;
}

/* Ensure CTAs have consistent rhythm within sections */
.landing-page-content .btn {
    transition: all 0.2s ease !important;
}

/* All sections use same text alignment (except final CTA which is centered) */
.landing-page-content h2:not(.final-cta-title),
.landing-page-content .btn-group {
    text-align: left !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INSPIRATIONS / BUILDS SECTION (community_builds)
   
   Purpose: Visual inspiration section showcasing community builds/projects.
   Secondary to Wiki/Events but more engaging than plain text.
   
   Design Intent:
   - Gallery-like, aspirational presentation
   - De-emphasized compared to pillar sections (Wiki/Events)
   - Image-first cards with minimal text
   - Calm, inviting tone
   - Secondary visual weight
   
   Position: Above Final CTA, below Recent Activity
   
   Visual Hierarchy:
   - Smaller typography than Wiki/Events (h3 vs h2)
   - Smaller buttons (btn-sm vs btn-lg)
   - Outline buttons (not solid) for secondary weight
   - Smaller navigation arrows (36px vs 40px)
   
   Multi-Tenancy:
   - ReefScales: "Tank Builds"
   - GreenSide: "Garden Showcases"
   - Default: "Community Projects"
   - Label comes from CMS, not hardcoded
   
   Implementation: 2026-01-08
   Status: Production-ready
   ═══════════════════════════════════════════════════════════════════════════ */

.community_builds-section {
  /* Increased padding to match Reefapedia spacing standard */
  padding: 7rem 0;
  /* No background - matches Reefapedia and Events sections */
}

/* Reset internal <section> element padding to prevent double spacing */
.community_builds-section section {
  background-color: transparent !important;
  background: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

.community_builds-section h2 {
  /* Uses standardized section sizing */
  color: var(--bs-heading-color, var(--bs-body-color)) !important;
}

.community_builds-section p {
  /* Body text for subtitle */
  color: var(--bs-secondary-color, var(--bs-body-secondary)) !important;
}

/* Carousel cards - gallery-like presentation */
.community_builds-section .swiper-slide {
  height: auto;
     display: flex;
  align-items: stretch;
}

.community_builds-section .card {
  /* Gallery-style cards */
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.community_builds-section .card:hover {
  /* Subtle elevation on hover - not dramatic */
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card images unified via content-card.css mobile image normalization */
/* All card images (Wiki, Events, Builds) now share the same mobile contract */

.community_builds-section .card-body {
  padding: 1rem 1.25rem;
}

.community_builds-section .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

.community_builds-section .card-text {
  font-size: 0.875rem;
  color: var(--bs-body-secondary);
}

/* De-emphasize card metadata - let image + title do the work */
.community_builds-section .card .badge,
.community_builds-section .card .text-muted,
.community_builds-section .card small {
  font-size: 0.75rem;
  opacity: 0.7;
}

.community_builds-section .card-body {
  /* Tighter padding for landing page cards */
  padding: 1rem;
}

/* Empty state - calm and encouraging */
.community_builds-section .empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--bs-body-secondary);
}

.community_builds-section .empty-state p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Navigation arrows: Uses reusable swiper arrow system */
/* Arrows are defined by .swiper-arrow-prev and .swiper-arrow-next utility classes */

/* Mobile adjustments */
@media (max-width: 767px) {
  .community_builds-section {
    padding: 3rem 0 2.5rem;
  }
  
  /* Mobile typography uses standardized responsive sizing */
  /* Mobile image sizing now unified via content-card.css (aspect-ratio: 4/3) */
  
  /* Arrows are hidden on mobile by swiper arrow utility (see above) */
}

/* Dark mode support - removed section background to match Reefapedia/Events */
@media (prefers-color-scheme: dark) {
  .community_builds-section .card {
    background: var(--bs-body-bg, #212529);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .community_builds-section .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
  
  /* Dark mode arrows are handled by swiper arrow utility (see above) */
}

/* ═══════════════════════════════════════════════════════════════════════════
   END: INSPIRATIONS / BUILDS SECTION
   
   Result: Secondary, gallery-like section that invites exploration without
   competing with pillar content (Wiki/Events). Image-first presentation with
   calm, aspirational tone. Proper multi-tenancy support via CMS-driven labels.
   
   Refinements Applied:
   - Increased top padding (4.5rem) for breathing room from previous section
   - Navigation arrows positioned at viewport edges (16px desktop, 12px tablet)
   - Arrows vertically centered on cards, fade in on hover (0 → 1 opacity)
   - Arrows hidden on mobile (swipe is primary interaction)
   - De-emphasized card metadata (smaller font, reduced opacity)
   - Theme-aware arrow styling (light/dark mode support)
   
   LOCKED - Do not modify without explicit approval.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   FINAL CTA SECTION - Super Flow Pattern (Frosted Glass Card)
   
   Purpose:
   Conversion close at bottom of landing page. Encourages account creation
   without competing with main hero or core content.
   
   Design Pattern: Super Flow (simplified)
   - Centered frosted-glass card
   - Subdued background image
   - Shorter vertical height than hero
   - "Clean close" not "encore"
   
   Visual Hierarchy:
   1. Visually lighter than main hero
   2. Smaller typography
   3. Reduced contrast (subdued background)
   4. Less vertical height (360px vs 480px+ hero)
   5. Card max-width: 780px (constrained, focused)
   
   Implementation:
   - Background: Slightly blurred (1px), reduced brightness (0.80)
   - Overlay: Dark scrim gradient (55-70-60-40%) to subdue image
   - Card: Frosted glass (rgba white 0.08, backdrop-blur 24px)
   - Animation: AOS fade-up (400ms, 200px offset - optimized for responsiveness)
   - Buttons: Solid primary, frosted secondary with backdrop-blur
   - Mobile: Reduces to 320px min-height, 2.5rem padding
   
   Multi-Tenancy:
   - Platform-generic ("Join ReefScales" not "Join Reefapedia")
   - All copy CMS-driven or site_config-based
   - Works unchanged across all tenants
   
   Architecture:
   - Presentation Layer component
   - Bootstrap 5.3 utilities + custom CSS
   - Font Awesome icons
   - Light + dark mode support via CSS variables
   
   Status: LOCKED (2026-01-08)
   Do not modify without explicit user approval.
   ═══════════════════════════════════════════════════════════════════════════ */

.final-cta-section {
    position: relative;
    min-height: 360px;
    padding: 4rem 0;
    overflow: hidden;
    margin-bottom: 0 !important;
}

/* Super Flow Swiper container - fills section */
.final-cta-swiper {
    width: 100%;
    height: 100%;
    z-index: 0;
}

.final-cta-swiper .swiper-slide {
    position: relative;
}

/* Background image - Slightly subdued to support frosted card */
.final-cta-bg {
     background-size: cover;
     background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.80) contrast(1.05) saturate(1.0) blur(1px);
    z-index: 0;
}

/* Overlay - Scrim gradient (industry standard for text over images) - SUBDUED for frosted card */
.final-cta-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,      /* Top: darker to subdue image */
        rgba(0, 0, 0, 0.70) 40%,     /* Text area: darker, card will stand out */
        rgba(0, 0, 0, 0.60) 70%,     /* Button area: darker background */
        rgba(0, 0, 0, 0.40) 100%     /* Bottom: still subdued */
    );
    z-index: 1;
    pointer-events: none;
}

/* Content container - FROSTED GLASS CARD */
.final-cta-card {
    /* Frosted glass surface */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    
    /* Border and shape */
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    
    /* Shadow */
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    
    /* Spacing */
    padding: 2.5rem 2rem !important;
    text-align: center;
    
    /* Constrained width */
    max-width: 780px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .final-cta-section {
        min-height: 320px;
        padding: 3rem 0;
    }
    
    .final-cta-card {
        padding: 2rem 1.5rem !important;
    }
}

/* Headline - "Join {Platform}" - centered */
/* Typography sizing handled by .rs-section-title class - only color/alignment overrides here */
.final-cta-title {
     color: #ffffff;
    margin-bottom: 1rem;
    text-align: center !important;
}

/* Final CTA uses standardized section sizing (responsive handled by global .rs-section-title rules) */

/* Supporting copy - Calm, trust-building (1-2 lines max) */
.final-cta-subtitle {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767px) {
    .final-cta-subtitle {
        margin-bottom: 1.5rem;
    }
}

/* Primary CTA - Blue with frosted glass, uses section button sizing */
.final-cta-btn-primary {
    
    /* Solid professional look - Bootstrap primary */
    background: var(--bs-primary) !important;
    border: 1px solid var(--bs-primary) !important;
    color: #ffffff !important;
    
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3) !important;
    transition: all 0.2s ease !important;
    min-width: 180px !important;
    height: auto !important;
}

.final-cta-btn-primary:hover {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb), 0.4) !important;
}

@media (max-width: 767px) {
    .final-cta-btn-primary {
        width: 100% !important;
        max-width: 280px !important;
        /* Button sizing handled by .rs-btn-section class */
    }
}

/* Secondary CTA - Solid outline/secondary look, uses section button sizing */
.final-cta-btn-secondary {
    /* Frosted glass with backdrop blur */
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    min-width: 160px !important;
}

.final-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(16px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.8) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
}

@media (max-width: 767px) {
    .final-cta-btn-primary,
    .final-cta-btn-secondary {
        width: 100% !important;
        max-width: 280px !important;
    }
}

/* Micro trust line - Small, muted, anxiety-reducing */
.final-cta-trust-line {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0.75rem 0 0;
    font-weight: 400;
    text-align: center;
}

/* Icon spacing in CTAs */
.final-cta-section .btn i {
    font-size: 1rem;
}

/* Ensure section feels bounded (end of page) */
.final-cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--bs-border-color);
    opacity: 0.2;
}

/* Light Mode Adjustments - Subdued to support frosted card */
[data-bs-theme="light"] .final-cta-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,      /* Top: darker to subdue */
        rgba(0, 0, 0, 0.65) 40%,     /* Text area: darker, card stands out */
        rgba(0, 0, 0, 0.55) 70%,     /* Button area: darker background */
        rgba(0, 0, 0, 0.35) 100%     /* Bottom: still subdued */
    );
}

/* Removed light mode card background - no box needed */

[data-bs-theme="light"] .final-cta-btn-secondary {
    border-color: rgba(255, 255, 255, 0.6);
}

[data-bs-theme="light"] .final-cta-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════════════
   END: FINAL CTA SECTION
   
   Implementation Complete: 2026-01-08
   
   Final Specifications:
   - Section height: 360px desktop, 320px mobile
   - Card width: 780px max (constrained)
   - Background: Subdued with 1px blur, darker overlay gradient
   - Card: Frosted glass (blur 24px, rgba white 0.08, border-radius 24px)
   - Animation: AOS fade-up (400ms, 200px offset - snappy and responsive)
   - Typography: Centered, smaller than hero
   - CTAs: Solid primary, frosted secondary
   - Theme: Light/dark mode support via CSS variables
   
   Result: "Clean close" conversion section that doesn't compete with hero
   or content sections. Professional, calm, Apple-inspired aesthetic with
   fast, responsive scroll animation.
   
   LOCKED - Do not modify without explicit approval.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   Discussions Section
   ═══════════════════════════════════════════════════════════════════════════
   
   Purpose: Calm, welcoming entry point for community conversations
   Position: Section 5 (between Recent Activity and Tank Builds)
   Visual Priority: Secondary to Wiki/Events, slightly more prominent than Tank Builds
   
   Key Characteristics:
   - Typography-first, readable
   - Vertical list layout (cols=1)
   - Minimal metadata
   - Welcoming tone
   - Medium visual weight (less than pillars, more than builds)
   
   ═══════════════════════════════════════════════════════════════════════════ */

/* Section container */
.discussions-section {
  background: var(--bs-body-bg);
  padding-top: 7rem;
  padding-bottom: 7rem;
}

/* Discussions section - uses standardized section sizing */
.discussions-section h2 {
  color: var(--bs-heading-color);
}

.discussions-section .btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-color: var(--bs-white);
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
}

.discussions-section .btn-outline-secondary {
  --bs-btn-color: var(--bs-secondary);
  --bs-btn-border-color: var(--bs-secondary);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: var(--bs-secondary);
  --bs-btn-hover-border-color: var(--bs-secondary);
  --bs-btn-active-color: var(--bs-white);
  --bs-btn-active-bg: var(--bs-secondary);
  --bs-btn-active-border-color: var(--bs-secondary);
}

/* Discussion cards - Clean preview, not a feed */
.discussions-section .card {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.2s ease;
  margin-bottom: 0;
  padding: 1.5rem 0;
}

.discussions-section .card:hover {
  transform: none;
  box-shadow: none;
  background-color: var(--bs-tertiary-bg);
}

.discussions-section .card:last-child {
  /* No additional styling needed */
}

.discussions-section .card-body {
  padding: 0;
}

/* Hide system metadata badges */
.discussions-section .badge,
.discussions-section .card-header,
.discussions-section [class*="badge-"] {
  display: none !important;
}

/* Card title - Clean conversation title */
.discussions-section .card-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--bs-heading-color);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Clean up title text - remove "Discussion:" prefix and usernames */
.discussions-section .card-title a {
  color: var(--bs-heading-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.discussions-section .card-title a:hover {
  color: var(--bs-primary);
}

/* Card text - Welcoming prompt (not excerpt) */
.discussions-section .card-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bs-secondary-color);
  margin-bottom: 0.5rem;
}

/* Hide "None" and empty paragraphs */
.discussions-section .card-text:empty,
.discussions-section .card-text:has(> :only-child:empty) {
  display: none;
}

/* Timestamps - Heavily de-emphasized */
.discussions-section .card-meta,
.discussions-section .text-muted,
.discussions-section small,
.discussions-section [class*="time"] {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
  opacity: 0.5;
}

/* Hide timestamps entirely - this is a preview, not a feed */
.discussions-section .card-meta,
.discussions-section .text-muted:not(.card-text),
.discussions-section small:last-child {
  display: none;
}

/* Container for preview items */
.discussions-section .container-fluid,
.discussions-section .row {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.discussions-section .col {
  padding-left: 0;
  padding-right: 0;
}

/* Preview item wrapper - constrained width, clean borders */
.discussions-section .row {
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 12px;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  background: var(--bs-body-bg);
  overflow: hidden;
}

/* Add welcoming prompt before each title */
.discussions-section .card-title::before {
  content: "";
  display: block;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

/* Custom discussions preview layout - overrides feed cards */
.discussions-section .discussions-preview {
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 12px;
  background: var(--bs-body-bg);
  overflow: hidden;
  margin-top: 2rem;
}

.discussions-section .discussion-item {
  padding: 1.5rem 1.75rem;
  transition: background-color 0.2s ease;
}

.discussions-section .discussion-item:last-child {
  /* No additional styling needed */
}

.discussions-section .discussion-item:hover {
  background-color: var(--bs-tertiary-bg);
}

.discussions-section .discussion-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--bs-heading-color);
  margin-bottom: 0.375rem;
  line-height: 1.5;
}

.discussions-section .discussion-title a {
  color: var(--bs-heading-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.discussions-section .discussion-title a:hover {
  color: var(--bs-primary);
}

.discussions-section .discussion-excerpt {
  font-size: 0.9375rem;
  color: var(--bs-secondary-color);
  margin: 0;
  opacity: 0.85;
  line-height: 1.5;
}

/* Empty state - Calm message */
.discussions-section .empty-state,
.discussions-section .discussions-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 12px;
  background: var(--bs-body-bg);
  margin-top: 2rem;
}

.discussions-section .empty-state p,
.discussions-section .discussions-empty p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--bs-secondary-color);
}

.discussions-section .empty-state::before,
.discussions-section .discussions-empty::before {
  content: "";
  display: block;
  margin-bottom: 0;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .discussions-section {
    background: var(--bs-body-bg);
  }
  
  .discussions-section .card {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  .discussions-section .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .discussions-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  /* Section title sizing handled by .rs-section-title class */
  
  /* Subtitle sizing handled by .rs-section-subtitle class */
  
  .discussions-section .card-body {
    padding: 1.25rem;
  }
  
  .discussions-section .card-title {
    font-size: 1.125rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   End Discussions Section
   
   Status: Complete ✓
   Implementation Date: 2026-01-08
   
   Section Purpose:
   - Calm entry point for community conversations
   - Secondary to Wiki/Events pillars
   - Slightly more prominent than Tank Builds
   - Typography-first, readable, welcoming
   
   LOCKED - Do not modify without explicit approval.
   ═══════════════════════════════════════════════════════════════════════════ */
