

/* Grammar Tool Styling */
.grammar-tool {
    margin-top: 2rem;
}


textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: #fafafa;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    border-color: #d81c38;
    outline: none;
}

.check-btn {
    margin-top: 1rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 1.5rem 0;
    overflow: hidden;
}

#progressBar {
    height: 100%;
    background-color: #f58220;
    width: 0%;
    transition: width 0.1s linear;
}

.highlighted-text {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #fff;
    min-height: 100px;
    white-space: pre-wrap;
    font-size: 1rem;
    color: #333;
    margin-top: 1.5rem;
}

.error-highlight {
    background-color: #fff3cd;
    padding: 2px 5px;
    border-radius: 3px;
}

.results-section {
    display: none;
    margin-top: 1.5rem;
}

.results-section.active {
    display: block;
}

#errorList {
    list-style: none;
    padding: 0;
}

.error-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8fafc;
    border-left: 4px solid #f58220;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.error-text {
    font-weight: 600;
    color: #d81c38;
    margin-bottom: 0.5rem;
}

.error-suggestion {
    color: #f58220;
    margin-bottom: 0.5rem;
}

.ielts-tip {
    font-style: italic;
    color: #666;
}

/* Media Query for max-width: 600px */
@media (max-width: 600px) {
    /* Grammar Tool Container */

    .hero{
        width: 90vw;
        margin: 20px;
        border-radius: 10px;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    }
    .grammar-tool {
        margin-top: 1rem;
    }

    /* Textarea */
    textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Check Button */
    .check-btn {
        margin-top: 0.75rem;
        width: 100%; /* Make button full-width */
    }

    /* Progress Bar */
    .progress-container {
        margin: 1rem 0;
    }

    /* Highlighted Text Section */
    .highlighted-text {
        padding: 1rem;
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .error-highlight {
        padding: 2px 4px;
    }

    /* Results Section */
    .results-section {
        margin-top: 1rem;
    }

    .error-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .error-text {
        font-size: 0.9rem;
    }

    .error-suggestion {
        font-size: 0.85rem;
    }

    .ielts-tip {
        font-size: 0.85rem;
    }
}

/* Introduction */

/* IELTS Grammar Checker Section */
.grammar-checker {
    background: #ffffff;
    padding: 2rem 1rem;
}

.grammar-checker-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

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

.grammar-checker 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;
}

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

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

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

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

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

    .grammar-checker 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;
    }

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

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

    .grammar-checker h1 {
        font-size: 3rem;
    }
}