/* Text Tools Hub Styles */
.text-tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin: 20px 0 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-box button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
}

/* Quick Access */
.quick-access {
    margin: 50px 0;
}

.quick-access h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.quick-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.quick-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.quick-tool:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tool-name {
    font-weight: 600;
    text-align: center;
}

/* Categories Grid */
.child-pages-section {
    margin: 60px 0;
}

.child-pages-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.category-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.category-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.category-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-links li {
    margin-bottom: 8px;
}

.category-links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Educational Content */
.educational-content {
    margin: 60px 0;
    padding: 40px 0;
    background: #f8f9fa;
    border-radius: 12px;
}

.educational-content h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.edu-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.edu-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.edu-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.edu-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.edu-link:hover {
    color: #764ba2;
}

/* Recent Articles */
.recent-articles {
    margin: 60px 0;
}

.recent-articles h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    font-size: 3rem;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    margin-bottom: 10px;
}

.article-content h3 a {
    color: #333;
    text-decoration: none;
}

.article-content h3 a:hover {
    color: #667eea;
}

.article-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.date {
    color: #999;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    color: #764ba2;
}

.view-all-container {
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.view-all-btn:hover {
    background: #764ba2;
    color: white;
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
    padding: 40px 0;
    background: #f8f9fa;
    border-radius: 12px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.faq-toggle {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

.faq-answer {
    padding: 0 20px;
    display: none;
}

.faq-answer p {
    padding: 20px 0;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    margin: 60px 0;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.cta-content h2 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.cta-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    color: #667eea;
}

/* No Pages Message */
.no-pages-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .text-tools-container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .edu-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card,
    .edu-card {
        padding: 20px;
    }
}