/**
 * Education Block Styles
 * Prefix: rptx- (Reportgenix Tools)
 */

/* Education Section */
.rptx-education {
    background: var(--rptx-bg-color, #f9fafb);
    /* CSS Variables for spacing */
    --rptx-padding-top: 80px;
    --rptx-padding-bottom: 80px;
    --rptx-padding-top-tablet: 60px;
    --rptx-padding-bottom-tablet: 60px;
    --rptx-padding-top-mobile: 40px;
    --rptx-padding-bottom-mobile: 40px;
    /* Apply spacing */
    padding: var(--rptx-padding-top) 0 var(--rptx-padding-bottom);
}

.rptx-education__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Content Column */
.rptx-education__content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px;
    color: #1a1a1a;
}

.rptx-education__content p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 20px;
    color: #4b5563;
}

.rptx-education__content p:last-child {
    margin-bottom: 0;
}

.rptx-education__content strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Formula Column */
.rptx-education__formula {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rptx-education__formula h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
    color: #1a1a1a;
}

/* Formula Box */
.rptx-formula-box {
    background: var(--rptx-formula-box-color, #6b5af7);
    color: white;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Courier New', monospace;
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.6;
    word-break: break-word;
}

/* Formula Example */
.rptx-formula-example {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
}

.rptx-formula-example h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 0 0 12px;
    font-weight: 600;
}

.rptx-example-data {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rptx-example-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

.rptx-example-row--bold {
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 4px;
}

.rptx-example-label {
    flex-shrink: 0;
    margin-right: 12px;
}

.rptx-example-value {
    text-align: right;
}

.rptx-example-spacer {
    height: 12px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .rptx-education {
        padding: var(--rptx-padding-top-tablet) 0 var(--rptx-padding-bottom-tablet);
    }

    .rptx-education__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rptx-education__content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .rptx-education__content p {
        font-size: 0.9375rem;
    }

    .rptx-education__formula {
        padding: 32px 24px;
    }

    .rptx-education__formula h3 {
        font-size: 1.125rem;
    }

    .rptx-formula-box {
        font-size: 1rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .rptx-education {
        padding: var(--rptx-padding-top-mobile) 0 var(--rptx-padding-bottom-mobile);
    }

    .rptx-education__grid {
        gap: 32px;
    }

    .rptx-education__content h2 {
        font-size: 1.375rem;
        margin-bottom: 16px;
    }

    .rptx-education__content p {
        font-size: 0.875rem;
        margin-bottom: 16px;
    }

    .rptx-education__formula {
        padding: 24px 20px;
    }

    .rptx-education__formula h3 {
        font-size: 1.0625rem;
        margin-bottom: 20px;
    }

    .rptx-formula-box {
        font-size: 0.9375rem;
        padding: 18px;
        margin-bottom: 20px;
    }

    .rptx-formula-example {
        padding: 16px;
    }

    .rptx-formula-example h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .rptx-example-row {
        font-size: 14px;
    }

    .rptx-example-label {
        margin-right: 8px;
    }

    .rptx-example-spacer {
        height: 8px;
    }
}
