/* =============================================
   COMPRESSOR TOOLS — CATEGORY LISTING PAGE STYLES
   Used by compressor_layout.blade.php (the category
   hub page, shown when page_type == 'category',
   rendered inside the site's real header/footer via
   front.layouts.default). Mirrors the structural
   classes used by pdf_layout.blade.php (tool-wrap,
   tool-header, conv-tool-grid, etc.) but themed with
   Compressor Tools' teal/navy palette.
   ============================================= */

:root {
    --ct-accent: #10b981;
    --ct-accent-dark: #0d9668;
    --ct-navy: #1e2a4a;
    --ct-border: #d1d5db;
    --ct-light: #f3f4f6;
}

.tool-wrap {
    max-width: var(--container, 1200px);
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* =============================================
   TOOL HEADER
   ============================================= */
.tool-header {
    margin-bottom: 24px;
}
.tool-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.tool-header-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--ct-navy);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.tool-header-desc {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
    max-width: 780px;
}
.tool-header-desc p { margin-bottom: 8px; }

/* =============================================
   TOOL BOX
   ============================================= */
.tool-box {
    background: transparent;
    margin-bottom: 28px;
}

/* =============================================
   CATEGORY GRID (Image Compressor / Image Resize /
   Compress PDF / Merge PDF cards)
   ============================================= */
.conv-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.conv-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 26px 16px;
    background: #fff;
    border: 1px solid var(--ct-border);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.conv-tool-card:hover {
    border-color: var(--ct-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.12);
}
.conv-tool-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ct-accent);
    background: #ecfdf5;
    border-radius: 14px;
}
.conv-tool-card-icon svg { width: 36px; height: 36px; }
.conv-tool-card-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ct-navy);
}

@media (max-width: 500px) {
    .conv-tool-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .tool-header-title { font-size: 24px; }
    .tool-wrap { padding: 16px 14px 40px; }
}

/* =============================================
   BOTTOM DESCRIPTION
   ============================================= */
.tool-bottom-desc {
    background: #fff;
    border: 1px solid var(--ct-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    padding: 26px 28px;
    font-size: 14px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 28px;
}
.tool-bottom-desc h2,
.tool-bottom-desc h3 {
    color: var(--ct-navy);
    margin: 18px 0 8px;
    font-size: 18px;
}
.tool-bottom-desc h2:first-child,
.tool-bottom-desc h3:first-child { margin-top: 0; }
.tool-bottom-desc p { margin-bottom: 10px; }

/* =============================================
   FAQ SECTION - left teal accent bar style,
   matching the individual tool pages' FAQ look
   (not Pdf Tools' navy header bar)
   ============================================= */
.tool-faq-section {
    margin-bottom: 28px;
}
.tool-faq-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--ct-navy);
    margin-bottom: 14px;
}
.tool-faq-list { display: flex; flex-direction: column; gap: 10px; }
.tool-faq-item {
    background: #fff;
    border: 1px solid var(--ct-border);
    border-left: 3px solid var(--ct-accent);
    border-radius: 8px;
    overflow: hidden;
}
.tool-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-navy);
    text-align: left;
    cursor: pointer;
}
.tool-faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ecfdf5;
    color: var(--ct-accent-dark);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}
.tool-faq-answer {
    display: none;
    padding: 0 16px 16px;
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.7;
}
.tool-faq-item.open .tool-faq-answer { display: block; }
.tool-faq-item.open .tool-faq-icon { transform: rotate(45deg); }