/* ========================================================
   SIDEBAR — Single Post Custom Widgets
   Targets classes generated by sidebar.php
   ======================================================== */

/* --------------------------------------------------------
   Widget Title (Shared)
   -------------------------------------------------------- */
.custom-recent-posts .widget-title,
.custom-lead-capture .widget-title,
.custom-categories .widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-dark);
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
}
.custom-recent-posts .widget-title::after,
.custom-lead-capture .widget-title::after,
.custom-categories .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}
.custom-recent-posts .widget-title::before,
.custom-lead-capture .widget-title::before,
.custom-categories .widget-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

/* --------------------------------------------------------
   Publicações — Recent Posts List
   -------------------------------------------------------- */
.custom-recent-list {
    display: flex;
    flex-direction: column;
}

.recent-item {
    display: flex !important;
    gap: 14px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none !important;
    color: inherit !important;
}
.recent-item:last-child {
    border-bottom: none;
}

.recent-thumb {
    flex-shrink: 0;
    width: 85px;
    height: 85px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg-gray);
}
.recent-thumb img {
    width: 85px !important;
    height: 85px !important;
    object-fit: cover !important;
    display: block;
    border-radius: 10px;
}

.recent-info {
    flex: 1;
    min-width: 0;
}

.recent-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: var(--text-dark) !important;
    margin: 0 0 6px !important;
    display: block;
    text-decoration: none !important;
}
.recent-item:hover .recent-title {
    color: var(--primary-color) !important;
}

.recent-date {
    font-size: 0.82rem;
    color: #999;
    font-weight: 500;
    display: block;
}

/* --------------------------------------------------------
   Fique Conectado — Lead Capture Buttons
   -------------------------------------------------------- */
.custom-lead-capture .lead-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lead-btn {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.lead-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.lead-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
}

.btn-wa { background: #25d366; }
.btn-tg { background: #0088cc; }
.btn-em { background: var(--primary-color); }

/* --------------------------------------------------------
   Blog Categorias
   -------------------------------------------------------- */
.custom-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.custom-cat-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.custom-cat-list li:last-child { border-bottom: none; }
.custom-cat-list li a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.custom-cat-list li a:hover { color: var(--primary-color); }
