

/* Calculator-Specific Styles */
.calculator-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calculator-container h2 {
    color: #d81c38;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 700;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
}

.input-group select {
    background: white;
    cursor: pointer;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #f58220;
}

.calculate-btn {
    background: #f58220;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background 0.3s;
}

.calculate-btn:hover {
    background: #d81c38;
}

.progress-container {
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    margin-top: 1rem;
    display: none;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: #f58220;
    border-radius: 5px;
    transition: width 15s linear;
}

.result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f5f6f5;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.result.show {
    display: block;
}

.result h3 {
    color: #d81c38;
    margin-bottom: 0.5rem;
}

/* Confetti Animation */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    display: none;
}

.confetti.active {
    display: block;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti 2s linear infinite;
}

@keyframes confetti {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Media Query for max-width: 600px */
@media (max-width: 600px) {
    /* Calculator Container */
    .calculator-container {
        margin: 20px;
        padding: 1rem;
        width: 90vw;

    }

    .calculator-container h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Input Group */
    .input-group {
        margin-bottom: 1rem;
    }

    .input-group label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .input-group input,
    .input-group select {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    /* Calculate Button */
    .calculate-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Progress Container */
    .progress-container {
        margin-top: 0.75rem;
    }

    /* Result Section */
    .result {
        margin-top: 1rem;
        padding: 0.75rem;
    }

    .result h3 {
        font-size: 1.2rem;
    }

    /* Confetti Animation */
    .confetti-piece {
        width: 8px;
        height: 8px;
    }
}

/* Introduction */

/* IELTS Listening Score Calculator Section */
.listening-calculator {
    background: #ffffff;
    padding: 2rem 1rem;
}

.listening-calculator-container {
    max-width: 1200px;
    margin: 0 auto;
}

.listening-calculator h1 {
    font-size: 2rem;
    color: #d81c38;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.listening-calculator p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.listening-calculator .disclaimer {
    font-size: 0.95rem;
    color: #333;
    background: #f5f6f5;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.listening-why, .listening-how-to-use, .listening-features, .listening-sample, .listening-trends, .listening-tips, .listening-cta {
    margin-bottom: 2rem;
}

.listening-calculator h2 {
    font-size: 1.6rem;
    color: #d81c38;
    margin-bottom: 1rem;
    text-align: center;
}

.features-list, .steps-list, .feedback-list {
    list-style: none;
    padding-left: 0;
}

.features-list li, .steps-list li, .feedback-list li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.features-list li:before, .feedback-list li:before {
    content: '\f058'; /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #f58220;
    position: absolute;
    left: 0;
    top: 2px;
}

.steps-list li:before {
    content: counter(step) '.'; /* Numbered list */
    counter-increment: step;
    color: #f58220;
    position: absolute;
    left: 0;
    font-weight: 700;
}

.steps-list {
    counter-reset: step;
}

.listening-sample .feedback-list {
    background: #f5f6f5;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.listening-cta {
    text-align: center;
}

.listening-cta p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.listening-cta .cta-btn {
    background: #f58220;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .listening-calculator h1 {
        font-size: 2.5rem;
    }

    .listening-calculator h2 {
        font-size: 1.8rem;
    }

    .features-list, .feedback-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .steps-list {
        max-width: 600px;
        margin: 0 auto;
    }

    .listening-cta .cta-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 1024px) {
    .listening-calculator {
        padding: 3rem 1rem;
    }

    .listening-calculator h1 {
        font-size: 3rem;
    }
}