/* Main Container */
.image-tools-container {
    font-family: 'Segoe UI', system-ui, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

/* Hero Section */
.image-tools-hero {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 16px;
    padding: 60px 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.image-tools-hero-content {
    position: relative;
    z-index: 2;
}

.image-tools-main-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.image-tools-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.image-tools-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-tools-shape-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -50px;
    right: -50px;
}

.image-tools-shape-2 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
}

/* Tools Grid */
.image-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.image-tool-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
}

.image-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.image-tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #a777e3, #6e8efb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-tool-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.image-tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.image-tool-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.image-tool-link {
    display: inline-block;
    color: #6e8efb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.image-tool-link:hover {
    color: #a777e3;
}

/* Info Boxes */
.image-tools-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.image-info-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.image-info-box:hover {
    transform: translateY(-3px);
}

.image-info-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.image-info-box h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #444;
}

.image-info-box p {
    color: #666;
    line-height: 1.6;
}

/* Content Section */
.image-tools-content {
    margin-bottom: 60px;
}

.image-tools-content-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    color: #444;
}

.image-tools-content-decor {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.image-tools-content-text {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.7;
    color: #555;
}

.image-tools-feature {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.image-tools-feature.reversed {
    flex-direction: row-reverse;
}

.image-tools-feature-text {
    flex: 1;
}

.image-tools-feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #444;
}

.image-tools-feature-text p {
    color: #666;
    line-height: 1.7;
}

.image-tools-feature-visual {
    flex: 1;
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
    border-radius: 12px;
}

/* FAQ Section */
.image-tools-faq {
    margin-bottom: 60px;
}

.image-tools-faq-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #444;
}

.image-tools-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.image-tools-accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.image-tools-accordion-question {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    background: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-tools-accordion-question::after {
    content: '+';
    font-size: 1.3rem;
}

.image-tools-accordion-question.active::after {
    content: '-';
}

.image-tools-accordion-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f9f9f9;
}

.image-tools-accordion-answer.active {
    padding: 20px 25px;
    max-height: 500px;
}

.image-tools-accordion-answer p {
    color: #666;
    line-height: 1.7;
}

/* CTA Section */
.image-tools-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
    border-radius: 12px;
    margin-bottom: 60px;
}

.image-tools-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #444;
}

.image-tools-cta p {
    color: #666;
    font-size: 1.1rem;
}

.image-tools-internal-link {
    color: #6e8efb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.image-tools-internal-link:hover {
    color: #a777e3;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-tools-hero {
        padding: 40px 20px;
    }
    
    .image-tools-main-title {
        font-size: 2.2rem;
    }
    
    .image-tools-subtitle {
        font-size: 1rem;
    }
    
    .image-tools-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .image-tools-feature,
    .image-tools-feature.reversed {
        flex-direction: column;
        gap: 20px;
    }
    
    .image-tools-feature-visual {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .image-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .image-tools-main-title {
        font-size: 1.8rem;
    }
}