/* Equations Page Styling */

.equations-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.equations-page .display-4 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.equations-page .lead {
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 1.3rem;
}

/* Card styling */
.equation-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.equation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.equation-card .card-header {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.4rem;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.equation-card .card-body {
    padding: 2rem;
}

/* Info alert boxes */
.equation-card .alert-info {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.equation-card .alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 1.25rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

/* Section headers */
.equation-card h5 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Math formula styling */
.equation-card .h1 {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 2rem 1rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    margin: 1.5rem 0;
}

/* Column divider */
.border-end {
    border-right: 2px solid #e5e7eb !important;
    padding-right: 2rem;
}

.col-md-6:last-child {
    padding-left: 2rem;
}

/* Step-by-step examples */
.equation-card ul {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
    margin: 1rem 0;
}

.equation-card ul li {
    padding: 0.35rem 0;
    font-size: 1.05rem;
}

.equation-card .ms-3 {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin: 0.75rem 0;
    display: block;
}

/* Bold text styling */
.equation-card strong {
    color: #1f2937;
    font-weight: 700;
}

/* Paragraph spacing */
.equation-card p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .equations-page {
        padding: 1rem 0;
    }

    .equation-card .card-body {
        padding: 1.25rem;
    }

    .border-end {
        border-right: none !important;
        border-bottom: 2px solid #e5e7eb !important;
        padding-right: 0;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .col-md-6:last-child {
        padding-left: 0;
    }

    .equation-card h5 {
        font-size: 1.1rem;
    }

    .equations-page .display-4 {
        font-size: 2.5rem;
    }

    .equations-page .lead {
        font-size: 1.1rem;
    }
}

/* Print styles */
@media print {
    .equations-page {
        background: white;
    }

    .equation-card {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
