/* Breadcrumb navigation */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* Category page styles */
.category-header-large {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.category-icon-large {
    font-size: 2.5rem;
    color: #00D8A6;
    margin-right: 15px;
}

.tool-grid-large {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.tool-card-large {
    display: flex;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.tool-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tool-icon-large {
    font-size: 2.2rem;
    color: #00D8A6;
    margin-right: 20px;
    padding-top: 5px;
}

.tool-content-large {
    flex: 1;
}

.tool-title-large {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.tool-title-large a {
    color: #2d3748;
    text-decoration: none;
}

.tool-title-large a:hover {
    color: #00D8A6;
}

.tool-description-large {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tool-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #00D8A6;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.tool-button:hover {
    background-color: #00b08a;
    color: white;
    text-decoration: none;
}

/* Other categories section */
.other-categories {
    margin-top: 40px;
}

.other-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.other-category-card {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.other-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.other-category-icon {
    font-size: 1.8rem;
    color: #00D8A6;
    margin-right: 15px;
}

.other-category-content {
    flex: 1;
}

.other-category-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.other-category-content h3 a {
    color: #2d3748;
    text-decoration: none;
}

.other-category-content h3 a:hover {
    color: #00D8A6;
}

.other-category-content p {
    color: #4a5568;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.tool-count {
    display: inline-block;
    background-color: #f1f1f1;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #4a5568;
}

/* Individual tool page styles */
.tool-container {
    margin-bottom: 40px;
}

.tool-action-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.upload-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-box {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: border-color 0.3s;
    background-color: #f8fafc;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #00D8A6;
}

.upload-icon {
    font-size: 3rem;
    color: #00D8A6;
    margin-bottom: 15px;
}

.upload-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2d3748;
}

.upload-subtitle {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #4a5568;
}

.upload-format {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0;
}

.file-input {
    display: none;
}

.compression-options {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
}

.compression-options h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #4a5568;
}

.result-container {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
}

.comparison-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.original-image h3,
.compressed-image h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2d3748;
    text-align: center;
}

.image-placeholder {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f8fafc;
    margin-bottom: 10px;
}

.image-placeholder i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 10px;
}

.image-placeholder p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.image-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #4a5568;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.download-button {
    background-color: #00D8A6;
    border-color: #00D8A6;
}

.download-button:hover {
    background-color: #00b08a;
    border-color: #00b08a;
}

.tool-info {
    margin-top: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
}

.info-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.info-section p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-section ul {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Benefits section */
.tool-benefits {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    color: #00D8A6;
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2d3748;
}

.benefit-item p {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Related tools section */
.related-tools {
    margin-bottom: 40px;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.related-tool-icon {
    font-size: 1.8rem;
    color: #00D8A6;
    margin-right: 15px;
}

.related-tool-content {
    flex: 1;
}

.related-tool-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.related-tool-content h3 a {
    color: #2d3748;
    text-decoration: none;
}

.related-tool-content h3 a:hover {
    color: #00D8A6;
}

.related-tool-content p {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.related-tool-link {
    display: inline-block;
    color: #00D8A6;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
}

.related-tool-link:hover {
    text-decoration: underline;
}

/* Ad container for full width ads */
.ad-full-width {
    grid-column: 1 / -1;
    margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .tool-action-area {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .category-header-large {
        flex-direction: column;
    }
    
    .category-icon-large {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .comparison-view {
        grid-template-columns: 1fr;
    }
    
    .tool-card-large {
        flex-direction: column;
    }
    
    .tool-icon-large {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .other-category-card {
        flex-direction: column;
    }
    
    .other-category-icon {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .related-tool-card {
        flex-direction: column;
    }
    
    .related-tool-icon {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}