/* Vocabulary Section */
.vocab-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);
}

.vocab-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vocab-display {
    text-align: center;
}

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

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

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

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

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

.vocab-results {
    text-align: left;
}

.vocab-result-item {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fafafa;
    border: 2px solid #d81c38;
    border-radius: 10px;
}

.vocab-result-item h3 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    color: #d81c38;
    margin-bottom: 0.5rem;
}

.vocab-result-item p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #333;
    margin-bottom: 0.5rem;
}

.vocab-result-item span {
    font-weight: 600;
    color: #f58220;
}

/* Loading Animation */
.loading-container {
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}

.loading-container.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #d81c38;
    border-top: 5px solid #f58220;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-container p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #d81c38;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

    .vocab-section {
        padding: 1.5rem;
    }

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

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

    .vocab-input, .vocab-result-item p {
        font-size: 0.9rem;
    }

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

    .spinner {
        width: 40px;
        height: 40px;
    }
}

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

    /* Introduction */

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

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

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

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

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

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

.vocabulary-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;
}

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

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

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

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

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

    .vocabulary-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;
    }

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

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

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