/* Main Container */
.all-tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Section */
.all-tools-hero {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 60px 20px;
    border-radius: 15px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.all-tools-hero-content {
    position: relative;
    z-index: 2;
}

.all-tools-main-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.all-tools-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.all-tools-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -50px;
    right: -50px;
}

.shape-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(255, 255, 255, 0.08);
    bottom: -80px;
    left: -50px;
    transform: rotate(15deg);
}

.shape-wave {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 40%;
    bottom: -150px;
    right: 20%;
    animation: wave 8s infinite linear;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search Section */
.all-tools-search {
    margin-bottom: 40px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.2);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.search-button:hover {
    transform: scale(1.05);
}

.search-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Tools Categories */
.tools-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.tool-card {
    background: white;
    border-radius: 10px;
    padding: 25px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #6e8efb;
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.tool-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.tool-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Info Boxes */
.all-tools-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.info-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;
    border-top: 4px solid transparent;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-box-1 {
    border-top-color: #6e8efb;
}

.info-box-2 {
    border-top-color: #4ac7d4;
}

.info-box-3 {
    border-top-color: #f78fb3;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.info-box h3 {
    margin: 0 0 15px;
    font-size: 1.3rem;
    color: #444;
}

.info-box p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Content Section */
.all-tools-content {
    position: relative;
    margin: 60px 0;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.content-shape-left {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.1), rgba(167, 119, 227, 0.1));
    border-radius: 20px;
    top: -20px;
    left: -20px;
    z-index: -1;
    transform: rotate(15deg);
}

.content-shape-right {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(167, 119, 227, 0.1), rgba(110, 142, 251, 0.1));
    border-radius: 30px;
    bottom: -30px;
    right: -30px;
    z-index: -1;
    transform: rotate(-10deg);
}

.content-title {
    font-size: 2rem;
    color: #444;
    margin-bottom: 20px;
    text-align: center;
}

.content-paragraph {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-highlight {
    background: #f9f9ff;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #6e8efb;
}

.feature-highlight h3 {
    color: #444;
    margin-top: 0;
    font-size: 1.4rem;
}

.feature-highlight p {
    color: #555;
    line-height: 1.7;
}

.internal-link {
    color: #6e8efb;
    text-decoration: none;
    font-weight: 600;
}

.internal-link:hover {
    text-decoration: underline;
}

/* FAQ Section */
.all-tools-faq {
    margin: 60px 0;
}

.faq-title {
    font-size: 2rem;
    color: #444;
    text-align: center;
    margin-bottom: 40px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 20px;
    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;
    transition: all 0.3s;
}

.faq-question:hover {
    background: #f9f9ff;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 20px;
    color: #555;
    line-height: 1.7;
}

.faq-item.active .faq-question {
    background: #f9f9ff;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 20px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .all-tools-main-title {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .all-tools-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .all-tools-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .all-tools-main-title {
        font-size: 1.8rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input {
        padding: 12px 15px;
    }
}


.search-tagline {
    font-size: 1.2rem;
    color: #4a5568; /* A soft dark gray */
    text-align: center;
    margin: 1.5rem auto;
    max-width: 600px;
    padding: 0 1rem;
    line-height: 1.6;
    font-weight: 400;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.search-tagline::before,
.search-tagline::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
    margin: 0 15px;
    vertical-align: middle;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-tagline {
        font-size: 1.1rem;
        margin: 1rem auto;
    }
    .search-tagline::before,
    .search-tagline::after {
        width: 20px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .search-tagline {
        font-size: 1rem;
    }
    .search-tagline::before,
    .search-tagline::after {
        display: none;
    }
}