/* Core Variables */
:root {
    --bg-color: #f4f6f9;
    --primary-green: #2d8a5c;
    --btn-blue: #2365b0;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #6c757d;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Search Section */
.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-input {
    border-radius: 8px 0 0 8px;
    border: 1px solid #dee2e6;
    padding: 15px 20px;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.search-btn {
    border-radius: 0 8px 8px 0;
    background-color: #556a82;
    border: none;
    padding: 0 25px;
    color: white;
}

.search-btn:hover {
    background-color: #435467;
}

/* Category Headers */
.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

/* Tool Cards */
.tool-card {
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Icon Colors mapped to categories */
.icon-health { color: #48bb78; }
.icon-finance { color: #4299e1; }
.icon-productivity { color: #ed8936; }
.icon-security { color: #718096; }

.tool-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-use-tool {
    background-color: var(--btn-blue);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    border: none;
    width: 100%;
    transition: background-color 0.2s;
}

.btn-use-tool:hover {
    background-color: #1a4d85;
    color: white;
}

/* Footer Styles */
.footer-link {
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-green) !important;
}

footer hr {
    border-top: 2px solid var(--primary-green);
}

.blog-card {
    transition: transform 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
}
.page-link {
    color: var(--primary-green);
    border: none;
    margin: 0 5px;
    border-radius: 5px !important;
}
.page-item.active .page-link {
    background-color: #556a82; /* Cor do botão contact para harmonia */
    border: none;
}

/* Artigos Tipografia */
.article-body {
    color: #4a5568;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.step-number {
    font-size: 1.4rem;
    vertical-align: middle;
}

.article-body h4 {
    color: #2d3748;
    margin-top: 2rem;
}

/* Sidebar Improvements */
#recent-posts-container .d-flex img {
    border-radius: 8px;
    transition: opacity 0.2s;
}

#recent-posts-container .d-flex:hover img {
    opacity: 0.8;
}

#recent-posts-container a {
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Background suave para destaques no artigo */
.bg-light {
    background-color: #f8fafc !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    color: white !important;
}

.pagination .page-link {
    color: var(--primary-green);
    border: 1px solid #dee2e6;
    margin: 0 3px;
    border-radius: 5px;
}

.pagination .page-link:hover {
    background-color: #e6fffa;
}