/* ============ HEADER SEARCH (Desktop only) ============ */
.header-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f1f4;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 6px 14px;
    flex: 1;
    max-width: 380px;
    min-width: 0;
    transition: all 0.25s ease;
    position: relative;
}
.header-search-wrap:focus-within {
    background: #ffffff;
    border-color: #009933;
    box-shadow: 0 0 0 4px rgba(0,153,51,0.08);
}
.header-search-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #8e8e9a;
    transition: color 0.2s;
}
.header-search-wrap:focus-within .header-search-icon {
    color: #009933;
}
.header-search-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #1a1a2e;
    outline: none;
    min-width: 0;
    padding: 4px 0;
}
.header-search-wrap input::placeholder {
    color: #8e8e9a;
    font-weight: 400;
}
.header-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #8e8e9a;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.header-search-clear:hover {
    color: #1a1a2e;
}

/* Hide header search on mobile */
@media (max-width: 768px) {
    .header-search-wrap {
        display: none !important;
    }
}

/* ─── Standalone Search Bar (Mobile - below header) ─── */
.standalone-search-bar {
    width: 100%;
    background: transparent;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.standalone-search-inner {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.standalone-search-inner:focus-within {
    border-color: #009933;
    box-shadow: 0 0 0 4px rgba(0,153,51,0.08);
}

.standalone-search-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #8e8e9a;
    pointer-events: none;
}

.standalone-search-inner:focus-within .standalone-search-icon {
    color: #009933;
}

.standalone-search-bar input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    background: transparent;
    border: none;
    color: #1a1a2e;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.standalone-search-bar input::placeholder {
    color: #8e8e9a;
}

.standalone-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #8e8e9a;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.standalone-search-clear:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a2e;
}

/* Hide standalone search on desktop */
@media (min-width: 769px) {
    .standalone-search-bar {
        display: none;
    }
}
/* Remove extra spacing below search bar on blog page */
@media (max-width: 768px) {
    .standalone-search-bar {
        padding: 8px 12px;
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .main-wrapper {
        padding-top: 0 !important;
    }
    
    .outer-container {
        padding-top: 0;
    }
    
    .inner-card {
        margin-top: 0;
        padding-top: 0;
    }
}