

/* Word Count Section */
.word-count-section {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.tool-title {
    text-align: center;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    color: #d81c38;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.word-count-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-box {
    text-align: center;
}

.input-label {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: #d81c38;
    margin-bottom: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.task-select {
    width: 100%;
    padding: 0.75rem;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    border-radius: 8px;
    border: 2px solid #d81c38;
    background: #fff;
    color: #333;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.task-select:focus {
    outline: none;
    border-color: #f58220;
}

textarea {
    width: 100%;
    padding: 1.25rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    border-radius: 10px;
    border: 2px solid #d81c38;
    background: #fafafa;
    color: #333;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #f58220;
    box-shadow: 0 0 8px rgba(245, 130, 32, 0.3);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    margin: 1.5rem 0;
    overflow: hidden;
    border: 1px solid #d81c38;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f58220, #d81c38);
    width: 0;
    transition: width 0s linear;
}

.progress-fill.active {
    transition: width 15s linear;
}

.controls {
    margin-top: 1.5rem;
}

.control-btn {
    background: #d81c38;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin: 0 0.75rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
}

.control-btn:hover {
    background: #f58220;
    transform: translateY(-2px);
}

.reset-btn {
    background: #666;
}

.reset-btn:hover {
    background: #888;
}

.result-message {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 10px;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.result-message.success {
    background: rgba(0, 204, 0, 0.1);
    border: 2px solid #00cc00;
    color: #00cc00;
}

.result-message.failure {
    background: rgba(216, 28, 56, 0.1);
    border: 2px solid #d81c38;
    color: #d81c38;
}

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

.confetti-piece {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: confetti 5s ease-in-out infinite;
}

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

/* Responsive Design */
@media (min-width: 768px) {
    .word-count-section {
        padding: 2.5rem;
    }

    .task-select, textarea {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .container {
        margin: 1rem auto;
        padding: 0.5rem;
    }

    .word-count-section {
        padding: 1.5rem;
    }

    .tool-title {
        margin-bottom: 1.5rem;
    }

    .controls {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .control-btn {
        padding: 0.6rem 1.2rem;
    }

    .task-select, textarea {
        font-size: 0.9rem;
    }

    .result-message {
        padding: 0.75rem;
    }
}

@media (max-width: 600px) {
    /* Calculator Container */
    .word-count-section {
        margin: 1rem;
        padding: 1rem;
        width: 90vw;
    }}

    /* Introduction */

    /* IELTS Word Count Tool Section */
.word-count-tool {
    background: #ffffff;
    padding: 2rem 1rem;
}

.word-count-tool-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.word-count-tool p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

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

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

.word-count-tool 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;
}

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

.word-count-cta {
    text-align: center;
}

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

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

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

    .word-count-tool 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;
    }

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

@media (min-width: 1024px) {
    .word-count-tool {
        padding: 3rem 1rem;
    }

    .word-count-tool h1 {
        font-size: 3rem;
    }
}