/*
 * Shared styling for the standalone topic pages (data-visualization.php,
 * data-science.php, data-engineering.php). Reuses the Rubiscape purple palette.
 */

:root {
    --rbv-deep: #6E5A78;
    --rbv-mid: #8D7399;
    --rbv-light: #AB8CBA;
    --rbv-accent: #C39FD4;
    --rbv-tint: #E7D9EE;
}

.topic-page {
    color: #3a3140;
}

.topic-hero {
    padding: 3.5rem 1.5rem 4.5rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(120deg, var(--rbv-deep) 0%, var(--rbv-mid) 45%, var(--rbv-light) 75%, var(--rbv-accent) 100%);
    border-radius: 0 0 2rem 2rem;
}

.topic-hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    margin-bottom: 1.25rem;
}

.topic-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.topic-hero p {
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
}

.topic-sections {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.topic-section {
    margin-bottom: 3rem;
}

.topic-section-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f0e8f4;
    padding-bottom: 0.85rem;
}

.topic-section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--rbv-deep);
    margin: 0;
}

.topic-section-header .badge {
    background: var(--rbv-tint);
    color: var(--rbv-deep);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.topic-section .card-deck {
    display: flex;
    flex-wrap: wrap;
}

/* ---------- Generic content cards (About Us, Contact Us, Featured Partners) ---------- */

.topic-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.topic-info-card {
    background: #fff;
    border: 1px solid #f0e8f4;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 10px 28px rgba(46, 27, 56, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.topic-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(110, 90, 120, .14);
}

.topic-info-card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--rbv-tint);
    color: var(--rbv-deep);
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.topic-info-card .icon i {
    display: block;
    line-height: 1;
}

.topic-info-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rbv-deep);
    margin-bottom: .5rem;
}

.topic-info-card p,
.topic-info-card a {
    color: #4a4152;
    font-size: .92rem;
    margin-bottom: 0;
}

.topic-info-card a {
    color: var(--rbv-mid);
    font-weight: 600;
    text-decoration: none;
}

.topic-info-card a:hover {
    color: var(--rbv-deep);
    text-decoration: underline;
}

.topic-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 0 0 3rem;
    text-align: center;
}

.topic-stat .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--rbv-deep);
    display: block;
}

.topic-stat .label {
    color: #718096;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.topic-body p {
    color: #4a4152;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.topic-empty-note {
    background: var(--rbv-tint);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    color: var(--rbv-deep);
    font-weight: 600;
}
