.page-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin: 2rem auto 4rem;
    max-width: 1100px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-content h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.2rem;
    line-height: 1.3;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 1rem;
}

.page-content h2 {
    color: var(--primary-color);
    margin: 2.5rem 0 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-left: 1rem;
}

.page-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.page-content p {
    margin-bottom: 1rem;
}

.formula {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1.5rem 0;
    text-align: center;
    font-size: 1.2rem;
}

.example {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.table-container {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
}

th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: left;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f8f9fa;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .page-content {
        padding: 1.5rem;
        margin: 1rem 0.5rem 4rem;
    }

    .page-content h1 {
        font-size: 1.8rem;
    }

    .page-content h2 {
        font-size: 1.5rem;
    }

    .factors-grid,
    .applications {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .table-container {
        margin: 1.5rem -1rem;
        width: calc(100% + 2rem);
    }

    .formula-box,
    .example-box,
    .definition-box,
    .factor-box,
    .application-box {
        padding: 1.2rem;
    }

    .cta-section {
        margin: 2rem -1rem;
        border-radius: 0;
    }
}

@media screen and (max-width: 480px) {
    .page-content {
        padding: 1rem;
        margin: 0.5rem 0.3rem 4rem;
    }

    .formula {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

/* Estilos para la página de comparación */
.definition-box {
    background-color: white;
    padding: 1.8rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comparison-table table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 0.8rem;
    text-align: right;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros-cons-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
}

.pros h4 {
    color: #27ae60;
}

.cons h4 {
    color: #e74c3c;
}

.use-case {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 5px;
}

@media screen and (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .comparison-table {
        overflow-x: auto;
    }
}

/* Estilos para la página gdzie-najlepiej */
.investment-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

.investment-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.details strong {
    color: var(--primary-color);
}

.strategy-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 5px;
    border-top: 4px solid var(--secondary-color);
}

.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.warning-box h3 {
    color: #856404;
    margin-top: 0;
}

.factors ul li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.tips ol li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .investment-box,
    .strategy-box,
    .warning-box {
        padding: 1rem;
        margin: 1rem 0;
    }

    .comparison-table {
        overflow-x: auto;
    }
}

/* Estilos específicos para la calculadora Forex */
.forex-calculator {
    margin: 2rem 0;
}

.rule-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

.scenarios .comparison-table {
    margin: 1.5rem 0;
}

.scenarios .comparison-table th {
    background-color: var(--primary-color);
    color: white;
}

@media screen and (max-width: 768px) {
    .forex-calculator .input-group {
        margin-bottom: 1rem;
    }
    
    .rule-box {
        padding: 1rem;
    }
}

/* Estilos para la página Excel */
.code-block {
    background-color: #2c3e50;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Consolas', monospace;
    margin: 1.5rem 0;
    overflow-x: auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.formula-box {
    background-color: white;
    padding: 1.8rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formula-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.example-box {
    background-color: white;
    padding: 1.8rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.example-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tip-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 5px;
    border-top: 4px solid var(--secondary-color);
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.template-box {
    background-color: #e9ecef;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.template-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.template-link:hover {
    text-decoration: underline;
}

.file-info {
    color: #6c757d;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

@media screen and (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .code-block {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .formula-box,
    .step,
    .example-box,
    .tip-box,
    .template-box {
        padding: 1rem;
        margin: 0.8rem 0;
    }
}

/* Estilos para la página jak-dziala */
.explanation-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

.visual-example {
    background-color: #f8f9fa;
    padding: 1.8rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.factor-box {
    background-color: white;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary-color);
}

.myth-box {
    background-color: white;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.myth-box h3 {
    color: #e74c3c;
}

.applications {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.application-box {
    background-color: white;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--secondary-color);
}

.tips-list ol, .tips-list ul {
    padding-left: 2rem;
}

.tips-list li {
    margin-bottom: 1rem;
    line-height: 1.6;
    position: relative;
}

@media screen and (max-width: 768px) {
    .factors-grid,
    .applications {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .factor-box,
    .application-box,
    .myth-box {
        padding: 1rem;
        margin: 0.8rem 0;
    }

    .visual-example {
        padding: 1rem;
    }
}

/* Estilos base mejorados */
.article-summary {
    background-color: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.article-summary ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.article-summary li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.article-summary li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Mejoras en las cajas */
.formula-box:hover, .example-box:hover, .definition-box:hover, .factor-box:hover, .application-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Mejoras en los enlaces */
.page-content a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.page-content a:hover {
    border-bottom-color: var(--secondary-color);
}

/* Mejoras en la sección CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0 1rem;
    text-align: center;
}

.cta-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

.cta-section a:hover {
    text-decoration: none;
}

/* Animaciones suaves */
.formula-box,
.example-box,
.definition-box,
.factor-box,
.application-box,
.myth-box,
.warning-box {
    transition: all 0.3s ease;
} 