﻿/* ==========================================================================
   Community (robotics.html) — Team Nokkhotropoth
   ========================================================================== */
body {
    font-family: var(--font-main);
}

.rh-hero {
    position: relative;
    text-align: center;
    padding: 90px 24px 70px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(34, 211, 238, 0.18), transparent 60%),
        radial-gradient(ellipse at 15% 110%, rgba(251, 146, 60, 0.12), transparent 55%),
        #030712;
}

.rh-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.08), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(89, 65, 195, 0.1), transparent 45%);
    pointer-events: none;
}

.rh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    color: #67e8f9;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.rh-hero-title {
    position: relative;
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    line-height: 1.08;
    margin: 0 0 20px;
    color: #f8fafc;
    font-weight: 800;
}

.rh-accent {
    background: linear-gradient(90deg, #22d3ee, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rh-hero-sub {
    position: relative;
    max-width: 720px;
    margin: 0 auto 34px;
    color: #94a3b8;
    font-size: 1.12rem;
    line-height: 1.7;
}

.rh-hero-actions {
    position: relative;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.rh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.rh-btn:hover {
    transform: translateY(-2px);
}

.wa-btn {
    background: #25d366;
    color: #062b16;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.wa-btn:hover {
    background: #2fe571;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.ghost-btn {
    background: rgba(34, 211, 238, 0.1);
    color: #67e8f9;
    border: 1px solid rgba(34, 211, 238, 0.45);
}

.ghost-btn:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: #22d3ee;
}

.rh-hero-chips {
    position: relative;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.rh-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
}

.rh-chip i {
    color: #22d3ee;
}

/* ---------- Sections ---------- */
.rh-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.rh-section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #f8fafc;
    margin: 0 0 12px;
    font-weight: 800;
}

.rh-section-sub {
    text-align: center;
    color: #94a3b8;
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.rh-grid {
    display: grid;
    gap: 22px;
}

.rh-benefit-grid,
.rh-track-grid {
    grid-template-columns: repeat(3, 1fr);
}

.rh-card {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 28px 26px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rh-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 12px 32px rgba(34, 211, 238, 0.08);
}

.rh-card-icon {
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.icon-cyan { color: #22d3ee; }
.icon-orange { color: #fb923c; }
.icon-gold { color: #fbbf24; }
.icon-green { color: #34d399; }
.icon-purple { color: #a78bfa; }

.rh-card h3 {
    color: #f8fafc;
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.rh-card p {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* ---------- Live stats ---------- */
.rh-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.rh-stat {
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.07), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 16px;
    text-align: center;
    padding: 26px 16px;
}

.rh-stat-num {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #67e8f9;
    font-variant-numeric: tabular-nums;
}

.rh-stat-label {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Tracks ---------- */
.rh-track {
    position: relative;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 28px 26px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.rh-track:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 146, 60, 0.5);
    box-shadow: 0 12px 32px rgba(251, 146, 60, 0.08);
}

.rh-track-level {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: rgba(34, 211, 238, 0.08);
}

.rh-track[data-level="intermediate"] .rh-track-level {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
}

.rh-track[data-level="advanced"] .rh-track-level {
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.4);
    background: rgba(251, 146, 60, 0.08);
}

.rh-track-icon {
    font-size: 2rem;
    color: #22d3ee;
    margin-bottom: 16px;
}

.rh-track h3 {
    color: #f8fafc;
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.rh-track p {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 18px;
    font-size: 0.95rem;
    flex: 1;
}

.rh-track-link {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.rh-track-link:hover {
    color: #67e8f9;
    gap: 12px;
}

/* ---------- Projects ---------- */
.rh-project-grid {
    grid-template-columns: repeat(3, 1fr);
}

.rh-project {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.rh-project:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 12px 32px rgba(34, 211, 238, 0.08);
}

.rh-project img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.rh-project-body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rh-project-body h3 {
    color: #f8fafc;
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.rh-project-body p {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 16px;
    font-size: 0.93rem;
    flex: 1;
}

/* ---------- Events ---------- */
.rh-events {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

.rh-event {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 26px;
}

.rh-event-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.rh-event-badge.upcoming { color: #67e8f9; background: rgba(34, 211, 238, 0.1); }
.rh-event-badge.workshop { color: #34d399; background: rgba(52, 211, 153, 0.1); }
.rh-event-badge.hackathon { color: #a78bfa; background: rgba(167, 139, 250, 0.1); }

.rh-event h3 {
    color: #f8fafc;
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.rh-event p {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.rh-center {
    text-align: center;
}

/* ---------- Guidelines ---------- */
.rh-guidelines {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.rh-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.rh-step {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    padding: 22px;
}

.rh-step-num {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fb923c;
    margin-bottom: 10px;
}

.rh-step h3 {
    color: #f8fafc;
    font-size: 1rem;
    margin: 0 0 8px;
}

.rh-step p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.rh-guideline-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 26px;
    background: rgba(251, 191, 36, 0.07);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px;
    padding: 18px 20px;
    color: #94a3b8;
    line-height: 1.6;
}

.rh-guideline-note i {
    color: #fbbf24;
    font-size: 1.3rem;
    margin-top: 2px;
}

.rh-guideline-note strong {
    color: #fde68a;
}

/* ---------- FAQ ---------- */
.rh-faq {
    max-width: 760px;
    margin: 0 auto;
}

.rh-faq-item {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.rh-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
}

.rh-faq-item summary::-webkit-details-marker { display: none; }

.rh-faq-item summary i {
    color: #22d3ee;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.rh-faq-item[open] summary i {
    transform: rotate(180deg);
}

.rh-faq-item p {
    margin: 0;
    padding: 0 20px 20px;
    color: #94a3b8;
    line-height: 1.65;
    font-size: 0.95rem;
}

/* ---------- Final CTA ---------- */
.rh-final-cta {
    text-align: center;
    padding: 90px 24px;
    background:
        radial-gradient(ellipse at 50% 120%, rgba(37, 211, 102, 0.14), transparent 60%),
        #030712;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.rh-final-cta h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #f8fafc;
    margin: 0 0 14px;
    font-weight: 800;
}

.rh-final-cta p {
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .rh-benefit-grid,
    .rh-track-grid,
    .rh-project-grid,
    .rh-events {
        grid-template-columns: repeat(2, 1fr);
    }

    .rh-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .rh-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .rh-benefit-grid,
    .rh-track-grid,
    .rh-project-grid,
    .rh-events,
    .rh-steps {
        grid-template-columns: 1fr;
    }

    .rh-stats {
        grid-template-columns: 1fr;
    }

    .rh-hero {
        padding: 60px 20px 50px;
    }
}