/* =============================================
   Mining Investment Section
   Matches CleanSpark's dark premium aesthetic
   ============================================= */

#mining-investment.mining-investment-section {
    background: linear-gradient(180deg, #000 0%, hsl(211, 94%, 5%) 100%);
    padding-top: var(--spacing-section, 6rem);
    padding-bottom: var(--spacing-section, 6rem);
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow backdrop */
#mining-investment.mining-investment-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, hsl(211, 94%, 20%, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#mining-investment .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Header ── */
#mining-investment .text-center.mb-5 {
    margin-bottom: 3.5rem !important;
}

#mining-investment .section-title {
    font-family: var(--ffamily-subtitle, "Barlow", sans-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1rem;

    /* Glowing text effect matching site style */
    text-shadow:
        0 0 2rem hsl(211, 94%, 60%, 0.4),
        0 0 0.5rem hsl(211, 94%, 80%, 0.15);
}

#mining-investment .section-subtitle {
    font-family: var(--ffamily-body, "DM Sans", sans-serif);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: hsl(0, 0%, 80%);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Table Wrapper ── */
#mining-investment .table-responsive {
    border-radius: 0.75rem;
    overflow: hidden;
    outline: 1px solid hsl(0, 0%, 100%, 0.12);
    backdrop-filter: blur(0.5rem);
    background: hsl(211, 94%, 7%, 0.6);
    box-shadow:
        0 0 0 1px hsl(211, 94%, 40%, 0.08),
        0 1.5rem 4rem hsl(0, 0%, 0%, 0.5);
}

/* ── Table ── */
#mining-investment .mining-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

/* ── Table Head ── */
#mining-investment .mining-table thead tr {
    background: hsl(211, 94%, 10%, 0.9);
    border-bottom: 1px solid hsl(0, 0%, 100%, 0.1);
}

#mining-investment .mining-table thead th {
    font-family: var(--ffamily-subtitle, "Barlow", sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(211, 80%, 70%);
    padding: 1.25rem 1.5rem;
    text-align: left;
    white-space: nowrap;
    border: none;
}

/* ── Table Body Rows ── */
#mining-investment .mining-table tbody tr {
    border-bottom: 1px solid hsl(0, 0%, 100%, 0.06);
    transition: background-color 200ms linear, backdrop-filter 200ms linear;
}

#mining-investment .mining-table tbody tr:last-child {
    border-bottom: none;
}

#mining-investment .mining-table tbody tr:hover {
    background: hsl(211, 94%, 15%, 0.4);
}

/* ── Table Cells ── */
#mining-investment .mining-table tbody td {
    font-family: var(--ffamily-body, "DM Sans", sans-serif);
    font-size: 0.925rem;
    color: hsl(0, 0%, 85%);
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border: none;
    line-height: 1.6;
}

/* ── Package Name Cell ── */
#mining-investment .mining-table .package-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

#mining-investment .mining-table .package-name i {
    font-size: 1.2rem;
    color: hsl(193, 60%, 65%);
    flex-shrink: 0;
}

#mining-investment .mining-table .package-name strong {
    font-family: var(--ffamily-subtitle, "Barlow", sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

/* ── Investment Amount Cell ── */
#mining-investment .mining-table .investment-amount {
    font-family: var(--ffamily-subtitle, "Barlow", sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

/* ── Return Potential Cell ── */
#mining-investment .mining-table .return-potential {
    font-family: var(--ffamily-subtitle, "Barlow", sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: hsl(193, 60%, 65%);
    white-space: nowrap;
}

/* ── Footer Note ── */
#mining-investment .text-center.mt-4 {
    margin-top: 2.5rem !important;
}

#mining-investment .text-muted {
    font-family: var(--ffamily-body, "DM Sans", sans-serif);
    font-size: 0.85rem;
    color: hsl(0, 0%, 55%) !important;
    max-width: 640px;
    margin: 0 auto 2rem auto;
    line-height: 1.7;
}

/* ── CTA Button — matches site's btn-light style ── */
#mining-investment .btn-primary.btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.5rem;
    font-family: var(--ffamily-subtitle, "Barlow", sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: var(--btn-border-radius, 0.5rem);
    text-decoration: none;
    transition: background-color 200ms linear, color 200ms linear, box-shadow 200ms linear;
    box-shadow: 0 0 1.5rem hsl(0, 0%, 100%, 0.1);
}

#mining-investment .btn-primary.btn-lg:hover {
    background-color: hsl(0, 0%, 90%);
    border-color: hsl(0, 0%, 90%);
    box-shadow: 0 0 2.5rem hsl(0, 0%, 100%, 0.2), inset 0 0 1rem hsl(0, 0%, 100%, 0.05);
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
    #mining-investment .mining-table thead {
        display: none;
    }

    #mining-investment .mining-table tbody tr {
        display: block;
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid hsl(0, 0%, 100%, 0.08);
    }

    #mining-investment .mining-table tbody td {
        display: flex;
        flex-direction: column;
        padding: 0.4rem 0;
        font-size: 0.875rem;
    }

    #mining-investment .mining-table .package-name {
        margin-bottom: 0.5rem;
    }

    #mining-investment .mining-table .investment-amount {
        font-size: 1.25rem;
        color: #fff;
    }

    #mining-investment .mining-table td::before {
        content: attr(class);
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: hsl(193, 60%, 65%);
        margin-bottom: 0.2rem;
        display: block;
    }
}

.certifications-section {
    background-color: #0a0f1e;
    padding-top: 5rem;
    padding-bottom: 5rem;
    color: #ffffff;
}

.certifications-section .section-title {
    font-family: var(--ffamily-subtitle, 'Barlow', sans-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.certifications-section .section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.65);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.cert-image-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    padding: 1.25rem;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-image-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.cert-display-image {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    filter: brightness(0.92);
}

.cert-image-box:hover .cert-display-image {
    transform: scale(1.03);
    filter: brightness(1);
}

.cert-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.05em;
}