/* =============================================
   Community Impact / ConsultasNow Page Styles
   ============================================= */

/* Hero */
.community-hero {
    padding: 10rem 0 6rem;
    position: relative;
    text-align: center;
}

.community-hero .deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(29, 161, 242, 0.08);
    pointer-events: none;
}

.community-hero .deco-circle:nth-child(1) { width: 500px; height: 500px; top: -80px; left: -120px; }
.community-hero .deco-circle:nth-child(2) { width: 350px; height: 350px; top: 60px; right: -80px; }
.community-hero .deco-circle:nth-child(3) { width: 200px; height: 200px; bottom: 0; left: 50%; transform: translateX(-50%); }

.community-hero .hero-eyebrow {
    display: inline-block;
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid rgba(29, 161, 242, 0.25);
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.35rem 1.1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.community-hero .hero-brand {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.community-hero .hero-brand span { color: var(--accent-cyan); }

.community-hero .hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.community-hero .hero-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

/* Hero image */
.community-hero-image {
    margin-top: 3.5rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.community-hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* Section intro text */
.section-intro-text {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.section-intro-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-intro-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Five topic area cards */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.topic-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(29, 161, 242, 0.15);
    border-color: var(--border-hover);
}

.topic-card-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.topic-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.topic-card:hover .topic-card-image img { transform: scale(1.08); }

.topic-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topic-card-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    margin-bottom: 0.85rem;
    transition: all 0.3s ease;
}

.topic-card:hover .topic-card-icon { transform: scale(1.1) rotate(5deg); }

.topic-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.topic-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    flex: 1;
}

/* Features list */
.features-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-image {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.features-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.features-image:hover img { transform: scale(1.04); }

.features-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.5;
}

.features-list li .feat-icon {
    width: 36px; height: 36px;
    min-width: 36px;
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid rgba(29, 161, 242, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

/* CTA box */
.community-cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.community-cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan-light));
}

.community-cta-box h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.community-cta-box p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .topic-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .features-two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .community-hero { padding: 8rem 0 4rem; }
    .community-hero-image img { height: 280px; }
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .features-image img { height: 280px; }
    .community-cta-box { padding: 2.5rem 1.5rem; }
}

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