/* Search and Filter Styles */
.tools-search-filter {
    display: flex;
    gap: 0.5rem;
    margin: 1.2rem 0 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
    background: #f0f9ff;
    border: 2px solid #00bcd4;
    border-radius: 6px;
    padding: 0.4rem 0.7rem;
    box-shadow: 0 2px 12px rgba(0,188,212,0.07);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tools-search {
    flex: 2;
    min-width: 180px;
    padding: 0.5rem 0.7rem;
    border: 2px solid #00bcd4;
    border-radius: 5px;
    font-size: 0.98rem;
    font-weight: 500;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,188,212,0.06);
    transition: all 0.3s ease;
}

.tools-search:focus {
    outline: none;
    border-color: #0A1E3F;
    box-shadow: 0 0 0 3px rgba(10,30,63,0.08);
}

.tools-category-filter {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem 0.7rem;
    border: 2px solid #00bcd4;
    border-radius: 5px;
    font-size: 0.98rem;
    font-weight: 500;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,188,212,0.06);
    transition: all 0.3s ease;
}

.tools-category-filter:focus {
    outline: none;
    border-color: #0A1E3F;
    box-shadow: 0 0 0 3px rgba(10,30,63,0.08);
}

/* Tool Card Enhancements */
.tool-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #00bcd4;
}

.tool-card.hidden {
    display: none;
}

/* Loading Animation */
.tool-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.tool-card.loading .btn-tool {
    background: #00bcd4;
    color: white;
}

/* Success/Error States */
.tool-card.success {
    border-color: #4caf50;
}

.tool-card.error {
    border-color: #f44336;
}

/* CTA button row at the bottom of tool cards */
.tool-card-cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border-radius: 0 0 16px 16px;
    padding: 0.5rem 0.3rem 0.6rem 0.3rem;
    margin-top: auto;
    min-height: 0;
}

.tool-card .btn-tool,
.tool-card .tool-link,
.tool-card .btn {
    width: auto;
    min-width: 90px;
    max-width: 170px;
    margin: 0;
    padding: 0.38em 0.9em;
    font-size: 0.97rem;
    font-weight: 600;
    border-radius: 999px;
    text-align: center;
    display: inline-block;
    background: #f5f7fa;
    color: #0A1E3F;
    border: 1.5px solid #e1e5e9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    letter-spacing: 0.01em;
    white-space: normal;
    line-height: 1.2;
    min-height: 2.2em;
    word-break: break-word;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.tool-card .btn-tool:hover,
.tool-card .tool-link:hover,
.tool-card .btn:hover {
    background: #e6f0fa;
    color: #0077b6;
    box-shadow: 0 2px 8px rgba(0,188,212,0.07);
    transform: translateY(-1px) scale(1.03);
}

@media (max-width: 768px) {
    .tool-card-cta-row {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.4rem 0.2rem 0.5rem 0.2rem;
    }
    .tool-card .btn-tool,
    .tool-card .tool-link,
    .tool-card .btn {
        font-size: 0.95rem;
        padding: 0.38em 0.8em;
        max-width: 100%;
    }
}

/* Quick Start Guide Styles */
.quick-start-guide {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #e1e5e9;
}

.guide-content h3 {
    text-align: center;
    color: #0A1E3F;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.step-number {
    background: #00bcd4;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: #0A1E3F;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.step-content p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Popular Tools Styles */
.popular-tools {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.popular-tools h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Responsive Design for Guide */
@media (max-width: 768px) {
    .guide-steps {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
}

/* Make headings and subheadings white and more visible */
.tools-header h2,
.tools-header p,
.tools-category,
.download-section-title {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 1px 0 #222;
}

.tools-header h2 {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.tools-header p {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.7em;
}

.tools-category {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.5rem 0 1.2rem 0;
    padding-left: 0.2em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff !important;
    border-left-color: #fff !important;
}

.download-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    letter-spacing: 0.03em;
}

/* Download arrow button (icon-only) */
.download-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f5f7fa;
    border: 1.5px solid #e1e5e9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: background 0.2s, box-shadow 0.2s, border 0.2s;
    margin-right: 0.3em;
    padding: 0;
}
.download-arrow-btn:hover {
    background: #e6f0fa;
    border-color: #00FFFF;
    box-shadow: 0 2px 8px rgba(0,188,212,0.07);
}
.download-arrow-btn svg {
    display: block;
}

/* Main CTA pill button */
.main-cta-btn {
    display: inline-block;
    min-width: 120px;
    max-width: 200px;
    padding: 0.45em 1.3em;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: 999px;
    background: #0A1E3F;
    color: #fff;
    border: 2px solid #00FFFF;
    box-shadow: 0 2px 8px rgba(10,30,63,0.10);
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    min-height: 2.2em;
    word-break: break-word;
    letter-spacing: 0.01em;
    transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s, transform 0.2s;
}
.main-cta-btn:hover {
    background: #00FFFF;
    color: #0A1E3F;
    border-color: #0A1E3F;
    box-shadow: 0 4px 16px rgba(10,30,63,0.13);
    transform: translateY(-1px) scale(1.04);
}

.tool-card-cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border-radius: 0 0 16px 16px;
    padding: 0.5rem 0.3rem 0.6rem 0.3rem;
    margin-top: auto;
    min-height: 0;
}

@media (max-width: 768px) {
    .tool-card-cta-row {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.4rem 0.2rem 0.5rem 0.2rem;
    }
    .main-cta-btn {
        max-width: 100%;
        font-size: 0.96rem;
        padding: 0.45em 1em;
    }
    .download-arrow-btn {
        margin-right: 0;
    }
}

/* Override tool icon color to navy blue */
.tool-card .tool-icon,
.tool-card .tool-icon i,
.tool-card .tool-icon svg,
.tools-category {
  color: #0A1E3F !important;
  border-left-color: #0A1E3F !important;
}

/* Update button and link borders/colors if needed */
.tool-card .btn-tool,
.tools-cta .btn {
  border-color: #0A1E3F !important;
}
.tool-card .btn-tool:hover,
.tools-cta .btn:hover {
  background: #0A1E3F !important;
  color: #fff !important;
}
.tool-card .tool-link {
  color: #0A1E3F !important;
}
