/* Main Container Styles */
.all-text-tools-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.text-tools-hero {
    position: relative;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 60px 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

/* Tools Grid */
.text-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tool-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.tool-desc {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.tool-link {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

/* Info Boxes */
.text-tools-info {
    margin-bottom: 60px;
}

.info-box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #f1f1f1;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.info-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.info-content {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Content Section */
.text-tools-content {
    position: relative;
    margin-bottom: 60px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.content-decorative-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 30px;
    transform: rotate(15deg);
    z-index: -1;
    opacity: 0.7;
}

.content-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.content-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    border-radius: 2px;
}

.content-paragraph {
    margin-bottom: 25px;
    color: #34495e;
    font-size: 1.05rem;
    line-height: 1.7;
}

.content-highlight {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #4facfe;
    display: flex;
    align-items: flex-start;
}

.highlight-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #4facfe;
}

.internal-link {
    color: #4facfe;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.internal-link:hover {
    color: #f5576c;
    text-decoration: underline;
}

.content-subtitle {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 30px 0 15px;
}

.content-list {
    padding-left: 20px;
    margin-bottom: 25px;
}

.content-list li {
    margin-bottom: 10px;
    color: #34495e;
}

/* FAQ Section */
.text-tools-faq {
    margin-bottom: 60px;
}

.faq-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 18px 25px;
    text-align: left;
    background: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #4facfe;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '-';
    transform: rotate(0deg);
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-answer {
    padding: 0;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding: 0 25px 20px;
    margin: 0;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .text-tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .info-box-container {
        grid-template-columns: 1fr;
    }
    
    .text-tools-content {
        padding: 30px 20px;
    }
    
    .content-decorative-shape {
        width: 80px;
        height: 80px;
        right: -15px;
        top: -15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .text-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .content-title, .faq-title {
        font-size: 1.5rem;
    }
}