/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

/* FORCE TITLE WHITE */
header a[rel="home"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
header, .site-header {
    border-bottom: none !important;
}

/* =============================================
   P4F SIDEBAR — Minimal Card Style
   ============================================= */

.widget {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #43a047;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.widget-title,
.widgettitle {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #2e7d32;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8f5e9;
}

.widget_search .search-field {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.widget_search .search-field:focus {
    border-color: #43a047;
    box-shadow: 0 0 0 2px rgba(67,160,71,0.15);
}

.widget_search .search-submit {
    background: #43a047;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 4px;
    margin-top: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s;
}

.widget_search .search-submit:hover {
    background: #2e7d32;
}

.widget_recent_entries ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_recent_entries ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f8f1;
    font-size: 14px;
    line-height: 1.4;
}

.widget_recent_entries ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget_recent_entries ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.widget_recent_entries ul li a:hover {
    color: #43a047;
}

.widget_recent_entries ul li .post-date {
    display: none;
}

/* === Search widget fix === */
.widget_search .search-form {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
}
.widget_search label {
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
}
.widget_search .search-field {
    width: 100% !important;
    padding: 8px 10px !important;
    border: 1px solid #c8e6c9 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    margin: 0 !important;
}
.widget_search .search-submit {
    flex-shrink: 0 !important;
    background: #43a047 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    margin: 0 !important;
    width: auto !important;
}
.widget_search .search-submit svg {
    fill: #fff !important;
    width: 16px !important;
    height: 16px !important;
}

/* === Search fix v2 === */
.sidebar .widget_search .search-form,
aside .widget_search .search-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 6px !important;
}
.sidebar .widget_search label,
aside .widget_search label {
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    display: block !important;
}
.sidebar .widget_search .search-field,
aside .widget_search .search-field {
    width: 100% !important;
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
.sidebar .widget_search .search-submit,
aside .widget_search .search-submit {
    height: 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #43a047 !important;
    border: none !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.sidebar .widget_search .search-submit svg,
aside .widget_search .search-submit svg {
    width: 16px !important;
    height: 16px !important;
    fill: #fff !important;
}
/* Recent Posts title fix */
.sidebar .widget-title,
aside .widget-title,
.sidebar .widgettitle,
aside .widgettitle {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .07em !important;
    color: #43a047 !important;
}

/* === Block Widget Search fix === */
.wp-block-search__inside-wrapper {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
}
.wp-block-search__input {
    flex: 1 !important;
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    border: 1px solid #c8e6c9 !important;
    border-radius: 4px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}
.wp-block-search__button {
    height: 36px !important;
    padding: 0 12px !important;
    background: #43a047 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    margin: 0 !important;
    width: auto !important;
}
.wp-block-search__label {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .07em !important;
    color: #43a047 !important;
    margin-bottom: 8px !important;
    display: block !important;
}
/* === Block Latest Posts fix === */
.wp-block-latest-posts__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.wp-block-latest-posts__list li {
    padding: 7px 0 !important;
    border-bottom: 1px solid #f1f8f1 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}
.wp-block-latest-posts__list li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.wp-block-latest-posts__post-title {
    color: #333 !important;
    text-decoration: none !important;
}
.wp-block-latest-posts__post-title:hover {
    color: #43a047 !important;
}
/* Widget title (block) */
.widget_block .wp-block-heading {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .07em !important;
    color: #43a047 !important;
    margin: 0 0 12px !important;
}
