/* How to Calculate Section */

.how-to-calculate-section {
    background: transparent;
    padding: var(--space-8xl) 0;
    position: relative;
}

.how-to-calculate {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header Section */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    font-family: sans-serif;
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.subtitle {
    font-family: sans-serif;
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 500;
    color: #2E57A8;
    margin: 0;
}

/* Grid Layout */
.calculation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.steps-column {
    grid-area: 1 / 1 / 2 / 2;
}

.visual-column {
    grid-area: 1 / 2 / 2 / 3;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Steps Column */
.steps-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(97, 97, 125, 0.15) 0%, rgba(97, 97, 125, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: sans-serif;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-text {
    font-family: sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

/* Visual Column */
.calculation-example {
    width: 100%;
    max-width: 400px;
}

.example-title {
    display: none;
}

.calculation-block {
    background: rgba(104, 203, 255, 0.1);
    border: 2px solid rgba(104, 203, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.calculation-block:hover {
    background: rgba(104, 203, 255, 0.15);
    border-color: rgba(104, 203, 255, 0.4);
    transform: translateY(-2px);
}

.birth-date {
    font-family: sans-serif;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    color: #78D5FF;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.birth-date:last-child {
    margin-bottom: 0;
}

.math-operation {
    font-family: sans-serif;
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 600;
    color: #78D5FF;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.math-operation:last-child {
    margin-bottom: 0;
}

.result-block {
    background: linear-gradient(135deg, rgba(186, 93, 89, 0.2) 0%, rgba(186, 93, 89, 0.1) 100%);
    border: 2px solid rgba(186, 93, 89, 0.4);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(186, 93, 89, 0.2);
}

.final-result {
    font-family: sans-serif;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    color: white;
}

.result-block .result-number {
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 900;
    color: #BA5D59;
    text-shadow: 0 0 20px rgba(186, 93, 89, 0.5);
    margin-left: 10px;
    display: inline;
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}

/* Common Mistakes Block */
.mistakes-block {
    background: linear-gradient(135deg, rgba(186, 93, 89, 0.2) 0%, rgba(186, 93, 89, 0.1) 100%);
    border: 2px solid rgba(186, 93, 89, 0.4);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(186, 93, 89, 0.2);
}

.mistakes-title {
    font-family: sans-serif;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    color: #BA5D59;
    margin-bottom: 15px;
    text-align: left;
}

.mistakes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mistakes-list li {
    font-family: sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.mistakes-list li:last-child {
    margin-bottom: 0;
}

.mistakes-list li::before {
    content: "•";
    color: #BA5D59;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .how-to-calculate {
        padding: 40px 15px;
    }

    .calculation-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .steps-column {
        grid-area: 1 / 1 / 2 / 2;
    }

    .visual-column {
        grid-area: 2 / 1 / 3 / 2;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .main-title {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 16px;
    }

    .step-item {
        padding: 16px;
        gap: 15px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .step-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .step-text {
        font-size: 14px;
    }

    .calculation-example {
        max-width: 100%;
    }

    .example-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .calculation-block {
        padding: 16px;
        margin-bottom: 12px;
    }

    .birth-date {
        font-size: 20px;
    }

    .math-operation {
        font-size: 16px;
    }


    .mistakes-block {
        padding: 20px;
        margin-top: 16px;
    }

    .mistakes-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .mistakes-list li {
        font-size: 14px;
        margin-bottom: 8px;
        padding-left: 16px;
    }
}

@media (max-width: 480px) {
    .how-to-calculate {
        padding: 30px 10px;
    }

    .calculation-grid {
        gap: 25px;
    }

    .step-item {
        padding: 14px;
        gap: 12px;
    }

    .calculation-block {
        padding: 14px;
    }
}

/* Animation for scroll-triggered effects */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.steps-column {
    animation: slideInLeft 0.8s ease-out;
}

.visual-column {
    animation: slideInRight 0.8s ease-out;
}

.step-item {
    animation: slideInLeft 0.6s ease-out;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
.step-item:nth-child(4) { animation-delay: 0.4s; }